/* ============================================================
   HAPAX — website design system
   AI advisory · Helsinki
   Palette, type and components derived from the brand portfolio.
   ============================================================ */

/* Self-hosted fonts (see fonts/fonts.css + fonts/LICENCE.txt) --
   Cormorant Garamond and Geist Mono, latin + latin-ext subsets only.
   Cormorant Garamond has no Greek subset upstream, so the Greek
   phrase on the site (hapax legomenon) falls back to the system
   serif -- this was already true when the font was Google-hosted. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-italic-400.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-italic-400.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-italic-500.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-italic-500.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-italic-600.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-italic-600.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-400.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-400.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-500.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-500.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-600.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600.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: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-mono-latin-ext-400.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: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-mono-latin-400.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: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-mono-latin-ext-500.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: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-mono-latin-500.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;
}

:root {
  /* ---- palette ---- */
  --bg:        #FBFAF5;   /* page surface */
  --bg-soft:   #F4F1E8;   /* alt band */
  --bg-deep:   #EFE9D8;   /* deepest paper */
  --ink:       #1A1410;   /* type, fine line */
  --oxblood:   #7A1F18;   /* primary field */
  --blood:     #581410;
  --indigo:    #1F2A52;   /* counter field */
  --gold:      #B68A2C;   /* accent */
  --gold-hi:   #D4A848;
  --white:     #FFFFFF;

  --mute:   rgba(26,20,16,0.60);
  --mute2:  rgba(26,20,16,0.42);
  --mute3:  rgba(26,20,16,0.24);
  --rule:   rgba(26,20,16,0.14);
  --rule-soft: rgba(26,20,16,0.07);

  /* on dark */
  --bg-on-dark:      rgba(251,250,245,0.92);
  --mute-on-dark:    rgba(251,250,245,0.62);
  --mute2-on-dark:   rgba(251,250,245,0.40);
  --rule-on-dark:    rgba(251,250,245,0.18);

  /* ---- type ---- */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- metrics ---- */
  --maxw: 1240px;
  --gut:  40px;
  --nav-h: 74px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* anchored sections land below the sticky nav, not under it */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 108px 0; }
.section--tight { padding: 76px 0; }
.band-soft { background: var(--bg-soft); }
.band-deep { background: var(--bg-deep); }
.band-ink  { background: var(--ink);   color: var(--bg-on-dark); }
.band-indigo { background: var(--indigo); color: var(--bg-on-dark); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- type atoms ---------- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute2);
  font-weight: 500;
}
.mono--gold { color: var(--gold); }
.mono--onDark { color: var(--mute2-on-dark); }
.numeral {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute2);
  font-weight: 400;
}
.italic { font-style: italic; }
.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.5;
  color: var(--mute);
  font-style: italic;
  text-wrap: pretty;
}
/* numeric ledes (the case pages open on a figure) read poorly in italic
   Cormorant numerals -- same lede otherwise, upright instead */
.lede--num { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: 0.004em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; }
h3 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.18; }
p  { text-wrap: pretty; }

.display-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.16;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

/* section header block (roman numeral + title + lede) */
.sec-head { display: flex; flex-direction: column; gap: 18px; }
.sec-head .kicker { display: flex; align-items: baseline; gap: 14px; }
.sec-head .kicker .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--mute2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__tile { width: 30px; height: 30px; }
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: 0.20em; color: var(--ink);
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
  padding: 6px 0; position: relative; transition: color 140ms ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--oxblood); transition: right 200ms ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { right: 0; background: var(--gold); }
.nav__cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--ink); padding: 9px 16px;
  transition: background 140ms ease, color 140ms ease;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform 200ms ease, opacity 200ms ease; }
.nav__more { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav__more-btn {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
  padding: 6px 0; background: none; border: 0; cursor: pointer;
  transition: color 140ms ease;
}
.nav__more:hover .nav__more-btn, .nav__more:focus-within .nav__more-btn { color: var(--ink); }
.nav__more-btn.is-active { color: var(--ink); }
.nav__menu {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--bg); border: 1px solid var(--rule);
  padding: 14px 18px; min-width: 175px;
  flex-direction: column; align-items: flex-start; gap: 12px;
}
.nav__more:hover .nav__menu, .nav__more:focus-within .nav__menu, .nav__more.is-open .nav__menu { display: flex; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: calc(65vh - var(--nav-h));
  align-items: stretch;
}
.hero__copy { padding: 72px var(--gut) 56px; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title { margin-bottom: 30px; }
.hero__title em { font-style: italic; color: var(--oxblood); }
.hero__sub { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--mute); max-width: 36ch; margin: 0 0 40px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* full-bleed tile panel — the one bold moment */
.hero__panel {
  position: relative; background: var(--indigo);
  border-left: 1px solid var(--rule);
  overflow: hidden; min-height: 420px;
}
.tile-fill {
  display: grid; grid-auto-rows: var(--tile, 150px);
  grid-template-columns: repeat(auto-fill, var(--tile, 150px));
  justify-content: center; align-content: center;
  overflow: hidden; line-height: 0;
}
.tile-fill svg { width: var(--tile, 150px); height: var(--tile, 150px); display: block; }
.hero__caption {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(251,250,245,0.55);
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--ink); color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--bg); }
.btn--onDark { border-color: var(--rule-on-dark); color: var(--bg-on-dark); }
.btn--onDark:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}
.arrow-link .ar { transition: transform 200ms ease; }
.arrow-link:hover .ar { transform: translateX(6px); }
.arrow-link--onDark { color: var(--bg-on-dark); }
/* downward variant (e.g. hero "Read on"); hover must preserve the rotation */
.ar--down { transform: rotate(90deg); }
.arrow-link:hover .ar--down { transform: rotate(90deg) translateX(5px); }

/* inline prose links: same border-and-gold-hover treatment as .sources a,
   pulled into a class so it isn't repeated as inline style on every link */
.prose-link { border-bottom: 1px solid var(--rule); transition: border-color 140ms ease, color 140ms ease; }
.prose-link:hover { border-color: var(--gold); }
/* safety net: any future link dropped into body copy without a class still
   gets an underline, so a link is never invisible by omission. Scoped to
   prose containers and to elements with no class, so nav/footer/buttons
   (which all carry their own class) are untouched. */
.passage__body a:not([class]), .lede a:not([class]), .hero__sub a:not([class]),
.teaser__panel a:not([class]), .member__bio a:not([class]) {
  border-bottom: 1px solid var(--rule); transition: border-color 140ms ease, color 140ms ease;
}
.passage__body a:not([class]):hover, .lede a:not([class]):hover, .hero__sub a:not([class]):hover,
.teaser__panel a:not([class]):hover, .member__bio a:not([class]):hover { border-color: var(--gold); }

/* ---------- services list ---------- */
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.svc {
  display: grid; grid-template-columns: 84px 1.1fr 1.4fr; gap: 32px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--rule);
  transition: background 200ms ease;
}
.svc:hover { background: var(--bg-soft); }
.svc__num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); line-height: 1; }
.svc__title { font-size: clamp(24px, 2.3vw, 30px); }
.svc__body { color: var(--mute); font-size: 18px; line-height: 1.55; }
.svc__meta { margin-top: 14px; }

/* ---------- feature / two-up ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-up--wide { grid-template-columns: 0.9fr 1.1fr; }

/* framed tile block */
.tile-frame {
  background: var(--indigo); border: 1px solid var(--rule); padding: 0; overflow: hidden;
  aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; line-height: 0;
}
.tile-frame--band { aspect-ratio: 12 / 2; }

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.stat { padding: 34px 28px 34px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 62px); line-height: 1; }
.stat__num em { font-style: italic; color: var(--oxblood); }
.stat__label { margin-top: 14px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
/* two founders, not three partners — wider cards, capped width */
.team-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 940px; }
.member { display: flex; flex-direction: column; gap: 16px; }
.member__photo {
  aspect-ratio: 4 / 5; background: var(--bg-deep);
  border: 1px solid var(--rule); overflow: hidden; position: relative;
}
.member__ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(26,20,16,0.05) 11px 12px),
    var(--bg-deep);
  display: grid; place-items: center;
}
.member__ph span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute2); }
.member__name { font-size: 25px; line-height: 1.1; }
.member__role { color: var(--oxblood); font-style: italic; font-size: 17px; margin-top: -8px; }
.member__bio { color: var(--mute); font-size: 16.5px; line-height: 1.55; }
.member__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- teaser card (founders / notes on home) ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); }
.teaser__panel { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.teaser__panel + .teaser__panel { border-left: 1px solid var(--rule); }

/* ---------- page header ---------- */
.page-head { padding: 86px 0 64px; border-bottom: 1px solid var(--rule); }
.page-head__grid { display: grid; grid-template-columns: 1fr 0.7fr; gap: 48px; align-items: end; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 78px); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--bg-on-dark); padding: 76px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 30ch; }
.footer .wordmark { color: var(--bg); }
.footer__tag { color: var(--mute-on-dark); font-style: italic; font-size: 18px; line-height: 1.5; }
.footer__col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute2-on-dark); font-weight: 500; margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
/* the Site column carries 8 links against 2 in each neighbour; splitting it
   into two 4-item tracks keeps the row visually balanced without adding a
   column to footer__top itself. */
.footer__site-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.footer__col a, .footer__col li { color: var(--bg-on-dark); font-size: 17px; transition: color 140ms ease; }
.footer__col a:hover { color: var(--gold-hi); }
.footer__bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--rule-on-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute2-on-dark);
}

/* ---------- prospectus passages (marginal heading + prose column) ---------- */
.passage { padding: 84px 0; }
.passage + .passage { border-top: 1px solid var(--rule-soft); }
/* justify-content: center optically centres the fixed-width label+prose pair
   inside the wider wrap at desktop, instead of leaving the leftover width as
   dead space on the right; harmless on mobile, where the grid is a single
   1fr track anyway (see the max-width: 900px override below). */
.passage__grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; }
.passage__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute2); padding-top: 10px; }
.passage__label .numeral { display: block; font-size: 20px; margin-bottom: 10px; }
.passage__body p { font-size: 20px; line-height: 1.7; margin: 0 0 24px; }
.passage__body p:last-child { margin-bottom: 0; }
.passage__body .display-quote { margin: 0 0 34px; }
/* work.html group bands (18 Sep 2026): cases grouped by business function */
.passage--band { padding: 64px 0 0; }
.passage--band + .passage { border-top: 0; }
.passage--band .passage__body h2 {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); margin: 0;
}

/* footnote references and the sources block */
.fn-ref { font-family: var(--mono); font-style: normal; font-size: 0.55em; vertical-align: super; color: var(--oxblood); letter-spacing: 0; margin-left: 2px; }
.sources { border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 10px; }
.sources ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: fn; }
.sources li { counter-increment: fn; font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; color: var(--mute); }
.sources li::before { content: counter(fn) " · "; color: var(--oxblood); }
.sources a { border-bottom: 1px solid var(--rule); transition: border-color 140ms ease, color 140ms ease; }
.sources a:hover { color: var(--ink); border-color: var(--gold); }
.sources__head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute2); margin: 0 0 16px; }

/* compact mono list (e.g. the five programmes) */
.mono-list { font-family: var(--mono); font-size: 12.5px; line-height: 2.1; letter-spacing: 0.04em; color: var(--mute); margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule-soft); }
.mono-list span { color: var(--mute2); }

/* ---------- reveal animation (transform-only: content is never hidden) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(16px); opacity: 0.001; transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
  .reveal.is-in { transform: none; opacity: 1; }
  .reveal[data-d="1"] { transition-delay: 80ms; }
  .reveal[data-d="2"] { transition-delay: 160ms; }
  .reveal[data-d="3"] { transition-delay: 240ms; }
  .reveal[data-d="4"] { transition-delay: 320ms; }
}
/* No-JS / reduced-motion / frozen-paint fallback: force full visibility. */
.no-js .reveal, .reveal.is-in { opacity: 1 !important; transform: none; }

/* ---------- responsive ---------- */
/* Mobile nav gets its own breakpoint, raised above the general 900px layout
   break: the nav content needs ~892px and was clipping/wrapping in the
   840-900px band before the hamburger appeared. Raised 1000 -> 1080 on 16 Sep
   2026 when the More menu was added. Every rule that toggles the nav's own
   display (links, toggle button, open state) moves together. */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 28px var(--gut) 34px;
  }
  .nav.is-open .nav__cta { align-self: flex-start; }
  .nav__more-btn { display: none; }
  .nav.is-open .nav__more { display: contents; }
  .nav.is-open .nav__menu { display: flex; position: static; border: 0; padding: 0; gap: 22px; }
}
@media (max-width: 900px) {
  :root { --gut: 24px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 64px var(--gut) 56px; }
  .hero__panel { min-height: 340px; border-left: 0; border-top: 1px solid var(--rule); }
  .two-up, .two-up--wide { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 56px 1fr; gap: 8px 20px; }
  .svc__body { grid-column: 1 / -1; margin-top: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
  .team-grid, .team-grid--two { grid-template-columns: 1fr 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .teaser__panel + .teaser__panel { border-left: 0; border-top: 1px solid var(--rule); }
  .page-head__grid { grid-template-columns: 1fr; gap: 28px; }
  .passage { padding: 60px 0; }
  .passage__grid { grid-template-columns: 1fr; gap: 20px; }
  .passage__label { padding-top: 0; }
  .passage__label .numeral { display: inline; margin-right: 10px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .team-grid, .team-grid--two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---- 1 Oct 2026: homepage design feedback ---- */

/* Hero service-page map */
.hero__map {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute2);
}
.hero__map a {
  color: var(--mute);
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.hero__map a:hover { color: var(--ink); border-color: var(--gold); }

/* Three-up service cards (index § ii "The work") */
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 34px;
}
.work-card {
  padding: 30px 28px 30px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 140ms ease;
  color: inherit;
}
.work-card:last-child { border-right: 0; }
.work-card:hover { background: var(--bg-soft); }
.work-card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.work-card p { color: var(--mute); font-size: 17px; line-height: 1.55; margin: 0; }

/* Two-column founders (index § iii) */
.founders-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.founder h3 { font-size: 25px; line-height: 1.1; margin-bottom: 18px; }
.founder p { font-size: 20px; line-height: 1.7; margin: 0 0 20px; }
.founder p:last-of-type { margin-bottom: 0; }

/* Numbered principles list (index § iv) */
.principles-list {
  list-style: none;
  counter-reset: principle;
  margin: 0;
  padding: 0;
}
.principles-list li {
  counter-increment: principle;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 20px;
  line-height: 1.7;
}
.principles-list li:first-child { padding-top: 0; }
.principles-list li::before {
  content: counter(principle);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mute2);
  display: block;
  margin-bottom: 10px;
}

/* On-page sticky TOC (homepage right gutter, wide screens) */
.page-toc {
  position: fixed;
  top: calc(var(--nav-h) + 48px);
  left: calc(50vw + 514px);
  width: 70px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 300ms ease;
}
.page-toc.is-visible { opacity: 1; }
.page-toc a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute3);
  transition: color 200ms ease;
  line-height: 1.3;
}
.page-toc a:hover { color: var(--mute); }
.page-toc .toc__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.page-toc a.is-active { color: var(--mute); }
.page-toc a.is-active .toc__num { color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .page-toc { transition: none; }
}

/* Footer: lighter Site column */
.footer__site-cols a { font-size: 14.5px; }
.footer__site-cols ul { gap: 9px; }

/* ---- responsive overrides for 1 Oct 2026 additions ---- */
@media (max-width: 1200px) {
  .page-toc { display: none; }
}
@media (max-width: 900px) {
  .work-cards { grid-template-columns: 1fr; }
  .work-card { border-right: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .founders-pair { grid-template-columns: 1fr; gap: 36px; }
}
