/* ============================================================
   KORREX · brand.css — shared with deck v8.2 (2026-07-05)
   Surfaces: PAPER (default) · PARCHMENT (.parch — money, proof, action)
   Fonts: Fraunces (display) · IBM Plex Sans (body) · IBM Plex Mono (labels, symbols)
   THE EDGE: hero display only — 0 1px 0 rgba(46,28,8,.35). Nothing else carries a shadow.
   Borders only on system artifacts. Prose is never boxed.
   ============================================================ */

:root {
  --paper: #FAF7F2;
  --paper-2: #F1ECE3;
  --ink: #221807;
  --ink-2: #4A3115;
  --ink-3: #6B4B28;
  --accent: #8C2F1B;
  --bronze: #7A4E22;
  --hairline: color-mix(in srgb, #221807 20%, transparent);
  --hairline-soft: color-mix(in srgb, #221807 12%, transparent);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--bronze) 30%, transparent); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* wide screens: scale the whole page up so the column fills instead of floating in dead margins */
@media (min-width: 1600px) { html { zoom: 1.15; } }
@media (min-width: 1920px) { html { zoom: 1.35; } }
@media (min-width: 2240px) { html { zoom: 1.55; } }
@media (min-width: 2560px) { html { zoom: 1.75; } }

/* ============ type ============ */
.d {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  letter-spacing: -.015em; line-height: 1.1; color: var(--ink);
  text-wrap: balance;
}
.d em { font-style: italic; font-weight: 400; color: var(--bronze); }
.edge { text-shadow: 0 1px 0 rgba(46,28,8,.35); }

.body { font-family: var(--sans); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.body b, .body strong { font-weight: 600; color: var(--ink); }

.m  { font-family: var(--mono); font-weight: 400; font-feature-settings: 'tnum' 1; }
.mm { font-family: var(--mono); font-weight: 500; font-feature-settings: 'tnum' 1; }

/* kicker — "// NN SECTION NAME" */
.k {
  display: block;
  font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.k b { color: var(--accent); font-weight: 500; }

.lbl { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* hairline */
.hr { border-top: 1px solid var(--hairline); }

/* simulation label — honest rails */
.sim {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.sim::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }

/* ============ surfaces ============ */
.parch {
  background: radial-gradient(118% 128% at 28% 18%, #D9B690 0%, #C89D72 35%, #AE8054 68%, #94693F 100%);
  color: var(--ink);
  border-top: 1px solid color-mix(in srgb, #221807 25%, transparent);
}
/* paper sections that border parchment get a hairline seam, not a hard white edge */
.parch + section, .parch + footer { border-top: 1px solid var(--hairline); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 26px; line-height: 1; white-space: nowrap;
  transition: background .12s, color .12s;
  cursor: pointer; border: 0; background: none;
}
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: #752817; }
.btn-quiet { color: var(--ink); padding: 15px 6px; }
.btn-quiet::after { content: '→'; font-family: var(--mono); color: var(--bronze); }
.btn-quiet:hover { color: var(--accent); }
.btn-ghost { color: var(--ink); border: 1px solid var(--hairline); padding: 14px 25px; }
.btn-ghost:hover { border-color: var(--ink); }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background .12s, border-color .12s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav .wrap { display: flex; align-items: center; gap: 40px; height: 72px; }
.nav .mark { color: var(--ink); }
.nav .mark svg { height: 15px; width: auto; }
.nav nav { display: flex; gap: 32px; margin-left: 8px; }
.nav nav a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); transition: color .12s;
}
.nav nav a:hover, .nav nav a.on { color: var(--accent); }
.nav .nav-cta { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav .nav-login { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nav .nav-login:hover { color: var(--ink); }
.nav .btn { padding: 12px 20px; font-size: 12px; }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .nav-login { display: none; }
}

/* ============ page scaffolding ============ */
.sec { padding: 104px 0; }
.sec + .sec .wrap-rule { border-top: 1px solid var(--hairline-soft); }
.sec-rule { border-top: 1px solid var(--hairline-soft); }

.sec-head h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.12;
  color: var(--ink); font-size: clamp(30px, 4vw, 42px); text-wrap: balance;
  margin-top: 26px; max-width: 24ch;
}
.sec-head .lead { margin-top: 20px; max-width: 58ch; text-wrap: pretty; }

/* hero (subpages — paper) */
.hero { padding: 110px 0 90px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08;
  color: var(--ink); font-size: clamp(38px, 5.4vw, 60px); text-wrap: balance;
  margin-top: 30px; max-width: 20ch;
  text-shadow: 0 1px 0 rgba(46,28,8,.35);
}
.hero .thesis { margin-top: 26px; max-width: 58ch; font-size: 18px; text-wrap: pretty; }

/* stillness: no entrance/reveal animation — hover transitions only, ≤120ms */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* scroll progress */
.scrollprog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0);
}

/* ============ footer — ends on the CTA spine ============ */
footer { border-top: 1px solid var(--hairline-soft); padding: 84px 0 56px; }
footer .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
footer .foot-def { margin-top: 22px; max-width: 40ch; font-size: 15px; color: var(--ink-2); }
footer .mark svg { height: 16px; width: auto; color: var(--ink); }
footer .foot-links { display: flex; gap: 64px; justify-content: flex-end; }
footer .foot-col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
footer .foot-col a { display: block; font-size: 15px; color: var(--ink-2); padding: 4px 0; }
footer .foot-col a:hover { color: var(--accent); }
footer .foot-spine {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--hairline);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
footer .foot-spine .lines { font-family: var(--mono); font-size: 13px; line-height: 2; letter-spacing: .06em; color: var(--ink-2); font-feature-settings: 'tnum' 1; }
footer .foot-spine .lines b { color: var(--ink); font-weight: 500; }
footer .foot-bot {
  margin-top: 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3);
}
@media (max-width: 780px) {
  footer .foot-grid { grid-template-columns: 1fr; gap: 44px; }
  footer .foot-links { justify-content: flex-start; }
}

/* ============ system artifact frame (the only permitted border) ============ */
.artifact { border: 1px solid var(--hairline); background: transparent; }

/* mono timeline rows inside artifacts */
.tl-rows { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink-2); font-feature-settings: 'tnum' 1; }
.tl-rows > div { display: flex; gap: 22px; padding: 12px 0; }
.tl-rows > div + div { border-top: 1px solid var(--hairline-soft); }
.tl-rows .t { color: var(--ink-3); white-space: nowrap; }
.tl-rows b { color: var(--ink); font-weight: 500; }
.tl-rows .acc { color: var(--accent); font-weight: 500; }
