/* Thuso: one stylesheet for every page.
   Colours and type are variables at the top. The private route switches to a
   dark theme with body.theme-dark. */

:root {
  --burgundy: #801424;
  --burgundy-deep: #5a0c18;
  --burgundy-soft: #a8394b;
  --blush: #f3dfe2;
  --ink: #171313;
  --ink-2: #2a2423;
  --ink-soft: #3d3735;
  --muted: #6e6662;
  --rule: #e2dad1;
  --paper: #faf7f2;
  --stone: #efe8de;
  --white: #ffffff;
  --gold: #c9a46a;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-muted: var(--muted);
  --line: var(--rule);
  --panel: var(--white);
  --accent: var(--burgundy);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 3px;
  --header-h: 72px;
}

body.theme-dark {
  --bg: #141011;
  --fg: #f4ede4;
  --fg-soft: #ddd3c8;
  --fg-muted: #a59b92;
  --line: rgba(244, 237, 228, 0.14);
  --panel: #1d1718;
  --accent: var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--fg); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.55) 0; }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #f4ede4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--burgundy { background: var(--burgundy); color: #fff; }
.section--burgundy h2, .section--burgundy h3 { color: #fff; }
.theme-dark .section--panel { background: var(--panel); }

.eyebrow {
  font: 600 0.76rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem; display: flex; gap: 10px; align-items: center;
}
.eyebrow .num { color: var(--fg-muted); }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.45; color: var(--fg-soft); }
.muted { color: var(--fg-muted); }
.big-statement { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 26ch; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--burgundy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
.preview-banner { background: #f6c343; color: #241c00; font: 600 0.85rem/1.4 var(--sans); text-align: center; padding: 8px 16px; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--burgundy); }
.nav a[aria-current="page"] { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.nav .nav-cta { background: var(--burgundy); color: #fff; padding: 9px 18px; border-radius: var(--radius); border: 0; }
.nav .nav-cta:hover { background: var(--burgundy-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: #fff; border-bottom: 1px solid var(--rule); padding: 6px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
}

/* Route sub-navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--burgundy); color: #fff; }
.subnav--private { background: #0d0a0b; border-bottom: 1px solid rgba(255,255,255,0.08); }
.subnav .wrap { display: flex; align-items: center; gap: 28px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav-label { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; opacity: 0.75; padding-right: 28px; border-right: 1px solid rgba(255,255,255,0.25); }
.subnav nav { display: flex; gap: 24px; }
.subnav a { color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.subnav a:hover, .subnav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.subnav--private a[aria-current="page"], .subnav--private a:hover { color: var(--gold); }
@media (max-width: 640px) { .subnav-label { display: none; } }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 0.95rem/1 var(--sans); padding: 16px 26px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--burgundy); color: #fff; }
.btn--primary:hover { background: var(--burgundy-deep); color: #fff; }
.btn--light { background: #fff; color: var(--burgundy); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--gold { background: var(--gold); color: #1a1414; }
.btn--gold:hover { background: #e0c08b; color: #1a1414; }
.arrow { transition: transform .15s; display: inline-block; }
a:hover .arrow { transform: translateX(4px); }
.text-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

/* ---------------- Home: the doors ---------------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none;
        padding: clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate; min-height: 520px; }
.door-bg { position: absolute; inset: 0; background: center / cover no-repeat; z-index: -2; transition: transform 1.2s ease; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.door--dev::before { background: linear-gradient(180deg, rgba(128,20,36,0.25) 0%, rgba(90,12,24,0.55) 45%, rgba(60,8,16,0.94) 100%); }
.door--priv::before { background: linear-gradient(180deg, rgba(10,8,8,0.3) 0%, rgba(10,8,8,0.6) 45%, rgba(10,8,8,0.95) 100%); }
.door:hover .door-bg { transform: scale(1.04); }
.door .eyebrow { color: rgba(255,255,255,0.8); }
.door--priv .eyebrow { color: var(--gold); }
.door h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 12ch; margin-bottom: 0.35em; }
.door p { max-width: 42ch; color: rgba(255,255,255,0.86); font-size: 1.05rem; }
.door .door-cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 18px; max-width: 420px; justify-content: space-between; }
.door:hover .arrow { transform: translateX(6px); }
.door-for { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; min-height: 0; } .door { min-height: 70vh; } }

.intro-band { background: var(--ink); color: #f4ede4; }
.intro-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: 80px; padding-bottom: 80px; }
.intro-band .wrap + .wrap { display: block; padding-top: 0; }
.intro-band .big-statement { color: #fff; margin: 0; }
@media (max-width: 860px) { .intro-band .wrap { grid-template-columns: 1fr; } }

/* ---------------- Figures ---------------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figure { padding: 8px 24px 8px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure-num { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.intro-band .figure-num { color: #fff; }
.figure-label { font-size: 0.9rem; color: var(--fg-muted); margin-top: 10px; line-height: 1.4; }
.intro-band .figure + .figure { border-color: rgba(255,255,255,0.15); }
.intro-band .figure-label { color: rgba(255,255,255,0.65); }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------------- Route heroes ---------------- */
.route-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(82vh, 760px); }
.route-hero .panel { background: var(--burgundy); color: #fff; padding: clamp(48px, 7vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; }
.route-hero .panel-inner { max-width: 640px; margin-left: auto; width: 100%; }
.route-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 5rem); }
.route-hero .lead { color: rgba(255,255,255,0.88); }
.route-hero .eyebrow { color: var(--blush); }
.route-hero .photo { background: center / cover no-repeat; min-height: 320px; }
.theme-dark .route-hero .panel { background: #0d0a0b; }
.theme-dark .route-hero .eyebrow { color: var(--gold); }
@media (max-width: 900px) { .route-hero { grid-template-columns: 1fr; } .route-hero .photo { order: -1; min-height: 42vh; } .route-hero .panel-inner { margin-left: 0; } }

.page-hero { padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 60ch; margin: 0; }

/* ---------------- Split / services ---------------- */
.split { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 150px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

.services { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.service { counter-increment: svc; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before { content: counter(svc, decimal-leading-zero); font: 500 1.6rem/1 var(--serif); color: var(--accent); }
.service h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.service > div > p { color: var(--fg-soft); max-width: 62ch; }
.service .kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.service .kinds li { font-size: 0.82rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-soft); }
@media (max-width: 600px) { .service { grid-template-columns: 1fr; gap: 10px; } }

.examples { list-style: none; margin: 22px 0 0; padding: 0; }
.examples li { padding: 12px 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.ex-title { font-family: var(--serif); font-size: 1.05rem; color: var(--fg); line-height: 1.35; }
.ex-meta { font-size: 0.82rem; color: var(--fg-muted); }
.examples-label { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-top: 22px; }

/* ---------------- Sector bars ---------------- */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 44px; gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bar-label { font-family: var(--serif); font-size: 1.12rem; }
.bar-track { height: 10px; background: var(--stone); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--burgundy); border-radius: 999px; transform-origin: left; }
.js .reveal .bar-fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible .bar-fill { transform: scaleX(1); }
.bar-value { font-variant-numeric: tabular-nums; text-align: right; color: var(--fg-muted); font-size: 0.92rem; }
.bars-note { font-size: 0.85rem; color: var(--fg-muted); margin-top: 14px; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr 40px; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------------- Client cloud ---------------- */
.cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; }
.cloud li { font-family: var(--serif); line-height: 1.25; color: var(--fg); }
.cloud li:not(:last-child)::after { content: "/"; color: var(--accent); opacity: 0.5; margin: 0 0.5em; font-size: 0.8em; }
.section--ink .cloud li { color: #fff; }

/* ---------------- Case cards ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(40,10,15,0.45); }
.case-img { aspect-ratio: 16 / 10; background: var(--stone) center / cover no-repeat; position: relative; }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-body .meta { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.case-body h3 { font-size: 1.4rem; margin-bottom: 14px; }
.case-client { margin-top: auto; font-size: 0.88rem; color: var(--fg-muted); }
.draft-flag { position: absolute; top: 12px; left: 12px; background: #f6c343; color: #241c00; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; }

.case-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--ink) center / cover no-repeat; color: #fff; isolation: isolate; }
.case-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,10,12,0.15), rgba(20,10,12,0.88)); }
.case-hero .wrap { padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px); }
.case-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 20ch; margin: 0; }
.back-link { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; font-weight: 500; display: inline-block; margin-bottom: 18px; }
.case-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .case-layout { grid-template-columns: 1fr; } }
.case-facts dl { margin: 0; position: sticky; top: 150px; }
.case-facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.case-facts dt { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.draft-note { background: #fff4d0; border-left: 4px solid #f6c343; padding: 12px 16px; color: #4a3a00 !important; font-size: 0.92rem; }

/* ---------------- References ---------------- */
.ref-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ref-filters input, .ref-filters select { width: 100%; font: inherit; font-size: 0.95rem; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--fg); }
@media (max-width: 860px) { .ref-filters { grid-template-columns: 1fr 1fr; } .ref-search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ref-filters { grid-template-columns: 1fr; } }
.ref-count { font-size: 0.92rem; color: var(--fg-muted); margin-bottom: 18px; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.ref[hidden] { display: none; }
.ref-year { font-family: var(--serif); color: var(--accent); font-size: 1.05rem; }
.ref-main h3 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.35; }
.ref-main p { margin: 0; font-size: 0.9rem; color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ref-main p span:first-child { color: var(--fg-soft); font-weight: 500; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 280px; }
.tag { font: 600 0.7rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--burgundy); color: #fff; white-space: nowrap; }
.tag--quiet { background: var(--stone); color: var(--muted); }
@media (max-width: 760px) { .ref { grid-template-columns: 60px 1fr; } .ref-tags { grid-column: 2; justify-content: flex-start; } }

/* ---------------- Private route ---------------- */
.theme-dark .site-footer { background: #0d0a0b; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--bg); padding: clamp(28px, 4vw, 48px); }
.pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.pillar p { color: var(--fg-soft); margin: 0; }
.pillar .eyebrow { margin-bottom: 18px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.mandates { list-style: none; margin: 0; padding: 0; }
.mandates li { padding: 20px 0; border-top: 1px solid var(--line); }
.mandate-group + .mandate-group { margin-top: 40px; }
.mandate-label { font: 600 0.72rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.mandates li:last-child { border-bottom: 1px solid var(--line); }
.mandates h3 { font-size: 1.3rem; margin: 0 0 4px; }
.mandates p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }
.mandates .mandate-detail { color: var(--fg-soft); font-size: 0.98rem; line-height: 1.55; margin: 2px 0 6px; max-width: 62ch; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creds li { background: var(--bg); padding: 28px; }
.creds .year { font-family: var(--serif); color: var(--accent); font-size: 1.2rem; display: block; margin-bottom: 10px; }
.creds strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; margin-bottom: 6px; color: var(--fg); }
.creds span.sub { color: var(--fg-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }
.quiet-quote { border-left: 2px solid var(--accent); padding-left: 24px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.4; color: var(--fg); max-width: 36ch; }

/* ---------------- People ---------------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; filter: grayscale(1) contrast(1.05); margin-bottom: 16px; background: var(--stone); }
.person h3 { font-size: 1.25rem; margin: 0 0 2px; }
.person .role { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.person details { font-size: 0.86rem; color: var(--fg-muted); }
.person summary { cursor: pointer; font-weight: 500; color: var(--fg-soft); list-style: none; display: inline-flex; gap: 6px; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; color: var(--accent); font-weight: 600; }
.person details[open] summary::after { content: "\2212"; }
.person ul { margin: 10px 0 0; padding: 0; list-style: none; }
.person li { padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.45; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); list-style: none; margin: 0; padding: 0; counter-reset: pr; }
.principles li { counter-increment: pr; border-top: 2px solid var(--accent); padding-top: 22px; }
.principles li::before { content: counter(pr, decimal-leading-zero); font: 500 0.95rem/1 var(--serif); color: var(--accent); display: block; margin-bottom: 14px; }
.principles h3 { font-size: 1.35rem; }
.principles p { color: var(--fg-soft); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------------- Offices ---------------- */
.offices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.office { background: var(--panel); }
.office img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.office .body { padding: 18px 20px 22px; }
.office h3 { font-size: 1.15rem; margin-bottom: 2px; }
.office .region { font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 10px; }
.office a { font-weight: 600; font-size: 0.88rem; text-decoration: none; word-break: break-all; }
@media (max-width: 1000px) { .offices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .offices { grid-template-columns: 1fr 1fr; } }
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block a.big { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); text-decoration: none; color: #fff; display: block; line-height: 1.2; }
.contact-block a.big:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact-block { grid-template-columns: 1fr; } }

/* ---------------- Credits ---------------- */
.credits { list-style: none; margin: 0; padding: 0; }
.credits li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.credits img { width: 120px; aspect-ratio: 3/2; object-fit: cover; }
.credits p { margin: 4px 0 0; font-size: 0.88rem; color: var(--fg-muted); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--burgundy); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.theme-dark .cta-band { background: #0d0a0b; border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; max-width: 52ch; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 80px 0 32px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top img { height: 40px; width: auto; }
.footer-tag { font-family: var(--serif); font-size: 1.2rem; color: rgba(255,255,255,0.8); margin: 0; max-width: 34ch; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------- Reveal ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal .bar-fill { transform: none; } }

/* ---------------- Three doors ---------------- */
.doors--3 { grid-template-columns: 1fr 1fr 1fr; }
.doors--3 .door h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
@media (max-width: 1100px) { .doors--3 { grid-template-columns: 1fr; min-height: 0; } .doors--3 .door { min-height: 62vh; } }
.door--tech { background: #f6f3ee; color: var(--ink); }
.door--tech::before { background: linear-gradient(180deg, rgba(246,243,238,0) 0%, rgba(246,243,238,0.85) 55%, rgba(246,243,238,1) 100%); }
.door-bg--tech {
  background-color: #f6f3ee;
  background-image:
    linear-gradient(rgba(128,20,36,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,20,36,0.10) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(128,20,36,0.22), transparent 45%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.door--tech h2 { color: var(--ink); }
.door--tech p { color: var(--ink-soft); }
.door--tech .eyebrow { color: var(--burgundy); }
.door--tech .door-cta { border-top-color: rgba(23,19,19,0.2); color: var(--burgundy); }

/* ---------------- Technology theme ---------------- */
body.theme-tech { --bg: #fbfaf7; --panel: #ffffff; }
body.theme-tech .eyebrow { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.subnav--technology { background: var(--ink); }
.subnav--technology a[aria-current="page"], .subnav--technology a:hover { color: #f0c9cf; }
.tech-hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.tech-hero .wrap { position: relative; z-index: 1; }
.tech-hero h1 { max-width: 15ch; }
.tech-hero .lead { max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn--outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: #fff; }
.tech-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(128,20,36,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,20,36,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.compare { border: 1px solid var(--line); background: var(--panel); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 16px; padding: 16px 20px; }
.compare-head { background: var(--ink); color: #fff; font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.compare-head span:last-child { color: #f0c9cf; }
.compare-row { border-top: 1px solid var(--line); font-size: 0.95rem; }
.compare-row span:first-child { font-weight: 600; color: var(--fg); }
.compare-row span:nth-child(2) { color: var(--fg-muted); }
.compare-row span:last-child { color: var(--fg); font-family: var(--serif); font-size: 1.05rem; }
@media (max-width: 640px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-row span:nth-child(2)::before { content: "Large-scale: "; font-weight: 600; }
  .compare-row span:last-child::before { content: "Thuso: "; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--burgundy); }
}
/* Cards share rows (subgrid) so headers and body text line up across both products. */
.products { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); column-gap: 28px; row-gap: 0; }
.product { background: var(--bg); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 28px; } .product { display: flex; flex-direction: column; grid-row: auto; } }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-head img { flex: none; }
.product-head h3 { margin: 0; font-size: 1.6rem; }
.product-for { font-size: 0.9rem; color: var(--fg-muted); margin: 2px 0 0; }
.product .status { justify-self: start; align-self: start; margin: 0 0 18px; font: 600 0.7rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--burgundy); border: 1px solid var(--burgundy); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.product > p { color: var(--fg-soft); }
.product-points { list-style: none; margin: 8px 0 0; padding: 0; }
.product-points li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.product-points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 2px; background: var(--burgundy); }

/* ---------------- Awards ---------------- */
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.awards li:last-child { border-bottom: 1px solid var(--line); }
.awards .year { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; }
.awards .what { color: var(--fg-soft); }
.awards .what strong { color: var(--fg); font-weight: 600; margin-right: 4px; }
.awards .tag { background: transparent; color: var(--fg-muted); border: 1px solid var(--line); }
.awards .tag--win { background: var(--accent); color: #fff; border-color: var(--accent); }
.theme-dark .awards .tag--win { color: #1a1414; }
@media (max-width: 560px) { .awards li { grid-template-columns: 52px 1fr; } .awards .tag { grid-column: 2; justify-self: start; } }

/* ---------------- News ---------------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 170px 1fr; gap: clamp(20px, 4vw, 56px); padding: 32px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-meta time { display: block; font-size: 0.88rem; color: var(--fg-muted); font-weight: 500; }
.news-meta .kind { display: block; margin-top: 6px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.news-item h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 10px; }
.news-item p { color: var(--fg-soft); max-width: 68ch; margin-bottom: 0.6em; }
.news-foot { font-size: 0.88rem; }
.news-src { font-weight: 600; text-decoration: none; }
.draft-inline { font: 600 0.65rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: #f6c343; color: #241c00; padding: 4px 7px; vertical-align: middle; margin-left: 8px; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

blockquote.quiet-quote { margin: 0; }
.quiet-quote cite { display: block; margin-top: 14px; font: 500 0.85rem/1.4 var(--sans); font-style: normal; color: var(--fg-muted); }

.award-note { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--fg); }
.award-note span { display: block; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ---------------- Home: latest (two news, one case) ---------------- */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .latest-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .latest-grid { grid-template-columns: 1fr; } }
.news-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--burgundy); padding: 28px 28px 26px;
  transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(40,10,15,0.45); }
.news-card .meta { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.news-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.news-card p { color: var(--fg-soft); font-size: 0.95rem; margin: 0 0 18px; }
.news-card .card-more { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.news-card .draft-flag { position: static; align-self: flex-start; margin-bottom: 12px; }
.latest-grid .case-card .case-body .meta::before { content: "Case study \00B7  "; }
.head-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Sector explorer (development page) */
.sx-tabs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-tab { font: inherit; font-size: 0.95rem; line-height: 1.2; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; text-align: left; transition: background .2s, color .2s, border-color .2s; }
.sx-tab:hover { border-color: var(--accent); }
.sx-tab[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sx-tabs { display: none; }
.sx--js .sx-tabs { display: flex; }
.sx-panel + .sx-panel { margin-top: 32px; }
.sx--js .sx-panel + .sx-panel { margin-top: 0; }
.sx--js .sx-panel[hidden] { display: none; }
.sx-panel { border-top: 2px solid var(--accent); padding-top: 18px; }
.sx-panel h3 { font-size: 1.35rem; margin: 0 0 8px; }
.sx-examples { list-style: none; margin: 0; padding: 0; }
.sx-examples li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sx-title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.4; margin: 0 0 3px; }
.sx-meta { font-size: 0.88rem; color: var(--fg-muted); margin: 0; }
.sx-with { font-size: 0.95rem; color: var(--fg-soft); margin: 16px 0 6px; }
.sx-all { margin: 18px 0 0; font-size: 0.95rem; color: var(--fg-soft); }
.sx-all .text-link { display: inline; }
.sx--js .sx-panel { animation: sx-in .35s ease; }
@keyframes sx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx--js .sx-panel { animation: none; } }
.sx--js .sx-panels { position: relative; }

/* World map (development page) */
.wm-map { position: relative; }
.wm-svg { display: block; width: 100%; height: auto; }
.wm-land { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.wm-c { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; cursor: pointer; transition: stroke .2s, opacity .2s; }
.wm-halo { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .55; cursor: pointer; pointer-events: all; }
.wm.is-active .wm-c, .wm.is-active .wm-halo { opacity: .35; }
.wm .wm-c.is-on, .wm .wm-halo.is-on, .wm .wm-c.is-hover, .wm .wm-halo.is-hover { opacity: 1; }
.wm .wm-c.is-on { stroke-width: 9; }
.wm .wm-halo.is-on { stroke-width: 2.4; r: 11; }
.wm .wm-c.is-hover { stroke-width: 8; }
.wm-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); background: var(--fg); color: var(--bg); font-size: .82rem; padding: 5px 10px; border-radius: 4px; white-space: nowrap; }
.wm-side { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 48px; margin-top: 32px; align-items: start; }
.wm-pick span { display: block; font: 600 0.72rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.wm-pick select { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--fg); }
.wm-panel { border-top: 2px solid var(--accent); padding-top: 18px; min-height: 120px; }
.wm-panel h3 { font-size: 1.35rem; margin: 0 0 8px; }
.wm-hint { color: var(--fg-muted); margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .wm-side { grid-template-columns: 1fr; gap: 24px; } .wm-land { stroke-width: 6; } .wm-c { stroke-width: 7.5; } }
.sx-type { font: 600 0.68rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
