/* DataAlchemist — site.css (v2 polish pass) */

:root {
  --ink: #101318;
  --ink-2: #1C2433;
  --paper: #FBFAF7;
  --paper-2: #F2EFE9;
  --white: #FFFEFB;
  --stone: #D7D0C3;
  --stone-2: #C9C1B4;
  --text: #20242C;
  --text-soft: #28303A;
  --muted: #555D69;
  --blue: #263F5E;
  --blue-soft: #E8EDF2;
  --brass: #8F6A32;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.72;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============ MEASURE UTILITIES ============ */
.measure-narrow { max-width: 680px; }
.measure { max-width: 760px; }
.measure-wide { max-width: 920px; }

/* ============ NAV ============ */
.site-nav { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.site-nav .nav-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; }
.site-nav a { position: relative; color: rgba(251,250,247,0.70); text-decoration: none; padding: 0 9px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.site-nav a:hover { color: var(--paper); }
.site-nav a.active { color: var(--paper); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -8px;
  height: 1px;
  background: var(--brass);
}
.site-nav .brand { display: flex; align-items: center; padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.10); margin-right: 10px; }
.site-nav .brand img, .site-nav .logo img { height: 32px; width: auto; display: block; }
.site-nav .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
@media (max-width: 1040px) and (min-width: 761px) { .site-nav a { padding: 0 7px; font-size: 12.5px; } .site-nav .brand { padding-right: 12px; margin-right: 7px; } }
.site-nav .nav-toggle-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-nav .nav-toggle { display: none; }

/* ---- mobile hamburger (CSS-only, checkbox hack) — mobile only; full menu holds on mid-width ---- */
@media (max-width: 760px) {
  .site-nav .nav-wrap { justify-content: space-between; padding: 0 20px; gap: 0; }
  .site-nav .brand { width: auto; border-right: none; padding-right: 0; margin-right: 0; margin-bottom: 0; }
  .site-nav .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .site-nav .nav-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(251,250,247,0.82); transition: transform .25s ease, opacity .2s ease; }
  .site-nav .nav-links { order: 3; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.08); }
  .site-nav .nav-links a { display: block; width: 100%; padding: 13px 2px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .site-nav .nav-links a:last-child { border-bottom: none; }
  .site-nav .nav-links a.active::after { display: none; }
  .site-nav .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .site-nav .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-nav .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============ HERO ============ */
.hero { background: var(--ink); color: var(--paper); padding: 78px 0 70px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden; }
body.page-home .hero { 
  padding: 32px 0;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}
body.page-privacy .hero,
body.page-contact .hero { padding: 72px 0 64px; }

/* Image-plate heroes (non-home interior pages). Each plate is generated with a
   near-black left band (measured: ends ~37–50% across the four images); the text is
   pinned left and width-capped to LIVE inside that band, and the scrim reinforces the
   same zone so the headline never reads on the lit subject. Subject (right ~half) stays crisp. */
.hero.hero-img { min-height: clamp(440px, 60vh, 580px); display: flex; align-items: center; }
.hero-plate {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: var(--ink);
  background-size: cover; background-position: right center; background-repeat: no-repeat;
}
.hero-plate-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(11,14,20,0.86) 42%, rgba(11,14,20,0.55) 52%, rgba(11,14,20,0.20) 62%, rgba(11,14,20,0) 72%),
    linear-gradient(0deg, rgba(11,14,20,0.45) 0%, rgba(11,14,20,0) 30%);
}
/* Text sits in the default centred 1180 measure — same as .container-page below — so the hero
   headline's left edge lines up with the body content (a vertical through-line) rather than hugging
   the page edge. Width is still capped so the block stays inside the image's dark/gradient zone. */
.hero.hero-img .hero-inner h1,
.hero.hero-img .hero-inner .lead,
.hero.hero-img .hero-inner .lead-secondary { max-width: min(600px, 44vw); }

.hero-inner { position: relative; z-index: 2; pointer-events: none; max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 32px; }
.hero-inner > * { pointer-events: auto; }

/* SVG background layer — source documents resolve into one governed record */
.hero-animation-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-svg { display: block; width: 100%; height: 100%; }

/* Base state = the composed still. Also the reduced-motion / no-animation fallback. */
.hero-scene .sd { opacity: 0.16; }
.hero-scene .frag { fill: #8F6A32; }
.hero-scene .trace { opacity: 0; stroke-dasharray: 220; }
.hero-scene .ghost { opacity: 0; }
.hero-scene .tb-label { opacity: 0; }
.hero-scene .card { transform-box: fill-box; transform-origin: center; }
.hero-scene .cf { transform-box: fill-box; }

/* 1 — the forms appear (staggered), then drift away as the record forms */
@keyframes sd-a { 0%,2% { opacity: 0; transform: translateY(12px); } 10% { opacity: 1; transform: translateY(0); } 34% { opacity: 1; transform: translate(0,0); } 46%,100% { opacity: 0; transform: translate(16px,20px); } }
@keyframes sd-b { 0%,4% { opacity: 0; transform: translateY(12px); } 13% { opacity: 1; transform: translateY(0); } 37% { opacity: 1; transform: translate(0,0); } 49%,100% { opacity: 0; transform: translate(16px,20px); } }
@keyframes sd-c { 0%,7% { opacity: 0; transform: translateY(12px); } 16% { opacity: 1; transform: translateY(0); } 40% { opacity: 1; transform: translate(0,0); } 51%,100% { opacity: 0; transform: translate(16px,20px); } }
@keyframes sd-d { 0%,10% { opacity: 0; transform: translateY(12px); } 19% { opacity: 1; transform: translateY(0); } 42% { opacity: 1; transform: translate(0,0); } 53%,100% { opacity: 0; transform: translate(16px,20px); } }
.hero-scene .sd-a { animation: sd-a 18s infinite ease-in-out; }
.hero-scene .sd-b { animation: sd-b 18s infinite ease-in-out; }
.hero-scene .sd-c { animation: sd-c 18s infinite ease-in-out; }
.hero-scene .sd-d { animation: sd-d 18s infinite ease-in-out; }

/* 2 — evidence ignites on each source */
@keyframes frag-a { 0%,14% { fill: #6E7785; } 20%,100% { fill: #C79A45; } }
@keyframes frag-b { 0%,18% { fill: #6E7785; } 24%,100% { fill: #C79A45; } }
@keyframes frag-c { 0%,22% { fill: #6E7785; } 28%,100% { fill: #C79A45; } }
@keyframes frag-d { 0%,26% { fill: #6E7785; } 32%,100% { fill: #C79A45; } }
.hero-scene .frag-a { animation: frag-a 18s infinite ease-in-out; }
.hero-scene .frag-b { animation: frag-b 18s infinite ease-in-out; }
.hero-scene .frag-c { animation: frag-c 18s infinite ease-in-out; }
.hero-scene .frag-d { animation: frag-d 18s infinite ease-in-out; }

/* 3 — extraction connectors draw toward the record, then resolve */
@keyframes traceDraw {
  0%,33% { stroke-dashoffset: 220; opacity: 0; }
  37% { opacity: 0.9; }
  48% { stroke-dashoffset: 0; opacity: 0.9; }
  56%,100% { stroke-dashoffset: 0; opacity: 0; }
}
.hero-scene .trace { animation: traceDraw 18s infinite ease-in-out; }

/* 4 — the governed record assembles; fields populate in sequence */
@keyframes cardRise {
  0%,42% { opacity: 0; transform: translateY(10px) scale(0.985); }
  52%,90% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(1); }
}
.hero-scene .card { animation: cardRise 18s infinite ease-in-out; }
@keyframes cf-1 { 0%,52% { opacity: 0; transform: translateY(5px); } 58%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes cf-2 { 0%,56% { opacity: 0; transform: translateY(5px); } 62%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes cf-3 { 0%,60% { opacity: 0; transform: translateY(5px); } 66%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes cf-4 { 0%,64% { opacity: 0; transform: translateY(5px); } 70%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes cf-5 { 0%,68% { opacity: 0; transform: translateY(5px); } 74%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
.hero-scene .cf-1 { animation: cf-1 18s infinite ease-in-out; }
.hero-scene .cf-2 { animation: cf-2 18s infinite ease-in-out; }
.hero-scene .cf-3 { animation: cf-3 18s infinite ease-in-out; }
.hero-scene .cf-4 { animation: cf-4 18s infinite ease-in-out; }
.hero-scene .cf-5 { animation: cf-5 18s infinite ease-in-out; }

/* 5 — trace-back: the evidence chain is preserved both ways */
@keyframes ghostPulse { 0%,72% { opacity: 0; } 78%,85% { opacity: 0.5; } 91%,100% { opacity: 0; } }
.hero-scene .ghost { animation: ghostPulse 18s infinite ease-in-out; }
@keyframes tbIn { 0%,72% { opacity: 0; } 80%,88% { opacity: 0.85; } 96%,100% { opacity: 0; } }
.hero-scene .tb-label { animation: tbIn 18s infinite ease-in-out; }

/* ambient depth */
@keyframes glowBreathe { 0%,100% { opacity: 0.55; } 50% { opacity: 0.8; } }
.hero-glow { animation: glowBreathe 18s infinite ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .hero-animation-bg * { animation: none !important; }
  .hero-scene .sd { opacity: 0.18; }
}

@media (max-width: 960px) {
  .hero-scene .sd,
  .hero-scene .traces,
  .hero-scene .ghosts,
  .hero-scene .card,
  .hero-scene .tb-label { display: none; }
  .hero-animation-bg { opacity: 0.55; }
}
.hero-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brass); margin-bottom: 22px; }
.hero h1 { font-family: "Newsreader", serif; font-size: clamp(44px, 5.5vw, 72px); font-weight: 520; line-height: 1.0; letter-spacing: -0.045em; max-width: min(760px, 54vw); margin: 0 0 26px; color: var(--paper); text-wrap: balance; }
body.page-privacy .hero h1,
body.page-contact .hero h1 { font-size: clamp(38px, 4vw, 56px); }
body:not(.page-home) .hero h1 { font-size: clamp(40px, 4.7vw, 62px); max-width: 860px; }
.hero p.lead { font-size: 18.5px; line-height: 1.55; font-weight: 400; color: rgba(251,250,247,0.82); max-width: min(760px, 54vw); margin: 0 0 14px; }
.hero p.lead-secondary { font-size: 16.5px; line-height: 1.6; color: rgba(251,250,247,0.64); max-width: min(760px, 54vw); margin: 0; }

/* below 960px the record card is hidden, so the text reclaims the full box width */
@media (max-width: 960px) {
  .hero h1, .hero p.lead, .hero p.lead-secondary { max-width: 760px; }
}
.hero .updated { font-family: "IBM Plex Mono", monospace; display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; background: rgba(251,250,247,0.06); border: 1px solid rgba(251,250,247,0.12); border-radius: 2px; color: var(--brass); }

/* ============ CONTAINER ============ */
.container-page { max-width: 1180px; margin: 0 auto; padding: 92px 32px; }
.container-page h2 { font-family: "Newsreader", serif; font-size: clamp(28px, 2.6vw, 38px); font-weight: 520; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); margin: 82px 0 18px; max-width: 820px; text-wrap: balance; }
.container-page h2:first-of-type { margin-top: 0; }
.container-page > h2:not(:first-of-type) { padding-top: 42px; border-top: 1px solid rgba(201,193,180,0.38); }
.container-page > h2 + p { font-size: 16.75px; color: var(--ink); line-height: 1.68; }
.container-page h3 { color: var(--ink); font-weight: 560; letter-spacing: -0.015em; }
.container-page p { font-size: 16px; line-height: 1.74; color: var(--text-soft); max-width: 760px; margin: 0 0 18px; }
.container-page ul { font-size: 16px; line-height: 1.74; color: var(--text-soft); max-width: 760px; padding-left: 22px; margin: 0 0 18px; }
.container-page li { margin-bottom: 6px; }
.container-page a { color: var(--ink); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stone-2); }
.container-page a:hover { text-decoration-color: var(--ink); }

/* ============ STATEMENT BLOCK ============ */
.statement-block { max-width: 860px; margin: 0 0 58px; padding-bottom: 30px; border-bottom: 1px solid rgba(201,193,180,0.65); }
.statement-block p { font-family: "Newsreader", serif; font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.22; letter-spacing: -0.025em; color: var(--ink); max-width: 900px; margin: 0; text-wrap: balance; }

/* ============ PAGE INDEX (long pages) ============ */
.page-index { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0 0 60px; padding: 16px 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.page-index-label { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-right: 8px; }
.page-index ol { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 0; }
.page-index li { margin: 0; }
.page-index a { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.page-index a:hover { color: var(--ink); }

/* ============ PROOF STRIP (Home) ============ */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); margin: 44px 0 78px; }
.proof-item { padding: 28px 30px; border-right: 1px solid var(--stone); }
.proof-item:last-child { border-right: none; }
.proof-kicker { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.proof-item p { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--text); max-width: none; }

/* ============ SYSTEM STACK (Platform) ============ */
.system-stack { margin: 36px 0 70px; border-top: 1px solid var(--stone); }
.system-layer { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--stone); }
.system-layer .layer-number { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
.system-layer h3 { font-size: 22px; font-weight: 560; letter-spacing: -0.02em; margin: 0 0 8px; }
.system-layer p { max-width: 760px; margin-bottom: 10px; color: var(--text-soft); font-size: 16px; line-height: 1.72; }
.system-layer p:last-child { margin-bottom: 0; }

/* ============ ASSET META (Data Assets) ============ */
.asset-meta { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--stone); font-size: 13px; }
.asset-meta .label { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); padding-top: 2px; }
.asset-meta .value { color: var(--text-soft); line-height: 1.55; }

/* ============ LICENSING MATRIX (Access) ============ */
/* unified table system */
.licensing-matrix,
.config-table,
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; background: var(--white); font-size: 13px; }
.licensing-matrix th, .licensing-matrix td,
.config-table th, .config-table td,
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(201,193,180,0.62); vertical-align: top; }
.licensing-matrix tr:last-child th, .licensing-matrix tr:last-child td,
.config-table tr:last-child td,
.data-table tr:last-child td { border-bottom: none; }
.licensing-matrix th:not(:last-child),
.licensing-matrix td:not(:last-child) { border-right: 1px solid rgba(201,193,180,0.38); }

.licensing-matrix thead th,
.config-table th,
.data-table th { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.075em; text-transform: uppercase; color: var(--brass); background: var(--paper-2); font-weight: 600; }
.licensing-matrix tbody th { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); background: #FAF8F3; font-weight: 600; width: 24%; }
.config-table td:first-child { font-weight: 600; color: var(--ink); width: 32%; }
.data-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; }
.config-table td, .data-table td, .licensing-matrix td { color: var(--text-soft); line-height: 1.55; }

.licensing-matrix tbody tr:nth-child(even),
.config-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) { background: rgba(242,239,233,0.42); }

/* table tokens */
.table-token { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.table-token-included::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); opacity: 0.8; }
.table-token-muted { color: var(--stone-2); }

/* table shell */
.table-shell { max-width: 100%; margin: 26px 0 72px; border: 1px solid var(--stone); background: var(--white); overflow: hidden; }
.table-shell-header { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--stone); background: var(--paper-2); }
.table-shell-title { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.table-shell-note { font-size: 12.5px; color: var(--muted); }
.table-shell .licensing-matrix,
.table-shell .config-table,
.table-shell .data-table { border: none; }

/* ============ OPERATING STANDARD (About) ============ */
.operating-standard { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 36px 0; margin: 36px 0 32px; }
.operating-standard p { font-family: "Newsreader", serif; font-size: clamp(24px, 2.5vw, 36px); font-weight: 500; line-height: 1.18; letter-spacing: -0.025em; color: var(--ink); max-width: 940px; margin: 0; text-wrap: balance; }

/* ============ RECORD SCHEMA (Royalty Rates) ============ */
.record-schema { max-width: 920px; margin: 36px 0 72px; border: 1px solid var(--stone); background: var(--white); }
.schema-label { display: flex; justify-content: space-between; gap: 20px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); padding: 15px 18px; border-bottom: 1px solid var(--stone); background: var(--paper-2); }
.schema-label::after { content: "Comparable transaction profile"; color: var(--muted); letter-spacing: 0.06em; }
.schema-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.schema-grid div { padding: 17px 18px; border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); font-size: 13.5px; color: var(--text-soft); background: linear-gradient(180deg, #FFFEFB 0%, #FCFAF6 100%); }
.schema-grid div:nth-child(3n) { border-right: none; }
.schema-grid div:nth-last-child(-n+3) { border-bottom: none; }

/* ============ MATRIX INTRO (Access) ============ */
.matrix-intro { margin: 42px 0 18px; max-width: 720px; }
.matrix-kicker { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.matrix-intro p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ============ ACCESS CARD FEATURED (Practice) ============ */
.access-card-featured { border-color: rgba(143,106,50,0.55) !important; background: #FFFDF8; }
.access-card-featured::before { content: "Common for advisory practices"; position: absolute; top: 10px; left: 28px; right: 28px; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(143,106,50,0.88); }

/* ============ CONTACT LAYOUT ============ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; align-items: start; margin-bottom: 64px; }
.contact-note { color: var(--text-soft); }
.contact-note h2 { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; font-size: clamp(24px, 2.2vw, 32px); }
.contact-note p { font-size: 15.5px; }
.contact-form-col { min-width: 0; }
.contact-form-col h2:first-child { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }

/* ============ CARDS ============ */
/* Card surface contrast — explicit values for premium edge against warm page */
.pillar,
.workflow,
.asset,
.audience,
.access-card,
.terms-col,
.table-shell,
.record-schema,
.figure-panel {
  background: #FFFEFB;
  border-color: #D4CCBE;
}

.pillar, .workflow, .asset, .audience, .access-card, .layer-card, .terms-col, .principle, .inquiry-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 24px 26px;
  box-shadow: none;
}
.access-card { padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.pillar h4, .workflow h4, .asset h3, .audience h3, .audience h4, .access-card h3, .layer-card h3, .principle h3, .inquiry-card h4 {
  color: var(--ink); font-weight: 560; letter-spacing: -0.015em; margin: 0 0 10px;
}
.pillar p, .workflow p, .asset p, .audience p, .access-card li, .access-card .descriptor, .access-card .intended-use, .layer-card p, .principle p, .inquiry-card p { color: var(--text-soft); }

/* ============ GRIDS ============ */
.pillars, .workflow-grid, .audience-grid, .terms-grid, .access-grid, .inquiry-grid {
  display: grid; gap: 22px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.access-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ============ PRINCIPLE OVERRIDES (editorial rows) ============ */
.principle { background: transparent; border: none; border-top: 1px solid var(--stone); border-radius: 0; padding: 22px 0; }
.principle:last-child { border-bottom: 1px solid var(--stone); }
.principle h3 { font-size: 18px; margin-bottom: 6px; }
.principle p { max-width: 760px; font-size: 15px; }

/* ============ MONO LABELS ============ */
.badge, .includes-label, .price-line {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); background: transparent; padding: 0; display: inline-block;
}

/* ============ EDGAR ============ */
.edgar-section { background: var(--ink); color: var(--paper); border: 1px solid rgba(255,255,255,0.10); border-radius: 2px; padding: 42px 46px; margin: 46px 0 56px; position: relative; overflow: hidden; }
.edgar-section::before {
  content: "DA / EDGAR";
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(251,250,247,0.28);
  z-index: 2;
}
.edgar-section::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(251,250,247,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,250,247,0.035) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.45;
}
.edgar-section > * { position: relative; z-index: 1; }
.edgar-section h2 { color: var(--paper) !important; margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
.edgar-section p { color: rgba(251,250,247,0.72); }
.edgar-section .badge { font-family: "IBM Plex Mono", monospace; display: inline-block; background: transparent; color: var(--brass); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0; margin-bottom: 16px; }

/* ============ ACCESS CARDS ============ */
.access-card h3 { font-size: 18px; line-height: 1.18; border-bottom: 1px solid var(--stone); padding-bottom: 12px; margin-bottom: 14px; }
.access-card .price-line { margin: 2px 0 8px; }
.access-card .price { font-family: "Inter", sans-serif; font-size: 24px; line-height: 1.05; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; margin: 0 0 18px; }
.access-card .price.price-text { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.access-card .descriptor { font-size: 13.25px; color: var(--muted); font-style: normal; margin: 0 0 18px; min-height: 62px; }
.access-card .includes-label { margin: 0 0 8px; }
.access-card ul { padding-left: 18px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.48; flex: 1 0 auto; }
.access-card li { margin-bottom: 5px; line-height: 1.5; color: var(--text-soft); }
.access-card .intended-use { font-size: 13.25px; color: var(--muted); line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--stone); margin-top: auto; min-height: 130px; }
.access-card .intended-use strong { color: var(--ink); }

/* ============ DEFINED LIST ============ */
.defined-list { background: var(--paper-2); border: 1px solid var(--stone); border-radius: 2px; padding: 22px 26px; margin: 22px 0; }
.defined-list ul { margin: 8px 0 0; padding-left: 20px; }
.defined-list li { font-size: 15px; margin-bottom: 6px; color: var(--text-soft); }

/* ============ INLINE CTA ============ */
.inline-cta { display: inline-block; margin-top: 14px; background: transparent; color: var(--ink); padding: 11px 22px; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-weight: 560; font-size: 14px; }
.inline-cta:hover { background: var(--ink); color: var(--paper); }

/* ============ CONFIG TABLE ============ */
/* config-table styles unified above */

/* ============ CALLOUT (TP) ============ */
.callout { background: var(--paper-2); border: 1px solid var(--stone); border-radius: 2px; padding: 24px 28px; margin: 24px 0; }
.callout h4 { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 0 0 10px; }
.callout p { font-size: 15px; margin: 0; line-height: 1.6; color: var(--text-soft); }

/* ============ ASSET CARDS ============ */
.asset .lead-line { font-size: 15px; font-style: normal; color: var(--muted); margin: 0 0 14px; }
.asset .supports { font-size: 13px; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--stone); }
.asset .supports strong { color: var(--ink); }

/* ============ TERMS GRID ============ */
.terms-col { padding: 0; overflow: hidden; }
.terms-col h4 { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); padding: 14px 18px; margin: 0; border-bottom: 1px solid rgba(201,193,180,0.85); background: #F0ECE4; }
.terms-col ul { margin: 0; padding: 18px 22px 18px 34px; }
.terms-col li { font-size: 14px; margin-bottom: 6px; color: var(--text-soft); line-height: 1.45; }
.terms-col li::marker { color: var(--stone-2); }

/* ============ FORM ============ */
form.contact { background: var(--white); border: 1px solid var(--stone); border-radius: 2px; padding: 32px 36px; }
form.contact label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 18px 0 7px; }
form.contact label .req { color: #b03030; }
form.contact input[type="text"], form.contact input[type="email"], form.contact select, form.contact textarea {
  width: 100%; padding: 12px 14px; font-family: "Inter", sans-serif; font-size: 15px; border: 1px solid rgba(16,19,24,0.18); border-radius: 2px; box-sizing: border-box; background: #FCFBF8; color: var(--text);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: none; border-color: var(--ink); }
form.contact select { -webkit-appearance: none; appearance: none; background-color: #FCFBF8; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="7"><path d="M1 1l4.5 4.5L10 1" fill="none" stroke="%238a8170" stroke-width="1.4"/></svg>'); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
form.contact textarea { min-height: 156px; resize: vertical; line-height: 1.55; }
form.contact .consent { margin-top: 22px; padding: 14px 16px; background: rgba(16,19,24,0.014); border: 1px solid rgba(16,19,24,0.1); border-radius: 2px; display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
form.contact .consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
form.contact .consent a { color: var(--ink); font-weight: 600; }
form.contact button { margin-top: 26px; background: var(--ink); color: var(--paper); padding: 14px 36px; border: 1px solid var(--ink); border-radius: 2px; font-family: "Inter", sans-serif; font-size: 14.5px; font-weight: 600; cursor: pointer; letter-spacing: 0.01em; transition: background 0.25s ease, color 0.25s ease; }
form.contact button:hover { background: transparent; color: var(--ink); }
form.contact .form-footnote { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ============ CALENDLY ============ */
.calendly-block { background: var(--white); border: 1px solid var(--stone); border-radius: 2px; padding: 26px 30px; margin: 28px 0; display: flex; flex-direction: column; gap: 8px; }
.calendly-block p { margin: 0; font-size: 15px; color: var(--text-soft); }
.calendly-block a.calendly-btn { align-self: flex-start; display: inline-block; background: transparent; color: var(--ink); padding: 11px 24px; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-weight: 560; font-size: 14px; margin-top: 6px; }
.calendly-block a.calendly-btn:hover { background: var(--ink); color: var(--paper); }

/* ============ INQUIRY CARDS ============ */
.inquiry-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.inquiry-card { padding: 20px 24px; }
.inquiry-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.inquiry-card p { font-size: 14px; margin: 0; line-height: 1.55; color: var(--text-soft); }

/* ============ ADDRESS BLOCK ============ */
.address-block { background: var(--paper-2); border: 1px solid var(--stone); border-radius: 2px; padding: 22px 26px; margin: 22px 0; }
.address-block .addr-name { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.address-block .addr-line { font-size: 15px; color: var(--text-soft); line-height: 1.6; }

/* ============ CLOSING LINE ============ */
.closing-line { font-size: 15px; color: var(--muted); font-style: italic; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--stone); }

/* ============ CONTROLLER BLOCK ============ */
.controller-block { background: var(--paper-2); border: 1px solid var(--stone); border-radius: 2px; padding: 22px 26px; margin: 14px 0 24px; }
.controller-block .name { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.controller-block p { font-size: 15px; margin: 4px 0; color: var(--text-soft); }

/* ============ DATA TABLE ============ */
/* data-table styles unified above */

/* ============ CTA ============ */
.cta { background: var(--ink); color: var(--paper); padding: 84px 32px; text-align: center; border-top: 1px solid rgba(215, 208, 195, 0.14); }
.cta h3 { font-family: "Newsreader", serif; font-size: 38px; font-weight: 520; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; color: var(--paper); text-wrap: balance; }
.cta p { color: rgba(251,250,247,0.68); max-width: 720px; margin: 0 auto; font-size: 16.5px; line-height: 1.6; }
.cta a.btn-cta { display: inline-block; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-radius: 2px; padding: 16px 38px; text-decoration: none; font-size: 15px; font-weight: 600; margin-top: 28px; letter-spacing: 0.01em; transition: background 0.25s ease, color 0.25s ease; }
.cta a.btn-cta:hover { background: transparent; color: var(--paper); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: rgba(251,250,247,0.48); padding: 38px 32px; font-size: 13px; border-top: 1px solid rgba(215, 208, 195, 0.10); }
footer .footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(251,250,247,0.10); padding-top: 22px; }
footer .footer-nav a { color: rgba(251,250,247,0.60); text-decoration: none; margin-left: 18px; font-size: 13px; }
footer .footer-nav a:hover { color: var(--paper); }

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  .hero { padding: 72px 0 64px; }
  body.page-home .hero { padding: 82px 0 72px; }
  body.page-privacy .hero, body.page-contact .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(40px, 12vw, 54px); line-height: 1.02; max-width: none; }
  .hero p.lead, .hero p.lead-secondary { max-width: none; }
  .hero.hero-img .hero-inner h1, .hero.hero-img .hero-inner .lead, .hero.hero-img .hero-inner .lead-secondary { max-width: min(560px, 80vw); }
  .hero-inner { padding: 0 22px; }

  .container-page { padding: 64px 22px; }
  .container-page h2 { margin-top: 64px; padding-top: 34px; }
  .container-page > h2:not(:first-of-type) { padding-top: 34px; }

  .statement-block { margin-bottom: 48px; padding-bottom: 28px; }
  .statement-block p { font-size: clamp(20px, 6vw, 26px); }

  .proof-strip, .system-layer, .contact-layout { grid-template-columns: 1fr; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--stone); }
  .proof-item:last-child { border-bottom: none; }

  .system-layer { gap: 14px; padding: 24px 0; }
  .system-layer .layer-number { padding-top: 0; }

  .contact-layout { gap: 36px; }

  .edgar-section { padding: 28px 24px; }
  .cta { padding: 64px 22px; }
  .cta h3 { font-size: 30px; }
  footer { padding: 26px 22px; }
  footer .footer-inner { flex-direction: column; align-items: flex-start; }
  footer .footer-nav a { margin-left: 0; margin-right: 18px; }

  .licensing-matrix { font-size: 13px; }
  .licensing-matrix th, .licensing-matrix td { padding: 10px 12px; }
}

/* wide tables scroll within their card on small phones instead of overflowing the page */
@media (max-width: 640px) {
  .table-shell { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .licensing-matrix, .config-table, .data-table { min-width: 520px; }
}


/* ============ BASE-LAYER READINESS (structural containers for future visual content) ============ */

/* Visual slot — reusable surface for diagrams, document fragments, product visuals, motion panels.
   Add only where structurally appropriate, not everywhere. */
.visual-slot {
  min-height: 260px;
  border: 1px solid var(--stone);
  background: linear-gradient(180deg, #FFFEFB 0%, #FAF8F3 100%);
  position: relative;
  overflow: hidden;
}
.visual-slot::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.55;
}
/* Dev escape hatch — add class="dev" to <body> to show slot labels during development */
body.dev .visual-slot::before { content: "Visual system reserved"; }

/* Split section — text + future visual panel side-by-side. */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: start;
  margin: 84px 0;
}
.split-section .split-copy { max-width: 720px; }
.split-section .split-visual { min-width: 0; }

/* Figure panel — analytical evidence object, not decorative image. */
.figure-panel { border: 1px solid var(--stone); background: var(--white); }
.figure-body { min-height: 260px; background: #FAF8F3; }
.figure-caption { border-top: 1px solid var(--stone); padding: 12px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.figure-caption strong { color: var(--ink); }

/* Source fragment — CSS-native document/source motif (clauses, filings, evidence excerpts). */
.source-fragment {
  border: 1px solid var(--stone);
  background: #FFFEFB;
  padding: 22px 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.source-fragment .line {
  display: block;
  border-bottom: 1px solid rgba(201,193,180,0.45);
  padding: 6px 0;
}
.source-fragment .line:last-child { border-bottom: none; }

/* Surface utility — use instead of drop shadows. */
.surface {
  border: 1px solid var(--stone);
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

/* Card metadata helpers — small utilities for future structured card content. */
.card-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.card-rule { height: 1px; background: var(--stone); margin: 16px 0; }

/* Restrained interaction states — quiet hover/focus, no motion beyond this. */
a, button, .btn-cta, .inline-cta {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
a:focus-visible,
button:focus-visible,
.btn-cta:focus-visible,
.inline-cta:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

/* Split-section responsive collapse */
@media (max-width: 820px) {
  .split-section { grid-template-columns: 1fr; gap: 32px; margin: 64px 0; }
}

/* New components mobile pass — visual slot + figure panel collapse cleanly */
@media (max-width: 760px) {
  .visual-slot { min-height: 200px; }
  .figure-body { min-height: 200px; }
  .source-fragment { padding: 16px 18px; font-size: 10.5px; }
}


/* ============ INSIGHTS — RESEARCH LIBRARY LAYOUT ============ */
.insights-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 0;
  margin: 36px 0 24px;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.insights-taxonomy span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #454D5A;
}

.insights-list { margin-top: 26px; margin-bottom: 24px; }

.insights-pagination {
  display: flex;
  gap: 18px;
  padding-top: 36px;
  border-top: 1px solid var(--stone);
  margin-top: 24px;
}

.insight-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 40px;
  padding: 42px 0;
  border-top: 1px solid var(--stone);
}
.insight-row:last-of-type { border-bottom: 1px solid var(--stone); }

.insight-row:first-of-type { padding-top: 48px; }
.insight-row:first-of-type .insight-main h2 { font-size: clamp(30px, 2.6vw, 38px); }

.insight-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 8px;
}

.insight-type {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.insight-main h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 520;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
  padding-top: 0;
  border-top: none;
  max-width: 760px;
  text-wrap: balance;
}
.insight-main h2 a { color: inherit; text-decoration: none; }
.insight-main h2 a:hover { color: var(--brass); }

.insight-main p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 18px;
  max-width: 760px;
}

.article-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.article-link:hover { color: var(--brass); }

@media (max-width: 760px) {
  .insight-row { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .insight-row:first-of-type { padding-top: 40px; }
  .insight-date { padding-top: 0; }
  .insight-row:first-of-type .insight-main h2 { font-size: clamp(26px, 6vw, 34px); }
  .insights-taxonomy { gap: 8px 16px; padding: 14px 0; margin: 28px 0 18px; }
}


/* H2 inline kicker (e.g., "Scoped by matter" above section title) */
.h2-kicker { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }


/* ============ DEMO TRIGGER (Supademo Demo Hub panel) ============ */
.demo-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 72px 0 92px;
  padding: 24px 30px;
  border: 1px solid var(--stone);
  background: var(--white);
}

.demo-trigger-copy { min-width: 0; max-width: 720px; }

.demo-trigger-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.demo-trigger h2 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-family: "Newsreader", serif;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 660px;
}

.demo-trigger p {
  margin: 0;
  max-width: 660px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.demo-trigger-button {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 12px 22px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: none;
}

.demo-trigger-button:hover {
  background: transparent;
  color: var(--ink);
}

@media (max-width: 760px) {
  .demo-trigger {
    flex-direction: column;
    align-items: flex-start;
    margin: 56px 0 68px;
    padding: 26px 24px;
  }
  .demo-trigger-button { align-self: stretch; }
}

/* ============ INNER-PAGE DARK SECTIONS — FULL-BLEED BAND ============ */
/* Inner-page dark sections live inside .container-page (clamped to 1180px), so a plain dark
   section reads as a card floating on cream. .dark-bleed paints the ink edge-to-edge via a
   full-viewport pseudo-element — like the homepage Edgar / Benchmark bands — while the content
   stays in the page's existing column, so dark and light sections share one measure at every
   width. No new colours; pure geometry. */
.dark-bleed { position: relative; }
.dark-bleed::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); pointer-events: none; }
.dark-bleed > * { position: relative; z-index: 1; }
.snap-c.dark-bleed > .panel-inner { padding-top: clamp(72px, 9vh, 104px); padding-bottom: clamp(72px, 9vh, 104px); }
/* guard the full-bleed paint against a horizontal scrollbar (scrollbar-gutter width) */
body { overflow-x: clip; }
