/* ==========================================================================
   Origin Big Data — Design System
   White substrate, data-engineering consulting aesthetic.
   Light-first. Grid-referenced. Type does the work.
   ========================================================================== */

:root {
  /* Ink & paper */
  --ink-900: #05080F;
  --ink-800: #0A0E1A;
  --ink-700: #121826;
  --ink-600: #1B2233;
  --text-hi: #080C16;
  --text-body: #414B5E;
  --text-mute: #6C7789;
  --text-faint: #9AA3B2;

  --paper: #FFFFFF;
  --paper-2: #F7F9FC;
  --paper-3: #EFF3F9;
  --paper-4: #E5EAF2;

  --line: #E3E8F0;
  --line-2: #D3DAE6;
  --line-strong: #B9C2D2;

  /* Signals */
  --blue: #1552D8;
  --blue-600: #0F42B0;
  --blue-100: #E8EFFC;
  --blue-50: #F4F8FF;
  --teal: #0E9F8A;
  --teal-100: #E2F5F1;
  --amber: #B45309;
  --amber-100: #FDF3E3;
  --violet: #6D45D9;
  --violet-100: #F0ECFC;

  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --shadow-xs: 0 1px 2px rgba(8, 12, 22, .05);
  --shadow-s: 0 1px 2px rgba(8, 12, 22, .04), 0 4px 14px rgba(8, 12, 22, .05);
  --shadow-m: 0 2px 6px rgba(8, 12, 22, .05), 0 18px 44px rgba(8, 12, 22, .08);
  --shadow-focus: 0 0 0 3px rgba(21, 82, 216, .16);

  --maxw: 1200px;
  --gutter: 28px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--text-hi);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.023em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.05rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.95rem, 3.1vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.42rem); }
h4 { font-size: 1.03rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  line-height: 1.62;
  color: var(--text-mute);
}
strong { color: var(--text-hi); font-weight: 600; }
em { font-style: normal; color: var(--text-hi); font-weight: 500; }

::selection { background: var(--blue-100); color: var(--blue-600); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------- Layout primitives ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-ink { background: var(--ink-800); color: rgba(255,255,255,.72); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink strong { color: #fff; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(8,12,22,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8,12,22,.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.cols { display: grid; gap: 28px; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c-2-1 { grid-template-columns: 2fr 1fr; }
.c-1-2 { grid-template-columns: 1fr 2fr; }
.c-3-2 { grid-template-columns: 3fr 2fr; }

/* ---------------- Section headers ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--blue); display: block;
}
.eyebrow-mute { color: var(--text-faint); }
.eyebrow-mute::before { background: var(--line-strong); }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head p { margin-top: 18px; }
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 52px;
}
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-s);
  font-size: .93rem; font-weight: 550; letter-spacing: -.005em;
  transition: all .22s var(--ease); white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink-800); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-secondary { background: var(--paper); color: var(--text-hi); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-800); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); }
.btn-sm { padding: 9px 16px; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row-center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 550; font-size: .93rem; color: var(--blue);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.link-arrow:hover { border-bottom-color: var(--blue); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--ink-800);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg { width: 17px; height: 17px; }
.logo-name {
  font-size: 1.02rem; font-weight: 600; color: var(--text-hi);
  letter-spacing: -.028em; line-height: 1.05;
}
.logo-name span { display: block; font-family: var(--font-mono); font-size: .55rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500;
  white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 8px 13px; border-radius: var(--radius-s);
  font-size: .89rem; font-weight: 500; color: var(--text-body);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav > a:hover { color: var(--text-hi); background: var(--paper-3); }
.nav > a[aria-current="page"] { color: var(--text-hi); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 17px; height: 17px; }

/* ---------------- Hero ---------------- */
.hero { padding: 92px 0 84px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 340px at 78% -8%, rgba(21,82,216,.075), transparent 68%),
    radial-gradient(520px 300px at 8% 108%, rgba(14,159,138,.055), transparent 70%);
}
.hero-in { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: start; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .hl { color: var(--blue); }
.hero-sub { font-size: 1.13rem; line-height: 1.62; max-width: 620px; color: var(--text-mute); }
.hero-note {
  margin-top: 34px; padding: 18px 20px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .9rem; line-height: 1.62; color: var(--text-body);
}
.hero-note strong { display: block; margin-bottom: 4px; font-size: .8rem;
  font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-800); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.pill-blue .pill-dot { background: var(--blue); }

/* Logo strip */
.logo-strip { padding: 30px 0; border-block: 1px solid var(--line); background: var(--paper-2); }
.logo-strip-in { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.logo-strip-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint); flex-shrink: 0; }
.logo-strip-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-chip {
  padding: 8px 16px; border: 1px solid var(--line-2); background: var(--paper);
  border-radius: var(--radius-s); font-size: .85rem; font-weight: 550;
  color: var(--ink-700); letter-spacing: -.01em;
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 30px; position: relative;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card-hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.card-flat { background: var(--paper-2); }
.card-outline { background: transparent; }
.card-pad-lg { padding: 38px; }
.card-accent { border-top: 3px solid var(--blue); }
.card-accent-teal { border-top: 3px solid var(--teal); }
.card-accent-amber { border-top: 3px solid var(--amber); }
.card-accent-violet { border-top: 3px solid var(--violet); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; }

.card-icon {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--blue-100); color: var(--blue);
}
.card-icon svg { width: 19px; height: 19px; }
.card-icon-teal { background: var(--teal-100); color: var(--teal); }
.card-icon-amber { background: var(--amber-100); color: var(--amber); }
.card-icon-violet { background: var(--violet-100); color: var(--violet); }
.card-icon-ink { background: var(--ink-800); color: #fff; }

.card-num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--text-faint); margin-bottom: 16px; display: block;
}

.card-link::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-m);
}
.card-body-link { position: relative; z-index: 1; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: .93rem; line-height: 1.6;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 13px; height: 7px; border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal); transform: rotate(-45deg);
}
.x-list { list-style: none; padding: 0; margin: 18px 0 0; }
.x-list li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: .93rem; color: var(--text-mute); }
.x-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 11px; height: 2px;
  background: var(--text-faint);
}

/* ---------------- Data table ---------------- */
.dt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
table.dt { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.dt th {
  text-align: left; padding: 14px 20px; background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500; white-space: nowrap;
}
table.dt td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-body); }
table.dt tr:last-child td { border-bottom: 0; }
table.dt td:first-child { color: var(--text-hi); font-weight: 550; }
table.dt tbody tr:hover { background: var(--blue-50); }
table.dt .col-key { width: 26%; }
table.dt .col-key-2 { width: 22%; }

/* ---------------- Stat blocks ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.stat {
  padding: 32px 28px; border-right: 1px solid var(--line); background: var(--paper);
}
.stat:last-child { border-right: 0; }
.stat-val { font-size: clamp(1.9rem, 2.6vw, 2.35rem); font-weight: 600; color: var(--text-hi);
  letter-spacing: -.035em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.stat-desc { font-size: .86rem; line-height: 1.55; color: var(--text-mute); }

/* ---------------- Numbered process ---------------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 84px 1fr 150px; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start;
  position: relative;
}
.step-num {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--blue); font-weight: 500; padding-top: 6px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .95rem; max-width: 620px; }
.step-meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); padding-top: 8px; text-align: right; }

/* ---------------- Audience tabs ---------------- */
.aud-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 44px; flex-wrap: wrap; }
.aud-tab {
  padding: 13px 20px; font-size: .91rem; font-weight: 550; color: var(--text-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s var(--ease);
  display: flex; align-items: center; gap: 9px;
}
.aud-tab:hover { color: var(--text-hi); }
.aud-tab[aria-selected="true"] { color: var(--text-hi); border-bottom-color: var(--blue); }
.aud-tab .av {
  width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center;
  background: var(--paper-3); font-family: var(--font-mono); font-size: .6rem; color: var(--text-mute);
}
.aud-tab[aria-selected="true"] .av { background: var(--blue); color: #fff; }

.aud-panel { display: none; }
.aud-panel.active { display: block; animation: fade .32s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.aud-role { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.aud-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }

/* ---------------- Tech / collapsible ---------------- */
details.tech {
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper-2); margin-bottom: 14px; overflow: hidden;
}
details.tech summary {
  padding: 20px 24px; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-weight: 550; color: var(--text-hi); font-size: .96rem;
  transition: background .18s;
}
details.tech summary:hover { background: var(--paper-3); }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.6px solid var(--text-mute); border-bottom: 1.6px solid var(--text-mute);
  transform: rotate(45deg); transition: transform .24s var(--ease); margin-top: -4px;
}
details.tech[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
details.tech .tech-body { padding: 4px 24px 26px; border-top: 1px solid var(--line); }
details.tech .tech-body > *:first-child { margin-top: 20px; }
details.tech .tech-tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink-800); color: #fff; padding: 3px 9px; border-radius: 4px; flex-shrink: 0;
}

/* ---------------- Query / terminal block ---------------- */
.query-block {
  background: var(--ink-800); border-radius: var(--radius-m);
  padding: 26px 28px; color: rgba(255,255,255,.72);
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.85;
  overflow-x: auto;
}
.query-block .q { color: #fff; display: flex; gap: 10px; margin-bottom: 6px; }
.query-block .q::before { content: "?"; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.query-block .meta { color: rgba(255,255,255,.42); font-size: .76rem; padding-left: 24px; }
.query-block .ans { color: #A9C4FF; padding-left: 24px; }
.query-block .ans em,
.query-block .ans strong { color: #DCE7FF; font-style: italic; font-weight: 600; }
.query-block .grp { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.query-label {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 16px;
}

/* ---------------- Comparison (vs) ---------------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius-m); overflow: hidden; }
.vs-col { padding: 32px 30px; }
.vs-col:first-child { background: var(--paper-2); border-right: 1px solid var(--line); }
.vs-col:last-child { background: var(--paper); }
.vs-head { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vs-col:first-child .vs-head { color: var(--text-faint); }
.vs-col:last-child .vs-head { color: var(--blue); }
.vs-row { display: flex; gap: 12px; margin-bottom: 15px; font-size: .93rem; line-height: 1.55; }
.vs-row svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; }
.vs-col:first-child .vs-row svg { color: var(--text-faint); }
.vs-col:last-child .vs-row svg { color: var(--teal); }
.vs-col:first-child .vs-row { color: var(--text-mute); }

/* ---------------- FAQ ---------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  padding: 24px 0; display: flex; gap: 20px; align-items: flex-start;
  font-size: 1.02rem; font-weight: 550; color: var(--text-hi); cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .fi {
  font-family: var(--font-mono); font-size: .72rem; color: var(--blue);
  padding-top: 5px; flex-shrink: 0; font-weight: 500;
}
.faq-q::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.6px solid var(--text-mute); border-bottom: 1.6px solid var(--text-mute);
  transform: rotate(45deg); transition: transform .24s var(--ease); margin-top: 8px;
}
details[open] .faq-q::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 26px 40px; font-size: .96rem; max-width: 780px; }

/* ---------------- Platform page blocks ---------------- */

/* Big product statement card */
.platform-card {
  border: 1px solid var(--line-2); border-radius: var(--radius-l);
  background: var(--paper); overflow: hidden; position: relative;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.platform-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-m); }
.platform-card-head { padding: 30px 32px 26px; border-bottom: 1px solid var(--line); }
.platform-card-num {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.platform-card h3 { font-size: clamp(1.35rem, 2vw, 1.72rem); margin-bottom: 10px; }
.platform-card-body { padding: 26px 32px 30px; }
.platform-card-alt .platform-card-head { background: var(--paper-2); }
.platform-card-alt .platform-card-num { color: var(--teal); }

.feature-list { list-style: none; padding: 0; margin: 0; counter-reset: feat; }
.feature-list li {
  position: relative; padding-left: 42px; margin-bottom: 22px;
  font-size: .93rem; line-height: 1.62;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li::before {
  counter-increment: feat; content: counter(feat, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  color: var(--blue); line-height: 1.5;
}
.feature-list li strong { display: block; color: var(--text-hi); font-weight: 600; margin-bottom: 3px; font-size: .97rem; }

/* Stage / sequence table (failure pattern) */
.stage-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stage-table th {
  text-align: left; padding: 12px 18px; background: var(--ink-800); color: #fff;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
}
.stage-table th:first-child { border-radius: var(--radius-m) 0 0 0; width: 22%; }
.stage-table th:last-child { border-radius: 0 var(--radius-m) 0 0; }
.stage-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stage-table td:first-child { font-weight: 600; color: var(--text-hi); }
.stage-table tr:last-child td { border-bottom: 0; }
.stage-table tr:last-child td:first-child { color: var(--amber); }

/* Layer definition grid */
.layer-row {
  display: grid; grid-template-columns: 76px 1fr 1fr; gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.layer-row:last-child { border-bottom: 0; }
.layer-idx {
  font-family: var(--font-mono); font-size: .72rem; color: var(--blue);
  padding-top: 5px; font-weight: 500; letter-spacing: .06em;
}
.layer-row h4 { margin-bottom: 8px; font-size: 1.05rem; }
.layer-row h4 .sub { display: block; font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-faint); font-weight: 400; letter-spacing: .04em; margin-top: 5px; }
.layer-row p { font-size: .92rem; margin: 0; }

/* Capability card grid with arrow */
.cap-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px 24px; background: var(--paper);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}
.cap-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.cap-card-n {
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint);
  margin-bottom: 12px; letter-spacing: .08em;
}
.cap-card h4 { margin-bottom: 8px; font-size: .98rem; }
.cap-card p { font-size: .87rem; margin: 0 0 14px; flex: 1; }
.cap-card .cap-link {
  font-family: var(--font-mono); font-size: .72rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: .02em;
}
.cap-card .cap-link svg { width: 13px; height: 13px; }

/* Phase-ordered list */
.phase-list { border-top: 1px solid var(--line); }
.phase-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.phase-item .num {
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--text-hi);
  font-weight: 500; letter-spacing: -.02em;
}
.phase-item h4 { margin-bottom: 6px; }
.phase-item .phase-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  border: 1px solid #C9DBF8; background: var(--blue-50);
  padding: 3px 9px; border-radius: 4px; margin-top: 10px;
}

/* Badges / cert row */
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px;
  background: var(--paper); font-size: .85rem; font-weight: 500; color: var(--text-hi);
}
.cert svg { width: 14px; height: 14px; color: var(--teal); }

/* Compact numbered stat (reuse in scoping row) */
.mini-stat {
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 22px; background: var(--paper);
}
.mini-stat .v {
  font-size: 1.55rem; font-weight: 600; color: var(--text-hi);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
.mini-stat .l { font-size: .87rem; line-height: 1.5; color: var(--text-mute); }

@media (max-width: 820px) {
  .layer-row { grid-template-columns: 1fr; gap: 12px; }
  .layer-idx { padding-top: 0; }
  .phase-item { grid-template-columns: 1fr; gap: 8px; }
  .platform-card-head, .platform-card-body { padding-left: 24px; padding-right: 24px; }
  .stage-table { display: block; overflow-x: auto; }
}

/* ---------------- Callout ---------------- */
.callout {
  padding: 26px 28px; border-radius: var(--radius-m);
  background: var(--amber-100); border: 1px solid #F0DFC0; border-left: 3px solid var(--amber);
  font-size: .93rem; line-height: 1.65;
}
.callout-blue { background: var(--blue-50); border-color: #D6E3FA; border-left-color: var(--blue); }
.callout-title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px; font-weight: 600; }
.callout-blue .callout-title { color: var(--blue); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--ink-800); color: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(21,82,216,.24), transparent 65%),
    radial-gradient(600px 300px at 88% 100%, rgba(14,159,138,.18), transparent 68%);
}
.cta-in { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-band h2 { color: #fff; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.6); padding: 68px 0 32px; font-size: .89rem; }
.footer h5 {
  color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 500;
}
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-about { max-width: 320px; }
.footer-about p { font-size: .89rem; line-height: 1.65; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.42);
}
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-name span { color: rgba(255,255,255,.4); }

/* ---------------- Utilities ---------------- */
.mt0 { margin-top: 0; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mt40 { margin-top: 40px; } .mt56 { margin-top: 56px; } .mt72 { margin-top: 72px; }
.mb0 { margin-bottom: 0; } .mb24 { margin-bottom: 24px; } .mb40 { margin-bottom: 40px; }
.tc { text-align: center; }
.tc .sec-head { margin-inline: auto; }
.mute { color: var(--text-mute); }
.faint { color: var(--text-faint); }
.small { font-size: .87rem; }
.xsmall { font-size: .8rem; }
.blue { color: var(--blue); } .teal { color: var(--teal); } .amber { color: var(--amber); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.mono-block {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-mute);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 14px 18px; line-height: 1.9;
}
.kbd {
  font-family: var(--font-mono); font-size: .78rem; background: var(--paper-3);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; color: var(--text-hi);
}
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  background: var(--blue-100); color: var(--blue-600); font-weight: 500;
}
.badge-teal { background: var(--teal-100); color: var(--teal); }
.badge-amber { background: var(--amber-100); color: var(--amber); }
.badge-grey { background: var(--paper-3); color: var(--text-mute); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  background: var(--ink-800); color: #fff; padding: 10px 18px; border-radius: var(--radius-s);
}
.skip-link:focus { left: 20px; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .c4 { grid-template-columns: repeat(2, 1fr); }
  .c-2-1, .c-1-2, .c-3-2 { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
/* Between 1080 and 820 the full nav plus both CTAs no longer fit alongside
   the logo tagline. Collapse the nav into the toggle and keep one CTA. */
@media (max-width: 1080px) {
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px;
    box-shadow: var(--shadow-m);
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-cta .btn-secondary { display: none; }
}

@media (max-width: 820px) {
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px;
    box-shadow: var(--shadow-m);
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-cta .btn-secondary { display: none; }
  .header-cta .btn-primary { display: none; }
  .header-in { gap: 12px; }
  .c2, .c3, .c4 { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs-col:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-meta { text-align: left; padding-top: 0; }
  .hero { padding: 60px 0 56px; }
  .card-pad-lg { padding: 28px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-a { padding-left: 0; }
  .card { padding: 24px; }
  .logo-name { font-size: .95rem; }
  .hero h1 { font-size: clamp(2.05rem, 8.6vw, 2.5rem); }
  .step { padding: 24px 0; }
  .btn { padding: 12px 18px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media print {
  .header, .cta-band, .footer, .aud-tabs { display: none; }
  body { font-size: 11pt; }
  .aud-panel { display: block !important; }
}
/* ============================================================
   DELIVERY CHAIN — the homepage hero graph
   A full-width diagram: business question -> definition ->
   SQL -> read-only execution -> governed answer, sitting on
   a three-layer Enterprise Data Engineering foundation.
   ============================================================ */

.chain {
  --chain-line: var(--line-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

/* --- top bar --- */
.chain-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  background: var(--ink-900);
  color: #fff;
}
.chain-top-title {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.chain-top-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: rgba(255,255,255,.55);
}

/* --- the flow row --- */
.chain-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  background: var(--paper);
}
.chain-step {
  padding: 26px 22px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.chain-step:last-child { border-right: 0; }

/* arrow between steps */
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -7px;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
  background: var(--paper);
  z-index: 2;
}

.chain-idx {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 12px;
}
.chain-step h4 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.chain-step p {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}
.chain-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--paper-3);
  color: var(--text-body);
  border: 1px solid var(--line);
}
.chain-tag-blue { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }
.chain-tag-teal { background: var(--teal-100); color: var(--teal); border-color: var(--teal-100); }
.chain-tag-amber { background: var(--amber-100); color: var(--amber); border-color: var(--amber-100); }
.chain-tag-violet { background: var(--violet-100); color: var(--violet); border-color: var(--violet-100); }

/* the highlighted step (the pivot from demo to delivery) */
.chain-step-pivot { background: var(--blue-50); }
.chain-step-pivot .chain-idx { color: var(--blue); }
.chain-step-pivot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--blue);
}

/* --- the query overlay: what a real answer carries --- */
.chain-query {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px 26px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.chain-q-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}
.chain-q-text {
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.6;
  color: var(--text-hi);
  background: var(--ink-900);
  color: rgba(255,255,255,.9);
  padding: 16px 18px;
  border-radius: var(--radius-m);
  margin: 0;
}
.chain-q-text .cur { color: #6EA8FE; }
.chain-q-text .lit { color: #86E0CE; }
.chain-q-text .amb { color: #F0B849; }
.chain-meta-list { margin: 0; padding: 0; list-style: none; }
.chain-meta-list li {
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.7;
  color: var(--text-body);
  border-bottom: 1px dashed var(--line-2);
  padding: 5px 0;
  display: flex;
  gap: 10px;
}
.chain-meta-list li:last-child { border-bottom: 0; }
.chain-meta-list li b {
  color: var(--text-faint);
  font-weight: 500;
  min-width: 88px;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.chain-meta-list li span { color: var(--text-hi); }

/* --- the foundation: three layers the flow stands on --- */
.chain-foundation {
  border-top: 2px solid var(--ink-900);
  background: var(--paper-3);
  padding: 24px 26px 26px;
}
.chain-foundation-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chain-foundation-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-900);
  font-weight: 600;
}
.chain-foundation-sub { font-size: .84rem; color: var(--text-mute); }
.chain-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chain-layer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  border-top: 3px solid var(--ink-900);
}
.chain-layer:nth-child(1) { border-top-color: var(--blue); }
.chain-layer:nth-child(2) { border-top-color: var(--teal); }
.chain-layer:nth-child(3) { border-top-color: var(--violet); }
.chain-layer h5 {
  margin: 0 0 6px;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.chain-layer p {
  margin: 0;
  font-size: .79rem;
  line-height: 1.5;
  color: var(--text-mute);
}
.chain-layer code {
  font-family: var(--font-mono);
  font-size: .72rem;
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-body);
}

/* --- legend under the graph --- */
.chain-legend {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-mute);
}
.chain-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chain-legend i {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}
.lg-blue { background: var(--blue); }
.lg-teal { background: var(--teal); }
.lg-violet { background: var(--violet); }
.lg-ink { background: var(--ink-900); }

@media (max-width: 1020px) {
  .chain-flow { grid-template-columns: repeat(2, 1fr); }
  .chain-step:nth-child(2n) { border-right: 0; }
  .chain-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chain-step::after { display: none; }
  .chain-query { grid-template-columns: 1fr; }
  .chain-layers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .chain-flow { grid-template-columns: 1fr; }
  .chain-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .chain-step:last-child { border-bottom: 0; }
  .chain-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   TWO-LEVEL NAVIGATION
   A primary item with a dropdown panel, mirroring the
   reference site: Platforms / Data Engineering / etc.
   ============================================================ */

.nav-item { position: relative; }

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: background .15s;
}
.nav-drop a:hover { background: var(--paper-3); }
.nav-drop .d-t {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.3;
  letter-spacing: -.008em;
}
.nav-drop .d-s {
  display: block;
  font-size: .76rem;
  color: var(--text-mute);
  line-height: 1.4;
  margin-top: 2px;
}
.nav-drop .d-t .num {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--blue);
  margin-right: 7px;
  letter-spacing: .06em;
}

/* the mega panel used by Platforms — wider, two columns with a rail */
.nav-drop-wide { width: 720px; grid-template-columns: 1fr 1fr; }
.nav-drop-rail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding: 12px 12px 4px;
  font-size: .76rem;
  color: var(--text-mute);
  line-height: 1.6;
}
.nav-drop-rail b { color: var(--text-hi); font-weight: 600; }

/* arrow caret on the parent */
.nav-caret {
  display: inline-block;
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  opacity: .5;
}

/* The parent link must look like a normal nav item, not a button. */
.nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  color: var(--text-mute);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 0 2px;
  white-space: nowrap;
  transition: color .15s;
}
.nav > .nav-item > a:hover { color: var(--text-hi); }
.nav > .nav-item > a[aria-current="page"] { color: var(--text-hi); }

/* Between 1080 and 820 the nav collapses into the toggle panel. The
   dropdowns become static blocks so every second-level page stays
   reachable on a small screen. */
@media (max-width: 1080px) {
  .nav > .nav-item > a { padding: 12px 14px; }
  .nav .nav-drop {
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 2px 0 6px 14px;
    background: transparent;
    grid-template-columns: 1fr;
    margin: 0 0 6px;
  }
  .nav .nav-drop a { padding: 8px 12px; }
  .nav .nav-drop-rail { border-left: 0; padding: 8px 12px; }
  .nav .nav-caret { display: none; }
  .nav .nav-drop .d-t { font-size: .84rem; }
  .nav .nav-drop .d-s { font-size: .74rem; }
}

/* ============================================================
   PRODUCT SUBPAGE — shared shell
   ============================================================ */

.prod-hero {
  padding: 64px 0 56px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.prod-crumbs {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.prod-crumbs a { color: var(--text-mute); text-decoration: none; }
.prod-crumbs a:hover { color: var(--blue); }
.prod-hero h1 {
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -.032em;
  max-width: 24ch;
  margin-bottom: 22px;
}
.prod-hero .lead {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--text-mute);
  max-width: 68ch;
  margin-bottom: 30px;
}
.prod-hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-mute);
}
.prod-hero-meta b { color: var(--text-hi); font-weight: 600; display: block; margin-bottom: 3px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* 4-up stat strip */
.prod-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.prod-stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.prod-stat:last-child { border-right: 0; }
.prod-stat .n {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}
.prod-stat h4 {
  font-size: .98rem;
  margin: 0 0 7px;
  letter-spacing: -.012em;
}
.prod-stat p {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0;
}

/* the DE spine — a compact repeating band */
.de-spine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
}
.de-spine > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.de-spine > div:last-child { border-right: 0; }
.de-spine .n {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.de-spine h4 { margin: 0 0 6px; font-size: .95rem; letter-spacing: -.012em; }
.de-spine p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--text-mute); }
.de-spine > div:nth-child(1) { border-top: 3px solid var(--blue); }
.de-spine > div:nth-child(2) { border-top: 3px solid var(--teal); }
.de-spine > div:nth-child(3) { border-top: 3px solid var(--violet); }

/* the "five questions" list */
.q-list { counter-reset: q; margin: 0; padding: 0; list-style: none; }
.q-list > li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.q-list > li:last-child { border-bottom: 0; }
.q-list > li::before {
  content: "Q" counter(q);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--blue);
  letter-spacing: .08em;
  padding-top: 3px;
}
.q-list h4 { margin: 0 0 6px; font-size: 1rem; letter-spacing: -.012em; }
.q-list p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--text-mute); }

/* the 90-day timeline */
.days { display: grid; gap: 0; }
.days-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.days-row:last-child { border-bottom: 0; }
.days-when {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 3px;
}
.days-row h4 { margin: 0 0 6px; font-size: 1rem; letter-spacing: -.012em; }
.days-row p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--text-mute); }

/* comparison table */
/* A table wider than its column must scroll inside its own box rather
   than pushing the page sideways. Grid children need min-width: 0 for the
   overflow to be contained at all. */
.tbl-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cols > * { min-width: 0; }

.prod-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.prod-tbl th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}
.prod-tbl td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-body);
}
.prod-tbl td strong { color: var(--text-hi); display: block; margin-bottom: 3px; }
.prod-tbl td .sub { display: block; font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
.prod-tbl tr:last-child td { border-bottom: 0; }
.prod-tbl tbody tr:hover { background: var(--paper-2); }

/* related-product strip at the bottom */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  background: var(--paper);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.rel-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.rel-card .d-t { display: block; font-size: .92rem; font-weight: 600; color: var(--text-hi); margin-bottom: 6px; letter-spacing: -.01em; }
.rel-card .d-s { display: block; font-size: .8rem; color: var(--text-mute); line-height: 1.5; }
.rel-card .d-n { display: block; font-family: var(--font-mono); font-size: .62rem; color: var(--text-faint); letter-spacing: .14em; margin-bottom: 9px; }

/* FAQ on the product page */
.prod-faq { max-width: 780px; }

/* the "what this page answers" box */
.answers-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: var(--blue-50);
  padding: 26px 30px;
}
.answers-box h4 { margin: 0 0 12px; font-size: 1.02rem; letter-spacing: -.012em; }
.answers-box ul { margin: 0; padding-left: 18px; }
.answers-box li { font-size: .89rem; line-height: 1.7; color: var(--text-body); margin-bottom: 4px; }
.answers-box li:last-child { margin-bottom: 0; }

@media (max-width: 1020px) {
  .nav-drop { width: 460px; }
  .nav-drop-wide { width: 560px; }
  .prod-stats { grid-template-columns: repeat(2, 1fr); }
  .prod-stat:nth-child(2) { border-right: 0; }
  .prod-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .de-spine { grid-template-columns: 1fr; }
  .de-spine > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .de-spine > div:last-child { border-bottom: 0; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-drop { display: none; }
  .prod-hero { padding: 48px 0 44px; }
  .prod-hero h1 { font-size: clamp(1.85rem, 6.6vw, 2.3rem); }
  .days-row { grid-template-columns: 1fr; gap: 8px; }
  .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prod-stats { grid-template-columns: 1fr; }
  .prod-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .prod-stat:last-child { border-bottom: 0; }
  .prod-tbl { display: block; overflow-x: auto; }
}

/* ============================================================
   ORIGIN — TRANSFORMATION COMPONENTS (v5)
   Service areas, demonstration library, data model, evidence
   chain, approval gate, three-mode comparison.
   ============================================================ */

/* ------------------------------------------------------------
   Brand / positioning
   ------------------------------------------------------------ */
.brand-lockup { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 1.02rem; font-weight: 600; letter-spacing: -.018em; color: var(--text-hi); line-height: 1.1; }
.brand-sub { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-mono); }

/* the enterprise capability chain: the site's central diagram */
.cap-chain {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
}
.cap-chain-step {
  position: relative;
  padding: 22px 18px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.cap-chain-step:last-child { border-right: 0; }
.cap-chain-step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -6px;
  width: 11px; height: 11px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
  background: var(--paper);
  z-index: 2;
}
.cap-chain-step:last-child::after { display: none; }
.cap-chain-n {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 9px;
}
.cap-chain-step h3 { font-size: .92rem; margin: 0 0 7px; letter-spacing: -.014em; line-height: 1.3; }
.cap-chain-step p { font-size: .78rem; line-height: 1.5; color: var(--text-mute); margin: 0; }
.cap-chain-step[data-tone="1"] { background: var(--blue-50); }
.cap-chain-step[data-tone="1"]::after { background: var(--blue-50); }
.cap-chain-step[data-tone="2"] { background: #F3FAF8; }
.cap-chain-step[data-tone="2"]::after { background: #F3FAF8; }
.cap-chain-step[data-tone="3"] { background: var(--paper-2); }
.cap-chain-step[data-tone="3"]::after { background: var(--paper-2); }
.cap-chain-step[data-tone="4"] { background: var(--paper-2); }
.cap-chain-step[data-tone="4"]::after { background: var(--paper-2); }
.cap-chain-step[data-tone="5"] { background: #FCF8F2; }
.cap-chain-step[data-tone="5"]::after { background: #FCF8F2; }
.cap-chain-step[data-tone="6"] { background: var(--ink-800); }
.cap-chain-step[data-tone="6"]::after { display: none; }
.cap-chain-step[data-tone="6"] h3 { color: #fff; }
.cap-chain-step[data-tone="6"] p { color: rgba(255,255,255,.62); }
.cap-chain-step[data-tone="6"] .cap-chain-n { color: rgba(255,255,255,.42); }

/* ------------------------------------------------------------
   Service areas
   ------------------------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.svc-card {
  background: var(--paper);
  padding: 34px 32px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background .16s;
}
.svc-card:hover { background: var(--paper-2); }
.svc-n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 14px; display: block; }
.svc-card h3 { font-size: 1.28rem; letter-spacing: -.022em; margin: 0 0 10px; line-height: 1.2; color: var(--text-hi); }
.svc-card .svc-tag { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; display: block; }
.svc-card p { font-size: .93rem; line-height: 1.62; color: var(--text-body); margin: 0 0 20px; flex: 1; }
.svc-list { list-style: none; margin: 0 0 22px; padding: 0; }
.svc-list li { font-size: .84rem; color: var(--text-mute); padding: 7px 0 7px 20px; position: relative; line-height: 1.5; border-top: 1px solid var(--line); }
.svc-list li:first-child { border-top: 0; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 1px; background: var(--line-strong); }
.svc-card .link-arrow { margin-top: auto; }
.svc-card[data-tone="1"] { border-top: 3px solid var(--blue); }
.svc-card[data-tone="2"] { border-top: 3px solid var(--teal); }
.svc-card[data-tone="3"] { border-top: 3px solid var(--amber); }
.svc-card[data-tone="4"] { border-top: 3px solid var(--violet); }
.svc-list li::marker { content: ""; }
.svc-card[data-tone="1"] .svc-list li::before { background: var(--blue); }
.svc-card[data-tone="2"] .svc-list li::before { background: var(--teal); }
.svc-card[data-tone="3"] .svc-list li::before { background: var(--amber); }
.svc-card[data-tone="4"] .svc-list li::before { background: var(--violet); }

/* ------------------------------------------------------------
   Demonstration library
   ------------------------------------------------------------ */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px 24px;
  background: var(--paper);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.demo-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.demo-card h3 { font-size: 1.06rem; letter-spacing: -.016em; margin: 0 0 9px; line-height: 1.28; color: var(--text-hi); }
.demo-card p { font-size: .87rem; line-height: 1.6; color: var(--text-body); margin: 0 0 18px; flex: 1; }
.demo-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px;
}
.demo-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.demo-status[data-kind="interactive"]::before { background: var(--teal); }
.demo-status[data-kind="prototype"]::before { background: var(--amber); }
.demo-status[data-kind="verified"]::before { background: var(--blue); }
.demo-status[data-kind="production"]::before { background: var(--violet); }
.demo-status[data-kind="planned"]::before { background: var(--line-strong); }

/* ------------------------------------------------------------
   Demonstration workspace
   ------------------------------------------------------------ */
.demo-shell { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); overflow: hidden; }
.demo-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.demo-bar-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--text-mute); }
.demo-bar-spacer { flex: 1; }
.demo-fict {
  font-family: var(--font-mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-100); border: 1px solid #F0DCC0;
  padding: 4px 10px; border-radius: 999px;
}
.demo-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--paper); }
.demo-tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 13px 18px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--text-mute);
  cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s;
}
.demo-tab:hover { color: var(--text-hi); }
.demo-tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.demo-panel { padding: 28px 24px; display: none; }
.demo-panel.active { display: block; }

/* results table */
.res-list { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.res-row {
  display: grid; grid-template-columns: 44px 1fr 168px 92px 118px;
  gap: 16px; align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: background .14s;
  text-align: left; width: 100%; border-left: 0; border-right: 0; border-top: 0;
  font: inherit;
}
.res-row:last-child { border-bottom: 0; }
.res-row:hover { background: var(--paper-2); }
.res-row[aria-selected="true"] { background: var(--blue-50); }
.res-score {
  font-family: var(--font-mono); font-size: 1.02rem; font-weight: 500;
  color: var(--text-hi); text-align: right;
}
.res-score[data-band="high"] { color: var(--amber); }
.res-score[data-band="mid"] { color: var(--text-hi); }
.res-score[data-band="low"] { color: var(--text-faint); }
.res-name { display: block; font-size: .93rem; font-weight: 500; color: var(--text-hi); }
.res-meta { display: block; font-size: .76rem; color: var(--text-mute); margin-top: 2px; }
.res-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.res-tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text-mute);
}
.res-tag[data-t="fail"] { color: var(--amber); border-color: #EBD5B4; background: var(--amber-100); }
.res-tag[data-t="flag"] { color: var(--text-body); border-color: var(--line-2); background: var(--paper-2); }
.res-tag[data-t="pass"] { color: var(--teal); border-color: #BFE6DE; background: var(--teal-100); }
.res-tag[data-t="appr"] { color: var(--violet); border-color: #D8CFF6; background: var(--violet-100); }
.res-empty { padding: 40px; text-align: center; color: var(--text-mute); font-size: .9rem; }

/* evidence chain */
.ev-item { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 10px; overflow: hidden; }
.ev-head {
  display: grid; grid-template-columns: 62px 1fr 132px 1fr; gap: 14px; align-items: baseline;
  padding: 13px 15px; background: var(--paper-2); cursor: pointer; width: 100%;
  border: 0; text-align: left; font: inherit;
}
.ev-head:hover { background: var(--paper-3); }
.ev-rule { font-family: var(--font-mono); font-size: .72rem; color: var(--blue); }
.ev-title { font-size: .88rem; font-weight: 500; color: var(--text-hi); }
.ev-out { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; }
.ev-out[data-o="Fail"] { color: var(--amber); }
.ev-out[data-o="Flagged"] { color: var(--violet); }
.ev-out[data-o="Pass"] { color: var(--teal); }
.ev-out[data-o="NotApplicable"] { color: var(--text-faint); }
.ev-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: none; }
.ev-item.open .ev-body { display: block; }
.ev-msg { font-size: .87rem; line-height: 1.65; color: var(--text-body); margin: 0 0 14px; }
.ev-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-ref {
  font-family: var(--font-mono); font-size: .63rem; padding: 3px 8px;
  background: var(--paper-3); border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-mute);
}
.ev-detail { margin-top: 12px; }
.ev-detail table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ev-detail th { text-align: left; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 6px 10px; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.ev-detail td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--text-body); }
.ev-note { font-size: .78rem; color: var(--text-faint); font-style: italic; margin-top: 10px; }

/* approval gate */
.gate {
  border: 1px solid var(--line); border-radius: var(--radius-m);
  border-left: 3px solid var(--violet);
  padding: 22px 22px 20px; background: var(--paper);
}
.gate[data-state="approved"] { border-left-color: var(--teal); background: #F5FBF9; }
.gate[data-state="rejected"] { border-left-color: var(--amber); background: #FDFAF5; }
.gate-label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.gate h4 { font-size: 1.05rem; letter-spacing: -.014em; margin: 0 0 10px; }
.gate p { font-size: .88rem; line-height: 1.6; color: var(--text-body); margin: 0 0 16px; }
.gate-role { font-family: var(--font-mono); font-size: .74rem; color: var(--violet); }
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.gate-form .fld { flex: 1; min-width: 200px; }
.gate-form label { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.gate-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); font: inherit; font-size: .88rem; background: var(--paper); color: var(--text-hi);
}
.gate-form input:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus); }
.gate-msg { font-size: .82rem; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-s); display: none; }
.gate-msg[data-state="ok"] { display: block; background: var(--teal-100); color: #075E50; border: 1px solid #BFE6DE; }
.gate-msg[data-state="err"] { display: block; background: var(--amber-100); color: #7A3B06; border: 1px solid #F0DCC0; }
.gate-msg[data-state="err"] { background: #FCEDEC; color: #8A2B22; border-color: #F0C9C4; }

/* data model diagram */
.dm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dm-entity { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); overflow: hidden; }
.dm-entity h4 {
  margin: 0; padding: 10px 13px; font-size: .82rem; font-weight: 600; letter-spacing: -.008em;
  background: var(--ink-800); color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.dm-entity h4 span { font-family: var(--font-mono); font-size: .6rem; color: rgba(255,255,255,.45); font-weight: 400; }
.dm-cols { list-style: none; margin: 0; padding: 0; }
.dm-cols li { font-family: var(--font-mono); font-size: .68rem; color: var(--text-mute); padding: 5px 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.dm-cols li:first-child { border-top: 0; }
.dm-cols li b { color: var(--text-hi); font-weight: 500; }
.dm-cols li em { font-style: normal; color: var(--text-faint); font-size: .62rem; }
.dm-cols li[data-pk="1"] { background: var(--blue-50); }
.dm-rel { grid-column: 1 / -1; font-size: .78rem; color: var(--text-faint); text-align: center; padding: 4px 0; font-family: var(--font-mono); letter-spacing: .04em; }

/* schema table */
.schema-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.schema-tbl th { text-align: left; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding: 8px 12px; border-bottom: 1px solid var(--line-strong); font-weight: 500; }
.schema-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text-body); font-family: var(--font-mono); font-size: .74rem; }
.schema-tbl td:first-child { color: var(--text-hi); font-weight: 500; }
.schema-tbl tr:last-child td { border-bottom: 0; }
.schema-tbl tbody tr:hover { background: var(--paper-2); }

/* three-mode comparison */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.mode { background: var(--paper); padding: 26px 22px 24px; display: flex; flex-direction: column; }
.mode-n { font-family: var(--font-mono); font-size: 1.5rem; color: var(--line-strong); line-height: 1; margin-bottom: 12px; }
.mode[data-active="1"] { background: var(--paper-2); }
.mode[data-active="1"] .mode-n { color: var(--blue); }
.mode h4 { font-size: 1rem; letter-spacing: -.014em; margin: 0 0 10px; line-height: 1.3; }
.mode > p { font-size: .85rem; line-height: 1.6; color: var(--text-body); margin: 0 0 18px; }
.mode-q {
  font-size: .86rem; line-height: 1.65; color: var(--text-hi);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 15px; margin: 0 0 18px; font-style: italic;
}
.mode[data-active="1"] .mode-q { background: var(--paper); border-color: var(--line-2); }
.mode-cap { list-style: none; margin: 0 0 14px; padding: 0; }
.mode-cap li { font-size: .8rem; line-height: 1.5; color: var(--text-body); padding: 6px 0 6px 20px; position: relative; }
.mode-cap li::before { content: "✓"; position: absolute; left: 0; top: 6px; font-size: .74rem; color: var(--teal); }
.mode-cannot { list-style: none; margin: 0; padding: 0; }
.mode-cannot li { font-size: .8rem; line-height: 1.5; color: var(--text-mute); padding: 6px 0 6px 20px; position: relative; }
.mode-cannot li::before { content: "✕"; position: absolute; left: 1px; top: 6px; font-size: .7rem; color: var(--text-faint); }
.mode-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px; }

/* transparency table */
.tp-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tp-tbl th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); font-size: .74rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.tp-tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-body); vertical-align: top; line-height: 1.55; }
.tp-tbl td:first-child { color: var(--text-hi); font-weight: 500; width: 34%; }
.tp-tbl tr:last-child td { border-bottom: 0; }
.tp-state { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.tp-state[data-s="real"] { color: var(--teal); background: var(--teal-100); }
.tp-state[data-s="sim"] { color: var(--amber); background: var(--amber-100); }
.tp-state[data-s="none"] { color: var(--text-faint); background: var(--paper-3); }

/* Production correspondence table (demonstration page, component G) */
.cp-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cp-tbl th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); font-size: .74rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.cp-tbl td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--text-body); vertical-align: top; line-height: 1.55; }
.cp-tbl td:first-child { color: var(--text-hi); width: 17%; }
.cp-tbl td:nth-child(2) { width: 27%; color: var(--text-mute); }
.cp-tbl td:nth-child(3) { width: 36%; }
.cp-tbl tr:last-child td { border-bottom: 0; }
.cp-scope { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: 2px 7px; border-radius: 3px; display: inline-block; }
.cp-tbl code { font-size: .8em; }

/* On narrow screens a four-column table cannot be compressed without cutting
   words off. Each row becomes a labelled stack instead. */
@media (max-width: 820px) {
  .cp-tbl, .cp-tbl tbody, .cp-tbl tr, .cp-tbl td { display: block; width: 100%; }
  .cp-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cp-tbl tr { border-bottom: 1px solid var(--line-strong); padding: 18px 0; }
  .cp-tbl tr:last-child { border-bottom: 0; }
  .cp-tbl td { border-bottom: 0; padding: 0 0 10px; width: 100% !important; }
  .cp-tbl td:last-child { padding-bottom: 0; }
  .cp-tbl td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 5px;
  }
  .cp-tbl td:first-child { font-size: 1rem; margin-bottom: 4px; }
  .cp-tbl td:first-child::before { content: none; }
  .cp-tbl td:nth-child(2) { color: var(--text-mute); }
}

/* data table for records */
.dt-wrap { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: auto; max-height: 460px; }
.dt-tbl { width: 100%; border-collapse: collapse; font-size: .78rem; }
.dt-tbl th {
  position: sticky; top: 0; background: var(--paper-2); text-align: left; z-index: 1;
  padding: 9px 12px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500; white-space: nowrap;
}
.dt-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text-body); font-family: var(--font-mono); font-size: .72rem; white-space: nowrap; }
.dt-tbl tbody tr:hover { background: var(--paper-2); }

/* ------------------------------------------------------------
   Engagement / project types
   ------------------------------------------------------------ */
.eng-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.eng-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 22px; background: var(--paper); }
.eng-card h3 { font-size: 1.04rem; letter-spacing: -.016em; margin: 0 0 10px; }
.eng-card .eng-outcome { font-size: .9rem; line-height: 1.6; color: var(--text-body); margin: 0 0 16px; }
.eng-card h4 { font-size: .74rem; font-family: var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px; font-weight: 500; }
.eng-card ul { margin: 0 0 4px; padding-left: 17px; }
.eng-card li { font-size: .84rem; line-height: 1.55; color: var(--text-mute); margin-bottom: 5px; }

/* ------------------------------------------------------------
   Article layout
   ------------------------------------------------------------ */
.article { max-width: 720px; }
.article h2 { font-size: 1.5rem; letter-spacing: -.022em; margin: 40px 0 14px; line-height: 1.25; }
.article h3 { font-size: 1.1rem; letter-spacing: -.016em; margin: 30px 0 10px; }
.article p { font-size: 1rem; line-height: 1.72; color: var(--text-body); margin: 0 0 17px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { font-size: .98rem; line-height: 1.68; color: var(--text-body); margin-bottom: 8px; }
.article code { font-family: var(--font-mono); font-size: .86em; background: var(--paper-3); padding: 2px 5px; border-radius: 3px; }
.article blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); }
.article blockquote p { font-size: 1.02rem; line-height: 1.6; color: var(--text-hi); font-style: italic; }
.article-lede { font-size: 1.1rem; line-height: 1.62; color: var(--text-hi); margin-bottom: 24px; }

/* article index cards */
.post-list { border-top: 1px solid var(--line); }
.post-item { display: grid; grid-template-columns: 1fr 200px; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-item:hover h3 { color: var(--blue); }
.post-item h3 { font-size: 1.16rem; letter-spacing: -.018em; margin: 0 0 8px; line-height: 1.3; transition: color .15s; }
.post-item p { font-size: .9rem; line-height: 1.6; color: var(--text-body); margin: 0; }
.post-item .post-meta { font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint); letter-spacing: .06em; margin-top: 10px; display: block; }
.post-kicker { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 9px; display: block; }

/* ------------------------------------------------------------
   Partnerships
   ------------------------------------------------------------ */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.partner-cell { background: var(--paper); padding: 24px 22px; }
.partner-cell h3 { font-size: .98rem; letter-spacing: -.012em; margin: 0 0 8px; }
.partner-cell p { font-size: .85rem; line-height: 1.6; color: var(--text-body); margin: 0; }
.split-model { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.split-model > div { background: var(--paper); padding: 30px 28px; }
.split-model h3 { font-size: 1.06rem; letter-spacing: -.016em; margin: 0 0 8px; }
.split-model .sm-role { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; display: block; }
.split-model ul { margin: 0; padding-left: 17px; }
.split-model li { font-size: .88rem; line-height: 1.6; color: var(--text-body); margin-bottom: 7px; }

/* ------------------------------------------------------------
   Contact / form
   ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.fld label { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.fld label .req { color: var(--amber); }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  font: inherit; font-size: .92rem; background: var(--paper); color: var(--text-hi);
}
.fld textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"], .fld select[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.fld .err { display: none; font-size: .76rem; color: #A3302A; margin-top: 6px; }
.fld.invalid .err { display: block; }
.fld .hint { font-size: .76rem; color: var(--text-faint); margin-top: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color .15s, background .15s; background: var(--paper);
}
.choice:hover { border-color: var(--line-strong); background: var(--paper-2); }
.choice input { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.choice span { font-size: .87rem; line-height: 1.45; color: var(--text-body); }
.choice.on { border-color: var(--blue); background: var(--blue-50); }
.form-status { margin-top: 18px; padding: 15px 17px; border-radius: var(--radius-s); font-size: .89rem; line-height: 1.6; display: none; }
.form-status[data-state="ok"] { display: block; background: var(--teal-100); border: 1px solid #BFE6DE; color: #075E50; }
.form-status[data-state="err"] { display: block; background: #FCEDEC; border: 1px solid #F0C9C4; color: #8A2B22; }
.form-note { font-size: .8rem; color: var(--text-faint); line-height: 1.6; margin-top: 14px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .cap-chain { grid-template-columns: repeat(3, 1fr); }
  .cap-chain-step:nth-child(3n) { border-right: 0; }
  .cap-chain-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cap-chain-step:nth-child(3)::after { display: none; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: 1fr; }
  .dm-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .svc-grid { grid-template-columns: 1fr; }
  .res-row { grid-template-columns: 40px 1fr; gap: 8px 12px; }
  .res-tags { grid-column: 2; }
  .res-score { text-align: left; }
  .ev-head { grid-template-columns: 1fr; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .split-model { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .cap-chain { grid-template-columns: 1fr; }
  .cap-chain-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .cap-chain-step:last-child { border-bottom: 0; }
  .cap-chain-step::after { display: none; }
  .demo-grid, .eng-grid, .dm-grid, .partner-grid { grid-template-columns: 1fr; }
  .demo-panel { padding: 20px 16px; }
  .svc-card { padding: 26px 20px; }
}

/* ------------------------------------------------------------
   Service page: ordered work steps and side panels
   ------------------------------------------------------------ */
.de-steps { border-top: 1px solid var(--line); max-width: 900px; }
.de-step {
  display: grid; grid-template-columns: 68px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.de-step-n {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  color: var(--text-faint); padding-top: 4px;
}
.de-step h3 { font-size: 1.06rem; letter-spacing: -.016em; margin: 0 0 8px; }
.de-step p { font-size: .93rem; line-height: 1.65; color: var(--text-body); margin: 0; max-width: 72ch; }

.prod-panel {
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper); padding: 28px 26px;
}
.prod-panel h3 { font-size: 1.06rem; letter-spacing: -.016em; margin: 0 0 18px; }
.prod-panel .svc-list li { font-size: .88rem; }

@media (max-width: 560px) {
  .de-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ------------------------------------------------------------
   Header fit: the eight-item navigation plus a CTA needs a
   little less air before the navigation collapses at 1080px.
   ------------------------------------------------------------ */
@media (max-width: 1300px) {
  .nav > a, .nav > .nav-item > a { padding: 8px 10px; font-size: .86rem; }
  .header-in { gap: 20px; }
  .logo-name { font-size: .98rem; }
  .logo-name span { font-size: .5rem; letter-spacing: .08em; }
}
@media (max-width: 1180px) {
  .nav > a, .nav > .nav-item > a { padding: 8px 8px; font-size: .84rem; }
  .header-in { gap: 14px; }
  .header-cta .btn-sm { padding: 8px 12px; font-size: .82rem; }
}
/* Long email addresses in the contact panel must not push the layout. */
.prod-panel a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------
   Any multi-column layout collapses to one column on small
   screens, including the ones that set grid-template-columns
   inline (inline styles would otherwise beat the media query).
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cols > * { min-width: 0 !important; }
  .de-spine { grid-template-columns: 1fr !important; }
  .de-spine > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .de-spine > div:last-child { border-bottom: 0; }
  .split-model { grid-template-columns: 1fr !important; }
  .mode-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .prod-panel { padding: 22px 18px; }
  .prod-hero-meta { gap: 18px; }
  .de-step { grid-template-columns: 1fr !important; gap: 8px; }
}

/* ============================================================
   Field Intelligence
   ============================================================ */

/* --- hero --- */
.fi-hero {
  background: var(--ink-800);
  color: #fff;
  padding: 82px 0 74px;
  position: relative;
  overflow: hidden;
}
.fi-hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,82,216,.30), transparent 66%);
  pointer-events: none;
}
.fi-hero .wrap { position: relative; z-index: 1; }
.fi-hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: -.035em;
  line-height: 1.03;
  margin: 14px 0 0;
  font-weight: 600;
  color: #fff;
}
.fi-hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.06rem, 2.6vw, 1.36rem);
  color: #A9C4FF;
  margin: 16px 0 0;
  letter-spacing: -.01em;
}
.fi-hero-lede {
  font-size: clamp(1rem, 2.1vw, 1.09rem);
  line-height: 1.62;
  color: rgba(255,255,255,.76);
  max-width: 60ch;
  margin: 22px 0 0;
}
.fi-hero-facts {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.fi-hero-facts div {
  font-size: .8rem; color: rgba(255,255,255,.58);
  letter-spacing: .01em;
}
.fi-hero-facts b {
  display: block;
  font-size: 1.5rem; font-weight: 600; color: #fff;
  letter-spacing: -.02em; margin-bottom: 2px;
}

/* --- featured article --- */
.fi-featured { padding: 56px 0 60px; }
.fi-featured-card {
  display: grid; grid-template-columns: 1.85fr 1fr; gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.fi-featured-body { padding: 38px 40px; }
.fi-featured-body h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  letter-spacing: -.028em; line-height: 1.2; margin: 14px 0 14px;
}
.fi-featured-body h2 a { color: var(--text-hi); text-decoration: none; }
.fi-featured-body h2 a:hover { color: var(--blue); }
.fi-featured-body p {
  font-size: 1rem; line-height: 1.68; color: var(--text-body); margin: 0 0 20px;
  max-width: 62ch;
}
.fi-featured-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--text-mute);
}
.fi-featured-meta a { color: var(--text-mute); text-decoration: none; }
.fi-featured-meta a:hover { color: var(--blue); }
.fi-featured-side {
  background: var(--paper-2);
  border-left: 1px solid var(--line);
  padding: 38px 32px;
}
.fi-featured-side h4 {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 0 0 12px; font-weight: 500;
}
.fi-featured-side p { font-size: .9rem; line-height: 1.64; color: var(--text-body); margin: 0; }

/* --- collection grid --- */
.fi-colls-head { max-width: 720px; margin-bottom: 38px; }
.fi-colls-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.028em; margin: 12px 0 12px; }
.fi-colls-head p { font-size: 1rem; line-height: 1.66; color: var(--text-body); margin: 0; }
.fi-coll-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-m); overflow: hidden;
}
.fi-coll-card {
  background: var(--paper); padding: 26px 24px 24px;
  text-decoration: none; display: block;
  transition: background .15s;
}
.fi-coll-card:hover { background: var(--blue-50); }
.fi-coll-card:hover h3 { color: var(--blue); }
.fi-coll-ord {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  color: var(--text-faint); display: block; margin-bottom: 12px;
}
.fi-coll-card h3 {
  font-size: 1.02rem; letter-spacing: -.016em; line-height: 1.3;
  margin: 0 0 9px; color: var(--text-hi); transition: color .15s;
}
.fi-coll-card p { font-size: .86rem; line-height: 1.6; color: var(--text-mute); margin: 0 0 12px; }
.fi-coll-count {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em;
  color: var(--text-faint); text-transform: uppercase;
}

/* --- library controls --- */
.fi-lib-head { margin-bottom: 26px; }
.fi-lib-head h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); letter-spacing: -.028em; margin: 12px 0 0; }
.fi-controls {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  margin-bottom: 30px;
}
.fi-search { margin-bottom: 18px; }
.fi-search label, .fi-filter label {
  display: block;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px;
}
.fi-search input {
  width: 100%; max-width: 560px;
  font-family: var(--font-sans); font-size: .95rem; color: var(--text-hi);
  padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--paper);
}
.fi-search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: var(--shadow-focus);
}
.fi-filters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.fi-filter select {
  width: 100%;
  font-family: var(--font-sans); font-size: .88rem; color: var(--text-hi);
  padding: 9px 11px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--paper);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C7789' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 30px;
}
.fi-filter select:focus {
  outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus);
}
.fi-filter-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--line);
}
.fi-count {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--text-mute);
}
.fi-clear {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--blue); background: none; border: 0; cursor: pointer;
  padding: 4px 0; text-decoration: underline; text-underline-offset: 3px;
}
.fi-clear:hover { color: var(--blue-600); }

/* --- article cards --- */
.fi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fi-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fi-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-s);
  transform: translateY(-2px);
}
.fi-card:hover h3 { color: var(--blue); }
.fi-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 13px;
}
.fi-tag {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 3px 8px; border-radius: 3px;
  display: inline-block;
}
.fi-num {
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint);
  letter-spacing: .06em;
}
.fi-card h3 {
  font-size: 1.02rem; letter-spacing: -.016em; line-height: 1.32;
  margin: 0 0 10px; color: var(--text-hi); transition: color .15s;
}
.fi-card p {
  font-size: .87rem; line-height: 1.62; color: var(--text-body);
  margin: 0 0 16px; flex: 1;
}
.fi-card-meta {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .05em;
  color: var(--text-faint); padding-top: 12px; border-top: 1px solid var(--line);
}

.fi-more-wrap { margin-top: 32px; }
/* The remaining articles exist in the HTML for crawlers and for readers
   without JavaScript, but they stay off screen until the reader asks for
   them, so the library never shows fifty summaries at once. */
.fi-deferred { display: none; }
.fi-nojs {
  font-size: .92rem; color: var(--text-mute); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  margin: 0 0 20px; max-width: 72ch;
}
.fi-empty { text-align: center; padding: 48px 20px; }
.fi-empty h3 { font-size: 1.15rem; letter-spacing: -.016em; margin: 0 0 10px; }
.fi-empty p { font-size: .92rem; color: var(--text-mute); margin: 0 auto; max-width: 48ch; }
.fi-load-wrap { display: flex; justify-content: center; margin-top: 34px; }
.fi-load-wrap[hidden] { display: none; }

/* --- collection page --- */
.fi-collection-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 46px;
}
.fi-collection-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  letter-spacing: -.032em; line-height: 1.08; margin: 14px 0 0;
}
.fi-standfirst {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.04rem, 2.4vw, 1.22rem);
  line-height: 1.5; color: var(--text-body);
  max-width: 60ch; margin: 18px 0 0;
}
.fi-coll-facts {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fi-coll-facts div { font-size: .82rem; color: var(--text-body); max-width: 34ch; }
.fi-coll-facts b {
  display: block; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 500;
}
.fi-coll-purpose {
  font-size: .95rem; line-height: 1.68; color: var(--text-mute);
  max-width: 78ch; margin: 22px 0 0;
}
.fi-list-h {
  font-size: 1.32rem; letter-spacing: -.02em; margin: 0 0 26px;
}
.fi-coll-links { display: flex; flex-wrap: wrap; gap: 10px; }
.fi-coll-links a {
  font-size: .84rem; color: var(--text-body);
  background: var(--paper); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 100px; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.fi-coll-links a:hover { border-color: var(--blue); color: var(--blue); }

/* --- article page --- */
.fi-article-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 50px 0 44px;
}
.fi-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--text-faint); margin-bottom: 20px;
}
.fi-dot { color: var(--line-strong); }
.fi-article-head h1 {
  font-size: clamp(1.85rem, 4.6vw, 2.6rem);
  letter-spacing: -.032em; line-height: 1.12; margin: 0;
  max-width: 22ch;
}
.fi-byline {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .82rem; flex: none;
}
.fi-byline strong { display: block; font-size: .88rem; color: var(--text-hi); font-weight: 600; }
.fi-byline-sub { font-size: .78rem; color: var(--text-faint); }

.fi-article-body { padding: 52px 0 60px; }
.fi-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px;
  gap: 56px; align-items: start;
}
.fi-prose { max-width: 720px; }
.fi-prose h2 {
  font-size: 1.5rem; letter-spacing: -.022em; margin: 44px 0 15px; line-height: 1.25;
  scroll-margin-top: 90px;
}
.fi-prose h2:first-child { margin-top: 0; }
.fi-prose h3 {
  font-size: 1.08rem; letter-spacing: -.016em; margin: 30px 0 10px;
}
.fi-prose p {
  font-size: 1.02rem; line-height: 1.74; color: var(--text-body); margin: 0 0 18px;
}
.fi-prose ul, .fi-prose ol { margin: 0 0 20px; padding-left: 22px; }
.fi-prose li {
  font-size: .99rem; line-height: 1.68; color: var(--text-body); margin-bottom: 9px;
}
.fi-prose li::marker { color: var(--text-faint); }
.fi-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.fi-prose a:hover { color: var(--blue-600); }
.fi-prose strong { color: var(--text-hi); font-weight: 600; }

.fi-check { list-style: none; padding-left: 0 !important; }
.fi-check li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
}
.fi-check li::before {
  content: "";
  position: absolute; left: 4px; top: .52em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.fi-callout {
  border-left: 3px solid var(--blue);
  background: var(--blue-50);
  padding: 18px 22px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 26px 0;
}
.fi-callout p {
  font-size: .97rem; line-height: 1.66; color: var(--text-hi);
  margin: 0; font-weight: 500;
}
.fi-quote {
  margin: 30px 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--violet);
}
.fi-quote p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.14rem; line-height: 1.5; color: var(--text-hi); margin: 0;
}
.fi-cap {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); margin: 26px 0 10px;
}
.fi-tbl-wrap { overflow-x: auto; margin: 22px 0 26px; }
.fi-tbl {
  width: 100%; border-collapse: collapse; font-size: .88rem;
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.fi-tbl th {
  background: var(--paper-3); text-align: left; font-weight: 600;
  color: var(--text-hi); padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: .8rem; letter-spacing: -.008em;
}
.fi-tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--text-body); vertical-align: top; line-height: 1.6;
}
.fi-tbl tr:last-child td { border-bottom: 0; }

.fi-rail { position: sticky; top: 96px; }
.fi-rail-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
  margin-bottom: 16px;
}
.fi-rail-box h4 {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 0 0 12px; font-weight: 500;
}
.fi-rail-note { font-size: .84rem; line-height: 1.6; color: var(--text-mute); margin: 0 0 14px; }
.fi-rail-link {
  font-size: .92rem; color: var(--text-hi); text-decoration: none;
  font-weight: 600; display: block; margin-bottom: 8px;
}
.fi-rail-link:hover { color: var(--blue); }

.fi-related-h { font-size: 1.32rem; letter-spacing: -.02em; margin: 12px 0 24px; }
.fi-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fi-rel {
  display: block; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px;
  transition: border-color .15s, transform .15s;
}
.fi-rel:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.fi-rel:hover strong { color: var(--blue); }
.fi-rel-coll {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.fi-rel strong {
  display: block; font-size: .96rem; line-height: 1.34; letter-spacing: -.014em;
  color: var(--text-hi); margin-bottom: 10px; transition: color .15s;
}
.fi-rel-read { font-family: var(--font-mono); font-size: .64rem; color: var(--text-faint); }

.fi-policy h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); letter-spacing: -.028em; margin: 12px 0 32px; }

/* --- responsive --- */
@media (max-width: 1020px) {
  .fi-featured-card { grid-template-columns: 1fr; }
  .fi-featured-side { border-left: 0; border-top: 1px solid var(--line); }
  .fi-grid { grid-template-columns: repeat(2, 1fr); }
  .fi-coll-grid { grid-template-columns: repeat(2, 1fr); }
  .fi-layout { grid-template-columns: 1fr; gap: 36px; }
  .fi-rail { position: static; }
  .fi-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .fi-rail-box { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .fi-filters { grid-template-columns: repeat(2, 1fr); }
  .fi-tbl, .fi-tbl tbody, .fi-tbl tr, .fi-tbl th, .fi-tbl td { display: block; width: 100%; }
  .fi-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fi-tbl tr { border-bottom: 1px solid var(--line-strong); padding: 14px 0; }
  .fi-tbl tr:last-child { border-bottom: 0; }
  .fi-tbl td { border-bottom: 0; padding: 0 0 8px; }
  .fi-tbl td::before {
    content: attr(data-label); display: block;
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px;
  }
  .fi-tbl td:last-child { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .fi-grid { grid-template-columns: 1fr; }
  .fi-coll-grid { grid-template-columns: 1fr; }
  .fi-rel-grid { grid-template-columns: 1fr; }
  .fi-rail { grid-template-columns: 1fr; }
  .fi-hero { padding: 60px 0 54px; }
  .fi-featured-body { padding: 28px 22px; }
  .fi-featured-side { padding: 26px 22px; }
  .fi-article-head { padding: 38px 0 34px; }
  .fi-article-head h1 { max-width: none; }
  .fi-collection-head { padding: 40px 0 36px; }
  .fi-prose h2 { font-size: 1.3rem; margin-top: 36px; }
  .fi-prose p { font-size: 1rem; }
}
@media (max-width: 560px) {
  .fi-filters { grid-template-columns: 1fr; }
  .fi-filter-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fi-hero-facts { gap: 22px; }
}

/* --- home: Field Intelligence band --- */
.fi-home-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fi-home-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 26px 24px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fi-home-card:hover {
  border-color: var(--line-strong); box-shadow: var(--shadow-s);
  transform: translateY(-2px);
}
.fi-home-card:hover h3 { color: var(--blue); }
.fi-home-kicker {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 3px 8px; border-radius: 3px; align-self: flex-start;
  margin-bottom: 14px;
}
.fi-home-card h3 {
  font-size: 1.04rem; letter-spacing: -.018em; line-height: 1.32;
  margin: 0 0 10px; color: var(--text-hi); transition: color .15s;
}
.fi-home-card p {
  font-size: .87rem; line-height: 1.62; color: var(--text-body);
  margin: 0 0 18px; flex: 1;
}
.fi-home-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue);
}
.fi-home-more svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .fi-home-grid { grid-template-columns: 1fr; }
}
