/* ==========================================================================
   KONXIS ENGINEERING — Design system
   "Engineering editorial"
   ========================================================================== */

:root {
  /* Colour */
  --paper: #F5F4F0;
  --paper-2: #EFEDE7;
  --graphite: #17191C;
  --graphite-soft: #555B60;
  --line: #D8D5CD;
  --line-dark: #2E3237;
  --blue: #285B78;
  --blue-deep: #1E465D;
  --amber: #B7792B;
  --inverse-text: #E8E7E2;
  --inverse-muted: #9AA1A7;

  /* Spacing scale: 8 / 16 / 24 / 32 / 48 / 64 / 96 / 128 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  /* Structure */
  --maxw: 1280px;
  --read: 720px;
  --radius: 3px;
  --header-h: 76px;
}

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------- layout */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s5);
}

@media (max-width: 720px) {
  .wrap { padding: 0 var(--s3); }
}

.section { padding: var(--s7) 0; }
.section--tight { padding: var(--s6) 0; }
.section--dark {
  background: var(--graphite);
  color: var(--inverse-text);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #FFFFFF; }

@media (max-width: 900px) {
  .section { padding: var(--s6) 0; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
}

@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr; gap: var(--s4); }
  .grid > * { grid-column: 1 / -1; }
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section--dark .rule { border-top-color: var(--line-dark); }

/* ---------------------------------------------------------- typography */

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin: 0 0 var(--s3);
  display: block;
}
.section--dark .eyebrow { color: var(--inverse-muted); }
.eyebrow--blue { color: var(--blue); }
.section--dark .eyebrow--blue { color: #7FA9C4; }

.display-hero {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.022em;
}

.display-page {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1;
  font-weight: 500;
}

/* Longer page titles that must hold to a single line at desktop widths */
.display-page--single {
  font-size: clamp(28px, 3.6vw, 51px);
}

.h-section {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.16;
}

.h-subsection {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
}

.h-card {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
}

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--graphite-soft);
  max-width: var(--read);
}

.body {
  max-width: var(--read);
  color: var(--graphite-soft);
}

.body strong,
.lede strong { color: var(--graphite); font-weight: 600; }
.section--dark .body strong { color: #FFF; }

.caption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--graphite-soft);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.fig-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  border-top: 1px solid var(--line);
  padding-top: var(--s1);
  margin-top: var(--s3);
}
.section--dark .fig-label { color: var(--inverse-muted); border-top-color: var(--line-dark); }

.measure { max-width: var(--read); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--graphite);
  color: var(--paper);
  border-color: var(--graphite);
}
.btn--primary:hover { background: var(--blue); border-color: var(--blue); color: #FFF; }

/* Remove focus outline from header CTA to avoid black box appearance */
.header__cta .btn:focus-visible {
  outline: none;
}

.btn--secondary {
  background: transparent;
  color: var(--graphite);
  border-color: var(--line);
}
.btn--secondary:hover { border-color: var(--graphite); }

.section--dark .btn--primary {
  background: var(--paper);
  color: var(--graphite);
  border-color: var(--paper);
}
.section--dark .btn--primary:hover { background: #FFF; color: var(--graphite); }
.section--dark .btn--secondary {
  color: var(--inverse-text);
  border-color: var(--line-dark);
}
.section--dark .btn--secondary:hover { border-color: var(--inverse-text); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid rgba(40, 91, 120, .35);
  padding-bottom: 2px;
}
.arrow-link:hover { text-decoration: none; border-bottom-color: var(--blue); }
.section--dark .arrow-link { color: #8FB6D0; border-bottom-color: rgba(143, 182, 208, .35); }

/* -------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(245, 244, 240, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}
.header.is-scrolled { background: rgba(245, 244, 240, 0.97); }

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; }
.wordmark__mark { flex-shrink: 0; }
.wordmark__text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.wordmark__text small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--graphite-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav a {
  font-size: 14.5px;
  color: var(--graphite-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--graphite); text-decoration: none; }
.nav a.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.header__cta { flex-shrink: 0; }
.header__cta .btn { padding: 11px 18px; font-size: 14px; }

/* CTA inside the collapsed nav — mobile only */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--graphite);
}

@media (max-width: 1120px) {
  .header__cta { display: none; }
  .header__inner { padding: 0 var(--s3); }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: var(--s2) var(--s3) var(--s3);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav a.is-active { border-bottom-color: var(--line); }
  .nav .btn { margin-top: var(--s3); width: 100%; justify-content: center; }
  .nav .nav__cta { display: inline-flex; }
}

/* -------------------------------------------------------------- footer */

.footer {
  background: var(--graphite);
  color: var(--inverse-muted);
  padding: var(--s7) 0 var(--s5);
  font-size: 15px;
}
.footer a { color: var(--inverse-text); }
.footer a:hover { color: #FFF; }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand .wordmark { color: #FFF; }
.footer__brand .wordmark__text { color: #FFF; }
.footer__brand .wordmark__text small { color: var(--inverse-muted); }
.footer__tagline {
  margin-top: var(--s3);
  max-width: 340px;
  color: var(--inverse-muted);
}

.footer h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inverse-muted);
  margin-bottom: var(--s3);
  font-weight: 400;
}
.footer li { margin-bottom: 10px; }

.footer__bottom {
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
}
.footer__legal { display: flex; gap: var(--s3); flex-wrap: wrap; }
.footer__note {
  margin-top: var(--s3);
  font-size: 13px;
  max-width: 760px;
  color: var(--inverse-muted);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--s5); }
}

/* ---------------------------------------------------------- components */

/* Technical figure frame */
.figure {
  border: 1px solid var(--line);
  background: #FBFAF7;
  border-radius: var(--radius);
  padding: var(--s3);
}
.section--dark .figure { border-color: var(--line-dark); background: rgba(255,255,255,.03); }

/* Evidence badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  border: 1px solid;
  line-height: 1;
}
.badge--demo { color: var(--amber); border-color: rgba(183, 121, 43, .5); background: rgba(183, 121, 43, .07); }
.badge--client { color: var(--blue); border-color: rgba(40, 91, 120, .5); background: rgba(40, 91, 120, .07); }
.badge--professional { color: var(--graphite-soft); border-color: var(--line); background: rgba(23, 25, 28, .04); }
.section--dark .badge--professional { color: var(--inverse-muted); border-color: var(--line-dark); }

/* Numbered index label */
.idx {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
}

/* Definition rows (capability lists) */
.spec-list { border-top: 1px solid var(--line); }
.spec-list li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  gap: var(--s2);
  font-size: 16px;
  color: var(--graphite-soft);
}
.spec-list li::before {
  content: "";
  flex: 0 0 10px;
  height: 1px;
  background: var(--blue);
  margin-top: 13px;
}

/* Bullet list, technical */
.tlist li {
  position: relative;
  padding-left: var(--s3);
  margin-bottom: 10px;
  font-size: 16.5px;
  color: var(--graphite-soft);
}
.tlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--blue);
}

/* Card-ish block, minimal */
.block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  background: transparent;
  transition: border-color .16s ease;
}
.block:hover { border-color: #B9B5AA; }

/* Page header for inner pages */
.page-head {
  padding: var(--s7) 0 var(--s6);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .page-head { padding: var(--s6) 0 var(--s5); } }

/* Quote / statement */
.statement {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.pull {
  border-left: 2px solid var(--blue);
  padding-left: var(--s3);
  font-size: 20px;
  line-height: 1.55;
  color: var(--graphite);
  max-width: var(--read);
}
.section--dark .pull { border-left-color: #7FA9C4; color: var(--inverse-text); }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.tbl th {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--graphite-soft);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--s3) 10px 0;
}
.tbl td {
  border-bottom: 1px solid var(--line);
  padding: 14px var(--s3) 14px 0;
  vertical-align: top;
  color: var(--graphite-soft);
}
.tbl td:first-child { color: var(--graphite); font-weight: 500; }

/* --------------------------------------------------------------- forms */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.field label .req { color: var(--blue); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--graphite);
  background: #FBFAF7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  width: 100%;
  transition: border-color .14s ease;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-color: var(--blue);
  background: #FFF;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.55; }

.field .hint { font-size: 13px; color: var(--graphite-soft); }

.checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px var(--s3);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--graphite-soft);
  cursor: pointer;
}
.check input { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- hero (homepage) */

.hero {
  padding: var(--s7) 0 var(--s7);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s6);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s5); }
}

.hero .display-hero { margin-bottom: var(--s4); }

/* Problem rows (section 02) */
.prow {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.prow:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .prow { grid-template-columns: 1fr; gap: var(--s3); } }

/* Solve categories (section 04) */
.solve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.solve-cell {
  background: var(--paper);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 300px;
}
.solve-cell h3 { font-size: 20px; }
.solve-cell .caption { flex: 1; }
.solve-cell svg { margin-top: auto; }
@media (max-width: 1000px) { .solve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .solve-grid { grid-template-columns: 1fr; } }

/* Pathway (section 05) */
.pathway {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stage {
  border-right: 1px solid var(--line);
  padding: var(--s4) var(--s3) var(--s3);
  position: relative;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
  transition: background-color .16s ease;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.stage:last-child { border-right: 0; }
.stage:hover, .stage:focus-within { background: var(--paper-2); }
.stage h3 { font-size: 19px; }
.stage__num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.12em;
}
.stage__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--graphite-soft);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .18s ease, max-height .24s ease;
}
.stage:hover .stage__body,
.stage:focus-within .stage__body {
  opacity: 1;
  max-height: 240px;
}
.stage__tick {
  height: 2px;
  background: var(--line);
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .24s ease;
}
.stage:hover::before, .stage:focus-within::before { width: 100%; }

@media (max-width: 1000px) {
  .pathway { grid-template-columns: repeat(3, 1fr); }
  .stage { border-bottom: 1px solid var(--line); }
  .stage:nth-child(3n) { border-right: 0; }
  .stage__body { opacity: 1; max-height: none; }
}
@media (max-width: 620px) {
  .pathway { grid-template-columns: 1fr; }
  .stage { border-right: 0; }
}

/* Industries (section 07) */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
.ind-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FBFAF7;
  display: flex;
  flex-direction: column;
}
.ind-panel__fig { background: #EDEBE4; border-bottom: 1px solid var(--line); }
.ind-panel__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr; } }

/* Case studies (section 08) */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case--flip .case__fig { order: -1; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: var(--s4); }
  .case--flip .case__fig { order: 0; }
}

.case__meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
  flex-wrap: wrap;
}
.case__q {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: var(--s2);
}
.case__name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }

.qed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px var(--s3);
  margin: var(--s3) 0;
  font-size: 15.5px;
}
.qed dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  padding-top: 4px;
  white-space: nowrap;
}
.qed dd { margin: 0; color: var(--graphite-soft); }

/* Evidence ladder (section 09) */
.ladder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--s5);
}
.rung {
  border-right: 1px solid var(--line-dark);
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  position: relative;
}
.rung:last-child { border-right: 0; }
.rung__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFF;
}
.rung__desc { font-size: 14px; line-height: 1.55; color: var(--inverse-muted); }
.rung__bar { height: 3px; background: var(--blue); border-radius: 2px; }
.rung--peak .rung__bar { background: var(--amber); }
@media (max-width: 1000px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .rung:nth-child(3n) { border-right: 0; }
  .rung:nth-child(-n+3) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 620px) {
  .ladder { grid-template-columns: 1fr; }
  .rung { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .rung:last-child { border-bottom: 0; }
}

/* Engage blocks (section 11) */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
@media (max-width: 900px) { .engage-grid { grid-template-columns: 1fr; } }

/* Insights (section 12) */
.article {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.article:last-child { border-bottom: 1px solid var(--line); }
.article__title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.article__title a { color: var(--graphite); }
.article__title a:hover { color: var(--blue); text-decoration: none; }
@media (max-width: 860px) {
  .article { grid-template-columns: 1fr; gap: var(--s2); }
}

/* Founder (section 10) */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s6);
  align-items: start;
}
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: var(--s5); } }

.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #EDEBE4 0 12px, #E9E6DE 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: var(--s3);
}
.portrait span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--line);
}

/* Photographic variant of the portrait frame */
.portrait--photo {
  padding: 0;
  overflow: hidden;
  display: block;
}
.portrait--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creds { display: grid; gap: var(--s3); margin: var(--s4) 0; }
.cred {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}
.cred__k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.cred__v { font-size: 21px; font-weight: 500; }

.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: var(--s3);
  font-size: 15.5px;
  color: var(--graphite-soft);
  background: rgba(40, 91, 120, .04);
}
.section--dark .note { background: rgba(255,255,255,.04); }
.note--amber { border-left-color: var(--amber); background: rgba(183, 121, 43, .06); }

/* Utility spacing */
.mt2 { margin-top: var(--s2); }
.mt3 { margin-top: var(--s3); }
.mt4 { margin-top: var(--s4); }
.mt5 { margin-top: var(--s5); }
.mt6 { margin-top: var(--s6); }
.mb2 { margin-bottom: var(--s2); }
.mb3 { margin-bottom: var(--s3); }
.mb4 { margin-bottom: var(--s4); }
.mb5 { margin-bottom: var(--s5); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* SVG technical drawing defaults */
.tech { width: 100%; height: auto; }
.tech .st-line { fill: none; stroke: #17191C; stroke-width: 1.25; }
.tech .st-thin { fill: none; stroke: #555B60; stroke-width: 0.75; }
.tech .st-blue { fill: none; stroke: #285B78; stroke-width: 1.25; }
.tech .st-amber { fill: none; stroke: #B7792B; stroke-width: 1.5; }
.tech .fill-blue { fill: rgba(40, 91, 120, .1); }
.tech .fill-amber { fill: rgba(183, 121, 43, .12); }
.tech text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .06em;
  fill: #555B60;
  text-transform: uppercase;
}
.tech text.t-blue { fill: #285B78; }
.tech text.t-amber { fill: #B7792B; }
.tech text.t-dark { fill: #17191C; }

/* ------------------------------------------------ case studies (curated) */

.section--band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s3);
}
.cs-intro .eyebrow { margin-bottom: 0; }
.cs-intro__note { max-width: 560px; margin: 0; }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s5);
  align-items: stretch;
}

.cs-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFAF7;
  overflow: hidden;
}

.cs-card__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #F1EFE9;
}
.cs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card__body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--s3);
  margin-bottom: var(--s3);
}
.cs-card__tags .mono {
  color: var(--graphite-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.cs-card__title {
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.cs-card__subtitle {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--graphite-soft);
}

.cs-card__summary {
  margin: var(--s3) 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite-soft);
}

.cs-focus {
  display: grid;
  gap: 6px;
  margin: var(--s3) 0 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.cs-focus dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.cs-focus dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--graphite);
}

.cs-finding {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  border-left: 2px solid var(--blue);
  background: rgba(40, 91, 120, .045);
}
.cs-finding p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--graphite-soft);
}

.cs-limits {
  margin-top: var(--s3);
}
.cs-limits ul {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.cs-limits li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--graphite-soft);
}
.cs-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--graphite-soft);
}

.cs-card__foot {
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
}
.cs-file { font-size: 10.5px; }

.cs-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid rgba(40, 91, 120, .35);
  padding: 2px 0;
}
.cs-download:hover { text-decoration: none; border-bottom-color: var(--blue); }
.cs-download svg { flex-shrink: 0; }

.cs-gate {
  max-width: 900px;
  margin-top: var(--s5);
}

.ev-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3) var(--s5);
}
.ev-label {
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}
.ev-label .badge { white-space: normal; text-align: left; line-height: 1.35; }

.ev-scale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}

@media (max-width: 1000px) {
  .ev-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .cs-grid { grid-template-columns: 1fr; max-width: 720px; }
  .cs-card__media img { object-fit: contain; }
  .ev-scale { grid-template-columns: 1fr; gap: var(--s3); }
}

@media (max-width: 560px) {
  .cs-card__body { padding: var(--s3); }
  .cs-card__foot {
    padding: var(--s3);
    align-items: flex-start;
    flex-direction: column;
  }
  .cs-card__title { font-size: 23px; }
  .cs-download { min-height: 48px; }
  .ev-labels { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- focus */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Nav links: subtle focus indicator without dark box */
.nav a:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}

/* ---------------------------------------- homepage selected investigations */

.home-cs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
}
.home-cs__item {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.home-cs__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--s3);
  margin-bottom: var(--s2);
}
.home-cs__meta .mono { font-size: 10.5px; line-height: 1.5; }
.home-cs__meta .badge { white-space: normal; text-align: left; line-height: 1.35; }
.home-cs__links {
  margin: auto 0 0;
  padding-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
}
.home-cs__dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid rgba(40, 91, 120, .35);
  padding: 2px 0;
}
.home-cs__dl:hover { text-decoration: none; border-bottom-color: var(--blue); }
.home-cs__dl .mono { font-size: 10.5px; color: var(--graphite-soft); }

:target { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (max-width: 860px) {
  .home-cs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .nav a:hover, .stage:hover, .stage:focus-within, .stage:hover::before, .stage:focus-within::before { transition: none; }
  .stage:hover, .stage:focus-within { background-color: transparent; }
}
