@charset "utf-8";

/* ==========================================================================
   Parabole.ai — consolidated design system
   One stylesheet for every page. Tokens first, then primitives, then
   components (roughly top-of-page to bottom-of-page), then page-specific
   blocks, then responsive overrides. Add new component rules near related
   ones and keep the responsive block at the bottom in sync.
   ========================================================================== */

:root {
  --paper: #F1F2F3;
  --paper-2: #E7E9EA;
  --ink: #15181A;
  --ink-2: #454C51;
  --rule: #C6CACD;
  --panel: #0D1012;
  --panel-2: #191E21;
  --panel-rule: #394247;
  --steel: #5E656B;
  --signal: #15181A;
  --nav-active: #1C5FD6;
  --max: 1240px;
  --header-h: 60px;

  /* Apple-style thin type: SF Pro on Apple platforms, native UI font elsewhere */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
  overflow-x: clip;
}

/* Smooth anchor-jump scrolling on desktop/mouse only: on touch devices
   (mobile) a global scroll-behavior: smooth fights native touch momentum
   scrolling, making the whole page feel sticky and laggy. */
@media (pointer: fine) {
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.05;
}

h3, h4 { font-weight: 400; }

p { margin: 0; }

/* --- layout primitives ---------------------------------------------------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rule-t { border-top: 1px solid var(--rule); }

.tm {
  font-family: Jost, Archivo, system-ui, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: calc(1em + 1.33333px);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-synthesis: none;
  white-space: nowrap;
}
.tm i { font-style: italic; font-weight: 300; letter-spacing: 0.055em; padding-right: 0.04em; }

:focus-visible { outline: 2px solid #6E767D; outline-offset: 2px; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-lite { border-color: #4A5257; color: #E7E9EA; }
.btn-lite:hover { background: #E7E9EA; color: var(--panel); }

/* --- site header (rendered by <site-header>) --------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 243, 0.96);
  border-bottom: 1px solid var(--rule);
}
.hdr .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo span { color: var(--steel); }
.hdr .logo img { display: block; height: 22px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
/* current page / active dropdown / active press — the one blue accent */
.nav > a[aria-current],
.nav-group.active > a,
.nav-sub.active > a,
.nav a:active { color: var(--nav-active); }

/* nav dropdown — a nav item with `children`, nested to any depth */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: -3px 0 0 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
  opacity: 0.5;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  min-width: 214px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 60;
}
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-group:hover > .nav-menu,
.nav-group:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-menu a,
.nav-menu .nav-sub > a { padding: 9px 12px; white-space: nowrap; line-height: 1.3; }
.nav-menu a:hover,
.nav-menu .nav-sub > a:hover { background: rgba(0, 0, 0, 0.04); }

/* nested item: side flyout */
.nav-sub { position: relative; }
.nav-sub > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-sub > a::after {
  content: "‹";
  color: var(--steel);
  font-size: 13px;
  line-height: 1;
}
.nav-menu-side {
  top: -9px;
  right: 100%;
  left: auto;
  transform: none;
  z-index: 61;
}
.nav-menu-side::before {
  content: "";
  position: absolute;
  right: -12px;
  left: auto;
  top: 0;
  width: 12px;
  height: 100%;
}
.nav-sub:hover > .nav-menu,
.nav-sub:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--ink);
  background: transparent;
  width: 38px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -5px; }
.nav-toggle span::after { content: ""; position: absolute; top: 5px; }

/* --- section scaffolding ---------------------------------------------- */

.sec { padding: 96px 0; }

.sec-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 25ch; }
.sec-head .lede { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 62ch; }

/* --- hero ------------------------------------------------------------- */

.hero { padding: 64px 0 72px; }
.heroline { border-top: 1px solid var(--ink); padding-top: 26px; margin-bottom: 52px; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.hero .eyebrow { margin-bottom: 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 64px;
  align-items: start;
}
.hero .sub { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 48ch; }
.hero .acts { margin-top: 32px; margin-bottom: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 44ch; }
.hero-note p { font-size: 16px; color: var(--ink-2); }
.hero-fig {
  margin: 64px 0 0;
  width: min(1440px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
}
.hero-fig img, .hero-fig svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--paper); }
.hero-fig figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); max-width: 90ch; }
.hero-anim-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 5px 14px 5px 5px;
}
.hero-anim-toggle {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease;
}
.hero-anim-toggle:hover { background: var(--paper-2); }
.hero-anim-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero-anim-toggle svg { width: 12px; height: 12px; display: block; }
.hero-anim-speed { display: flex; align-items: center; gap: 8px; cursor: default; }
.hero-anim-speed input[type="range"] {
  width: 78px;
  accent-color: var(--ink);
  cursor: pointer;
}
.hero-anim-speed-val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-2);
  width: 3.4em;
  text-align: right;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 44px auto 4px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue .tri {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid currentColor;
  animation: scroll-bob 1.8s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* investors hero variant */
.ivhero { padding: 92px 0 72px; }
.ivhero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.99;
  letter-spacing: -0.02em;
  max-width: 23ch;
  color: var(--ink);
}
.ivhero .lead { margin-top: 30px; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }

/* --- proof strip ---------------------------------------------------- */

.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); padding: 22px 0; }
.proof .wrap { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.proof .k { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); flex: 0 0 auto; }
.proof p { font-size: 16.5px; color: var(--ink-2); max-width: 76ch; }

/* --- stat band ------------------------------------------------------- */

.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.st { padding: 34px 26px 34px 0; border-right: 1px solid var(--rule); }
.st:last-child { border-right: 0; }
.st .n { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.st .d { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); max-width: 26ch; }
.st .src { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.st .src .basis { color: var(--steel); }

/* --- three-column method block ------------------------------------- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.col { padding: 34px 34px 8px 0; border-right: 1px solid var(--rule); }
.col:last-child { border-right: 0; padding-right: 0; }
.col h3 { font-size: 21px; letter-spacing: -0.02em; }
.col p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.col .tag { margin-bottom: 16px; }

/* --- numbered steps ------------------------------------------------ */

.steps { border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 64px 200px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step .idx { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--signal); letter-spacing: 0.1em; padding-top: 4px; }
.step h3 { font-size: 22px; }
.step p { font-size: 17px; color: var(--ink-2); max-width: 64ch; }

/* --- "what normal means" definition block ------------------------- */

.defblock { border-top: 1px solid var(--rule); margin-top: 8px; }
.neg {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.neg .nk { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #565E63; }
.neg .nv { font-size: 18.5px; color: var(--ink-2); }
.aff {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.aff .nk { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.aff .nv { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.028em; line-height: 1.15; }
.defbody { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding-top: 28px; }
.defbody p { font-size: 17.5px; color: var(--ink-2); max-width: 70ch; }
.defbody p + p { margin-top: 16px; }

/* --- dark section + deployment grid ------------------------------- */

.dark { background: var(--panel); color: #E4E8EA; }
.dark h2, .dark h3 { color: #F4F6F7; }
.dark .mono { color: #B8C1C5; }
.dark .lede { color: #C7CFD3; }

.deploy { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--panel-rule); }
.dp { padding: 26px 32px 26px 0; border-bottom: 1px solid var(--panel-rule); }
.dp:nth-child(2n+1) { border-right: 1px solid var(--panel-rule); }
.dp:nth-child(2n) { padding-left: 32px; padding-right: 0; }
.dp h3 { font-size: 17.5px; font-weight: 400; letter-spacing: -0.01em; color: #F4F6F7; }
.dp p { margin-top: 8px; font-size: 16.5px; color: #C7CFD3; }

/* --- stakes block (why-parabole: prominent determinants + questions) --- */

.stk { border-top: 1px solid var(--panel-rule); padding: 40px 0; }
.stk:last-child { border-bottom: 1px solid var(--panel-rule); }
.stk-lbl { margin-bottom: 26px; }

.stk-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-rule);
  border: 1px solid var(--panel-rule);
}
.stk-terms span {
  background: var(--panel);
  padding: 22px 20px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(19px, 2.3vw, 29px);
  letter-spacing: -0.02em;
  color: #F4F6F7;
}

.stk-qs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 48px; counter-reset: stkq; }
.stk-qs div {
  position: relative;
  padding-left: 44px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: #F4F6F7;
}
.stk-qs div::before {
  counter-increment: stkq;
  content: counter(stkq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8A9096;
}

/* --- comparison (dark) ------------------------------------------- */

.cmp { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--panel-rule); }
.cmp > div { padding: 32px 32px 32px 0; }
.cmp > div:first-child { border-right: 1px solid var(--panel-rule); }
.cmp > div:last-child { padding-left: 32px; padding-right: 0; }
.cmp h3 { font-size: 20px; margin-bottom: 18px; }
.cmp ul { margin: 0; padding-left: 18px; }
.cmp li { font-size: 17px; color: #C7CFD3; margin-bottom: 12px; }
.cmp .badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid #4A5257;
  margin-bottom: 16px;
  color: #C7CFD3;
}
.edge { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--panel-rule); font-size: 17px; color: #C7CFD3; max-width: 78ch; }
.edge b { color: #F4F6F7; font-weight: 500; }

/* --- use-case cards --------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.pair { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--rule); background: #FAFBFB; padding: 26px; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; margin-top: 14px; }
.card p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); flex: 1 1 0; }
.card .kpis { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 10px; }
.kpi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kpi .kn { font-family: var(--display); font-weight: 300; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.kpi .kl { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #565E63; text-align: right; }

/* picture cards (why-parabole: one image per aspect) */
.pcards .card > img {
  display: block;
  width: 100%;
  background: #fff;
}
.pcards .card .cn {
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.pcards .card .cn + h3 { margin-top: 5px; }

/* alternating image rows (why-parabole: one diagram per gap) */
.gaprow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--rule);
}
.gaprow:last-child { border-bottom: 1px solid var(--rule); }
.gaprow:nth-child(even) figure { order: 2; }
.gaprow figure { margin: 0; }
.gaprow img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.gaprow .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.gaprow h3 { font-size: clamp(21px, 2.3vw, 28px); letter-spacing: -0.02em; margin-top: 8px; }
.gaprow p { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 52ch; }

.gap-core {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 56px;
  padding: 40px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.gap-core figure { margin: 0; }
.gap-core img { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
.gap-core h3 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; margin-top: 10px; line-height: 1.14; }
.gap-core p { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 56ch; }

/* advantage groups (why-parabole: one composite diagram per USP group) */
.advgroup { padding-top: 54px; }
.advgroup > .mono { margin-bottom: 18px; }
.advfig { margin: 0 0 30px; }
.advfig img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.advlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 48px;
  counter-reset: adv;
}
.advlist li { position: relative; padding-left: 40px; counter-increment: adv; }
.advlist li::before {
  content: counter(adv);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.advlist h3 { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; }
.advlist p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }

/* platform diagrams */
.pfig { margin: 40px 0 0; }
.pfig img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.pfig figcaption { margin-top: 12px; font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-2); max-width: 92ch; }
.pfig + .steps { margin-top: 44px; }
.pfig + .prose { margin-top: 40px; }
.prose + .pfig { margin-top: 32px; }
.pfig + .steps-media { margin-top: 44px; }

/* steps list paired with small clickable product thumbnails, one per row
   (platform.html #lifecycle) — a single grid holds both columns so each
   .step and its matching .shot-sm share a row track and line up exactly.
   Row numbers are assigned inline per element (style="grid-row:N") rather
   than via :nth-of-type — the label, .step and .shot-sm are all <div>/
   <figure> siblings, so :nth-of-type counts across all of them by tag name,
   not scoped to the class; that shifted every row by one and silently
   auto-placed the last item. Row 1 is the "In the product" label, rows
   2–8 are steps 01–07, and shots 1–6 sit in rows 2–7 (step 07 has no
   product screen). */
.steps-media {
  display: grid;
  grid-template-columns: 1fr 240px;
  column-gap: 48px;
  border-top: 1px solid var(--rule);
}
.steps-media .step { grid-column: 1; border-bottom: 1px solid var(--rule); align-items: center; }
.steps-media .step .idx { padding-top: 0; }
.shot-label { grid-column: 2; align-self: end; padding-bottom: 12px; }
.shot-sm { grid-column: 2; margin: 0; align-self: center; }
.shot-sm img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; cursor: zoom-in; }
.shot-sm figcaption { display: none; }

/* product screenshots (TRAIN capability captures) */
.uishot { margin: 36px 0 0; }
.uishot img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; cursor: zoom-in; }
.uishot figcaption { margin-top: 11px; font-size: 13px; line-height: 1.5; color: var(--ink-2); max-width: 78ch; }
.uishot figcaption .ref {
  display: block;
  margin-top: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6B7278;
}
.uishots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; margin-top: 48px; }
.uishots .uishot { margin: 0; }
.steps + .uishots { border-top: 1px solid var(--rule); padding-top: 40px; }

/* --- architecture explorer (platform-architecture.html, architecture.js) --- */

.arch-x { margin: 36px 0 0; }
.arch-x-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.arch-x-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.arch-x-layout.open { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }

/* when a detail pane is open the diagram slims to a stacked list of blocks,
   with only the selected block showing its service grid */
.arch-x-layout.open .arch-x-diagram {
  grid-template-columns: 1fr;
  grid-template-areas: none;
}
.arch-x-layout.open .arch-x-block { grid-area: auto; }
.arch-x-layout.open .arch-x-block:not(.active) .arch-x-svc-grid { display: none; }
.arch-x-layout.open .arch-x-block:not(.active) { background: var(--paper); }

.arch-x-diagram {
  display: grid;
  gap: 14px;
  grid-template-columns: 2.1fr 1fr 1fr;
  grid-template-areas:
    "platform platform platform"
    "core lang opt";
  align-items: start;
}
.arch-x-block {
  border: 1px solid var(--ink);
  background: #FAFBFB;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arch-x-block.b-platform { grid-area: platform; }
.arch-x-block.b-core { grid-area: core; }
.arch-x-block.b-lang { grid-area: lang; }
.arch-x-block.b-opt { grid-area: opt; }
.arch-x-block.active { box-shadow: inset 0 0 0 2px var(--ink); }

.arch-x-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  text-align: left;
  font: inherit;
}
.arch-x-block-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.arch-x-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.arch-x-svc-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
}
.arch-x-svc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 12px 12px 11px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.arch-x-svc:hover { border-color: var(--ink); }
.arch-x-svc.active { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.arch-x-svc-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
}
.arch-x-svc .arch-x-chip { white-space: normal; }

.arch-x-pane {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 18px 18px 20px;
  position: sticky;
  top: 76px;
}
.arch-x-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.arch-x-crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
}
.arch-x-crumb-b {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--steel);
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.arch-x-crumb-b:hover { color: var(--ink); }
.arch-x-crumb-cur { color: var(--ink); }
.arch-x-close {
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.arch-x-close:hover { border-color: var(--ink); color: var(--ink); }

.arch-x-pane-title { font-size: 20px; margin: 0 0 8px; }
.arch-x-pane-blurb { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); margin: 0 0 16px; }
.arch-x-pane-lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-bottom: 8px;
}

.arch-x-svc-list { display: flex; flex-direction: column; }
.arch-x-svc-row {
  display: grid;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 12px 4px;
}
.arch-x-svc-row:hover { background: var(--paper); }
.arch-x-svc-row-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.arch-x-svc-row-blurb { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.arch-x-svc-row-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-top: 2px;
}

.arch-x-caps { display: flex; flex-direction: column; }
.arch-x-cap { border-bottom: 1px solid var(--rule); }
.arch-x-cap-btn {
  display: flex;
  align-items: baseline;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 11px 2px;
}
.arch-x-cap-caret { color: var(--steel); font-size: 10px; transition: transform 0.12s ease; }
.arch-x-cap.open .arch-x-cap-caret { transform: rotate(90deg); }
.arch-x-cap-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.arch-x-cap-body { display: none; padding: 0 2px 14px 20px; }
.arch-x-cap.open .arch-x-cap-body { display: block; }
.arch-x-cap-what { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.arch-x-feat { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 7px; }
.arch-x-feat li { font-size: 12.5px; line-height: 1.45; position: relative; padding-left: 14px; }
.arch-x-feat li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; background: var(--steel); }
.arch-x-fname { color: var(--ink-2); }

/* --- interactive platform overview (platform.html #overview) ------ */

.px { margin: 36px 0 0; }
.px-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-2); margin: 0 0 22px;
}
.px-hint i { font-style: normal; }

.px-flow { display: flex; align-items: stretch; gap: 0; }
.px-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.px-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.px-arrow {
  flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 18px;
}

.px-head {
  appearance: none; background: none; border: 0; cursor: pointer;
  text-align: left; padding: 0 0 9px; margin: 0 0 4px;
  border-bottom: 1px solid var(--rule); width: 100%;
  display: block;
}
.px-head .px-k {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
}
.px-head .px-s { display: block; margin-top: 4px; font-size: 10.5px; color: var(--steel); }
.px-head:hover .px-k, .px-head.is-active .px-k { color: var(--nav-active); }
.px-head.is-active { border-bottom-color: var(--nav-active); }

.px-cell {
  appearance: none; cursor: pointer; width: 100%;
  text-align: left; padding: 10px 13px;
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.px-cell .px-t {
  display: block; font-size: 12.5px; font-weight: 500; color: var(--ink);
  line-height: 1.3; letter-spacing: -0.005em;
}
.px-cell .px-sub { display: block; margin-top: 3px; font-size: 10px; color: var(--steel); line-height: 1.35; }
.px-cell:hover { border-color: var(--ink); box-shadow: 0 2px 10px rgba(15, 24, 30, 0.07); }
.px-cell.is-active {
  border-color: var(--nav-active); border-width: 2px; padding: 9px 12px;
  background: rgba(28, 95, 214, 0.05);
}
.px-cell-emph { border-width: 2px; padding: 9px 12px; }
.px-cell-emph .px-t { font-weight: 700; }

.px-base { margin-top: 30px; }
.px-head-wide { margin-bottom: 12px; }
.px-base-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.px-detail {
  margin-top: 26px; padding: 24px 28px 26px;
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  scroll-margin-top: 80px;
}
.px-detail-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.px-crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
}
.px-close {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; color: var(--steel); padding: 2px 4px; margin: -4px -4px 0 0;
}
.px-close:hover { color: var(--ink); }
.px-detail-title {
  font-family: var(--display); font-weight: 300;
  font-size: 21px; letter-spacing: -0.02em; line-height: 1.2;
  margin: 10px 0 12px; outline: none;
}
.px-detail-title .px-detail-sub {
  font-family: "IBM Plex Mono", monospace; font-weight: 400;
  font-size: 11px; letter-spacing: 0.04em; color: var(--steel);
  white-space: nowrap;
}
.px-detail-body { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); max-width: 74ch; }
.px-detail-body i { font-style: normal; }

/* --- interactive diagrams (diagram.js) --------------------------- */

.dg { margin: 0; }
.dg-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2);
  margin: 0 0 18px;
}

.dg-scroll {
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 2px;
}
.dg-svg {
  display: block; width: 100%; height: auto; margin: 0 auto;
  font-family: var(--sans);
}
.dg-svg text { -webkit-font-smoothing: antialiased; }

.dg-node { cursor: pointer; }
.dg-rect {
  fill: #fff; stroke: var(--rule); stroke-width: 1;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.dg-rect-big { stroke: var(--ink); stroke-width: 1.5; }
.dg-node:hover .dg-rect { fill: #F5F6F7; }
.dg-node.is-active .dg-rect { stroke: var(--nav-active); stroke-width: 1.75; }
.dg-node.is-active .dg-label { fill: var(--nav-active); }
.dg-node:focus-visible { outline: none; }
.dg-node:focus-visible .dg-rect { stroke: var(--nav-active); stroke-width: 1.75; }
.dg-label, .dg-sub { transition: fill 0.15s ease; }
.dg-chip text, .dg-chip rect { pointer-events: none; }

.dg-detail {
  margin-top: 22px; padding: 22px 26px 24px;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  scroll-margin-top: 80px;
}
.dg-detail-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dg-crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
}
.dg-close {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; color: var(--steel); padding: 2px 4px; margin: -4px -4px 0 0;
}
.dg-close:hover { color: var(--ink); }
.dg-detail-title {
  font-family: var(--display); font-weight: 300;
  font-size: 21px; letter-spacing: -0.02em; line-height: 1.2;
  margin: 9px 0 11px; outline: none;
}
.dg-detail-body { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); max-width: 74ch; }
.dg-detail-body i { font-style: normal; }

/* --- deployment page (deployment.html) ---------------------------- */

.darch { border-top: 1px solid var(--rule); padding-top: 40px; margin-top: 44px; }
.darch:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.darch-head { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: baseline; }
.darch-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.darch-head p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); max-width: 66ch; }
.darch .pfig { margin-top: 26px; }
.darch .dbest {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.darch .dbest b { color: var(--ink); font-weight: 500; }

.dtable { border: 1px solid var(--rule); overflow-x: auto; margin-top: 8px; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.45;
}
.dtable tr:last-child td { border-bottom: 0; }
.dtable th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
  white-space: nowrap;
}
.dtable td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.dtable td .m {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}
.dtable.raci td { text-align: center; }
.dtable.raci td:first-child { text-align: left; }
.dnote { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.dnote b { color: var(--ink); font-weight: 500; }
.dnote a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.dtable + .dnote { margin-top: 14px; }
.dnote code, .dtable code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 1px 5px;
  border: 1px solid var(--rule);
}

/* --- routes (link cards, e.g. industry chooser on home) -------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route {
  border: 1px solid var(--rule);
  background: #FAFBFB;
  padding: 34px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.18s, border-color 0.18s;
}
.route:hover { background: #FFF; border-color: var(--ink); }
.route h2, .route h3 { font-size: 24px; margin-top: 16px; }
.route p { margin-top: 14px; font-size: 17px; color: var(--ink-2); flex: 1 1 0; }
.route .go { margin-top: 26px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--signal); }
.route .mono { color: var(--ink-2); }
.split.three { grid-template-columns: repeat(3, 1fr); }
.route.soon { background: transparent; }
.route.soon .go { color: var(--ink-2); }
.doclinks { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.doclinks a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.doclinks a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* resources.html sub-headings within a bucket section */
.rsub { margin: 46px 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.rsub:first-of-type { margin-top: 0; }
.rlead { color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; font-size: 16.5px; }
.split + .rsub { margin-top: 54px; }
.split + .split { margin-top: 24px; }

/* --- videos.html — gated Vimeo library ------------------------ */

.vidnote { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); margin: 0 0 8px; }
.vidnote a { color: var(--ink); }

.vidgate { max-width: 560px; border: 1px solid var(--ink); background: #FAFBFB; padding: 28px 30px; scroll-margin-top: 90px; }
.vidgate.flash { animation: vidgate-flash 1.2s ease; }
@keyframes vidgate-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28, 95, 214, 0); }
  15% { box-shadow: 0 0 0 4px rgba(28, 95, 214, 0.35); }
}
.vidgate .mono { display: block; margin-bottom: 12px; }
.vidgate label input { display: block; margin-top: 8px; }
.vidgate label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.vidgate input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.vidgate input[type="email"]:focus { outline: 2px solid #8A9096; outline-offset: 1px; }
.vidgate .btn { margin-top: 16px; }
.vidgate .hint { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.vidgate .err { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #C0392B; }

/* filtered sector view — "By industry" heading + back link */
.vidfilter { margin: 16px 0 4px; }
.vidfilter a { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); text-decoration: none; }
.vidfilter a:hover { color: var(--ink); }
.vidfilter .mono { margin-top: 20px; }
.vidfilter h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.028em; margin-top: 4px; }

/* category group (Energy / Industrial) wrapping the sector subsections */
.vidcatgroup { margin-top: 64px; }
.vidcatgroup:first-of-type { margin-top: 20px; }
.vidgroup-h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.vidgroup-h h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.028em; }
.vidgroup-h .cnt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-left: auto;
}

.vidcat { margin-top: 40px; }
.vidcatgroup > .vidcat:first-of-type { margin-top: 20px; }
.vidcat-h {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 4px;
}
.vidcat-h h2 { font-size: 26px; letter-spacing: -0.028em; }
.vidcat-h h3 { font-size: 18px; letter-spacing: -0.015em; }
.vidcat-h .cnt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-left: auto;
}

.vidrow {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.vidmedia {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: #0D1012;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.vidmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}
.vidmedia:hover img,
.vidmedia:focus-visible img { filter: grayscale(0); }
.vidmedia iframe { width: 100%; height: 100%; border: 0; display: block; }
.vidmedia.playing { cursor: default; }
.vidplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.vidmedia.playing .vidplay { display: none; }
.viddur {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  padding: 2px 6px;
}
.vidmedia.playing .viddur { display: none; }

/* locked state — thumbnail visible, playback needs sign-in */
.vidmedia.locked img { filter: grayscale(1) brightness(0.62); }
.vidmedia.locked:hover img,
.vidmedia.locked:focus-visible img { filter: grayscale(1) brightness(0.5); }
.vidlock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.vidlock-i {
  width: 13px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
}
.vidlock-i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.vidlock-t {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* --- video modal (play / gate) --- */
.vidmodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(13, 16, 18, 0.9);
  backdrop-filter: blur(3px);
}
.vidmodal[hidden] { display: none; }
.vidmodal-box { position: relative; width: min(1000px, 100%); }
.vidmodal-x {
  position: absolute;
  top: -34px;
  right: -4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}
.vidmodal-x:hover { opacity: 0.7; }
.vidmodal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--panel-rule);
}
.vidmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vidmodal-cap { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.vidmodal-cap .a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9AA0A6;
}
.vidmodal-cap .t { font-family: var(--display); font-weight: 300; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.vidmodal .vidgate { margin: 0 auto; max-width: 460px; scroll-margin-top: 0; }

.vidmeta { min-width: 0; }
.vidtop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vidarea {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.vidmeta h3 { font-family: var(--display); font-weight: 300; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.vidfield { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: baseline; margin-top: 12px; }
.vidfield .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}
.vidfield .v { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.vidout { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.vidout li {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 15px;
  position: relative;
}
.vidout li::before { content: "·"; position: absolute; left: 3px; color: var(--steel); }

/* --- portfolio (oil & gas case portfolio) --------------------- */

.chainstrip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cs {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.cs:last-child { border-right: 0; }
.cs .ico { flex: 0 0 44px; color: var(--ink); }
.cs .ico svg { width: 44px; height: 44px; display: block; }
.cs h3 { font-size: 20px; letter-spacing: -0.02em; }
.cs .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.cs:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.seg { margin-top: 64px; }
.seghead { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.seghead h3 { font-size: 26px; letter-spacing: -0.028em; }
.seghead .cnt { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-left: auto; }

.case {
  display: grid;
  grid-template-columns: 2.9fr 4.4fr 4.2fr;
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.case figure { margin: 0; }
.case .shot { width: 100%; display: block; border: 1px solid var(--rule); background: #FFF; cursor: zoom-in; filter: grayscale(1); }
.case figcaption { margin-top: 9px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #565E63; }
.case h4 { font-family: var(--display); font-weight: 300; font-size: 19px; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.case .use { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.case .sol { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.case .sol b { color: var(--ink); font-weight: 500; }

.mets { display: grid; gap: 12px; }
.met { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.met .mv { font-family: var(--display); font-weight: 300; font-size: 20px; letter-spacing: -0.025em; white-space: nowrap; color: var(--ink); }
.met .ml { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }

.q {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565E63;
  border: 1px solid var(--rule);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.chip {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #565E63;
  border: 1px solid var(--rule);
  padding: 3px 8px;
  margin-top: 12px;
}
.chip.proto { color: #5E656B; border-color: #B7BBBF; }

.legend { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: 16px; }
.lg { padding: 20px 22px 20px 0; border-right: 1px solid var(--rule); }
.lg:last-child { border-right: 0; }
.lg .k { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.lg .d { margin-top: 7px; font-size: 14.5px; color: var(--ink-2); }

/* --- investors: claim rows + people --------------------------- */

.claim { border-top: 1px solid var(--ink); }
.crow {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.crow .ck { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #565E63; }
.crow .cv { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -0.028em; line-height: 1.16; max-width: 26ch; }
.crow .cs {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 66ch;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  border: 0;
  padding: 0;
}

/* long-form prose (causal-inference.html) */
.prose { max-width: 68ch; }
.prose > p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose > p + p { margin-top: 1.15em; }
.prose > p strong, .prose > p b { color: var(--ink); font-weight: 500; }
.prose > h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 2em 0 0.6em;
}
.prose > h3:first-child { margin-top: 0; }
.prose > p + h3 { margin-top: 1.9em; }
.prose ol { margin: 1.2em 0 0; padding-left: 1.35em; }
.prose ol li { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.prose ol li + li { margin-top: 0.55em; }
.prose ol li strong, .prose ol li b { color: var(--ink); font-weight: 500; }
.prose .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

/* content-maturity dividers (causal-inference.html) */
.catdiv { padding: 60px 0 6px; display: flex; align-items: baseline; gap: 20px; }
.catdiv-n { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--steel); flex: 0 0 auto; }
.catdiv h2 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.01em; }
.catdiv p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.catdiv-empty { padding-bottom: 44px; }
.catdiv-empty .dnote { margin-top: 12px; }

/* analyst reports (resources.html #analyst-reports) */
.arep { max-width: 70ch; }
.arep + .arep { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--rule); }
.arep .mono { color: var(--steel); margin-bottom: 10px; }
.arep h2, .arep h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 0.55em; }
.arep > p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.arep [data-doc] { margin-top: 22px; }

.pull {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
  margin: 8px 0 0;
}
.pull blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 24ch;
}
.pull .by {
  margin-top: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #565E63;
}

.people { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.pp { display: flex; flex-direction: column; padding: 26px 34px 26px 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pp:nth-child(2n) { border-right: 0; padding-left: 34px; padding-right: 0; }
.pp h3 { font-family: var(--display); font-weight: 300; font-size: 19px; letter-spacing: -0.02em; margin: 0; }
.pp .role { margin-top: 5px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #565E63; }
.pp p { margin-top: 11px; margin-bottom: 13px; font-size: 16px; color: var(--ink-2); }
.pp-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: #565E63;
  transition: color 0.15s, border-color 0.15s;
}
.pp-li:hover { color: var(--ink); border-color: var(--ink); }
.pp-li svg { flex: none; }

/* --- book a demo ------------------------------------------- */

.demo { display: grid; grid-template-columns: 0.9fr 1fr; gap: 64px; align-items: start; }

.demo-expect .dur {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.demo-expect .dur span { display: block; margin-top: 8px; font-size: 16px; color: var(--ink-2); letter-spacing: 0; }

.demo-list { border-top: 1px solid var(--rule); margin-top: 26px; }
.demo-list .it {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.demo-list .it .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-2); padding-top: 3px; }
.demo-list .it h2, .demo-list .it h3 { font-size: 19px; letter-spacing: -0.015em; }
.demo-list .it p { margin-top: 9px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }

.demo-form { border: 1px solid var(--rule); background: #FAFBFB; padding: 32px; }
.demo-form .row { margin-bottom: 18px; }
.demo-form label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}
.demo-form textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.demo-form select:disabled { color: #9AA0A6; background: #F4F5F6; }
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus { outline: none; border-color: var(--ink); }
.demo-form .opt { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: #6B7278; font-size: 11px; }
.demo-form .hint { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--ink-2); letter-spacing: 0; }
.demo-form .err { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #C0392B; letter-spacing: 0; }
.demo-form.tried input:invalid,
.demo-form.tried select:invalid,
.demo-form.tried textarea:invalid { border-color: #C0392B; }
.demo-form .cond {
  border-top: 1px dashed var(--rule);
  margin: 4px 0 18px;
  padding-top: 18px;
}
.demo-form .btn { margin-top: 8px; cursor: pointer; }
.demo-form .fine { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- CTA ----------------------------------------------------- */

.cta { background: var(--paper-2); border-top: 1px solid var(--rule); }
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 72px 0; }
.cta h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 23ch; }
.cta p { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }

/* --- footer (rendered by <site-footer>) --------------------- */

.ftr { background: var(--panel); color: #C3CBCF; padding: 56px 0 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.ftr h5 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A2ABB0;
  margin: 0 0 14px;
  font-weight: 400;
}
.ftr a { display: block; color: #E4E8EA; text-decoration: none; font-size: 16px; margin-bottom: 9px; }
.ftr a:hover { color: #FFF; }
.ftr .logo { color: #F4F6F7; font-size: 19px; display: inline-block; }
.ftr .logo img { display: block; height: 22px; width: auto; }
.ftr-b {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A2ABB0;
}
.ftr-b a { display: inline; margin: 0; color: #B8C1C5; font-size: inherit; }
.ftr a.ftr-li { display: inline-flex; align-items: center; gap: 6px; }
.li-ic { flex: none; }

/* --- editorial placeholder notes (hidden unless ?draft=1) --- */

.ph { display: none; border: 1px dashed #B9A57A; background: #FCFAF4; padding: 22px 24px; margin: 22px 0; }
body.draft .ph { display: block; }
.ph .pk { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A6A1E; margin-bottom: 10px; }
.ph p { font-size: 15.5px; color: #4A4130; margin: 0; }
.ph p + p { margin-top: 9px; }
.ph ul { margin: 9px 0 0; padding-left: 18px; }
.ph li { font-size: 15.5px; color: #4A4130; margin-bottom: 6px; }
.ph .who { margin-top: 12px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8A6A1E; }

.draft-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
}

/* --- image zoom overlay (injected by site.js) --------------- */

#zoom {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#zoom.on { display: flex; }
#zoom.show { opacity: 1; }
#zoom figure {
  margin: 0;
  max-width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transform: scale(0.97) translateY(6px);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}
#zoom.show figure { transform: scale(1) translateY(0); }
#zoom img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.3);
}
#zoom .cap {
  margin-top: 20px;
  max-width: 72ch;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.55;
  color: #C7CFD3;
}
#zoom .cap .ref {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7C868C;
}
.zoom-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E4E8EA;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zoom-close:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.zoom-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  #zoom, #zoom figure { transition: none; }
}

/* --- command palette / quick nav (injected by site.js) ------ */

#palette {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(13, 16, 18, 0.55);
}
#palette.on { display: flex; }
#palette .box {
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
}
#palette input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 16px;
  background: transparent;
  color: var(--ink);
}
#palette input:focus { outline: none; border-bottom-color: var(--ink); }
#palette ul { list-style: none; margin: 0; padding: 6px; max-height: 46vh; overflow-y: auto; }
#palette li {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
#palette li[aria-selected="true"] { background: var(--paper-2); }
#palette li .l { font-size: 15px; }
#palette li .k {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565E63;
}
#palette .hint {
  padding: 9px 14px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #565E63;
}

/* ==========================================================================
   Insights (insights.html + insights-*.html)
   ========================================================================== */

.ins-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  color: var(--ink-2);
}
.ins-badge-gated { color: var(--ink); border-color: var(--ink); }
.ins-badge-restricted { color: var(--nav-active); border-color: var(--nav-active); }

.ins-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-top: 10px;
}

.ins-sample {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.ins-featured { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--rule); background: #FAFBFB; padding: 34px; }
.ins-featured .shot { border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 16/10; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ins-featured .shot img { width: 60%; height: 60%; object-fit: contain; display: block; opacity: 0.85; }
.ins-featured h3 { font-size: 28px; margin-top: 14px; letter-spacing: -0.015em; }
.ins-featured p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.ins-featured .btn { margin-top: 24px; }

.ins-catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }

.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 8px; }
.ins-grid .route { min-height: 100%; }

.ins-author { border: 1px solid var(--rule); background: #FAFBFB; padding: 20px 22px; }
.ins-author .mono { color: var(--steel); margin-bottom: 8px; }
.ins-author h4 { font-size: 16px; margin: 0; }
.ins-author p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

.ins-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ins-share a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
}
.ins-share a:hover { border-color: var(--ink); background: #FFF; }

.ins-video { position: relative; border: 1px solid var(--rule); background: var(--panel); aspect-ratio: 16/9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ins-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4-column table: idx | title | narrative | thumbnail. Same visual
   language as .steps/.step (platform.html "The Life Cycle"). */
.tvtable { border-top: 1px solid var(--rule); margin-top: 8px; }
.tvrow {
  display: grid;
  grid-template-columns: 200px 1fr 140px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.tvrow h3 { font-size: 18px; }
.tvrow p { font-size: 15px; color: var(--ink-2); }
.tvrow .tv-thumb { width: 100%; max-width: 140px; }
.ins-video .play {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; color: #FFF; cursor: pointer; font-family: var(--sans);
}
.ins-video .play .ring {
  width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
}
.ins-video .play:hover .ring { border-color: #FFF; }
.ins-video .play .lbl { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.ins-video .state { color: rgba(255,255,255,0.75); font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }

.demo-form .chk { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.demo-form .chk input { width: auto; margin: 3px 0 0; }
.demo-form .consent { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--steel); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hdr .wrap { gap: 18px; }
  .hdr .logo img { height: 20px; }

  .steps-media { grid-template-columns: 1fr; }
  /* !important: each .step/.shot-sm carries an inline grid-row (desktop
     two-column alignment) that only a higher-specificity rule can override */
  .steps-media .step, .shot-label, .shot-sm { grid-column: 1; grid-row: auto !important; }
  .shot-label { padding-bottom: 0; margin-top: 8px; }
  .shot-sm { max-width: 340px; padding-top: 16px; align-self: auto; }

  .px-flow { flex-direction: column; gap: 8px; }
  .px-col { width: 100%; }
  .px-arrow { flex-basis: auto; padding: 2px 0; transform: rotate(90deg); font-size: 15px; }
  .px-base-grid { grid-template-columns: 1fr 1fr; }

  .dg-scroll { border-radius: 12px; padding: 10px; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .nav.open a { padding: 12px 32px; }
  .nav.open .nav-group,
  .nav.open .nav-sub { flex-direction: column; align-items: stretch; width: 100%; display: flex; }
  .nav.open .nav-group > a::after,
  .nav.open .nav-sub > a::after { display: none; }
  .nav.open .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav.open .nav-menu::before,
  .nav.open .nav-menu-side::before { display: none; }
  .nav.open .nav-menu a,
  .nav.open .nav-menu .nav-sub > a { padding-left: 48px; }
  .nav.open .nav-menu .nav-menu a,
  .nav.open .nav-menu .nav-menu .nav-sub > a { padding-left: 64px; }
  .nav.open .nav-menu .nav-menu .nav-menu a,
  .nav.open .nav-menu .nav-menu .nav-menu .nav-sub > a { padding-left: 80px; }
  .nav.open .nav-menu .nav-menu .nav-menu .nav-menu a { padding-left: 96px; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .heroline { margin-bottom: 36px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .cols { grid-template-columns: 1fr; }
  .col { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0 24px; }
  .ins-featured { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .ins-catgrid { grid-template-columns: 1fr 1fr; }
  .ins-grid { grid-template-columns: 1fr 1fr; }
  .cards, .cards.pair { grid-template-columns: 1fr; }
  .tvrow { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .tvrow .tv-thumb { max-width: 220px; margin-top: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .st { padding-right: 20px; }
  .st:nth-child(2) { border-right: 0; }
  .cmp { grid-template-columns: 1fr; }
  .cmp > div { padding: 28px 0; }
  .cmp > div:first-child { border-right: 0; border-bottom: 1px solid var(--panel-rule); }
  .cmp > div:last-child { padding-left: 0; }
  .deploy { grid-template-columns: 1fr; }
  .dp { padding: 22px 0; }
  .dp:nth-child(2n+1) { border-right: 0; }
  .dp:nth-child(2n) { padding-left: 0; }
  .cta-in { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step h3, .step p { grid-column: 2; }
  .split, .split.three { grid-template-columns: 1fr; }
  .ins-catgrid, .ins-grid { grid-template-columns: 1fr; }
  .neg, .aff, .defbody { grid-template-columns: 1fr; gap: 8px; }
  .chainstrip { grid-template-columns: 1fr; }
  .cs { border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px 0; }
  .case { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .legend { grid-template-columns: 1fr 1fr; }
  .lg { padding: 16px 16px 16px 0; }
  .crow { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .people { grid-template-columns: 1fr; }
  .pp { border-right: 0; padding: 22px 0; }
  .pp:nth-child(2n) { padding-left: 0; }
  .ivhero { padding: 56px 0 48px; }
  .demo { grid-template-columns: 1fr; gap: 44px; }
  .stk-terms { grid-template-columns: repeat(2, 1fr); }
  .stk-qs { grid-template-columns: 1fr; gap: 22px; }
  .gaprow { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .gaprow:nth-child(even) figure { order: 0; }
  .gaprow img, .gap-core img { max-width: 420px; }
  .gap-core { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .advlist { grid-template-columns: 1fr; gap: 18px; }
  .uishots { grid-template-columns: 1fr; gap: 28px; }
  .darch-head { grid-template-columns: 1fr; gap: 12px; }
  .vidrow { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .vidmedia { max-width: 420px; }
  .vidfield { grid-template-columns: 1fr; gap: 3px; }
  .vidmodal { padding: 16px; }
  .vidmodal-x { top: -30px; right: 0; }
  .vidmodal .vidgate { padding: 24px 20px; }

  .arch-x-layout.open { grid-template-columns: 1fr; }
  .arch-x-pane { position: static; order: -1; }
  .arch-x-diagram { grid-template-columns: 1fr; grid-template-areas: none; }
  .arch-x-block { grid-area: auto !important; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hdr .wrap { gap: 14px; }
  .hdr .logo img { height: 19px; }
  .hdr .hdr-cta { display: none; }
  .px-base-grid { grid-template-columns: 1fr; }
  .px-detail { padding: 20px; }
  .px-detail-title .px-detail-sub { display: block; white-space: normal; margin-top: 4px; }
  .dg-detail { padding: 20px; }
  .sec { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; }
  .st { border-right: 0; border-bottom: 1px solid var(--rule); }

  .arch-x-diagram { grid-template-columns: 1fr; }
  .arch-x-svc-grid { grid-template-columns: 1fr !important; }
  .arch-x-block-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .arch-x-block-head .arch-x-chip { white-space: normal; }

  /* the wide landscape SVG shrinks to a short strip on a narrow phone, so the
     absolutely-positioned bottom-right controls would overlap its on-image
     legend text; drop them into normal flow below the figure instead */
  .hero-anim-controls { position: static; margin-top: 10px; width: fit-content; }

  /* .cta-in also carries .wrap, and .wrap's mobile padding shorthand (below)
     otherwise wins over .cta-in's own padding shorthand and collapses its
     vertical spacing to 0, leaving the CTA button flush against the footer */
  .cta-in { padding-top: 48px; padding-bottom: 48px; }
}

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