@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.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: 'Martian Mono';
  font-style: normal;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/martian-mono-latin.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: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/sora-latin.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;
}

/* Quansight Consulting — site styles.
   Layout: white header, navy brand band for every page hero, paper sections with ruled "ledger" rows,
   navy footer. Brand colours come from the logo: navy #0C365A, steel #36789C, gold #C0A25A. */

:root {
  --paper: #F6F8FB;
  --surface: #FFFFFF;
  --sunken: #EDF1F6;
  --ink: #0C2740;
  --ink-2: #4A5D73;
  --rule: #D9E1EA;
  --steel: #36789C;
  --gold: #C0A25A;
  --gold-ink: #8A6D24;
  --up: #0B8A6F;
  --down: #C2413A;
  --band: #0C365A;
  --band-2: #0A2E4D;
  --band-ink: #EAF0F6;
  --band-ink-2: #A9BDD1;
  --band-rule: #22507A;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem);
  --step-3: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 0.75rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08131F; --surface: #0F1F31; --sunken: #0B1826; --ink: #E7EDF4; --ink-2: #9EB1C5;
    --rule: #1E3349; --steel: #6BAAD3; --gold: #D4B872; --gold-ink: #D4B872; --up: #3CC7A4; --down: #F07B72;
    --band: #0D2A45; --band-2: #0A223A; --band-ink: #EAF0F6; --band-ink-2: #A9BDD1; --band-rule: #1F4466;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #08131F; --surface: #0F1F31; --sunken: #0B1826; --ink: #E7EDF4; --ink-2: #9EB1C5;
  --rule: #1E3349; --steel: #6BAAD3; --gold: #D4B872; --gold-ink: #D4B872; --up: #3CC7A4; --down: #F07B72;
  --band: #0D2A45; --band-2: #0A223A; --band-ink: #EAF0F6; --band-ink-2: #A9BDD1; --band-rule: #1F4466;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--font-data); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
}
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose p { color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .975rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  padding: .85rem 1.3rem; border-radius: .5rem; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: #0C2740; }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #FFFFFF); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink-2); }
.on-band .btn-line { border-color: var(--band-rule); color: var(--band-ink); }
.on-band .btn-line:hover { border-color: var(--band-ink-2); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--steel); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .arrow { transition: transform .15s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 2.6rem; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: .4rem;
}
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang {
  font: 500 .6875rem var(--font-data); letter-spacing: .08em; text-decoration: none;
  color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .7rem;
}
.lang:hover { border-color: var(--ink-2); }
.header-cta { padding: .6rem 1rem; font-size: .9rem; }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--rule); border-radius: .5rem;
  color: var(--ink); padding: .5rem .7rem; font: 500 .75rem var(--font-data); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .75rem; }
}
@media (max-width: 420px) { .brand img { height: 2.2rem; } }

/* ---------- Brand band (page heroes, CTA, footer) ---------- */
.on-band { background: var(--band); color: var(--band-ink); }
.on-band .eyebrow { color: var(--gold); }
.on-band a:not(.btn) { color: var(--band-ink); }

.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.75rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; }
.page-hero h1 { font-size: var(--step-3); max-width: 22ch; }
.page-hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--band-ink-2); max-width: 40rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--font-data); font-size: .6875rem; letter-spacing: .06em; color: var(--band-ink-2); }
.crumbs a { color: var(--band-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--band-ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--band-rule); }

/* Home hero */
.home-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3.25rem, 8vw, 6.5rem) clamp(3.25rem, 7vw, 5.5rem);
}
.home-hero .hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.home-hero h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; }
.home-hero h1 em { font-style: normal; color: var(--gold); }
.home-hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--band-ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .35rem; }
@media (max-width: 900px) { .home-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.sectors { border-top: 1px solid var(--band-rule); background: var(--band-2); }
.sectors .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.1rem; }
.sectors .label { font-family: var(--font-data); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink-2); }
.sectors ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.sectors li { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--band-ink); display: flex; align-items: center; gap: .6rem; }
.sectors li::before { content: ""; width: .4rem; height: .4rem; background: var(--gold); transform: rotate(45deg); }

/* ---------- Live feed panel (home signature) ---------- */
.panel {
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
  display: grid; min-width: 0; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule);
  font-family: var(--font-data); font-size: .6875rem; letter-spacing: .04em;
}
.badge { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; font-size: .5625rem; white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--up); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.readout { padding: .7rem 1.1rem; display: grid; gap: .15rem; min-width: 0; }
.readout + .readout { border-left: 1px solid var(--rule); }
.readout dt { font-family: var(--font-data); font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout dd { font-family: var(--font-data); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.chart { position: relative; height: 12.5rem; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tape { width: 100%; border-collapse: collapse; font-family: var(--font-data); font-size: .6875rem; font-variant-numeric: tabular-nums; border-top: 1px solid var(--rule); }
.tape th { font-weight: 400; text-align: right; color: var(--ink-2); font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 1.1rem .3rem; }
.tape td { text-align: right; padding: .2rem 1.1rem; }
.tape th:first-child, .tape td:first-child { text-align: left; }
.tape tbody tr:first-child td { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.panel-foot { padding: .75rem 1.1rem .9rem; font-size: var(--step--1); color: var(--ink-2); border-top: 1px solid var(--rule); }
@media (max-width: 480px) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout:nth-child(3) { border-left: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .tape th, .tape td { padding-inline: .7rem; }
}

/* ---------- Sections ---------- */
.section > .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section.alt { background: var(--sunken); }
.section-head { display: grid; gap: .85rem; max-width: 44rem; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--ink-2); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 2rem; }
.section-head.split > div { display: grid; gap: .85rem; max-width: 44rem; }
@media (max-width: 720px) { .section-head.split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: .8rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem; text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--steel); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(12, 39, 64, .45); text-decoration: none; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-2); font-size: .975rem; }
.card .measure { font-family: var(--font-data); font-size: .625rem; letter-spacing: .06em; color: var(--steel); text-transform: uppercase; }
.card .more { font-weight: 600; font-size: .9rem; color: var(--steel); display: inline-flex; gap: .4rem; align-items: center; padding-top: .35rem; border-top: 1px solid var(--rule); }
.card .more .arrow { transition: transform .15s ease; }
.card:hover .more .arrow { transform: translateX(3px); }

/* Case cards (home) */
.case-card { grid-template-rows: auto auto auto 1fr auto; }
.fact { display: grid; gap: .2rem; }
.fact .v { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.fact .v::after { content: ""; display: block; width: 2rem; height: 3px; background: var(--gold); margin-top: .6rem; }
.fact .l { font-size: .85rem; color: var(--ink-2); }
.card .meta-line, .meta-line { font-family: var(--font-data); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Ledger rows ---------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger > li, .ledger > .row {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: .75rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid var(--rule);
}
.ledger h3 { font-size: var(--step-1); }
.ledger .body { display: grid; gap: .9rem; max-width: 44rem; min-width: 0; }
.ledger .body p { color: var(--ink-2); }
@media (max-width: 760px) { .ledger > li, .ledger > .row { grid-template-columns: minmax(0, 1fr); } }

/* Work index rows */
.work-list > li { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; align-items: start; }
.work-list .fact .v { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.work-list h3 a { color: var(--ink); text-decoration: none; }
.work-list h3 a:hover { color: var(--steel); }
.work-list h3 a::after { content: ""; position: absolute; inset: 0; }
.work-list > li { position: relative; }
.work-list > li:hover h3 a { color: var(--steel); }
.work-list .go { align-self: center; color: var(--steel); font-size: 1.4rem; transition: transform .15s ease; }
.work-list > li:hover .go { transform: translateX(4px); }
@media (max-width: 760px) { .work-list > li { grid-template-columns: minmax(0, 1fr); } .work-list .go { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 500 .8125rem var(--font-body); cursor: pointer; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .95rem;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-family: var(--font-data); font-size: .6875rem; padding: .22rem .55rem; border: 1px solid var(--rule); border-radius: .3rem; color: var(--ink); background: var(--surface); }

/* Lists with markers */
.ticks { display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem; background: var(--gold); transform: rotate(45deg); }
.ticks.steel li::before { background: var(--steel); }

/* ---------- Service page ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.service-main { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); min-width: 0; }
.block { display: grid; gap: 1.25rem; }
.block > h2 { font-size: var(--step-2); }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.offer li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; }
.offer h3 { font-size: 1.05rem; }
.offer p { color: var(--ink-2); font-size: .95rem; }
.offer li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .offer { grid-template-columns: minmax(0, 1fr); } }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); display: grid; gap: 1.25rem; }
.aside-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .8rem; }
.aside-box h2 { font-family: var(--font-data); font-weight: 500; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.aside-box .measure-big { font-family: var(--font-data); font-size: .8125rem; color: var(--steel); line-height: 1.6; }
.aside-box.proof { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.aside-box.proof h2 { color: var(--gold); }
.aside-box.proof p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.45; font-weight: 500; }
.model-mini { display: grid; gap: .15rem; padding-top: .7rem; border-top: 1px solid var(--rule); }
.model-mini:first-of-type { border-top: 0; padding-top: 0; }
.model-mini strong { font-size: .95rem; }
.model-mini span { font-size: .8125rem; color: var(--ink-2); }
@media (max-width: 900px) { .service-layout { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding-block: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--steel); font-size: 1.1rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 44rem; }

/* ---------- Case study page ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--band-rule); margin-top: .75rem; }
.case-meta dt { font-family: var(--font-data); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink-2); }
.case-meta dd { font-size: .95rem; color: var(--band-ink); }
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-summary { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
.case-summary .lead { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; font-weight: 500; max-width: 40rem; }
@media (max-width: 760px) { .case-summary { grid-template-columns: minmax(0, 1fr); } }
.label-col { font-family: var(--font-data); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); padding-top: .3rem; }
.next-case { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.next-case:hover { border-color: var(--steel); text-decoration: none; }
.next-case span { font-family: var(--font-data); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.next-case strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: 1.4rem 1.25rem 1.5rem 0; display: grid; gap: .6rem; align-content: start; position: relative; }
.steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-data); font-size: .75rem; color: var(--gold-ink); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid var(--rule); grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; }
  .steps li::before { grid-row: span 2; padding-top: .3rem; }
}
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .models { grid-template-columns: minmax(0, 1fr); } }
.model { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.1rem; align-content: start; }
.model h3 { font-size: var(--step-1); }
.model dl { display: grid; gap: .9rem; }
.model dt { font-family: var(--font-data); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; }
.model dd { font-size: .95rem; }
.model .ticks li { font-size: .95rem; }
.model .pill { justify-self: start; font-family: var(--font-data); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); border: 1px solid currentColor; border-radius: 999px; padding: .25rem .6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 3rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.practical li { display: grid; gap: .35rem; padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.practical h3 { font-size: 1.05rem; }
.practical p { color: var(--ink-2); }

/* ---------- Founder / about ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.facts .fact { padding: 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .profile { grid-template-columns: minmax(0, 1fr); } }
.id-card { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.monogram {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .02em; color: var(--band-ink);
}
.id-card h2 { font-size: var(--step-1); }
.id-card p { color: var(--band-ink-2); font-size: .9rem; }
.id-card ul { display: grid; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--band-rule); }
.id-card a { color: var(--band-ink); }
.id-card .eyebrow { color: var(--gold); }
.career .period, .edu .period { font-family: var(--font-data); font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.career .org { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.career .sector { font-size: .875rem; color: var(--ink-2); }
.career .body strong { font-weight: 500; }
.stack-cols { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form h2 { font-size: var(--step-1); }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: .5rem; padding: .7rem .8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.form .note { font-size: .8125rem; color: var(--ink-2); }
.direct { display: grid; gap: 1.5rem; }
.direct dl { display: grid; gap: 1.1rem; }
.direct dt { font-family: var(--font-data); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .25rem; }
.direct dd { font-size: 1.05rem; overflow-wrap: anywhere; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.email-text { font-family: var(--font-display); font-weight: 600; user-select: all; }
.copy-btn { font: 500 .75rem var(--font-data); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .7rem; color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink-2); }

/* ---------- Legal ---------- */
.legal { display: grid; gap: 2.5rem; max-width: 48rem; }
.legal h2 { font-size: var(--step-1); margin-bottom: .75rem; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.legal th { font-weight: 500; color: var(--ink-2); width: 40%; padding-right: 1rem; }
.legal p + p { margin-top: .8rem; }
.legal p { color: var(--ink-2); }

/* ---------- CTA band & footer ---------- */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 4.5rem); }
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; }
.cta-band p { color: var(--band-ink-2); max-width: 36rem; margin-top: .9rem; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

.site-footer { background: var(--band-2); color: var(--band-ink-2); font-size: .9rem; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer .top > div { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.site-footer img { height: 2.6rem; width: auto; }
.site-footer h2 { font-family: var(--font-data); font-weight: 500; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.25rem; border-top: 1px solid var(--band-rule); font-size: .8125rem; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .top { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.not-found .wrap { padding-block: clamp(4rem, 12vw, 8rem); display: grid; gap: 1.25rem; justify-items: start; }
.not-found .code { font-family: var(--font-data); color: var(--gold-ink); font-size: .875rem; letter-spacing: .1em; }
.not-found h1 { font-size: var(--step-3); }
