/* Tacitlabs — Reading Room
   Shared styles for sub-pages (The Layer Below, How We Capture,
   Insurance, Founders, Essays). Palettes mirror the homepage. */

/* ============== Palettes ============== */
/* Reading pages use a WARM NEUTRAL background, with olive used only
   for borders/lines and maroon as the bright accent. Light theme. */
:root, body.palette-maroon{
  --bg:#f5ecda;            /* warm parchment */
  --bg-deep:#ede2c8;       /* deeper warm cream for surfaces */
  --surface:rgba(48,42,28,.05);
  --text:#1f1810;          /* deep warm brown */
  --text-muted:#5a4d3a;    /* warm taupe */
  --text-dim:#8a7c66;      /* light warm taupe */
  --border:#d4c9a8;        /* faint olive line */
  --border-strong:#a89e62; /* deeper olive */
  --olive:#7a7530;
  --accent:#a83246;        /* maroon — the bright accent */
  --accent-soft:rgba(168,50,70,.08);
  --accent-glow:rgba(168,50,70,.32);
  --cta-fg:#f5ecda;
  --cta-bg:#8a2334;
}

/* ============== Base ============== */
*{ box-sizing:border-box }
html,body{ height:100%; margin:0 }
body{ overflow-x:clip; }
body{
  min-height:100svh;
  background:var(--bg);
  color:var(--text);
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  /* Very subtle warm wash: a faint maroon glow top, faint olive bottom */
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(168,50,70,.06), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(122,117,48,.06), transparent 60%);
  background-attachment:fixed;
}

a{ color:inherit }

/* ============== Nav (olive glass, same as homepage) ============== */
.nav-wrap{
  position:sticky; top:18px; z-index:10;
  display:flex; justify-content:center;
  padding:0 clamp(16px,4vw,40px);
  margin-bottom:clamp(40px,8vh,90px);
  padding-top:18px;
}
nav.tacit-nav{
  display:flex; gap:12px; align-items:center;
  padding:10px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    rgba(48,58,22,.62);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 14px 56px rgba(0,0,0,.34);
}
nav.tacit-nav a{
  color:#f4d9b0;
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:12px;
  letter-spacing:.02em;
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  text-transform:lowercase;
  transition:color .2s ease, background .2s ease;
}
nav.tacit-nav a:hover{
  color:#ffe4b8;
  background:rgba(255,255,255,.08);
}
nav.tacit-nav a.current{
  color:#ffe4b8;
  background:rgba(168,50,70,.42);
}
nav.tacit-nav a:focus-visible{
  outline:none;
  color:var(--accent);
  box-shadow:0 0 0 2px rgba(168,50,70,.55);
}
.logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px;
  border-radius:999px;
  text-decoration:none;
  flex:0 0 auto;
}
.logo-link:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px var(--accent);
}
.logo{
  display:block;
  width:30px; height:30px; border-radius:999px;
  background:radial-gradient(circle at 38% 35%, #ffffff 0%, #f4d9b0 18%, var(--accent) 60%, rgba(168,50,70,.08) 100%);
  box-shadow:0 0 24px var(--accent-glow), inset 0 0 12px rgba(255,255,255,.3);
  flex:0 0 auto;
}

/* ============== Page shell ============== */
.page{
  position:relative;
  max-width:1200px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,80px) 0;
}

/* Header (block 1) gets section-equivalent bottom padding so the hairline
   divider into the first section sits the same distance from header
   content as it does between any two sections. */
.page > header{
  padding-bottom:clamp(56px,8vh,96px);
}
.page > header > *:last-child{
  margin-bottom:0;
}

/* A narrower reading column for prose-only sections */
.col{ max-width:720px; }

/* ============== Header ============== */
.page-eyebrow{
  font:11px/1 "IBM Plex Mono",monospace;
  letter-spacing:.20em;
  text-transform:lowercase;
  color:var(--text-dim);
  display:flex; align-items:center; gap:10px;
  margin-bottom:24px;
}
.page-eyebrow::before{
  content:""; width:6px; height:6px; border-radius:999px;
  background:var(--accent); box-shadow:0 0 12px var(--accent-glow);
}
.page-title{
  font-family:"Newsreader",Georgia,serif;
  font-size:clamp(32px,3.8vw,54px);
  letter-spacing:-.018em;
  line-height:1.1;
  font-weight:500;
  margin:0 0 24px;
  max-width:22ch;
  text-wrap:balance;
}
.page-deck{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:clamp(17px,1.4vw,20px);
  line-height:1.5;
  color:var(--text-muted);
  margin:0 0 clamp(28px,4vh,40px);
  max-width:48ch;
  text-wrap:balance;
  font-weight:400;
}

/* T10 lead-in directly inside <header>. When followed by a .page-deck
   the deck's own bottom margin handles spacing to the next section, so
   keep the gap between lead and deck tight. */
.t10.lead{
  margin:0 0 clamp(18px,2.5vh,28px);
  max-width:62ch;
}
/* When the lead is the last header child (no deck below), restore a fuller
   gap so the hero breathes before the first section. */
.t10.lead:last-child{
  margin-bottom:clamp(48px,8vh,80px);
}

/* ============== Sections ============== */
/* Interloom-style "gated" blocks — every section bounded by a hairline rule
   that extends edge-to-edge across the viewport. */
.section{
  position:relative;
  margin-top:0;
  padding:clamp(56px,8vh,96px) 0;
  border-top:1px solid var(--border);
}
.section:first-of-type{ padding-top:clamp(40px,6vh,72px); }

/* Full-bleed wings that extend the section's top border to viewport edges */
.section::before,
.section::after,
.section-quote::before,
.section-quote::after,
.section-cta::before,
.section-cta::after{
  content:"";
  position:absolute;
  top:-1px;
  width:50vw;
  height:1px;
  background:var(--border);
  pointer-events:none;
}
.section::before,
.section-quote::before,
.section-cta::before{ right:100%; }
.section::after,
.section-quote::after,
.section-cta::after{ left:100%; }
.section-title{
  font-family:"Newsreader",Georgia,serif;
  font-size:clamp(24px,2.4vw,34px);
  letter-spacing:-.012em;
  font-weight:500;
  line-height:1.18;
  margin:0 0 24px;
  max-width:28ch;
  color:var(--text);
  text-wrap:balance;
}
.section-num{
  font:10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.20em;
  text-transform:lowercase;
  color:var(--text-dim);
  margin-bottom:14px;
  display:block;
}
.divider{
  border:0;
  height:1px;
  background:var(--border);
  margin:clamp(64px,10vh,120px) 0 0;
}

/* Two-column subclaim grid (Interloom-style paired modules) */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(40px,5vw,80px);
  margin-top:clamp(32px,5vh,56px);
}
.grid-2 .col-h{
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:clamp(19px,1.8vw,24px);
  font-weight:600;
  text-transform:lowercase;
  letter-spacing:-.012em;
  line-height:1.2;
  margin:0 0 14px;
  color:var(--text);
}
@media (max-width:780px){
  .grid-2{ grid-template-columns:1fr; gap:40px; }
}

/* Stats row — big numerics with captions. Inner borders removed since
   the parent .section already provides hairline boundaries. */
.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(32px,4vw,72px);
}
.stat .num{
  font-family:"Times New Roman",Times,serif;
  font-size:clamp(48px,7vw,92px);
  font-weight:400;
  line-height:.95;
  letter-spacing:-.035em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.stat .lbl{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:15px;
  line-height:1.55;
  color:var(--text-muted);
  margin-top:18px;
  max-width:32ch;
}
@media (max-width:780px){
  .stats{ grid-template-columns:1fr; gap:32px; }
}

/* Layer / architecture rows (Projection → Canonical → Source pattern) */
.layers{
  margin-top:clamp(40px,6vh,72px);
  border-top:1px solid var(--border-strong);
  background:linear-gradient(180deg, rgba(168,50,70,.04), transparent 60%);
  border-radius:18px 18px 0 0;
  overflow:hidden;
}
.layer{
  display:grid;
  grid-template-columns:180px 1fr 1.4fr;
  gap:32px;
  align-items:baseline;
  padding:28px clamp(20px,3vw,32px);
  border-bottom:1px solid var(--border);
}
.layer:last-child{ border-bottom:1px solid var(--border-strong); }
.layer .step{
  font:11px/1 "IBM Plex Mono",monospace;
  letter-spacing:.18em;
  text-transform:lowercase;
  color:var(--text-dim);
}
.layer .name{
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:clamp(20px,1.9vw,26px);
  font-weight:600;
  text-transform:lowercase;
  letter-spacing:-.015em;
  line-height:1.1;
  color:var(--text);
}
.layer .desc{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:15px;
  line-height:1.6;
  color:var(--text-muted);
}
@media (max-width:780px){
  .layer{ grid-template-columns:1fr; gap:8px; padding:22px 20px; }
}

/* Full-bleed pull-quote section */
.section-quote{
  position:relative;
  margin:0;
  padding:clamp(56px,8vh,96px) 0;
  border-top:1px solid var(--border);
}
.section-quote .q{
  font-family:"Newsreader",Georgia,serif;
  font-style:italic;
  font-size:clamp(24px,3vw,38px);
  line-height:1.25;
  color:var(--text);
  max-width:28ch;
  margin:0;
  text-wrap:balance;
}
.section-quote .src{
  font:11px/1 "IBM Plex Mono",monospace;
  letter-spacing:.16em;
  color:var(--text-dim);
  margin-top:28px;
  text-transform:lowercase;
  display:flex; align-items:center; gap:12px;
}
.section-quote .src::before{
  content:""; width:32px; height:1px; background:var(--accent);
}

/* Closing CTA block — bottom edge is the footer's top border */
.section-cta{
  position:relative;
  margin-top:0;
  padding:clamp(56px,8vh,96px) clamp(28px,5vw,64px);
  border-top:1px solid var(--border);
  display:grid;
  gap:28px;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, var(--accent-soft), transparent 50%);
}
.section-cta .h{
  font-family:"Newsreader",Georgia,serif;
  font-size:clamp(24px,2.4vw,34px);
  font-weight:500;
  letter-spacing:-.014em;
  line-height:1.15;
  max-width:28ch;
  margin:0;
  text-wrap:balance;
}
.section-cta .ctas{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.section-cta.cta-center{
  justify-items:center;
  text-align:center;
  gap:32px;
}
.section-cta.cta-center .h{ margin-left:auto; margin-right:auto; }
.section-cta.cta-center .ctas{ justify-content:center; }
.section-cta .cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 22px;
  background:var(--cta-bg);
  color:var(--cta-fg);
  border-radius:999px;
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:14px; font-weight:500;
  text-transform:lowercase;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 0 32px rgba(168,50,70,.18);
}
.section-cta .cta:hover{ transform:translateY(-2px); box-shadow:0 6px 40px rgba(168,50,70,.28); }
.section-cta .cta-ghost{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 20px;
  border-radius:999px;
  border:1px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:13px;
  text-transform:lowercase;
  text-decoration:none;
  transition:background .2s ease;
}
.section-cta .cta-ghost:hover{ background:rgba(255,255,255,.08); }

/* Founder card (founders page) */
.founder{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:clamp(28px,4vw,56px);
  margin-top:clamp(48px,7vh,80px);
  padding-top:clamp(48px,7vh,80px);
  border-top:1px solid var(--border);
  align-items:start;
}
.founder:first-of-type{ border-top:0; padding-top:0; margin-top:clamp(32px,5vh,56px); }
.founder .portrait{
  width:200px; height:240px;
  border-radius:14px;
  background:
    radial-gradient(circle at 35% 30%, rgba(168,50,70,.10), transparent 60%),
    rgba(122,117,48,.06);
  border:1px solid var(--border);
  display:grid;
  place-items:center;
  font:10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.16em;
  color:var(--text-dim);
  text-transform:lowercase;
  overflow:hidden;
}
.founder .portrait img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.founder .name{
  font-family:"Open Sans",system-ui,sans-serif;
  font-size:clamp(24px,2.4vw,32px);
  font-weight:600;
  text-transform:lowercase;
  letter-spacing:-.022em;
  line-height:1.05;
  margin:0 0 4px;
}
.founder .role{
  font:11px/1 "IBM Plex Mono",monospace;
  letter-spacing:.16em;
  text-transform:lowercase;
  color:var(--text-dim);
  margin-bottom:18px;
  display:block;
}
@media (max-width:780px){
  .founder{ grid-template-columns:1fr; }
  .founder .portrait{ width:140px; height:170px; }
}

/* ============== Type system ============== */
/* Type 12 — regular body. Read these and you have the gist. */
.t12{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:15px;
  line-height:1.6;
  color:var(--text);
  margin:0 0 1.1em;
  text-wrap:pretty;
  font-weight:400;
}
.t12:last-child{ margin-bottom:0 }

/* Type 10 — small detail. Sits directly under the t12 it expands on,
   marked with a thin maroon left rule and an indent. */
.t10{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:13px;
  line-height:1.65;
  color:var(--text-muted);
  margin:0 0 1.1em;
  max-width:62ch;
  font-weight:400;
  text-wrap:pretty;
  padding-left:18px;
  border-left:1px solid rgba(168,50,70,.42);
}
.t10:last-child{ margin-bottom:0 }
.t10 + .t10{ margin-top:-.2em; }

/* When a t10 follows a t12, sit it slightly inset so the relationship reads */
.t12 + .t10{ margin-top:-.2em; }

/* Inside the .lead variant (header lead-in), drop the rule so the hero stays clean */
.t10.lead{ padding-left:0; border-left:0; color:var(--text-muted); }

/* Inline emphasis */
.t12 em, .t10 em{
  font-style:normal;
  color:var(--accent);
}
.t12 strong, .t10 strong{
  font-weight:600;
  color:var(--text);
}

/* Pull quote — optional element for essays */
.pull{
  font-family:"Newsreader",Georgia,serif;
  font-style:italic;
  font-size:clamp(24px,2.6vw,32px);
  line-height:1.25;
  color:var(--text);
  margin:1.4em 0;
  padding-left:24px;
  border-left:2px solid var(--accent);
  max-width:30ch;
}

/* ============== Type legend (visible on each reading page) ============== */
.type-legend{
  display:inline-flex; gap:16px; align-items:center;
  font:10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.16em;
  text-transform:lowercase;
  color:var(--text-dim);
  margin-bottom:clamp(24px,4vh,40px);
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(48,42,28,.04);
  flex-wrap:wrap;
}
.type-legend span{ display:inline-flex; align-items:center; gap:6px; }
.type-legend .key{
  width:16px; height:2px; background:currentColor; border-radius:1px;
}
.type-legend .key.t10-key{ background:var(--accent); }

/* ============== Product figures (screenshots inside blocks) ============== */
.figure{
  margin:clamp(36px,5vh,56px) 0 0;
  border-top:1px solid var(--border);
  padding-top:clamp(24px,4vh,40px);
}
.figure .frame{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--bg-deep);
  cursor:zoom-in;
  padding:0;
}
.figure .frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top left;
}
.figure .frame:hover img{ opacity:.92; }
.figure .frame:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px var(--accent);
}
.figure .frame::after{
  content:"⤢ click to expand";
  position:absolute;
  right:10px; bottom:10px;
  padding:5px 9px;
  font:10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--text);
  background:rgba(15,28,20,.78);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
}
.figure .frame:hover::after,
.figure .frame:focus-visible::after{ opacity:1; }
.figure figcaption{
  display:flex; gap:14px;
  margin-top:14px;
  font:10px/1.5 "IBM Plex Mono",monospace;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.figure figcaption .num{
  color:var(--accent);
  font-weight:500;
  letter-spacing:.14em;
  flex:0 0 auto;
}
.figure figcaption .desc{
  font:13px/1.55 "Söhne","Söhne Web","Inter",system-ui,sans-serif;
  letter-spacing:0;
  text-transform:none;
  color:var(--text-muted);
  font-style:italic;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  z-index:1000;
  background:rgba(8,12,10,.86);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(24px,5vw,80px);
  cursor:zoom-out;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:100%;
  max-height:100%;
  width:auto; height:auto;
  border-radius:8px;
  box-shadow:0 24px 80px rgba(0,0,0,.5);
  cursor:default;
}
.lightbox .close{
  position:absolute;
  top:20px; right:20px;
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:20px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.lightbox .close:hover{ background:rgba(255,255,255,.14); }

/* ============== Inline citation markers ============== */
/* Use <sup class="cite" tabindex="0">N<span class="cite-pop">…full citation…</span></sup>
   inside any prose to attach a hover/focus tooltip to a specific claim. */
.cite{
  display:inline-block;
  position:relative;
  vertical-align:super;
  font-size:0.62em;
  line-height:1;
  margin:0 1px 0 2px;
  padding:0 2px;
  font-family:"IBM Plex Mono",monospace;
  font-weight:500;
  color:var(--accent);
  letter-spacing:.04em;
  cursor:help;
  border-radius:3px;
  transition:background .15s ease;
}
.cite:hover,
.cite:focus-visible{
  background:rgba(168,50,70,.12);
  outline:none;
}
.cite::before{ content:"[" }
.cite::after{ content:"]" }
.cite > .cite-pop{
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) translateY(4px);
  width:240px;
  padding:10px 12px;
  background:var(--bg-deep);
  border:1px solid var(--border-strong);
  border-radius:8px;
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:11px;
  line-height:1.45;
  font-weight:400;
  font-style:italic;
  color:var(--text);
  letter-spacing:0;
  text-transform:none;
  text-align:left;
  vertical-align:baseline;
  cursor:auto;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  box-shadow:0 12px 32px rgba(0,0,0,.10);
  z-index:50;
}
.cite::before, .cite::after{ vertical-align:baseline; }
.cite:hover > .cite-pop,
.cite:focus-visible > .cite-pop,
.cite:focus-within > .cite-pop{
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}
/* Stop the tooltip from inheriting the marker's superscript baseline */
.cite > .cite-pop > strong{
  display:block;
  font-style:normal;
  font-weight:600;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent);
  margin-bottom:6px;
}
@media (max-width:760px){
  .cite > .cite-pop{ width:200px; font-size:10.5px; }
}



/* ============== Essays list (used only on essays.html) ============== */
.essay-list{
  margin:0; padding:0; list-style:none;
  border-top:1px solid var(--border);
}
.essay-list li{
  display:grid;
  grid-template-columns:120px 1fr auto;
  gap:24px;
  align-items:baseline;
  padding:22px 0;
  border-bottom:1px solid var(--border);
}
.essay-list .date{
  font:11px/1 "IBM Plex Mono",monospace;
  color:var(--text-dim);
  letter-spacing:.12em;
}
.essay-list .title{
  font-family:"Söhne","Söhne Web","Inter",system-ui,sans-serif;
  font-size:clamp(17px,1.4vw,20px);
  line-height:1.3;
  color:var(--text);
  text-decoration:none;
  font-weight:500;
  letter-spacing:-.005em;
}
.essay-list .title:hover{ color:var(--accent); }
.essay-list .read{
  font:11px/1 "IBM Plex Mono",monospace;
  color:var(--text-dim);
  letter-spacing:.14em;
  text-transform:lowercase;
}
.essay-list .essay-coming-soon{
  opacity:.65;
}
.essay-list .essay-coming-soon .title{
  color:var(--text-muted);
  font-style:italic;
  cursor:default;
}
.essay-list .essay-coming-soon .read{
  color:var(--accent);
  letter-spacing:.18em;
}
.essay-list .essay-coming-soon .date{
  color:var(--accent);
  letter-spacing:.18em;
}

/* ============== Footer ============== */
.tacit-foot{
  border-top:1px solid var(--border);
  margin-top:0;
  padding:28px clamp(20px,4vw,40px);
  display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap;
  font:11px/1.6 "IBM Plex Mono",monospace;
  letter-spacing:.14em;
  text-transform:lowercase;
  color:var(--text-dim);
}
.tacit-foot a{ color:var(--text-muted); text-decoration:none; }
.tacit-foot a:hover{ color:var(--accent); }
.tacit-foot .foot-brand{ display:inline-flex; align-items:center; gap:14px; }
.tacit-foot .foot-mark{ height:22px; width:auto; display:block; opacity:.95; }
.tacit-foot .foot-tag{ color:var(--text-dim); letter-spacing:.14em; }

/* ============== Site footer (rich, used across all pages) ============== */
.site-foot{
  padding:clamp(40px,4vw,72px) clamp(20px,4vw,56px) 32px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  border-top:1px solid var(--border);
  color:var(--text);
  font-family:"Söhne","Inter",system-ui,sans-serif;
}
.site-foot a{
  color:var(--text-muted);
  text-decoration:none;
  transition:color .2s ease;
}
.site-foot a:hover{ color:var(--accent); }
.site-foot h4{
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin:0 0 18px;
  font-weight:600;
}
.site-foot ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:14px; }
.site-foot .colophon{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.5;
  max-width:360px;
  margin:0;
}
.site-foot .foot-brand{
  display:flex; align-items:center; gap:14px;
  margin-bottom:20px;
}
.site-foot .foot-brand img{
  height:46px; width:auto; display:block; margin-left:-6px;
}
.site-foot .signoff{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:32px;
  border-top:1px solid var(--border);
  margin-top:16px;
  font-family:"IBM Plex Mono", monospace;
  font-size:12px;
  color:var(--text-dim);
  letter-spacing:.05em;
}
@media (max-width:900px){
  .site-foot{ grid-template-columns:1fr 1fr; gap:32px; }
  .site-foot > div:first-child{ grid-column:1 / -1; }
}
@media (max-width:560px){
  .site-foot{ grid-template-columns:1fr; gap:28px; padding:40px 24px 28px; }
  .site-foot .signoff{ flex-direction:column; gap:10px; text-align:center; }
}

/* ============== Responsive ============== */
@media (max-width:900px){
  .page-title{ font-size:clamp(30px,7vw,46px); letter-spacing:-.018em; }
  .section-title{ font-size:clamp(24px,5.5vw,34px); }
  .stat .num{ font-size:clamp(48px,12vw,80px); }
}

@media (max-width:780px){
  .nav-wrap{
    position:relative;     /* drop sticky on mobile — nav can wrap to two rows */
    top:0;
    padding-top:14px;
    margin-bottom:28px;
  }
  nav.tacit-nav{
    padding:6px 8px;
    gap:2px;
    flex-wrap:wrap;
    justify-content:center;
    max-width:100%;
    width:auto;
  }
  nav.tacit-nav a{
    font-size:11px;
    padding:6px 10px;
    letter-spacing:.02em;
  }
  .logo{ width:22px; height:22px; }

  .page{ padding:0 20px 0; }
  .page-eyebrow{ font-size:10px; margin-bottom:18px; }
  .page-deck{ font-size:17px; margin-bottom:48px; }
  .type-legend{ font-size:9px; padding:7px 11px; gap:12px; }

  .section{ padding:48px 0; }
  .section-title{ margin-bottom:20px; max-width:none; }
  .section-num{ margin-bottom:10px; }

  .t12{ font-size:15px; line-height:1.6; }
  .t10{ font-size:12.5px; line-height:1.65; padding-left:14px; }

  .stat .lbl{ font-size:15px; margin-top:12px; }

  .layers{ border-radius:14px 14px 0 0; }
  .layer{ padding:20px 18px; }
  .layer .name{ font-size:22px; }
  .layer .step{ font-size:10px; }

  .section-quote{ padding:40px 0; }
  .section-quote .q{ font-size:clamp(22px,6vw,28px); }
  .section-quote .src{ margin-top:18px; }

  .section-cta{
    padding:48px 20px;
    gap:20px;
  }
  .section-cta .h{ font-size:clamp(24px,6.5vw,32px); }
  .section-cta .ctas{ gap:10px; }
  .section-cta .cta,
  .section-cta .cta-ghost{ padding:12px 18px; font-size:13px; }

  .founder{
    grid-template-columns:1fr;
    gap:20px;
    padding-top:40px;
    margin-top:40px;
  }
  .founder .portrait{ width:120px; height:144px; }
  .founder .name{ font-size:28px; }

  .grid-2{ grid-template-columns:1fr; gap:32px; }
  .grid-2 .col-h{ font-size:22px; }

  .essay-list li{
    grid-template-columns:1fr;
    gap:6px;
    padding:18px 0;
  }
  .essay-list .read{ display:none }

  .tacit-foot{
    padding:24px 20px;
    flex-direction:column;
    gap:8px;
    font-size:10px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
