/* Self hosted fonts (SIL Open Font License), no third party requests */
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/montserrat-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: italic; font-display: swap; font-weight: 100 900; src: url(fonts/montserrat-latin-ext-wght-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: italic; font-display: swap; font-weight: 100 900; src: url(fonts/montserrat-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(fonts/space-grotesk-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* UBiqube site styles
   Layout concept: an engineering spec sheet. Content sits on a quiet ruled grid;
   the one bold element is the layered "stack" that shows estate, adapters,
   configuration objects, workflows and processes as the platform sees them. */

:root {
  /* Brand colours (UBiqube Brand Colour Guidelines) */
  --brand-navy: #46587E;
  --brand-blue: #4993F1;
  --brand-green: #34C186;
  --brand-mint: #58F0B0;

  /* Light theme tokens */
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #E9EDF4;
  --ink: #17203A;
  --ink-2: #46587E;
  --muted: #5D6A85;
  --rule: #D3DAE6;
  --rule-strong: #AEB9CC;
  --accent: #1F7A55;          /* green tuned for text contrast on light */
  --accent-fill: #34C186;
  --accent-ink: #0B2A1D;
  --link: #2867C9;
  --band: #1B2540;            /* deep navy band, used in both themes */
  --band-ink: #E8EDF6;
  --band-muted: #A5B1C9;
  --band-rule: #34405E;
  --ok: #1F7A55;
  --warn: #A15C00;
  --err: #B3261E;
  --focus: #4993F1;

  --f-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --maxw: 1180px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1424;
    --surface: #151D31;
    --surface-2: #1C2640;
    --ink: #E8EDF6;
    --ink-2: #B6C2DA;
    --muted: #93A0BA;
    --rule: #26314D;
    --rule-strong: #3A4768;
    --accent: #58F0B0;
    --accent-fill: #34C186;
    --accent-ink: #062016;
    --link: #7DB3FF;
    --band: #0A0F1C;
    --band-ink: #E8EDF6;
    --band-muted: #93A0BA;
    --band-rule: #26314D;
    --ok: #58F0B0;
    --warn: #F2B35B;
    --err: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1424;
  --surface: #151D31;
  --surface-2: #1C2640;
  --ink: #E8EDF6;
  --ink-2: #B6C2DA;
  --muted: #93A0BA;
  --rule: #26314D;
  --rule-strong: #3A4768;
  --accent: #58F0B0;
  --accent-fill: #34C186;
  --accent-ink: #062016;
  --link: #7DB3FF;
  --band: #0A0F1C;
  --band-ink: #E8EDF6;
  --band-muted: #93A0BA;
  --band-rule: #26314D;
  --ok: #58F0B0;
  --warn: #F2B35B;
  --err: #FF8A80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Layout wrappers: bands span full width, .wrap carries the gutter */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--rule); }
.section--tight { padding-block: var(--s-7); }
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3, .band h4 { color: var(--band-ink); }
.band .muted { color: var(--band-muted); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--s-3);
}
.band .eyebrow { color: var(--brand-mint); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.prose { max-width: 66ch; display: grid; gap: var(--s-4); }
.head { display: grid; gap: var(--s-3); max-width: 760px; margin-bottom: var(--s-6); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--brand-navy); }
:root[data-theme="dark"] .brand { color: #E8EDF6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: #E8EDF6; } }
.brand svg { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--s-1); margin-left: auto; align-items: center; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: var(--s-2) var(--s-3); border-radius: var(--radius); }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--radius); padding: 6px 10px; font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--rule); padding: var(--s-3) max(20px, env(safe-area-inset-right, 0px)) var(--s-4) max(20px, env(safe-area-inset-left, 0px)); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s-3); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 1.15rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn--primary:hover { background: var(--brand-mint); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-2); }
.band .btn--ghost { color: var(--band-ink); border-color: var(--band-rule); }
.band .btn--ghost:hover { border-color: var(--band-muted); }
.nav-links .btn--primary { color: var(--accent-ink); margin-left: var(--s-2); }
.nav-links .btn--primary:hover { background: var(--brand-mint); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.arrow::after { content: "→"; font-family: var(--f-mono); }

/* Hero */
.hero { padding-block: var(--s-8) var(--s-7); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); min-width: 0; }
.hero-copy .lead { font-size: 1.22rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Stack visual: the signature element */
.stack {
  background: var(--band); color: var(--band-ink);
  border-radius: 10px; padding: var(--s-5);
  font-family: var(--f-mono); font-size: 0.8rem;
  display: grid; gap: 6px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 15, 28, 0.55);
}
.stack-title { display: flex; justify-content: space-between; gap: var(--s-3); color: var(--band-muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-2); }
.layer {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-3); align-items: center;
  border: 1px solid var(--band-rule); border-radius: 5px; padding: 10px 12px; position: relative;
  background: rgba(255,255,255,0.02);
}
.layer b { color: var(--band-ink); font-weight: 600; }
.layer span { color: var(--band-muted); }
.layer .tag { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-mint); }
.layer--process { border-color: rgba(88, 240, 176, 0.45); }
.layer--estate { background: transparent; border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--band-rule); border-radius: 3px; padding: 2px 6px; color: var(--band-ink); font-size: 0.72rem; white-space: nowrap; }
.pulse {
  position: absolute; left: calc(var(--s-5) + 3.6rem); top: 52px; bottom: var(--s-5); width: 2px;
  background: linear-gradient(to top, transparent, var(--brand-green), transparent);
  background-size: 100% 40%; background-repeat: no-repeat;
  animation: rise 3.2s linear infinite; opacity: .8; pointer-events: none;
}
@keyframes rise { from { background-position: 0 160%; } to { background-position: 0 -60%; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: 0; } }
@media (max-width: 520px) { .layer { grid-template-columns: 1fr; gap: 4px; } .pulse { display: none; } }

/* Ledger: figures from deployments */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--band-rule); border-left: 1px solid var(--band-rule); }
.ledger > div { border-right: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.ledger .fig { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--brand-mint); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ledger .lbl { color: var(--band-ink); font-size: 0.98rem; }
.ledger .src { font-family: var(--f-mono); font-size: 0.72rem; color: var(--band-muted); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 820px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ledger { grid-template-columns: 1fr; } }

/* Domain columns */
.domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.domain { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.domain .product { font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.04em; }
.domain ul { list-style: none; display: grid; gap: var(--s-2); color: var(--ink-2); font-size: 0.97rem; }
.domain li { padding-left: 1.1rem; position: relative; }
.domain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent-fill); }
.domain a.more { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .domains { grid-template-columns: 1fr; } }

/* Four estates explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: start; }
.tabs { display: grid; gap: var(--s-2); }
.tab {
  text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-4); cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 4px;
  transition: border-color .15s ease, background-color .15s ease;
}
.tab:hover { border-color: var(--rule-strong); }
.tab[aria-selected="true"] { border-color: var(--accent-fill); box-shadow: inset 3px 0 0 var(--accent-fill); }
.tab .k { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tab .t { font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; }
.tab .c { font-size: 0.9rem; color: var(--muted); }
.panel { min-width: 0; }
.panel .stack { font-size: 0.82rem; }
.panel .layer { grid-template-columns: 9rem minmax(0, 1fr); align-items: start; }
.panel .layer span { color: var(--band-ink); opacity: .88; font-family: var(--f-body); font-size: 0.9rem; line-height: 1.5; }
.panel-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; margin-top: var(--s-4); }
.panel-figs { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.panel-figs div { display: grid; }
.panel-figs b { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.panel-figs small { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } .panel .layer { grid-template-columns: 1fr; } }

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.cell { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.cell p { color: var(--ink-2); font-size: 0.98rem; }
.rule-top { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.band .rule-top { border-top-color: var(--brand-mint); }
.band .cell p { color: var(--band-muted); }
.idx { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* Failure path list */
.failpath { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--band-rule); border-radius: var(--radius); overflow: hidden; }
.failpath > div { padding: var(--s-5) var(--s-4); border-right: 1px solid var(--band-rule); display: grid; gap: var(--s-2); align-content: start; }
.failpath > div:last-child { border-right: 0; }
.failpath h4 { font-size: 1rem; }
.failpath p { color: var(--band-muted); font-size: 0.92rem; }
.failpath .code { font-family: var(--f-mono); font-size: 0.72rem; color: var(--brand-mint); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 1000px) { .failpath { grid-template-columns: repeat(2, minmax(0, 1fr)); } .failpath > div { border-bottom: 1px solid var(--band-rule); } }
@media (max-width: 560px) { .failpath { grid-template-columns: 1fr; } .failpath > div { border-right: 0; } }

/* Vendors / tech list */
.techlist { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.techlist li { border: 1px solid var(--rule); background: var(--surface); padding: 6px 12px; border-radius: 4px; font-size: 0.92rem; color: var(--ink-2); }
.techgroup { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--rule); align-items: start; }
.techgroup h4 { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 6px; }
@media (max-width: 640px) { .techgroup { grid-template-columns: 1fr; gap: var(--s-2); } }
.fineprint { font-size: 0.8rem; color: var(--muted); }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding-block: var(--s-8) var(--s-6); border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-top: var(--s-4); }
.crumbs { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-4); }
.crumbs a { color: inherit; }

/* Layer spec table (platform page) */
.spec { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-4); border-top: 1px solid var(--rule); }
.spec th { font-family: var(--f-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 0; padding-top: 0; }
.spec td:first-child { font-family: var(--f-display); font-weight: 650; white-space: nowrap; }
.spec td { color: var(--ink-2); }
.spec td:first-child { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.table-scroll .spec { min-width: 720px; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-5); font-size: 0.95rem; }
.kv dt { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; color: var(--ink); }
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.perf > div { padding: var(--s-5); border-right: 1px solid var(--rule); display: grid; gap: 2px; }
.perf > div:last-child { border-right: 0; }
.perf b { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.perf small { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) { .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .perf > div:nth-child(2) { border-right: 0; } .perf > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--rule-strong); color: var(--muted); }
.status--live { color: var(--ok); border-color: currentColor; }
.status--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--road { color: var(--warn); border-color: currentColor; }

/* Solutions anchors */
.solution { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: start; }
.solution aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: var(--s-4); }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; gap: var(--s-5); } .solution aside { position: static; } }
.list-check { list-style: none; display: grid; gap: var(--s-3); }
.list-check li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.list-check li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--accent-fill); border-bottom: 2px solid var(--accent-fill); transform: rotate(-45deg); }
.list-check li b { color: var(--ink); }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.phase { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.phase h4 { color: var(--accent); font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.phase ul { list-style: none; display: grid; gap: 4px; font-size: 0.93rem; color: var(--ink-2); }
@media (max-width: 700px) { .phases { grid-template-columns: 1fr; } }

/* Deployments page */
.filters { display: grid; gap: var(--s-4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5); margin-bottom: var(--s-6); }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.filter-row > .lbl { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-width: 9rem; }
.fbtn { font: inherit; font-size: 0.9rem; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.fbtn:hover { border-color: var(--ink-2); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-note { font-size: 0.9rem; color: var(--muted); }
.records { display: grid; gap: var(--s-6); }
.record { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; scroll-margin-top: 90px; }
.record[hidden] { display: none !important; }
.record.match { border-color: var(--accent-fill); }
.record-head { padding: var(--s-5) var(--s-5) var(--s-4); display: grid; gap: var(--s-3); border-bottom: 1px solid var(--rule); }
.record-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.record-meta .id { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.facts > div { padding: var(--s-3) var(--s-5); border-right: 1px solid var(--rule); display: grid; gap: 2px; min-width: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 0.92rem; color: var(--ink); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(2) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--rule); } }
.record-body { padding: var(--s-5); display: grid; gap: var(--s-6); }
.record-body .grid-2 { gap: var(--s-5); }
.challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.challenges div { display: grid; gap: 4px; }
.challenges h4 { font-size: 0.98rem; }
.challenges p { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 700px) { .challenges { grid-template-columns: 1fr; } }
.rfigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.rfigs div { border-top: 2px solid var(--accent-fill); padding-top: var(--s-3); display: grid; gap: 4px; }
.rfigs b { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rfigs small { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
@media (max-width: 760px) { .rfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.record-foot { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--rule); background: var(--surface-2); }
.subhead { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); display: block; }
.empty { padding: var(--s-6); text-align: center; border: 1px dashed var(--rule-strong); border-radius: var(--radius); color: var(--muted); }

/* Timeline of platform evolution (company) */
.evo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); counter-reset: evo; }
.evo > div { border-top: 2px solid var(--rule-strong); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.evo > div:last-child { border-top-color: var(--accent-fill); }
.evo .k { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.evo p { font-size: 0.93rem; color: var(--ink-2); }
@media (max-width: 1000px) { .evo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .evo { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: var(--s-4); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: var(--s-6); }
@media (max-width: 520px) { .form { padding: var(--s-5) var(--s-4); } }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule-strong); border-radius: 5px; padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { font-size: 0.85rem; color: var(--err); min-height: 0; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: 0.92rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-fill); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 5px; padding: var(--s-3) var(--s-4); font-size: 0.95rem; }
.form-status.ok { background: color-mix(in srgb, var(--accent-fill) 16%, transparent); color: var(--ink); border: 1px solid var(--accent-fill); }
.form-status.bad { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--ink); border: 1px solid var(--err); }
.brief-note { display: flex; gap: var(--s-3); align-items: center; background: var(--surface-2); border-radius: 5px; padding: var(--s-3) var(--s-4); font-size: 0.93rem; }
.contact-side { display: grid; gap: var(--s-5); }
.contact-side .block { display: grid; gap: var(--s-2); padding-bottom: var(--s-5); border-bottom: 1px solid var(--rule); }
.contact-side .block:last-child { border-bottom: 0; }
.copyable { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.copy-btn { font: inherit; font-size: 0.8rem; border: 1px solid var(--rule-strong); background: transparent; color: var(--muted); border-radius: 4px; padding: 2px 8px; cursor: pointer; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: var(--s-7) var(--s-6); font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.foot-grid h4 { color: var(--band-ink); font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s-3); }
.foot-grid ul { list-style: none; display: grid; gap: var(--s-2); }
.foot-grid a { color: var(--band-ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand { color: #E8EDF6; display: grid; gap: var(--s-3); align-content: start; }
.foot-brand svg { height: 22px; width: auto; }
.foot-brand p { color: var(--band-muted); max-width: 36ch; }
.foot-base { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--band-rule); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: 0.82rem; }
.foot-base a { color: var(--band-muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal on load: always visible at rest, gentle lift only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .stack--hero { animation: lift .6s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .05s; }
  .hero-copy > *:nth-child(3) { animation-delay: .1s; }
  .hero-copy > *:nth-child(4) { animation-delay: .15s; }
  .stack--hero { animation-delay: .12s; }
  @keyframes lift { from { transform: translateY(8px); } to { transform: none; } }
}

/* Third party references */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cell .refs, .refs:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 760px) { .refs { grid-template-columns: 1fr; } }
.ref {
  display: grid; gap: var(--s-2); align-content: start; grid-template-rows: auto auto 1fr auto;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-5); text-decoration: none; color: var(--ink); min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.ref:hover { border-color: var(--accent-fill); }
.ref h3 { font-size: 1.08rem; line-height: 1.3; }
.ref p { color: var(--ink-2); font-size: 0.95rem; }
.ref-src { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ref-src b { color: var(--accent); font-weight: 600; }
.ref-go { font-size: 0.9rem; font-weight: 600; color: var(--link); }

/* Agile Ops tenets */
.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.tenets > div { border-top: 2px solid var(--accent-fill); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.tenets h3 { font-size: 1.08rem; }
.tenets p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 560px) { .tenets { grid-template-columns: 1fr; } }

/* Analyst quote */
.quote { margin: var(--s-2) 0 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--accent-fill); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.quote cite { display: block; margin-top: var(--s-2); font-style: normal; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.phases--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .phases--4 { grid-template-columns: 1fr; } }

/* Use case library */
.ucs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 1000px) { .ucs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ucs { grid-template-columns: 1fr; } }
.uc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; grid-template-rows: auto auto auto 1fr auto; min-width: 0; }
.uc[hidden] { display: none !important; }
.uc h3 { font-size: 1.1rem; }
.uc-q { font-family: var(--f-display); color: var(--ink); font-size: 1rem; border-left: 2px solid var(--rule-strong); padding-left: var(--s-3); }
.uc ul { list-style: none; display: grid; gap: 6px; font-size: 0.92rem; color: var(--ink-2); }
.uc li { padding-left: 1rem; position: relative; }
.uc li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 1px; background: var(--accent-fill); }
.uc-out { font-size: 0.93rem; color: var(--ink); font-weight: 500; padding-top: var(--s-3); border-top: 1px solid var(--rule); align-self: end; }
.uc a { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* Dropdown navigation */
[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px); }
.has-menu { position: relative; }
.top-row { display: flex; align-items: center; }
.nav-links .top-row a.top { padding-right: 4px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 4px; padding: 0; }
.sub-toggle:hover { color: var(--ink); background: var(--surface-2); }
.sub-toggle svg { transition: transform .15s ease; }
.has-menu.open .sub-toggle svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; z-index: 60;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(10, 15, 28, 0.35);
  padding: var(--s-2); display: none;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.menu ul { list-style: none; display: grid; gap: 2px; }
.nav-links .menu a { display: block; padding: 8px 12px; font-size: 0.93rem; border-radius: 5px; white-space: nowrap; color: var(--ink); }
.nav-links .menu a:hover, .nav-links .menu a:focus-visible { background: var(--surface-2); }
.nav-links .menu .menu-overview { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); border-radius: 5px 5px 0 0; margin-bottom: 4px; }
@media (min-width: 1101px) {
  .has-menu:hover > .menu, .has-menu:focus-within > .menu, .has-menu.open > .menu { display: block; }
  .has-menu:nth-last-child(2) .menu { left: auto; right: 0; }
}
@media (max-width: 1100px) {
  .nav-links { max-height: calc(100vh - 64px); overflow-y: auto; }
  .top-row { justify-content: space-between; }
  .top-row a.top { flex: 1; }
  .sub-toggle { width: 40px; height: 40px; }
  .menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--rule); border-radius: 0; margin: 0 0 var(--s-2) var(--s-3); padding: 0 0 0 var(--s-2); min-width: 0; }
  .has-menu.open > .menu { display: block; }
  .nav-links .menu a { white-space: normal; padding: 8px 10px; }
  .menu::before { display: none; }
}

/* Diagrams */
.dg { margin: 0; display: grid; gap: var(--s-3); }
.dg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: var(--s-4); }
.dgsvg { display: block; width: 100%; height: auto; }
.dg figcaption { font-size: 0.9rem; color: var(--muted); max-width: 75ch; }
.dgsvg .box { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 1; }
.dgsvg .box.hl { fill: color-mix(in srgb, var(--accent-fill) 9%, var(--surface)); stroke: var(--accent-fill); stroke-width: 1.4; }
.dgsvg .box.sub { fill: var(--surface-2); stroke: var(--rule); }
.dgsvg .band { fill: var(--surface-2); stroke: none; }
.dgsvg .chipbox { fill: var(--surface-2); stroke: var(--rule); }
.dgsvg .chipbox.ent { fill: var(--surface); stroke: var(--rule-strong); }
.dgsvg .frame { fill: none; stroke: var(--rule-strong); stroke-dasharray: 4 4; }
.dgsvg .zone { fill: var(--surface-2); stroke: none; }
.dgsvg .zone.acc { fill: color-mix(in srgb, var(--accent-fill) 14%, transparent); }
.dgsvg .node { fill: var(--surface); stroke: var(--rule-strong); }
.dgsvg .node.acc { fill: color-mix(in srgb, var(--accent-fill) 35%, var(--surface)); stroke: var(--accent-fill); }
.dgsvg .ln { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.dgsvg .ln.acc { stroke: var(--accent-fill); }
.dgsvg .ln.dash { stroke-dasharray: 5 4; stroke-width: 2; }
.dgsvg .ahead { fill: var(--muted); }
.dgsvg text { font-family: var(--f-body); }
.dgsvg .t { fill: var(--ink); font-size: 14px; }
.dgsvg .t2 { fill: var(--ink-2); }
.dgsvg .mut { fill: var(--muted); font-size: 12.5px; }
.dgsvg .lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; }
.dgsvg .lbl.acc { fill: var(--accent); }
.dgsvg .mono, .dgsvg .code { fill: var(--ink); font-family: var(--f-mono); }
.dgsvg .code { fill: var(--ink-2); }
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.who > div { border-top: 2px solid var(--rule-strong); padding-top: var(--s-3); display: grid; gap: 4px; }
.who b { font-family: var(--f-display); font-size: 1rem; }
.who span { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 760px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Evolution staircase */
.stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); align-items: end; }
.step { display: grid; gap: var(--s-2); align-content: end; }
.step .k { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-size: 1.08rem; }
.step p { font-size: 0.92rem; color: var(--ink-2); }
.step i { display: block; height: calc(var(--h) * 34px); background: color-mix(in srgb, var(--brand-navy) calc(var(--h) * 14%), var(--surface-2)); border-radius: 4px 4px 0 0; margin-top: var(--s-2); }
.step--next i { background: var(--accent-fill); }
@media (max-width: 860px) {
  .stairs { grid-template-columns: 1fr; gap: var(--s-4); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step i { height: 8px; width: calc(var(--h) * 20%); border-radius: 0 4px 4px 0; }
}

/* Integrate, automate, orchestrate */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.pillars article { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; grid-template-rows: auto auto 1fr auto; }
.pillars h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.pillars p { color: var(--ink-2); }
.pillars a { font-weight: 600; text-decoration: none; }
.pillars .pillar--hl { border-color: var(--accent-fill); box-shadow: inset 0 3px 0 var(--accent-fill); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Integration logos: tiles stay white in both themes so vendor artwork reads correctly */
.logos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.logos--compact { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.logo { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 12px 10px; display: grid; justify-items: center; gap: 8px; min-width: 0; }
.logo[hidden] { display: none !important; }
.logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.logo span { font-size: 0.78rem; color: #4A556E; text-align: center; line-height: 1.25; }
.logos--compact .logo span { display: none; }
.logos--compact .logo { padding: 14px 10px; }
.logo-group { margin-top: var(--s-6); scroll-margin-top: 90px; }
.logo-group[hidden] { display: none !important; }
.logo-h { font-size: 1.25rem; margin-bottom: var(--s-4); display: flex; gap: var(--s-2); align-items: baseline; }
.logo-h .muted { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 400; }
.logo-q { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 5px; padding: 0.55rem 0.75rem; width: min(420px, 100%); }

/* Integration marquee */
.mq-band { display: grid; gap: var(--s-4); padding-block: var(--s-6); background: var(--surface-2); border-block: 1px solid var(--rule); overflow: hidden; }
.mq-band--home { margin-block: var(--s-5) var(--s-2); }
.mq { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: var(--s-4); padding-left: max(20px, env(safe-area-inset-left, 0px)); }
.mq-band--home .mq { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
.mq-label { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.mq-view { display: flex; overflow: hidden; gap: var(--s-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { list-style: none; display: flex; gap: var(--s-3); flex: none; min-width: max-content; animation: mq var(--dur, 60s) linear infinite; }
.mq--rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--s-3))); } }
.mq .logo { width: 150px; height: 76px; padding: 12px; display: flex; align-items: center; justify-content: center; flex: none; transition: transform .2s ease, box-shadow .2s ease; }
.mq .logo:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(10, 15, 28, 0.45); }
.mq .logo img { height: 40px; }
.logo--next { background: transparent !important; border: 1.5px dashed var(--accent-fill) !important; }
.logo--next a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.logo--next .plus { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; animation: nextpulse 2.4s ease-in-out infinite; }
@keyframes nextpulse { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 760px) { .mq { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding-left: 0; } .mq-label { padding-left: max(20px, env(safe-area-inset-left, 0px)); } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; flex-wrap: wrap; min-width: 0; }
  .mq-track[aria-hidden="true"] { display: none; }
  .mq-view { -webkit-mask-image: none; mask-image: none; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
  .logo--next .plus { animation: none; }
}

/* How a vendor is added */
.addsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); position: relative; }
.addsteps > div { border-top: 2px solid var(--accent-fill); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.addsteps .idx { color: var(--accent); }
.addsteps p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 760px) { .addsteps { grid-template-columns: 1fr; } }

/* Browse disclosure */
.browse { border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); padding: var(--s-4) var(--s-5); }
.browse summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; font-family: var(--f-display); font-weight: 650; font-size: 1.15rem; list-style: none; }
.browse summary::-webkit-details-marker { display: none; }
.browse summary::before { content: "+"; font-family: var(--f-mono); color: var(--accent); width: 1rem; }
.browse[open] summary::before { content: "−"; }
.browse summary .muted { font-family: var(--f-body); font-weight: 400; font-size: 0.93rem; }
.browse .filters { background: var(--bg); }

/* Logo sprite: one image for every integration, so no tile scrolls in empty */
.lg { display: block; width: 120px; height: 48px; background-image: url("logos/integrations.webp"); background-size: 960px 480px; background-repeat: no-repeat; }
.mq .logo .lg { transition: opacity .4s ease; }
.logos-wait .mq .logo .lg { opacity: 0; }
.logos-wait .mq-track { animation-play-state: paused; }

/* First visit intro: the brand logo builds, then flies into the header */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; cursor: pointer; }
.intro-bg { position: absolute; inset: 0; background: #F1F5F8; transition: opacity .7s ease .15s; }
.intro-v { position: relative; width: min(720px, 86vw); height: auto; transform-origin: 0 0; clip-path: inset(0 0 0 0); transition: transform .85s cubic-bezier(.65, 0, .25, 1), clip-path .35s ease, opacity .3s ease .6s; will-change: transform; }
.intro.fly .intro-v { clip-path: inset(39.5% 25.6% 42.5% 25.9%); }
.intro-v { -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 70%, transparent 100%); }
.intro-skip { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); font: inherit; font-size: 0.85rem; color: #46587E; background: transparent; border: 1px solid #C9D2E0; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: opacity .3s ease; }
.intro.fly .intro-bg, .intro.fly .intro-skip { opacity: 0; }
.intro.fly { pointer-events: none; }
.intro.fly .intro-v { opacity: 0; }
.intro-on .site-header .brand svg { opacity: 0; }
.site-header .brand svg { transition: opacity .35s ease; }
.intro-seen .intro { display: none !important; }

/* Overview film button */
.film-btn { display: inline-flex; align-items: center; gap: var(--s-3); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 18px 8px 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; width: fit-content; max-width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.film-btn:hover { border-color: var(--accent-fill); box-shadow: 0 12px 26px -18px rgba(10, 15, 28, 0.5); }
.film-thumb { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; flex: none; background: #FFFFFF; max-width: 100%; }
.film-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 4px 14px rgba(10, 15, 28, 0.3); transition: transform .15s ease; }
.film-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--accent-ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film-btn:hover .film-play { transform: scale(1.08); }
.film-txt { display: grid; gap: 2px; min-width: 0; }
.film-txt b { font-family: var(--f-display); font-size: 1rem; }
.film-txt small { color: var(--muted); font-size: 0.85rem; }

/* Film viewer */
.film { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.film::backdrop { background: rgba(8, 12, 22, 0.82); backdrop-filter: blur(4px); }
.film-box { position: relative; display: grid; gap: var(--s-2); }
.film-box video { width: 100%; height: auto; border-radius: 10px; background: #000; display: block; }
.film-close { justify-self: end; font: inherit; font-size: 0.9rem; color: #FFFFFF; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Video hero: Cloudiamo teaser plays silently behind the headline */
.hero--video { position: relative; overflow: hidden; background: #0A0F1C; color: #E8EDF6; min-height: min(760px, 88vh); display: grid; align-items: center; padding-block: var(--s-8); }
.hero--video .hero-media { position: absolute; inset: 0; background: #0A0F1C url("video/hero-poster.jpg") center / cover no-repeat; }
.hero--video .hero-bg { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s ease; filter: saturate(0.12) brightness(0.9); transform: scale(1.03); }
.hero--video .hero-bg.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 28, 0.96) 0%, rgba(10, 15, 28, 0.92) 46%, rgba(10, 15, 28, 0.5) 72%, rgba(10, 15, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 15, 28, 0.85) 0%, rgba(10, 15, 28, 0) 30%); }
.hero--video .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.hero--video h1 { color: #FFFFFF; }
.hero--video .eyebrow { color: var(--brand-mint); }
.hero--video .lead { color: #C9D3E6; }
.hero--video .btn--ghost { color: #E8EDF6; border-color: rgba(232, 237, 246, 0.4); }
.hero--video .btn--ghost:hover { border-color: #E8EDF6; }
.hero-play { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.play-big { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(52, 193, 134, 0.92); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); transition: transform .2s ease, background-color .2s ease; }
.play-big:hover { transform: scale(1.06); background: var(--brand-mint); }
.play-big:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }
.play-tri { position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 26px solid #062016; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.play-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(88, 240, 176, 0.6); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.play-cap { display: grid; gap: 2px; }
.play-cap b { font-family: var(--f-display); font-size: 1.1rem; color: #FFFFFF; }
.play-cap small { color: #A5B1C9; font-size: 0.85rem; }
.bg-toggle { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; font: inherit; font-size: 0.78rem; color: #C9D3E6; background: rgba(10, 15, 28, 0.55); border: 1px solid rgba(232, 237, 246, 0.3); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .hero--video { min-height: 0; }
  .hero--video .hero-grid { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 15, 28, 0.88) 0%, rgba(10, 15, 28, 0.78) 100%); }
  .hero-play { justify-items: start; grid-template-columns: auto 1fr; align-items: center; text-align: left; }
  .play-big { width: 64px; height: 64px; }
  .play-tri { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
}
@media (prefers-reduced-motion: reduce) { .play-ring { animation: none; } }

.refs--cov { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref[hidden] { display: none; }
@media (max-width: 1000px) { .refs--cov { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .refs--cov { grid-template-columns: 1fr; } }

/* Intro: video background is pure white, multiplied away so only the logo shows on any page colour */
.intro-v { mix-blend-mode: multiply; }
.intro[data-fly="0"].fly .intro-v { clip-path: inset(0 0 0 0); opacity: 0; transition: opacity .5s ease; }

.vc-tag { align-self: center; margin-left: .45em; font-family: var(--f-body); font-size: max(.32em, 11px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(55,185,135,.55); background: #EAF4F0; border-radius: 999px; padding: .25em .7em; white-space: nowrap; opacity: 0; transform: translateX(-.4em); transition: opacity .5s ease .2s, transform .5s ease .2s; }
.vcount.done .vc-tag { opacity: 1; transform: none; }
.vc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .3em; margin: var(--s-4) 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.1; color: var(--accent); }
.vc-big-lbl { font-size: 1.1rem; font-weight: 500; color: var(--ink-2); font-family: var(--f-body); }
.ledger .vc-tag { font-size: 11px; }

.vc-num { position: relative; display: inline-flex; align-items: baseline; }
.vcount, .vc-vis { position: relative; display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vc-pop { position: absolute; left: 70%; top: -0.9em; font-size: max(0.5em, 11px); font-weight: 700; color: var(--accent); opacity: 0; pointer-events: none; font-family: var(--f-display); }
.vc-pop.go { animation: vcPop .65s ease-out; }
@keyframes vcPop { 0% { opacity: 0; transform: translateY(.5em); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.1em); } }
.vc-live { display: inline-block; width: max(.28em, 7px); height: max(.28em, 7px); border-radius: 50%; background: var(--accent-fill); margin-left: .22em; align-self: center; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.vcount.done .vc-live { opacity: 1; transform: none; animation: vcLive 1.9s ease-out infinite; }
@keyframes vcLive { 0% { box-shadow: 0 0 0 0 rgba(55,185,135,.6); } 70% { box-shadow: 0 0 0 max(.45em, 8px) rgba(55,185,135,0); } 100% { box-shadow: 0 0 0 0 rgba(55,185,135,0); } }
.vcount .vc-n.tick { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .vcount.done .vc-live { animation: none; } }

.gfx { margin: 0; display: grid; gap: var(--s-3); }
.gfx-img { display: block; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.gfx-img img { display: block; width: 100%; height: auto; }
.gfx-img:hover { border-color: var(--accent); }
.gfx figcaption { font-size: .85rem; color: var(--muted); }
.gfx figcaption a { color: var(--link); text-decoration: none; }
#stack .gfx { max-width: 1040px; margin-inline: auto; }
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-5); }
.marks .pmark { height: 30px; width: auto; }
.domain .pmark { height: 26px; width: auto; justify-self: start; }
.domain { grid-template-rows: auto auto auto auto 1fr auto; }

.page-head--sub { border-top: 1px solid var(--rule); }
.page-head--sub .h1like { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: var(--s-2) 0 var(--s-3); }

.pmodel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: stretch; }
.pstack { display: grid; gap: 6px; align-content: center; }
.ps { border-radius: var(--radius); padding: var(--s-4) var(--s-5); display: grid; gap: 2px; border: 1px solid var(--rule); background: var(--surface); }
.ps .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ps b { font-family: var(--f-display); font-size: 1.1rem; }
.ps small { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; }
.ps--top { border: 2px dashed var(--accent); background: transparent; }
.ps--top .k { color: var(--accent); }
.ps--mid { background: var(--band); border-color: var(--band); color: var(--band-ink); padding-block: var(--s-5); }
.ps--mid .k, .ps--mid small { color: var(--brand-mint); }
.pways { display: grid; gap: var(--s-4); }
.pways article { border-top: 2px solid var(--accent-fill); padding-top: var(--s-3); display: grid; gap: 4px; }
.pways .idx { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--accent); }
.pways h3 { font-size: 1.15rem; }
.pways p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pmodel { grid-template-columns: 1fr; } }

.cycler { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: var(--s-4) 0 var(--s-3); }
.cy-lbl { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #A5B1C9; border: 1px solid rgba(165,177,201,.35); border-radius: 999px; padding: .25rem .6rem; }
.cy-win { position: relative; display: inline-block; height: 1.3em; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--brand-mint, #58F0B0); }
.cy-win::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .5; transform-origin: left; transform: scaleX(0); }
.cy-win.tick::after { animation: cyBar var(--cy-ms, 2400ms) linear forwards; }
@keyframes cyBar { to { transform: scaleX(1); } }
@media (max-width: 420px) { .cy-win { font-size: 1.22rem; } }
.cy-track { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.65,0,.35,1); }
.cy-item { display: block; height: 1.3em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cy-win, .cy-lbl { } 
@media (prefers-reduced-motion: reduce) { .cy-track { transition: none; } .cy-win.tick::after { animation: none; } }

.award-pill { width: fit-content; justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem; margin-bottom: var(--s-4); border: 1px solid rgba(88,240,176,.45); border-radius: 999px; background: rgba(52,193,134,.14); color: #E8FFF5; font-size: .88rem; font-weight: 600; text-decoration: none; }
.award-pill:hover { background: rgba(52,193,134,.26); }
.award-pill .medal { width: 22px; height: 22px; }
.medal .rib { fill: var(--accent); opacity: .75; } .medal .disc { fill: var(--brand-mint, #58F0B0); } .medal .star { fill: #0A0F1C; }
.recognition { background: var(--surface); border-bottom: 1px solid var(--rule); }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); align-items: start; }
.rec-awards h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: var(--s-2) 0 var(--s-5); }
.awards { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); }
.awards li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-top: 1px solid var(--rule); }
.awards .medal { width: 40px; height: 40px; }
.awards b { display: block; font-family: var(--f-display); font-size: 1.08rem; }
.awards span { color: var(--muted); font-size: .92rem; }
.analyst { margin: 0; padding: var(--s-6); border-radius: var(--radius); background: var(--band, #121A2E); color: var(--band-ink, #E8EEF8); display: grid; gap: var(--s-3); }
.analyst .eyebrow { color: var(--brand-mint); }
.analyst blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 600; }
.analyst blockquote p::before { content: "“"; } .analyst blockquote p::after { content: "”"; }
.analyst figcaption a { color: var(--brand-mint); font-family: var(--f-mono); font-size: .8rem; text-decoration: none; }
.chips--links a { color: inherit; text-decoration: none; } .chips--links li:hover { border-color: var(--accent); }
.analyst-row { margin-top: var(--s-6); max-width: 44rem; }
.cardquote { font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--accent-fill); padding-left: var(--s-3); margin: 0; }
.cardquote cite { display: block; font-style: normal; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .rec-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.tiles--links a { display: grid; gap: 4px; align-content: start; border-top: 2px solid var(--accent-fill); padding-top: var(--s-3); color: var(--ink); text-decoration: none; }
.tiles--links a:hover b { color: var(--accent); }
.tiles--links b { font-family: var(--f-display); font-size: 1.12rem; }
.tiles--links span { color: var(--muted); font-size: .95rem; }
.catalysts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.cat { display: grid; gap: var(--s-2); align-content: start; grid-template-rows: auto auto 1fr auto; padding: var(--s-5); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.cat--win { border-color: var(--accent-fill); }
a.cat:hover { border-color: var(--accent); }
.cat h3 { font-size: 1.05rem; }
.cat p { color: var(--muted); font-size: .93rem; }
.award { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.award--plain { color: var(--muted); }
@media (max-width: 1000px) { .catalysts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .catalysts { grid-template-columns: 1fr; } }

/* ---- Lean edition ---- */
.pressures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.pressures > div { border-top: 2px solid var(--accent-fill); padding-top: var(--s-3); display: grid; gap: 4px; }
.pressures b { font-family: var(--f-display); font-size: 1.25rem; }
.pressures span { color: var(--muted); font-size: .95rem; }
.ledger--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.drcard { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.drcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.drcard .k { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); letter-spacing: .05em; }
.drcard .fig { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; margin-top: var(--s-2); }
.drcard small { color: var(--muted); }
.drcard h3 { font-size: 1.08rem; margin-top: var(--s-3); }
.drcard .c { color: var(--muted); font-size: .9rem; }
.ref--compact { grid-template-rows: auto 1fr auto; }
.ref--compact h3 { font-size: 1rem; }
.refs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: 0; }
.chips li { font-family: var(--f-mono); font-size: .8rem; padding: .4rem .75rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.tiles > div { border-top: 2px solid var(--accent-fill); padding-top: var(--s-3); display: grid; gap: 4px; align-content: start; }
.tiles b { font-family: var(--f-display); font-size: 1.12rem; }
.tiles span:not(.status) { color: var(--muted); font-size: .95rem; }
.tiles .status { justify-self: start; }
.uc--compact { grid-template-rows: auto auto 1fr; }
.uc--compact .uc-out { margin-top: auto; }
.quote--wide { margin-top: var(--s-7); max-width: 60rem; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-detail { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface-2); }
.more-detail > summary { cursor: pointer; padding: var(--s-3) var(--s-5); font-weight: 600; list-style: none; display: flex; align-items: center; gap: .6rem; }
.more-detail > summary::-webkit-details-marker { display: none; }
.more-detail > summary::before { content: "+"; font-family: var(--f-mono); color: var(--accent); width: 1ch; }
.more-detail[open] > summary::before { content: "−"; }
.detail-body { padding: 0 var(--s-5) var(--s-5); display: grid; gap: var(--s-6); }
.failpath--compact h4 { margin: 0; }
.statement { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; max-width: 30ch; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 1000px) { .pressures, .ledger--4, .refs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .drcards, .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .pressures, .ledger--4, .refs--4, .drcards, .tiles, .facts--3 { grid-template-columns: 1fr; } }

/* ==== Light theme aligned to the UBiqube decks: white canvas, sage tints, slate ink, green accent,
   Space Grotesk headings and Montserrat body ==== */
:root { --brand-mint: #1E9E6E;
  --bg: #FCFDFE; --surface: #FFFFFF; --surface-2: #F1F6F4;
  --ink: #13181D; --ink-2: #435D74; --muted: #5C6E7C;
  --rule: #DCE6E3; --rule-strong: #B9CBC6;
  --accent: #1E7A57; --accent-fill: #37B987; --accent-ink: #062016;
  --link: #1F6A86; --focus: #37B987;
  --band: #EAF4F0; --band-ink: #13181D; --band-muted: #4E6470; --band-rule: #CFE2DD;
  --ok: #1E7A57;
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-mono: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-mint: #1E9E6E;
  --bg: #FCFDFE; --surface: #FFFFFF; --surface-2: #F1F6F4;
  --ink: #13181D; --ink-2: #435D74; --muted: #5C6E7C;
  --rule: #DCE6E3; --rule-strong: #B9CBC6;
  --accent: #1E7A57; --accent-fill: #37B987; --accent-ink: #062016;
  --link: #1F6A86; --focus: #37B987;
  --band: #EAF4F0; --band-ink: #13181D; --band-muted: #4E6470; --band-rule: #CFE2DD;
  --ok: #1E7A57;
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-mono: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light; } :root:not([data-theme="light"]) .brand { color: inherit; } }
:root[data-theme="dark"] { --brand-mint: #1E9E6E;
  --bg: #FCFDFE; --surface: #FFFFFF; --surface-2: #F1F6F4;
  --ink: #13181D; --ink-2: #435D74; --muted: #5C6E7C;
  --rule: #DCE6E3; --rule-strong: #B9CBC6;
  --accent: #1E7A57; --accent-fill: #37B987; --accent-ink: #062016;
  --link: #1F6A86; --focus: #37B987;
  --band: #EAF4F0; --band-ink: #13181D; --band-muted: #4E6470; --band-rule: #CFE2DD;
  --ok: #1E7A57;
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-mono: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.015em; }
.dgsvg .code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.site-header { background: rgba(252,253,254,.92); }
.band { background: var(--band); color: var(--band-ink); }
.ledger { border-color: var(--band-rule); }
.ledger .fig, .failpath .code, .layer .tag { color: var(--accent); }
.btn--primary { background: var(--accent-fill); color: #062016; }
.btn--primary:hover, .nav-links .btn--primary:hover { background: #2FA374; color: #fff; }
/* Hero: light, deck style sage wash over a softened, inverted film */
.hero--video { background: var(--bg); color: var(--ink); }
.hero--video .hero-media { background:
   radial-gradient(60% 80% at 85% 20%, rgba(190,212,207,.55), transparent 60%),
   radial-gradient(50% 70% at 70% 90%, rgba(207,226,221,.6), transparent 60%),
   linear-gradient(180deg, #FCFDFE, #F2F7F6); }
.hero--video .hero-bg { filter: invert(1) hue-rotate(180deg) grayscale(1) contrast(.6) brightness(1.12) blur(1.5px); mix-blend-mode: multiply; }
.hero--video .hero-bg.is-playing { opacity: .42; }
.hero-shade { background:
   linear-gradient(90deg, rgba(252,253,254,.97) 0%, rgba(252,253,254,.92) 44%, rgba(252,253,254,.45) 72%, rgba(234,244,240,.25) 100%),
   linear-gradient(0deg, rgba(252,253,254,.9) 0%, rgba(252,253,254,0) 28%); }
.hero--video h1 { color: var(--ink); }
.hero--video .eyebrow { color: var(--accent); }
.hero--video .lead { color: var(--ink-2); }
.hero--video .btn--ghost { color: var(--ink); border-color: var(--rule-strong); background: rgba(255,255,255,.6); }
.hero--video .btn--ghost:hover { border-color: var(--ink-2); }
.play-big { box-shadow: 0 16px 36px -14px rgba(19,24,29,.45); }
.play-big:hover { background: #2FA374; }
.play-ring { border-color: rgba(55,185,135,.55); }
.play-cap b { color: var(--ink); } .play-cap small { color: var(--muted); }
.play-big:focus-visible { outline-color: var(--ink); }
.bg-toggle { color: var(--ink-2); background: rgba(255,255,255,.8); border-color: var(--rule-strong); }
.cy-lbl { color: var(--muted); border-color: var(--rule-strong); }
.cy-win { color: var(--accent); }
.award-pill { border-color: rgba(55,185,135,.55); background: #EAF4F0; color: var(--accent); }
.award-pill:hover { background: #DDEFE7; }
.medal .disc { fill: var(--accent-fill); } .medal .star { fill: #FFFFFF; } .medal .rib { fill: #435D74; opacity: .8; }
.analyst { background: var(--band); color: var(--ink); border: 1px solid var(--band-rule); }
.analyst .eyebrow, .analyst figcaption a { color: var(--accent); }
.ps--mid { background: var(--band); color: var(--ink); border-color: var(--band-rule); }
.ps--mid .k, .ps--mid small { color: var(--accent); }
.site-footer { background: #F1F6F4; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer h4 { color: var(--ink); } .site-footer a { color: var(--ink-2); }

.intro-bg { background: #FCFDFE; }
.foot-brand { color: var(--ink); } .foot-brand p { color: var(--muted); }

/* mobile: more space between hero buttons and the film button */
@media (max-width: 860px) { .hero--video .hero-play { margin-top: 28px; padding-top: 10px; } }
.brief-note[hidden] { display: none !important; }

/* Cookie choice banner: compact corner card */
.cc { position: fixed; z-index: 150; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 340px; display: grid; gap: 10px; background: var(--bg, #FCFDFE); border: 1px solid var(--rule, #D5DEE6); border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 28px -16px rgba(10, 15, 28, .35); font-size: .82rem; }
.cc[hidden] { display: none; }
.cc-txt { margin: 0; line-height: 1.45; color: var(--ink-2, #435D74); }
.cc-txt a { color: inherit; text-decoration: underline; }
.cc-btns { display: flex; gap: 8px; }
.cc-btn { flex: 1; font: inherit; font-weight: 600; font-size: .8rem; padding: 6px 12px; border-radius: 6px; cursor: pointer; background: transparent; color: var(--ink, #13181D); border: 1px solid var(--rule, #C9D2E0); }
.cc-btn:hover { border-color: var(--accent-fill, #37B987); }
.intro-on .cc { display: none; }
.cc-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cc-open:hover { text-decoration: underline; }
@media (max-width: 520px) { .cc { right: 16px; max-width: none; } }
