/* praeclarum v3 — bank-grade paper wrapped around forensic evidence.
   Research-derived (2026-07): warm light base (Swiss institutional consensus),
   one heritage accent (oxblood = the auditor's pencil), serif display at light
   weight, mono for every numeral, dark reserved for evidence exhibits only. */

:root {
  --paper: #f7f4ee;
  --paper-2: #efebe3;
  --card: #fdfcf9;
  --hairline: #ddd8cc;
  --hairline-strong: #c4beae;
  --ink: #1b1916;
  --ink-2: #59544a;
  --faint: #8d877a;
  --accent: #7a3b35;      /* oxblood — CTAs, links, corrections */
  --accent-deep: #612e29;
  --x-bg: #16130f;        /* exhibit surfaces */
  --x-ink: #f2eee5;
  --x-muted: #a49d8d;
  --x-flag: #d98e80;      /* struck claims on dark */
  --x-ochre: #d3a04c;     /* caution on dark */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.06; font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; max-width: 26ch; font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0; }

/* ---------- nav ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand .word { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.brand .prod { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.16em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--hairline-strong); }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav .cta { background: var(--accent); color: var(--paper); padding: 9px 16px; border-radius: 2px; }
.nav nav .cta:hover { background: var(--accent-deep); color: var(--paper); }
@media (max-width: 880px) { .nav nav a.hide-m { display: none; } }
/* language switch stays visible on phones; drop the product badge instead */
@media (max-width: 560px) { .brand .prod { display: none; } }

/* ---------- shared verbal furniture ---------- */
.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vh, 100px) 0 clamp(48px, 7vh, 84px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(36px, 5vw, 80px); align-items: start; position: relative; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .eyebrow { margin-bottom: 26px; }
.hero .sub { margin-top: 26px; font-size: 18px; color: var(--ink-2); max-width: 50ch; }
.hero .sub strong { color: var(--ink); font-weight: 600; }

/* faint cadastral drawing behind the hero */
.cadastre { position: absolute; top: -40px; right: -120px; width: 640px; opacity: 0.5; pointer-events: none; }
@media (max-width: 1000px) { .cadastre { display: none; } }

.actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.btn { text-decoration: none; font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 2px; }
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.primary:hover { background: var(--accent-deep); }
.btn.quiet { color: var(--ink); border: 1px solid var(--hairline-strong); background: transparent; }
.btn.quiet:hover { border-color: var(--ink); }
.post-cta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 16px; }
.post-cta a { color: var(--ink-2); }

/* ---------- exhibit: the analysis as a paper document ---------- */
.exhibit {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  box-shadow: 0 24px 48px -36px rgba(27, 25, 22, 0.35);
}
.x-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 24px; background: var(--paper-2); border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.x-head b { color: var(--ink); font-weight: 500; }
.x-obj { padding: 18px 24px 0; font-size: 14.5px; color: var(--ink); }

/* claim vs verified: the figure duel */
.x-duel { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 24px 4px; }
.x-cell { display: flex; flex-direction: column; gap: 6px; padding-right: 20px; }
.x-cell + .x-cell { border-left: 1px solid var(--hairline); padding-left: 20px; padding-right: 0; }
.x-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.x-tag.flag, .x-tag.gold { color: var(--accent); }
.x-fig { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 48px); line-height: 1; color: var(--ink); font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0; }
.x-fig em { font-style: normal; font-size: 60%; color: var(--faint); }
.x-fig.flag { color: var(--accent); }
.x-fig.flag em { color: rgba(122, 59, 53, 0.55); }
.x-cap { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); max-width: 24ch; }

.x-note { margin: 14px 24px 0; padding: 12px 0; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2); }
.x-note span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-right: 12px; }

.x-final { margin: 0 24px; padding: 14px 0 20px; border-top: 1px solid var(--hairline); }
.x-price { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); color: var(--ink); margin-top: 8px; font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0; }
.x-price span { font-size: 70%; color: var(--ink-2); }
.x-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink-2); margin-top: 6px; }

.x-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 12px; }
.x-foot a { color: var(--accent); text-underline-offset: 3px; }
.x-foot .src { color: var(--faint); font-size: 10.5px; }

/* one orchestrated entrance; static without JS or with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html.js .exhibit .xr { opacity: 0; }
  html.js .exhibit .xr.on { opacity: 1; transition: opacity 0.35s ease-out; }
}

/* ---------- stat strip ---------- */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 20px; border-left: 1px solid var(--hairline); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-2); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 2px; letter-spacing: 0; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ---------- sections ---------- */
section.block { padding: clamp(64px, 10vh, 118px) 0; }
.block .kicker { margin-bottom: 20px; }
.block p.body { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 64ch; }
.block p.body strong { color: var(--ink); font-weight: 600; }
.block p.body a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- deliverables: ruled document index ---------- */
.index { margin-top: 44px; border-top: 1px solid var(--hairline-strong); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
@media (max-width: 800px) { .index { grid-template-columns: 1fr; } }
.index .item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.index .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.index h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.index p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.index-cta { margin-top: 28px; font-family: var(--mono); font-size: 13px; }
.index-cta a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- audit / limits panes ---------- */
.split { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pane { border: 1px solid var(--hairline); background: var(--card); padding: 30px 32px; border-radius: 2px; }
.pane h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; color: var(--accent); }
.pane ul { list-style: none; }
.pane li { padding: 11px 0 11px 24px; position: relative; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--hairline); line-height: 1.55; }
.pane li:first-child { border-top: 0; }
.pane li strong { color: var(--ink); font-weight: 600; }
.pane li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.pane.audit li::before { content: "·"; font-weight: 700; color: var(--accent); }

/* ---------- statement band (paper, ruled) ---------- */
.band { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: clamp(72px, 11vh, 130px) 0; }
.band .kicker { color: var(--ink-2); justify-content: center; }
.band .kicker::before { background: var(--accent); }
.band .line { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.14; text-align: center; max-width: 24ch; margin: 22px auto 0; font-variation-settings: "opsz" 80, "SOFT" 0, "WONK" 0; }
.band p.body { margin: 24px auto 0; text-align: center; font-size: 16.5px; color: var(--ink-2); max-width: 62ch; }
.band p.body strong { color: var(--ink); font-weight: 600; }

/* ---------- teardown memo links ---------- */
.memos { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .memos { grid-template-columns: 1fr; } }
.memo { display: block; text-decoration: none; border: 1px solid var(--hairline); background: var(--card); padding: 26px 28px; border-radius: 2px; }
.memo:hover { border-color: var(--accent); }
.memo .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.memo h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 12px 0 6px; }
.memo p { font-size: 14.5px; color: var(--ink-2); }
.memo .go { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 16px; display: inline-block; border-bottom: 1px solid var(--hairline-strong); padding-bottom: 2px; }
.memo:hover .go { color: var(--accent); border-color: var(--accent); }

/* ---------- lot band ---------- */
.lotband { border: 1px solid var(--hairline); background: var(--paper-2); border-radius: 2px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 760px) { .lotband { grid-template-columns: 1fr; } }
.lotband .kicker { margin-bottom: 14px; }
.lotband h2 { font-size: clamp(23px, 2.8vw, 32px); max-width: 30ch; }
.lotband p { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 56ch; }

/* ---------- schema table (lot) ---------- */
.schema { margin-top: 40px; border: 1px solid var(--hairline); background: var(--card); border-radius: 2px; overflow-x: auto; font-family: var(--mono); font-size: 13px; }
.schema table { border-collapse: collapse; width: 100%; min-width: 560px; }
.schema th, .schema td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.schema th { font-weight: 400; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.schema tr:last-child td { border-bottom: 0; }
.schema .ok { color: var(--ink); }
.schema .fail { color: var(--accent); font-weight: 600; }
.schema-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 12px; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final .kicker { justify-content: center; }
.final h2 { margin-left: auto; margin-right: auto; }
.final p.body { margin-left: auto; margin-right: auto; text-align: center; }
.final .actions { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); background: var(--paper); padding: 44px 0 60px; font-size: 13.5px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; line-height: 2; }
footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
footer a:hover { color: var(--ink); border-color: var(--ink); }
footer .word { font-family: var(--serif); font-size: 17px; color: var(--ink); }
footer .date { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ---------- prose pages ---------- */
.prose { max-width: 720px; }
.prose p { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.prose p strong { color: var(--ink); }
.prose .legal-card { margin-top: 28px; border: 1px solid var(--hairline); background: var(--card); padding: 28px 30px; font-size: 15px; line-height: 2; color: var(--ink-2); border-radius: 2px; }
.prose .legal-card b { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .x-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 40px; max-width: 820px; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }
.founder img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline-strong); }
.founder .who { font-size: 15px; margin-top: 14px; }
.founder .who b { display: block; font-size: 16px; }
.founder .who span { color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; }
.founder blockquote { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0; }
.founder .bio { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--hairline-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 18px 2px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 18px; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2px 20px; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }

/* ---------- ambient hero video (Lot) ---------- */
.hero-video { position: absolute; top: 0; right: 0; width: min(44vw, 640px); height: 100%; object-fit: cover; pointer-events: none; opacity: 0.9; mask-image: linear-gradient(90deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
@media (max-width: 1000px) { .hero-video { display: none; } }

/* cadastral draw-on: lines draw once on load, labels settle after */
@media (prefers-reduced-motion: no-preference) {
  html.js .cadastre path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  html.js .cadastre path:nth-of-type(2) { animation-delay: 0.12s; }
  html.js .cadastre path:nth-of-type(3) { animation-delay: 0.24s; }
  html.js .cadastre path:nth-of-type(4) { animation-delay: 0.36s; }
  html.js .cadastre path:nth-of-type(5) { animation-delay: 0.48s; }
  html.js .cadastre path:nth-of-type(6) { animation-delay: 0.6s; }
  html.js .cadastre path:nth-of-type(7) { animation-delay: 0.72s; }
  html.js .cadastre text { opacity: 0; animation: settle 0.6s ease-out 1.6s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes settle { to { opacity: 1; } }
}
