/* boostengine.ai — visual shell design system (2026-11).
   One stylesheet for every shell page. Page-specific figures live at the end. */
@import url('/assets/fonts/fonts.css');

/* ───────────── Tokens ───────────── */
:root {
  color-scheme: dark;
  --bg: #0a0a09;
  --bg-1: #0f0f0e;
  --bg-2: #141412;
  --bg-3: #1b1b18;
  --line: rgba(236, 230, 218, .085);
  --line-2: rgba(236, 230, 218, .15);
  --line-3: rgba(236, 230, 218, .3);
  --fg: #ece6da;
  --fg-body: #cbc4b6;
  --fg-2: #a39c8e;
  --fg-3: #8a8478;
  --fg-4: #6e695f;
  --signal: #e0a04a;
  --signal-2: rgba(224, 160, 74, .22);
  --signal-3: rgba(224, 160, 74, .08);
  --cool: #8fa4b4;
  --cool-2: rgba(143, 164, 180, .2);

  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max: 1360px;
  --pad: clamp(20px, 4.2vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --header: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --t-xxl: clamp(48px, 7.4vw, 118px);
  --t-xl: clamp(42px, 5.6vw, 88px);
  --t-l: clamp(32px, 3.8vw, 58px);
  --t-m: clamp(24px, 2.3vw, 34px);
  --t-s: clamp(19px, 1.45vw, 22px);
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: .003em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a:not(.link):not(.btn), .prose a:not(.fn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .3s var(--ease); }
p a:not(.link):not(.btn):hover, .prose a:not(.fn):hover { text-decoration-color: var(--signal); }
h1, h2, h3, h4 { color: var(--fg); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: #120d05; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ───────────── Layout ───────────── */
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: clamp(80px, 9.5vw, 144px); position: relative; }
.section.tight { padding-block: clamp(64px, 7vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--bg-1); }

/* ───────────── Type roles ───────────── */
.label {
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.label b { color: var(--fg-2); font-weight: 500; }
.display { font-size: var(--t-xxl); line-height: .98; letter-spacing: -.042em; }
.h1 { font-size: var(--t-xl); line-height: 1; letter-spacing: -.038em; }
.h2 { font-size: var(--t-l); line-height: 1.04; letter-spacing: -.032em; }
.h3 { font-size: var(--t-m); line-height: 1.14; letter-spacing: -.02em; }
.h4 { font-size: var(--t-s); line-height: 1.3; letter-spacing: -.008em; font-weight: 500; }
.lead { font-size: var(--t-s); line-height: 1.5; color: var(--fg-2); letter-spacing: -.004em; }
.lead strong { color: var(--fg); font-weight: 400; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.muted { color: var(--fg-3); }
.statement { font-size: var(--t-m); line-height: 1.24; letter-spacing: -.02em; color: var(--fg-4); max-width: 30em; }
.statement em { font-style: normal; color: var(--fg); }
.serif { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: 0; }
.signal { color: var(--signal); }
.num { font-feature-settings: 'tnum' 1; }

/* ───────────── Links & controls ───────────── */
.link {
  display: inline-flex; align-items: baseline; gap: .5em;
  color: var(--fg); font-size: 15px; letter-spacing: .005em;
  padding-bottom: 3px; border-bottom: 1px solid var(--line-3);
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.link::after { content: '→'; font-family: var(--sans); transition: transform .45s var(--ease); }
.link:hover { border-color: var(--fg); }
.link:hover::after { transform: translateX(4px); }
.link.out::after { content: '↗'; }
.btn {
  display: inline-flex; align-items: center; gap: .6em; height: 44px; padding: 0 20px;
  border: 1px solid var(--line-3); color: var(--fg); font-size: 15px; letter-spacing: .005em;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn::after { content: '→'; transition: transform .45s var(--ease); }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:hover::after { transform: translateX(3px); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); border: 1px solid var(--line-2); padding: 5px 7px 4px; white-space: nowrap;
}
.tag.warn { color: var(--signal); border-color: var(--signal-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); display: inline-block; flex: none; }
.dot.live { box-shadow: 0 0 0 0 var(--signal-2); animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,160,74,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(224,160,74,0); } }

/* ───────────── Header ───────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open { background: var(--bg); border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--fg); font-size: 15.5px; font-weight: 500; letter-spacing: -.005em; flex: none; }
.brand img { height: 17px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav > button {
  font-size: 14.5px; color: var(--fg-2); padding: 8px 12px; letter-spacing: .005em;
  display: inline-flex; align-items: center; gap: 7px; transition: color .25s var(--ease);
}
.nav > a:hover, .nav > button:hover, .nav > [aria-current], .nav > button[aria-expanded="true"] { color: var(--fg); }
.nav > [aria-current]::before { content: ''; width: 4px; height: 4px; background: var(--signal); border-radius: 50%; }
.nav .chev { width: 9px; height: 9px; transition: transform .35s var(--ease); }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav .nav-cta { margin-left: 12px; color: var(--fg); border: 1px solid var(--line-2); padding: 8px 14px; }
.nav .nav-cta:hover { border-color: var(--line-3); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-btn span { width: 18px; height: 1px; background: var(--fg); position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--fg); transition: transform .35s var(--ease); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.site-header:has(.nav-group[open], .site-menu.open) { background: var(--bg); border-color: var(--line); }
.site-menu summary { display: flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: 14.5px; color: var(--fg-2); list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover, .site-menu details[open] > summary, .nav-group:has([aria-current="page"]) summary { color: var(--fg); }
.site-menu details[open] .chev { transform: rotate(180deg); }
.nav-sections { position: absolute; top: 100%; right: var(--pad); display: flex; gap: clamp(24px, 3vw, 64px); max-width: calc(100% - 2 * var(--pad)); max-height: calc(100dvh - var(--header)); overflow-y: auto; padding: 20px 28px 24px; border: 1px solid var(--line); background: var(--bg-1); }
.nav-column { min-width: 150px; max-width: 250px; display: flex; flex-direction: column; }
.nav-column a { padding: 6px 0; font-size: 14.5px; line-height: 1.35; color: var(--fg-2); }
.nav-column .nav-page, .nav-column .label { margin-bottom: 6px; padding-bottom: 12px; color: var(--fg); border-bottom: 1px solid var(--line); }
.nav-column a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 961px) {
  .nav-group:not(:has(.nav-column + .nav-column)) { position: relative; }
  .nav-group:not(:has(.nav-column + .nav-column)) .nav-sections { top: calc(100% + (var(--header) - 100%) / 2); min-width: 212px; max-width: 300px; right: 0; }
}
@media (max-width: 960px) {
  .site-menu.open { display: block; position: fixed; inset: var(--header) 0 0; margin: 0; overflow-y: auto; padding: 12px var(--pad) 40px; background: var(--bg); }
  .nav-group, .site-menu > .nav-direct { border-bottom: 1px solid var(--line); }
  .site-menu > .nav-direct { display: flex; width: 100%; padding: 15px 0; font-size: 21px; }
  .site-menu summary { padding: 15px 0; justify-content: space-between; font-size: 21px; }
  .nav-sections { position: static; flex-direction: column; gap: 14px; padding: 0 0 18px 14px; background: transparent; border: 0; max-width: none; max-height: none; }
  .nav-column { max-width: none; }
  .nav-column a { padding: 8px 0; }
}


/* ───────────── Chapter heads ───────────── */
.chapter-head {
  display: flex; align-items: baseline; gap: 18px;
  border-top: 1px solid var(--line-2); padding-top: 14px; margin-bottom: clamp(36px, 5vw, 72px);
}
.chapter-head .label:last-child { margin-left: auto; }
.section > .wrap > .chapter-head:first-child { margin-top: 0; }
.chapter-title { grid-column: 1 / span 7; }
.chapter-aside { grid-column: 9 / -1; align-self: end; }

/* ───────────── Plates (figures) ───────────── */
.plate {
  --tick: 9px; --tc: var(--line-3);
  margin: 0; position: relative; background:
    linear-gradient(var(--tc), var(--tc)) top left / var(--tick) 1px,
    linear-gradient(var(--tc), var(--tc)) top left / 1px var(--tick),
    linear-gradient(var(--tc), var(--tc)) top right / var(--tick) 1px,
    linear-gradient(var(--tc), var(--tc)) top right / 1px var(--tick),
    linear-gradient(var(--tc), var(--tc)) bottom left / var(--tick) 1px,
    linear-gradient(var(--tc), var(--tc)) bottom left / 1px var(--tick),
    linear-gradient(var(--tc), var(--tc)) bottom right / var(--tick) 1px,
    linear-gradient(var(--tc), var(--tc)) bottom right / 1px var(--tick),
    var(--bg-1);
  background-repeat: no-repeat;
  border: 1px solid var(--line);
}
.plate-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 44px; }
.plate-bar .label:nth-child(2) { color: var(--fg-2); }
.plate-bar .tag { margin-left: auto; }
.plate-body { position: relative; padding: clamp(16px, 2.2vw, 28px); }
.plate figcaption, .plate .caption { padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.plate figcaption b { color: var(--fg-2); font-weight: 500; }
.plate.bare { background: none; border: 0; }

/* SVG chart primitives shared by figures */
.fig { width: 100%; height: auto; overflow: visible; }
.fig text { font-family: var(--mono); font-size: 10.5px; fill: var(--fg-3); letter-spacing: .04em; }
.fig .t-sans { font-family: var(--sans); letter-spacing: 0; }
.fig .t-fg { fill: var(--fg); }
.fig .t-2 { fill: var(--fg-2); }
.fig .grid-l { stroke: var(--line); stroke-width: 1; }
.fig .axis { stroke: var(--line-2); stroke-width: 1; }
.fig .hair { stroke: var(--line-3); stroke-width: 1; fill: none; }

/* ───────────── Ledger (table-like rows) ───────────── */
.ledger { border-top: 1px solid var(--line-2); }
.ledger-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 22px 0 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger-row > .label:first-child { grid-column: span 2; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; font-feature-settings: 'tnum' 1; }
table.data th { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); text-align: left; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
table.data td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); color: var(--fg-body); vertical-align: top; }
table.data td:first-child { color: var(--fg); }
table.data .r { text-align: right; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ───────────── Footer ───────────── */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 128px); background: var(--bg); }
.footer-mark { grid-column: 1 / span 7; }
.footer-mark p { font-size: var(--t-l); line-height: 1.04; letter-spacing: -.032em; color: var(--fg); max-width: 11em; }
.footer-cta { grid-column: 9 / -1; align-self: end; display: grid; gap: 14px; justify-items: start; }
.footer-cta p { font-size: 15px; color: var(--fg-3); max-width: 24em; }
.footer-mark .label { display: block; margin-bottom: 22px; }
.footer-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(64px, 8vw, 112px); padding-top: 22px; border-top: 1px solid var(--line); }
.footer-cols h3 { font: 500 11.5px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { font-size: 14.5px; color: var(--fg-2); transition: color .25s; }
.footer-cols a:hover { color: var(--fg); }
.footer-cols address { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--fg-3); }
.footer-cols address strong { display: block; color: var(--fg-2); font-weight: 500; }
.footer-cols address + address { margin-top: 14px; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; padding: 28px 0 36px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.footer-bottom .preview-note { display: inline-flex; align-items: center; gap: 8px; }

/* ───────────── Reveal ───────────── */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ───────────── Page hero (shared bones) ───────────── */
.hero { padding-top: calc(var(--header) + clamp(56px, 9vw, 132px)); padding-bottom: clamp(56px, 7vw, 104px); position: relative; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(26px, 3vw, 40px); }
.hero-kicker .rule { flex: 0 0 36px; height: 1px; background: var(--line-3); }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--fg-3); transition: color .25s; }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--fg-4); }

/* ───────────── Next-page band ───────────── */
.next {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line);
}
.next a.next-link { grid-column: 4 / -1; display: block; }
.next .label { grid-column: 1 / span 3; padding-top: 14px; }
.next .next-name { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; font-size: var(--t-l); line-height: 1.04; letter-spacing: -.032em; color: var(--fg); }
.next .next-name::after { content: '→'; font-size: .7em; color: var(--fg-3); transition: transform .5s var(--ease), color .5s var(--ease); }
.next a:hover .next-name::after { transform: translateX(8px); color: var(--signal); }
.next .next-line { display: block; margin-top: 12px; color: var(--fg-3); font-size: 16px; }

/* ═══════════════════════════════════════════════════════════════════
   HOME
   ═══════════════════════════════════════════════════════════════════ */
.home-hero { min-height: min(100svh, 1000px); display: flex; flex-direction: column; padding-top: calc(var(--header) + clamp(40px, 6vw, 88px)); padding-bottom: 0; }
.hero-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-field::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 9, .62) 24%, rgba(10, 10, 9, .25) 50%, rgba(10, 10, 9, 0) 64%), linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 9, 0) 30%); }
.home-hero > .wrap { position: relative; z-index: 1; }
.hero-field .hub { position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); will-change: transform; }
.gl-on .hub.on { opacity: 1; }
.hero-field .hub i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid rgba(236, 230, 218, .42); }
.hero-field .hub.main i { left: -30px; top: -24px; width: 60px; height: 48px; border-color: rgba(224, 160, 74, .7); }
.hero-field .hub span, .hero-field .hub small { position: absolute; left: 30px; white-space: nowrap; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-field .hub span { top: -44px; color: var(--fg-2); }
.hero-field .hub small { top: -30px; color: var(--fg-3); letter-spacing: .06em; }
.hero-field .hub.main span { left: 44px; top: -56px; color: var(--signal); }
.hero-field .hub.main small { left: 44px; top: -42px; color: var(--fg-2); }
.hero-field .hub span::before { content: ''; position: absolute; left: -14px; top: 13px; width: 10px; height: 1px; background: currentColor; transform-origin: right; rotate: -40deg; opacity: .6; }
.hero-field-note { position: absolute; z-index: 1; right: var(--pad); top: calc(var(--header) + 22px); color: var(--fg-4); display: none; }
.gl-on ~ .hero-field-note { display: block; }
.home-hero h1, .home-hero .hero-body > p { font-family: 'Inter', var(--sans); font-weight: 300; }
.home-hero h1 { grid-column: 1 / span 11; }
.home-hero .hero-body { grid-column: 1 / span 6; margin-top: clamp(24px, 2.6vw, 36px); max-width: 35em; }
.home-hero .hero-body p { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--fg-2); }
.home-hero .hero-body p strong { color: var(--fg); font-weight: 400; }
.home-hero .hero-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.home-hero .grid { flex: 1; align-content: center; }
.directory { margin-top: clamp(40px, 5vw, 72px); position: relative; }
.directory-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.directory-line .pulse { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-3); opacity: 0; }
.directory ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); }
.directory li { border-left: 1px solid var(--line); }
.directory li:first-child { border-left: 0; }
.directory a { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 30px; height: 100%; transition: background .4s var(--ease); }
.directory li:first-child a { padding-left: 0; }
.directory a:hover { background: linear-gradient(to bottom, var(--bg-2), transparent); }
.directory li:first-child a:hover { background: none; }
.directory strong { color: var(--fg); font-weight: 500; font-size: 16.5px; letter-spacing: -.01em; }
.directory span.d { font-size: 14px; color: var(--fg-3); line-height: 1.45; }
.directory a:hover strong { color: var(--signal); }
.directory .lit .label { color: var(--signal); }

.kde { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.kde-col { padding: 26px 28px 8px 0; position: relative; }
.kde-col + .kde-col { padding-left: 28px; border-left: 1px solid var(--line); }
.kde-col .h3 { margin: 18px 0 14px; }
.kde-col p { color: var(--fg-2); font-size: 16px; max-width: 24em; }
.kde-col .parts { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.kde-col .parts a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--fg); font-size: 15px; transition: color .25s; }
.kde-col .parts a span { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--fg-3); }
.kde-col .parts a:hover { color: var(--signal); }
.kde-arrow { position: absolute; top: -5px; right: -5px; width: 9px; height: 9px; border-top: 1px solid var(--line-3); border-right: 1px solid var(--line-3); transform: rotate(45deg); background: var(--bg); }
.kde-col:last-child .kde-arrow { display: none; }

.cite { font: 500 10.5px/1 var(--mono); color: var(--signal); vertical-align: super; margin-left: 2px; letter-spacing: 0; }

/* Research teaser on home */
.r-teaser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.r-lead { grid-column: 1 / span 7; display: block; }
.r-lead .r-art { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-1); margin-bottom: 24px; overflow: hidden; }
.r-lead h3 { font-size: var(--t-m); line-height: 1.12; letter-spacing: -.02em; transition: color .3s; }
.r-lead:hover h3 { color: var(--signal); }
.r-lead p { margin-top: 14px; color: var(--fg-2); max-width: 34em; }
.r-side { grid-column: 9 / -1; border-top: 1px solid var(--line-2); }
.r-item { display: block; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.r-item h3, .r-item h4 { font-size: 19px; line-height: 1.28; letter-spacing: -.01em; margin-top: 10px; transition: color .3s; }
.r-item:hover h3, .r-item:hover h4 { color: var(--signal); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }

.closing { text-align: left; }
.closing .h1 { grid-column: 1 / span 9; }
.closing .closing-actions { grid-column: 1 / -1; margin-top: 44px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW
   ═══════════════════════════════════════════════════════════════════ */
.ov-hero h1 { grid-column: 1 / span 8; }
.ov-hero .lead { grid-column: 1 / span 6; margin-top: clamp(28px, 3vw, 40px); }
.ov-hero .hero-aside { grid-column: 9 / -1; align-self: end; display: grid; gap: 14px; padding-bottom: 6px; }
.ov-hero .hero-aside p { font-size: 14.5px; color: var(--fg-3); }
.schematic-wrap { margin-top: clamp(48px, 6vw, 88px); }
.schematic { width: 100%; height: auto; overflow: visible; }
.schematic .blk rect { fill: var(--bg-1); stroke: var(--line-2); transition: stroke .4s var(--ease), fill .4s var(--ease); }
.schematic .blk .idx { font: 500 10.5px var(--mono); fill: var(--fg-3); letter-spacing: .08em; }
.schematic .blk .nm { font: 400 22px var(--sans); fill: var(--fg); letter-spacing: -.02em; }
.schematic .blk .ds { font: 400 13px var(--sans); fill: var(--fg-3); }
.schematic .blk { cursor: pointer; transition: opacity .45s var(--ease); }
.schematic .blk:hover rect, .schematic .blk:focus-visible rect, .schematic .blk.on rect { stroke: var(--signal); fill: var(--bg-2); }
.schematic .blk:focus-visible { outline: none; }
.schematic .flow { fill: none; stroke: var(--line-3); stroke-width: 1; transition: stroke .45s var(--ease), opacity .45s var(--ease); }
.schematic .flow.on { stroke: var(--signal); }
.schematic .flow-l { font: 500 10px var(--mono); fill: var(--fg-3); letter-spacing: .06em; transition: fill .4s, opacity .4s; }
.schematic .flow-l.on { fill: var(--signal); }
.schematic .boundary { stroke: var(--line-3); stroke-dasharray: 2 5; }
.schematic .sig { fill: var(--signal); }
.schematic.focus .blk:not(.on) { opacity: .35; }
.schematic.focus .flow:not(.on), .schematic.focus .flow-l:not(.on) { opacity: .25; }
.schematic-note { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; }
.schematic-note p { font-size: 14px; color: var(--fg-3); max-width: 46em; min-height: 3em; transition: color .3s; }
.schematic-note p.on { color: var(--fg-2); }

.parts { border-top: 1px solid var(--line-2); }
.part { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.part > .label { grid-column: 1 / span 1; padding-top: 10px; }
.part-name { grid-column: 2 / span 4; }
.part-name .h3 a { transition: color .3s; }
.part-name .h3 a:hover { color: var(--signal); }
.part-name .slogan { margin-top: 12px; font-size: 16px; color: var(--fg-2); }
.part-body { grid-column: 6 / span 4; color: var(--fg-2); font-size: 16px; }
.part-body ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.part-body li { padding-left: 18px; position: relative; font-size: 15px; color: var(--fg-body); }
.part-body li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--fg-3); }
.part-glyph { grid-column: 10 / -1; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.part-glyph svg { width: 100%; max-width: 220px; height: auto; }
.part-glyph svg * { vector-effect: non-scaling-stroke; }

/* AI P Layered Map */

/* ═══════════════════════════════════════════════════════════════════
   PLATFORM PAGES (shared)
   ═══════════════════════════════════════════════════════════════════ */
.pf-hero h1 { grid-column: 1 / span 9; }
.pf-hero .pf-sub { grid-column: 1 / span 6; margin-top: clamp(26px, 3vw, 40px); }
.pf-hero .pf-meta { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--line-2); }
.pf-meta dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; }
.pf-meta dt, .pf-meta dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.pf-meta dt { font: 500 10.5px/1.75 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); }
.pf-meta dd { font-size: 14.5px; color: var(--fg-2); }
.pf-visual { margin-top: clamp(48px, 6vw, 88px); }
.two-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.two-col > .c-text { grid-column: 1 / span 4; }
.two-col > .c-fig { grid-column: 6 / -1; }
.two-col.flip > .c-text { grid-column: 9 / -1; grid-row: 1; }
.two-col.flip > .c-fig { grid-column: 1 / span 7; grid-row: 1; }
.c-text .h3 + p, .c-text .h2 + p { margin-top: 20px; }
.c-text p + p { margin-top: 14px; }
.c-text p { color: var(--fg-2); }
.c-text .points { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.c-text .points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-body); display: grid; grid-template-columns: 34px 1fr; }
.c-text .points li .label { padding-top: 3px; }
.exhibit + .exhibit { margin-top: clamp(80px, 10vw, 144px); }

/* ───── Commerce Decisioning ───── */
.page-decisioning .pf-hero h1 { grid-column: 1 / span 8; }
.fan .band-a { fill: var(--signal-2); }
.fan .band-b { fill: rgba(236, 230, 218, .07); }
.fan .band-c { fill: var(--cool-2); }
.fan .path { fill: none; stroke-width: 1.4; }
.fan .path.a { stroke: var(--signal); }
.fan .path.b { stroke: var(--fg-2); }
.fan .path.c { stroke: var(--cool); }
.fan .hist { fill: none; stroke: var(--fg); stroke-width: 1.4; }
.fan .now { stroke: var(--line-3); stroke-dasharray: 2 4; }
.fan .scn { cursor: pointer; transition: opacity .45s var(--ease); }
.fan.focus .scn:not(.on) { opacity: .2; }
.scenario-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.scenario-keys button { text-align: left; padding: 14px 16px 16px; border-right: 1px solid var(--line); display: grid; gap: 6px; transition: background .3s var(--ease); }
.scenario-keys button:last-child { border-right: 0; }
.scenario-keys button:hover, .scenario-keys button[aria-pressed="true"] { background: var(--bg-2); }
.scenario-keys .k { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 15px; }
.scenario-keys .k i { width: 18px; height: 2px; display: inline-block; }
.scenario-keys .v { font: 400 12px/1.5 var(--mono); color: var(--fg-3); }
.bench-row { display: grid; grid-template-columns: 180px 1fr 72px; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bench-row .nm { font-size: 14.5px; color: var(--fg); }
.bench-row .nm span { display: block; font: 400 11px/1.5 var(--mono); color: var(--fg-3); letter-spacing: .04em; }
.bench-row .val { font: 400 13px var(--mono); color: var(--fg-2); text-align: right; }
.strip { position: relative; height: 26px; }
.strip .rng { position: absolute; top: 12px; height: 1px; background: var(--line-3); }
.strip .iqr { position: absolute; top: 7px; height: 11px; background: rgba(236, 230, 218, .08); border: 1px solid var(--line-2); }
.strip .med { position: absolute; top: 4px; width: 1px; height: 17px; background: var(--fg-2); }
.strip .you { position: absolute; top: 6px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-3); transition: left 1.4s var(--ease); }
.bench-scale { display: grid; grid-template-columns: 180px 1fr 72px; gap: 18px; padding-top: 10px; }
.bench-scale div { display: flex; justify-content: space-between; font: 400 10.5px var(--mono); color: var(--fg-3); }
.match-row { display: grid; grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 2fr) 54px; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.match-row .rk { font: 500 12px var(--mono); color: var(--fg-3); }
.match-row .who { font-size: 14.5px; color: var(--fg); }
.match-row .who span { display: block; font: 400 11px/1.5 var(--mono); color: var(--fg-3); }
.match-row .bar { display: flex; height: 8px; gap: 2px; }
.match-row .bar i { display: block; height: 100%; transform-origin: left; transition: transform 1.2s var(--ease); }
.match-row .score { font: 500 13px var(--mono); color: var(--fg); text-align: right; }
.match-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; }
.match-legend span { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--mono); color: var(--fg-3); letter-spacing: .04em; }
.match-legend i { width: 10px; height: 8px; display: inline-block; }
.c1 { background: var(--signal); } .c2 { background: rgba(224, 160, 74, .55); } .c3 { background: var(--cool); } .c4 { background: rgba(236, 230, 218, .32); }
.memo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.memo-doc { grid-column: 1 / span 8; border: 1px solid var(--line); background: var(--bg-1); }
.memo-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.memo-head h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.memo-sec { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.memo-sec:last-child { border-bottom: 0; }
.memo-sec .label { padding-top: 4px; }
.memo-sec p, .memo-sec li { font-size: 15px; color: var(--fg-body); }
.memo-sec ol, .memo-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.memo-opts { display: grid; gap: 0; }
.memo-opt { display: grid; grid-template-columns: 22px 1fr 150px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.memo-opt:last-child { border-bottom: 0; }
.memo-opt .o { font: 500 12px var(--mono); color: var(--fg-3); }
.memo-opt.pick .o, .memo-opt.pick .t { color: var(--signal); }
.memo-opt .t { color: var(--fg); }
.mini-range { position: relative; height: 12px; }
.mini-range i { position: absolute; top: 3px; height: 6px; background: rgba(236, 230, 218, .14); }
.mini-range b { position: absolute; top: 0; width: 1px; height: 12px; background: var(--fg-2); }
.memo-opt.pick .mini-range i { background: var(--signal-2); }
.memo-opt.pick .mini-range b { background: var(--signal); }
.memo-notes { grid-column: 10 / -1; display: grid; gap: 28px; align-content: start; padding-top: 22px; }
.memo-notes .note { border-top: 1px solid var(--line-2); padding-top: 12px; }
.memo-notes .note p { margin-top: 8px; font-size: 14px; color: var(--fg-3); }
.signal-row { display: grid; grid-template-columns: 1fr 120px 44px; gap: 14px; align-items: center; padding: 6px 0; font-size: 14px; }
.signal-row .w { height: 4px; background: var(--line); position: relative; }
.signal-row .w i { position: absolute; inset: 0 auto 0 0; background: var(--fg-2); }
.signal-row .w i.neg { background: var(--cool); }
.signal-row span:last-child { font: 400 12px var(--mono); color: var(--fg-3); text-align: right; }

/* ───── Brand DNA ───── */
.page-dna .pf-hero h1 { letter-spacing: -.045em; }
.strata { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.stratum { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; padding: 0; border-bottom: 1px solid var(--line); min-height: 58px; cursor: default; transition: background .4s var(--ease); }
.stratum:hover { background: var(--bg-2); }
.stratum .nm { font-size: 15px; color: var(--fg); padding-left: 14px; }
.stratum .nm span { display: block; font: 400 11px/1.4 var(--mono); color: var(--fg-3); letter-spacing: .04em; }
.stratum .ticks { position: relative; height: 26px; overflow: hidden; }
.stratum .ticks i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(236, 230, 218, .26); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.stratum .ticks i.n { background: var(--signal); }
.strata.in .stratum .ticks i { transform: scaleY(1); }
.record { border: 1px solid var(--line); background: var(--bg-1); }
.record-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.record-head .fact { font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--fg); margin-top: 10px; }
.record dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; }
.record dt, .record dd { margin: 0; padding: 11px 22px; border-bottom: 1px solid var(--line); }
.record dd { padding-left: 0; font-size: 14.5px; color: var(--fg-2); }
.record dt { font: 500 10.5px/1.8 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.record dd code { font-family: var(--mono); font-size: 12.5px; color: var(--fg); }
.record-uses { padding: 16px 22px 20px; }
.uses { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.uses li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-body); }
.uses li span:first-child, .uses li span:last-child { font: 400 11.5px/1.6 var(--mono); color: var(--fg-3); }
.retrieval { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.retrieval .q { grid-column: 1 / -1; display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.retrieval .q p { font-size: var(--t-s); color: var(--fg); }
.retrieval .ctx { grid-column: 1 / span 5; padding-top: 22px; }
.retrieval .out { grid-column: 7 / -1; padding-top: 22px; }
.ctx-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--fg-body); opacity: .35; transition: opacity .6s var(--ease); }
.ctx-item.in { opacity: 1; }
.ctx-item .n { font: 500 11px/1.9 var(--mono); color: var(--signal); }
.ctx-item small { display: block; font: 400 11px/1.6 var(--mono); color: var(--fg-3); margin-top: 3px; }
.draft { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--fg-body); }
.draft p + p { margin-top: 14px; }
.draft .w { opacity: .18; transition: opacity .5s var(--ease); }
.draft .w.in { opacity: 1; }
.perm { font-size: 13.5px; }
.perm th:not(:first-child), .perm td:not(:first-child) { text-align: center; }
.perm .y { color: var(--fg); } .perm .r { color: var(--fg-2); } .perm .n { color: var(--fg-4); }

/* ───── OperaX Agent ───── */
.shift { border: 1px solid var(--line); background: var(--bg-1); }
.shift-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.shift-head .tag { margin-left: auto; }
.shift ol { list-style: none; margin: 0; padding: 0; }
.shift li { display: grid; grid-template-columns: 56px 1fr 96px; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .5s var(--ease), opacity .5s var(--ease); }
.shift li:last-child { border-bottom: 0; }
.shift li .tm { font: 400 12px/1.7 var(--mono); color: var(--fg-3); }
.shift li .what { font-size: 15px; color: var(--fg); line-height: 1.45; }
.shift li .what small { display: block; color: var(--fg-3); font-size: 13.5px; margin-top: 3px; }
.shift li .what .tool { font: 400 11.5px var(--mono); color: var(--fg-2); border: 1px solid var(--line-2); padding: 1px 6px; margin-right: 6px; white-space: nowrap; }
.state { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); padding-top: 5px; }
.state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.state.done { color: var(--fg-2); }
.state.done::before { background: var(--fg-2); border-color: var(--fg-2); }
.state.run { color: var(--signal); }
.state.run::before { border-color: var(--signal); background: var(--signal); animation: pulse 2.4s var(--ease) infinite; }
.state.review { color: var(--fg); }
.state.review::before { border-color: var(--fg); border-style: dashed; }
.shift li.future { opacity: .38; }
.shift li.current { background: var(--bg-2); }
.machine { width: 100%; height: auto; overflow: visible; }
.machine .st rect { fill: var(--bg-1); stroke: var(--line-2); transition: stroke .5s, fill .5s; }
.machine .st text.n { font: 400 17px var(--sans); fill: var(--fg); letter-spacing: -.01em; }
.machine .st text.i { font: 500 10px var(--mono); fill: var(--fg-3); letter-spacing: .08em; }
.machine .st.on rect { stroke: var(--signal); fill: var(--bg-2); }
.machine .tr { fill: none; stroke: var(--line-3); }
.machine .tr.back { stroke-dasharray: 3 4; }
.machine .tl { font: 500 10px var(--mono); fill: var(--fg-3); letter-spacing: .06em; }
.machine .tok { fill: var(--signal); }
.machine-desc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.machine-desc div { padding: 14px 14px 0 0; font-size: 13.5px; color: var(--fg-3); line-height: 1.5; }
.machine-desc div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.machine-desc strong { display: block; color: var(--fg-2); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.autonomy { display: flex; gap: 3px; }
.autonomy i { width: 14px; height: 6px; background: var(--line-2); }
.autonomy i.f { background: var(--fg-2); }
.review-card { border: 1px solid var(--line-2); background: var(--bg-1); }
.review-card .rc-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review-card .rc-head h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }
.review-card .rc-body { padding: 16px 22px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.diff { font: 400 13px/1.7 var(--mono); border: 1px solid var(--line); background: var(--bg); padding: 10px 14px; overflow-x: auto; }
.diff div { white-space: pre; color: var(--fg-2); }
.diff .m { color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(236, 230, 218, .35); }
.diff .p { color: var(--fg); }
.diff .p::before { content: '+ '; color: var(--signal); }
.diff .m::before { content: '− '; }
.rc-why { font-size: 14.5px; color: var(--fg-2); }
.rc-why ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.rc-actions { display: flex; gap: 10px; padding: 14px 22px; flex-wrap: wrap; align-items: center; }
.rc-actions button { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); transition: all .3s var(--ease); }
.rc-actions button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rc-actions button:hover { border-color: var(--line-3); color: var(--fg); }
.rc-actions button.primary:hover { background: #fff; color: var(--bg); }
.rc-actions .rc-status { margin-left: auto; font: 400 12px var(--mono); color: var(--fg-3); }
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.duo > div { padding: 28px 32px 8px 0; }
.duo > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.duo h3 { margin: 14px 0 12px; }
.duo p { color: var(--fg-2); }
.duo ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.duo li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.duo li span { font: 400 11.5px var(--mono); color: var(--fg-3); white-space: nowrap; }

/* ───── Connected Integrations ───── */
.boundary { width: 100%; height: auto; overflow: visible; }
.boundary .core rect { fill: var(--bg-2); stroke: var(--line-3); }
.boundary .core text.n { font: 400 24px var(--sans); fill: var(--fg); letter-spacing: -.02em; }
.boundary .core text.s { font: 400 12.5px var(--sans); fill: var(--fg-3); }
.boundary .wall { stroke: var(--line-3); stroke-dasharray: 2 5; }
.boundary .wall-l { font: 500 10px var(--mono); fill: var(--fg-3); letter-spacing: .12em; }
.boundary .port rect { fill: var(--bg); stroke: var(--line-3); transition: stroke .4s, fill .4s; }
.boundary .port.on rect { stroke: var(--signal); fill: var(--signal-3); }
.boundary .link-l { fill: none; stroke: rgba(236, 230, 218, .2); transition: stroke .4s, opacity .4s; }
.boundary .link-l.on { stroke: var(--signal); }
.boundary .sys { cursor: pointer; transition: opacity .4s var(--ease); }
.boundary .sys rect { fill: var(--bg-1); stroke: var(--line-2); transition: stroke .4s; }
.boundary .sys text.n { font: 400 15px var(--sans); fill: var(--fg); }
.boundary .sys text.s { font: 400 10.5px var(--mono); fill: var(--fg-3); letter-spacing: .04em; }
.boundary .sys.own rect { stroke: var(--line-3); }
.boundary .sys.own text.badge { font: 500 9.5px var(--mono); fill: var(--signal); letter-spacing: .1em; }
.boundary .sys:hover rect, .boundary .sys.on rect, .boundary .sys:focus-visible rect { stroke: var(--signal); }
.boundary .sys:focus-visible { outline: none; }
.boundary.focus .sys:not(.on) { opacity: .35; }
.boundary.focus .link-l:not(.on) { opacity: .25; }
.boundary .scope { font: 400 10.5px var(--mono); fill: var(--fg-3); opacity: 0; transition: opacity .4s; }
.boundary .scope.on { opacity: 1; fill: var(--signal); }
.boundary .sig { fill: var(--signal); }
.manifest { font: 400 13.5px/1.75 var(--mono); color: var(--fg-2); background: var(--bg); border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto; margin: 0; }
.manifest .k { color: var(--fg); }
.manifest .c { color: var(--fg-4); }
.manifest .s { color: var(--signal); }
.manifest .v { color: var(--cool); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.principles > div { padding: 24px 24px 8px 0; }
.principles > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.principles h3 { font-size: 20px; letter-spacing: -.012em; margin: 14px 0 10px; line-height: 1.25; }
.principles p { font-size: 15px; color: var(--fg-2); }
.principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* product screenshots: the plate is the frame */
.plate.shot .shot-body { background: var(--bg); }
.plate.shot .shot-body img { display: block; width: 100%; height: auto; }
/* Boost Engine Creator is phone-only: its screens sit in phone frames */
.phones-fig { display: grid; gap: 22px; justify-items: center; align-content: start; }
.phones { display: flex; gap: clamp(16px, 2.4vw, 32px); justify-content: center; align-items: flex-start; }
.phone { position: relative; width: clamp(148px, 18vw, 264px); aspect-ratio: 624 / 1350; padding: 8px; border-radius: 38px; background: #0c0c0b; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.phone:nth-child(2) { margin-top: clamp(28px, 4vw, 56px); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone::before { content: ''; position: absolute; z-index: 1; top: 14px; left: 50%; translate: -50% 0; width: 24%; height: 5px; border-radius: 3px; background: rgba(10, 10, 9, .5); }
.phones-fig figcaption { padding: 0; border: 0; text-align: center; max-width: 30rem; }
.c-text .bec-open { margin-top: 26px; font-size: 14.5px; color: var(--fg-3); }
.coverage td .st { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.coverage td .st.a { color: var(--fg); }
.coverage td .st.b { color: var(--fg-2); }
.coverage td .st.c { color: var(--fg-3); }

/* ═══════════════════════════════════════════════════════════════════
   RESEARCH
   ═══════════════════════════════════════════════════════════════════ */
.rs-mast { padding-top: calc(var(--header) + clamp(48px, 7vw, 104px)); padding-bottom: 28px; }
.rs-mast .grid { align-items: end; }
.rs-mast h1 { grid-column: 1 / span 6; font-size: var(--t-xl); line-height: 1; letter-spacing: -.04em; }
.rs-mast .lead { grid-column: 8 / -1; font-size: 17px; }
.rs-filter { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: clamp(36px, 5vw, 64px); }
.rs-filter button { font-size: 14px; color: var(--fg-3); padding: 6px 12px 6px 0; margin-right: 12px; transition: color .25s; }
.rs-filter button[aria-pressed="true"] { color: var(--fg); }
.rs-filter button[aria-pressed="true"]::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--signal); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.rs-filter button:hover { color: var(--fg); }
.rs-filter .count { margin-left: auto; align-self: center; }
.rs-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.rs-lead .art { grid-column: 1 / span 7; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.rs-lead .txt { grid-column: 9 / -1; display: flex; flex-direction: column; }
.rs-lead h2 { font-size: var(--t-l); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 18px; }
.rs-lead h2 a { transition: color .3s; }
.rs-lead h2 a:hover { color: var(--signal); }
.rs-lead .dek { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--fg-2); }
.rs-lead .by { margin-top: auto; padding-top: 28px; }
.rs-pair { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.rs-pair article { padding: 32px 32px 36px 0; display: grid; grid-template-columns: 1fr; }
.rs-pair article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.rs-pair .art { aspect-ratio: 16 / 7; border: 1px solid var(--line); background: var(--bg-1); margin-bottom: 22px; overflow: hidden; }
.rs-pair h3 { font-size: var(--t-m); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 12px; }
.rs-pair h3 a:hover { color: var(--signal); }
.rs-pair p { color: var(--fg-2); font-size: 16px; max-width: 34em; }
.rs-list { margin-top: clamp(56px, 7vw, 96px); }
.rs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 22px 0 24px; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .3s; }
.rs-row:first-of-type { border-top: 1px solid var(--line-2); }
.rs-row .d { grid-column: 1 / span 2; }
.rs-row .c { grid-column: 3 / span 2; }
.rs-row .t { grid-column: 5 / span 5; }
.rs-row .t a { display: block; font-size: 21px; line-height: 1.28; letter-spacing: -.012em; color: var(--fg); transition: color .3s; }
.rs-row .t a:hover { color: var(--signal); }
.rs-row .t p { margin-top: 8px; color: var(--fg-3); font-size: 15px; }
.rs-row .r { grid-column: 11 / -1; text-align: right; }
.rs-row[hidden], .rs-pair article[hidden] { display: none; }
.art svg { width: 100%; height: 100%; }

/* Article */
.ar-head { padding-top: calc(var(--header) + clamp(48px, 7vw, 104px)); padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.ar-head .grid > * { grid-column: 3 / span 8; }
.ar-head h1 { font-size: clamp(38px, 4.6vw, 70px); line-height: 1.03; letter-spacing: -.036em; margin: 22px 0 24px; }
.ar-head .dek { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; color: var(--fg-2); max-width: 36em; }
.ar-byline { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.ar-byline div { display: grid; gap: 4px; }
.ar-byline dd { margin: 0; font-size: 14.5px; color: var(--fg-2); }
.ar-hero-fig { padding-top: clamp(36px, 5vw, 56px); }
.ar-hero-fig .plate { grid-column: 2 / span 10; }
.ar-body { padding-block: clamp(48px, 6vw, 88px) clamp(80px, 9vw, 128px); }
.ar-body .grid { align-items: start; }
.ar-toc { grid-column: 1 / span 2; position: sticky; top: calc(var(--header) + 28px); }
.ar-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.ar-toc a { display: block; font-size: 13.5px; line-height: 1.4; color: var(--fg-3); padding: 6px 0 6px 12px; border-left: 1px solid var(--line); transition: color .25s, border-color .25s; }
.ar-toc a:hover { color: var(--fg); }
.ar-toc a.on { color: var(--fg); border-left-color: var(--signal); }
.prose { grid-column: 3 / span 7; font-family: var(--serif); font-optical-sizing: auto; font-size: 20px; line-height: 1.68; color: var(--fg-body); letter-spacing: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--sans); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.14; letter-spacing: -.022em; margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 24px); }
.prose h2 .label { display: block; margin-bottom: 14px; }
.prose h3 { font-family: var(--sans); font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin-top: 1.9em; font-weight: 500; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--fg-3); }
.prose .fn { font: 500 11px/1 var(--mono); color: var(--signal); vertical-align: super; margin-left: 1px; text-decoration: none; }
.prose blockquote { margin: 2em 0; padding: 0; border: 0; font-family: var(--sans); font-size: clamp(25px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -.02em; color: var(--fg); position: relative; }
.prose blockquote::before { content: ''; display: block; width: 36px; height: 1px; background: var(--signal); margin-bottom: 22px; }
.prose blockquote cite { display: block; margin-top: 16px; font: 500 11px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); font-style: normal; }
.prose .callout { font-family: var(--sans); font-size: 16px; line-height: 1.6; border: 1px solid var(--line-2); background: var(--bg-1); padding: 18px 20px 20px; color: var(--fg-2); }
.prose .callout .label { display: block; margin-bottom: 8px; color: var(--signal); }
.prose figure { margin: 2.2em 0; }
.prose figure.wide { margin-inline: calc(-1 * (100% / 7 * 1) - var(--gap)); }
.prose figure figcaption { font-family: var(--sans); }
.prose pre { font: 400 13.5px/1.7 var(--mono); background: var(--bg-1); border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; color: var(--fg-2); letter-spacing: 0; }
.prose pre .k { color: var(--fg); } .prose pre .c { color: var(--fg-4); } .prose pre .s { color: var(--signal); } .prose pre .n { color: var(--cool); }
.prose code { font-family: var(--mono); font-size: .78em; color: var(--fg); background: var(--bg-2); padding: .1em .35em; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose .table-scroll { font-family: var(--sans); }
.prose table.data caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 13.5px; color: var(--fg-3); }
.ar-aside { grid-column: 11 / -1; position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 22px; }
.ar-aside .box { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 13.5px; color: var(--fg-3); line-height: 1.5; }
.ar-aside .box p { margin-top: 8px; }
.refs { grid-column: 3 / span 7; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.refs ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.refs li::marker { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.refs .label { display: block; }
.ar-more { border-top: 1px solid var(--line); }

/* ═══════════════════════════════════════════════════════════════════
   COMPANY / CONTACT / LEGAL
   ═══════════════════════════════════════════════════════════════════ */
.co-hero h1 { grid-column: 1 / span 10; }
.co-hero .lead { grid-column: 1 / span 6; margin-top: 36px; }
.co-zh { grid-column: 8 / -1; margin-top: 36px; align-self: end; font-size: 15px; color: var(--fg-3); line-height: 1.7; }
.co-rows .ledger-row .h3 { grid-column: 3 / span 4; }
.co-rows .ledger-row p { grid-column: 8 / -1; color: var(--fg-2); }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.offices > div { padding: 24px 24px 0 0; }
.offices > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.offices h3 { font-size: var(--t-m); letter-spacing: -.02em; margin: 14px 0 10px; }
.offices p { color: var(--fg-2); }
.ct-form { grid-column: 7 / -1; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.ct-form label { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
.ct-form label.area { align-items: start; }
.ct-form label.area .label { padding-top: 16px; }
.ct-form input, .ct-form textarea, .ct-form select { width: 100%; background: transparent; border: 0; color: var(--fg); font: 400 16px/1.5 var(--sans); padding: 13px 0; outline: none; }
.ct-form textarea { min-height: 140px; resize: vertical; }
.ct-form select { appearance: none; cursor: pointer; }
.ct-form select option { background: var(--bg-2); }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: var(--fg-4); }
.ct-form label:focus-within { border-bottom-color: var(--signal); }
.ct-form .actions { display: flex; gap: 18px; align-items: center; padding-top: 24px; flex-wrap: wrap; }
.ct-form .actions p { font-size: 13.5px; color: var(--fg-3); max-width: 30em; }
.ct-side { grid-column: 1 / span 5; display: grid; gap: 30px; align-content: start; }
.ct-side .box { border-top: 1px solid var(--line-2); padding-top: 14px; }
.ct-side .box a, .ct-side .box p { display: block; margin-top: 10px; font-size: 17px; color: var(--fg); }
.ct-side .box p.small { font-size: 14.5px; color: var(--fg-2); }

.legal-main { padding-top: calc(var(--header) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(80px, 9vw, 128px); }
.legal-main .grid { align-items: start; }
.legal-side { grid-column: 1 / span 3; position: sticky; top: calc(var(--header) + 28px); }
.legal-side nav { display: grid; gap: 2px; margin-top: 14px; }
.legal-side nav a { font-size: 14px; color: var(--fg-3); padding: 7px 0 7px 12px; border-left: 1px solid var(--line); transition: color .25s; }
.legal-side nav a:hover { color: var(--fg); }
.legal-side nav a[aria-current="page"] { color: var(--fg); border-left-color: var(--signal); }
.legal-doc { grid-column: 5 / span 7; }
.legal-doc .legal-heading { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-doc .legal-heading .eyebrow { font: 500 11.5px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); }
.legal-doc .legal-heading h1 { font-size: clamp(36px, 4vw, 58px); line-height: 1.03; letter-spacing: -.035em; margin: 16px 0 14px; }
.legal-doc .legal-heading p { color: var(--fg-2); font-size: 18px; }
.legal-doc .legal-nav, .legal-doc .legal-back { display: none; }
.legal-doc h2 { font-size: 22px; letter-spacing: -.012em; line-height: 1.3; margin: 40px 0 12px; font-weight: 500; }
.legal-doc h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 500; }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 1.7; color: var(--fg-body); }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0; }
.legal-doc a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: .2em; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-doc th { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

/* 404 */
.nf { min-height: 72vh; display: flex; align-items: center; padding-top: var(--header); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principles > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .ar-aside { display: none; }
  .prose, .refs { grid-column: 3 / -1; }
  .machine-desc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .machine-desc div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  :root { --header: 60px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .grid > * { grid-column: 1 / -1 !important; }
  .home-hero .hero-actions { justify-content: flex-start; margin-top: 32px; }
  .directory ol { grid-template-columns: 1fr 1fr; }
  .directory li { border-left: 0; border-top: 1px solid var(--line); }
  .directory li:first-child { grid-column: 1 / -1; border-top: 0; }
  .directory li:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
  .directory li:nth-child(even) a, .directory li:first-child a { padding-left: 0; }
  .directory a { padding: 18px 16px 22px; }
  .kde { grid-template-columns: 1fr; }
  .kde-col + .kde-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .kde-arrow { display: none; }
  .r-teaser, .rs-lead, .memo, .retrieval, .two-col, .next { display: block; }
  .r-side { margin-top: 40px; }
  .r-lead .r-art { aspect-ratio: 16 / 10; }
  .chapter-title + .chapter-aside { margin-top: 20px; }
  .part { grid-template-columns: 1fr; row-gap: 14px; }
  .part > * { grid-column: 1 / -1 !important; }
  .part-glyph { align-items: flex-start; }
  .part-glyph svg { max-width: 180px; }
  .two-col > .c-fig { margin-top: 36px; }
  .memo-notes { margin-top: 28px; }
  .retrieval .out { margin-top: 12px; }
  .next .label { display: block; padding: 0 0 14px; }
  .rs-lead .txt { margin-top: 26px; }
  .rs-pair { grid-template-columns: 1fr; }
  .rs-pair article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .rs-pair article { padding-right: 0; }
  .rs-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .rs-row .d { grid-column: 1; } .rs-row .c { grid-column: 2; text-align: right; }
  .rs-row .t { grid-column: 1 / -1; } .rs-row .r { display: none; }
  .ar-toc { display: none; }
  .prose, .refs { grid-column: 1 / -1; }
  .prose figure.wide { margin-inline: 0; }
  .legal-side { position: static; margin-bottom: 40px; }
  .ct-side { margin-bottom: 48px; }
  .duo, .offices { grid-template-columns: 1fr; }
  .duo > div + div, .offices > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .scenario-keys { grid-template-columns: 1fr; }
  .scenario-keys button { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .directory ol { grid-template-columns: 1fr; }
  .directory li:nth-child(odd):not(:first-child) { border-left: 0; }
  .directory a { padding-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .principles.three { grid-template-columns: 1fr; }
  .principles.three > div { padding-left: 0; border-left: 0; }
  .principles.three > div + div { border-top: 1px solid var(--line); margin-top: 8px; }
  .bec .phones-fig { margin-top: 40px; }
  .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .machine-desc { grid-template-columns: 1fr 1fr; }
  .machine-desc div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .machine-desc div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .bench-row, .bench-scale { grid-template-columns: 1fr 64px; }
  .bench-row .strip, .bench-scale > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .bench-scale > div:first-child, .bench-scale > div:last-child { display: none; }
  .match-row { grid-template-columns: 22px 1fr 46px; }
  .match-row .bar { grid-column: 2 / -1; grid-row: 2; }
  .memo-sec { grid-template-columns: 1fr; gap: 8px; }
  .memo-opt { grid-template-columns: 22px 1fr; }
  .memo-opt .mini-range { grid-column: 2; }
  .stratum { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .stratum .nm span { display: none; }
  .shift li { grid-template-columns: 52px 1fr; }
  .shift li .state { grid-column: 2; justify-self: start; padding-top: 0; }
  .record dl { grid-template-columns: 1fr; }
  .record dt { padding-bottom: 0; border-bottom: 0; }
  .record dd { padding: 4px 22px 11px; }
  .ct-form label { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .ct-form label.area .label { padding-top: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .prose { font-size: 18.5px; }
  .uses li { grid-template-columns: 1fr; gap: 2px; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .dot.live { animation: none; }
}

/* Schematic: list fallback on narrow screens */
.schematic-list { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
  .schematic { display: none; }
  .schematic-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .schematic-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
  .schematic-list b { display: block; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
  .schematic-note { display: none; }
}

/* Agent hero */
.agent-hero .agent-intro { grid-column: 1 / span 7; align-self: start; padding-right: clamp(0px, 2vw, 32px); }
.agent-hero h1 { font-size: clamp(40px, 5.3vw, 80px); }
.agent-hero .agent-intro .lead { margin-top: 28px; }
.agent-hero .agent-intro .pf-meta { margin-top: 44px; border-top: 1px solid var(--line-2); }
.agent-hero .agent-shift { grid-column: 8 / -1; margin: 6px 0 0; align-self: start; }

/* AutoBoost chain */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chain li { position: relative; padding: 2px 18px 4px 0; display: grid; gap: 8px; align-content: start; }
.chain li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.chain li strong { color: var(--fg); font-weight: 500; font-size: 16.5px; letter-spacing: -.01em; }
.chain li span:last-child { font-size: 13.5px; color: var(--fg-3); line-height: 1.45; }
.chain li:last-child .label { color: var(--signal); }

/* Boundary list fallback */
.boundary-list { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.boundary-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg); }
.boundary-list li span { display: block; font: 400 11.5px/1.6 var(--mono); color: var(--fg-3); }
.boundary-list li em { font-style: normal; font: 500 10px var(--mono); letter-spacing: .1em; color: var(--signal); margin-left: 8px; }

@media (max-width: 960px) {
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .chain li:nth-child(4) { border-left: 0; padding-left: 0; }
  .agent-hero .agent-shift { margin-top: 48px; }
}
@media (max-width: 760px) {
  .boundary { display: none; }
  .boundary-list { display: block; }
}
@media (max-width: 640px) {
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .chain li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .machine { display: none; }
  .machine-desc { margin-top: 0; border-top: 0; }
}

/* Company principles (three) + legal pages without a heading wrapper */
.principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .principles.three > div:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); border-top: 0; margin-top: 0; } }
@media (max-width: 760px) { .principles.three { grid-template-columns: 1fr; } .principles.three > div + div { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line) !important; } }
.legal-doc > .eyebrow { font: 500 11.5px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); }
.legal-doc > h1 { font-size: clamp(36px, 4vw, 58px); line-height: 1.03; letter-spacing: -.035em; margin: 16px 0 14px; }
.legal-doc > h1 + p { color: var(--fg-2); font-size: 18px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-doc .button { display: none; }
.co-zh { font-family: var(--sans), 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif; }

/* Refinements */
.rs-lead .art { grid-column: 1 / span 6; }
.rs-lead .txt { grid-column: 8 / -1; }
.rs-lead h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.06; }
.chapter-head + .ledger, .chapter-head + .principles, .chapter-head + .offices, .chapter-head + .duo, .chapter-head + .parts { border-top: 0; }
.chapter-head + .ledger > :first-child, .chapter-head + .parts > :first-child { padding-top: 0; }
.page-contact .footer-cta { display: none; }

/* Narrow-screen labels */
@media (max-width: 640px) {
  .hero-kicker { flex-wrap: wrap; row-gap: 6px; }
  .hero-kicker .rule { display: none; }
  .hero-kicker .label { white-space: nowrap; }
  .plate-bar { flex-wrap: wrap; row-gap: 6px; }
  .plate-bar .label:nth-child(2) { order: 3; flex-basis: 100%; }
  .chapter-head { flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 760px), (hover: none) { .plate-bar .hint { display: none; } }
.fan.narrow text { font-size: 19px; }
@media (max-width: 640px) { [data-forecast] text { font-size: 17px; } }
/* SVG controls: no UA focus box; keyboard focus shows as the halo / signal stroke */

/* Home hero: faint tonal lift, top right (depth, not glow) */
.home-hero { background: radial-gradient(1100px 620px at 88% 0%, rgba(236, 230, 218, .032), transparent 72%); }
@media (max-width: 640px) { .table-scroll > table.data { min-width: 560px; } }
.nav > button[data-current]::before { content: ''; width: 4px; height: 4px; background: var(--signal); border-radius: 50%; }
.nav > button[data-current] { color: var(--fg); }

/* Brand DNA hero: archival — serif lead, frameless strata between rules */
.dna-hero .pf-sub { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--fg-2); }
.dna-hero .pf-sub strong { color: var(--fg); font-weight: 500; }
.plate.archive { background: none; border: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plate.archive .plate-bar { padding-inline: 0; }
.plate.archive .plate-body { padding-inline: 0; }
.plate.archive figcaption { padding-inline: 0; }

/* Integrations hero: full-bleed infrastructure band */
.infra-band { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.infra { margin: 0; }
.infra .plate-bar { padding-inline: 0; border-bottom: 1px solid var(--line); }
.infra .plate-body { padding: clamp(28px, 3vw, 44px) var(--pad); }
.infra figcaption { padding: 14px 0 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); }
.infra figcaption b { color: var(--fg-2); font-weight: 500; }
.infra-band .wrap + .wrap { border-top: 0; }
.shift li { grid-template-columns: 56px minmax(0, 1fr) 96px; }
@media (max-width: 1180px) {
  .agent-hero .agent-intro, .agent-hero .agent-shift { grid-column: 1 / -1; }
  .agent-hero .agent-shift { margin-top: 56px; max-width: 760px; }
}
@media (max-width: 640px) { .shift li { grid-template-columns: 52px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .schematic { display: none; }
  .schematic-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .schematic-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
  .schematic-list b { display: block; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
  .schematic-note { display: none; }
}
@media (max-width: 960px) { .pf-hero .pf-meta, .ov-hero .hero-aside { margin-top: 36px; } }

/* ═══════════════════════════════════════════════════════════════════
   OPERAX AI P LAYERED MAP (platform) — pinned point-field stage
   ═══════════════════════════════════════════════════════════════════ */
.os { position: relative; background: var(--bg); }
.os-intro { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(36px, 4vw, 56px); }
.os-scrolly { position: relative; height: calc(var(--chapters, 7) * 100svh + 30svh); }
.os-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: radial-gradient(120% 90% at 62% 38%, #12110f 0%, var(--bg) 62%); }
.os-canvas-wrap { position: absolute; inset: 0; }
.os-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.os-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 52%; background: linear-gradient(to top, rgba(10, 10, 9, .94) 8%, rgba(10, 10, 9, .6) 46%, rgba(10, 10, 9, 0)); pointer-events: none; z-index: 1; }
.os-stage::before { content: ''; position: absolute; inset: 0 0 auto 0; height: calc(var(--header) + 80px); background: linear-gradient(to bottom, var(--bg) 30%, rgba(10, 10, 9, 0)); pointer-events: none; z-index: 1; }
.os-hud { position: absolute; z-index: 3; top: calc(var(--header) + 22px); left: var(--pad); display: flex; gap: 18px; }
.os-hud .label:first-child { color: var(--fg-2); }
.os-hud { transition: opacity .6s var(--ease); }
.os[data-chapter="0"] .os-hud { opacity: 0; }
.os-rail { position: absolute; z-index: 3; right: var(--pad); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 4px; }
.os-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 0; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--fg-4); transition: color .3s; }
.os-rail button::after { content: ''; width: 14px; height: 1px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.os-rail button:hover { color: var(--fg-2); }
.os-rail button.on { color: var(--fg); }
.os-rail button.on::after { width: 28px; background: var(--signal); }
.os-chapters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.os-ch { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.os-ch.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease) .1s, visibility 0s; }
.os-copy { position: absolute; left: var(--pad); bottom: clamp(36px, 7vh, 80px); max-width: 31rem; pointer-events: auto; }
.os-copy h3 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.02; letter-spacing: -.034em; color: var(--fg); margin: 14px 0 16px; }
.os-copy p { font-size: 16px; line-height: 1.58; color: var(--fg-body); }
.os-copy p strong { color: var(--fg); font-weight: 400; }
.os-copy .os-hint { margin-top: 14px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.os-idx { position: absolute; right: var(--pad); bottom: clamp(36px, 7vh, 80px); display: grid; justify-items: end; gap: 10px; text-align: right; max-width: 18rem; }
.os-idx .n { font-size: clamp(56px, 6.4vw, 104px); line-height: .86; letter-spacing: -.05em; color: var(--fg); font-variant-numeric: tabular-nums; }
.os .os-ch .os-copy, .os .os-ch .os-idx { transform: translateY(14px); transition: transform .9s var(--ease); }
.os .os-ch.on .os-copy, .os .os-ch.on .os-idx { transform: none; }

/* intro chapter: the page hero, over the whole stack */
.os-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 9, .94) 0%, rgba(10, 10, 9, .7) 32%, rgba(10, 10, 9, 0) 56%); }
.os-hero-in { position: absolute; left: var(--pad); top: calc(var(--header) + clamp(40px, 9vh, 120px)); width: min(48rem, 54%); pointer-events: auto; }
.os-hero .h1 { margin: clamp(22px, 3vw, 36px) 0 clamp(22px, 3vw, 34px); }
.os-hero .lead { max-width: 33em; }
.os-hero-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: clamp(28px, 4vh, 44px) 0 0; max-width: 30rem; border-top: 1px solid var(--line-2); padding-top: 16px; }
.os-hero-meta dt { font: 500 10.5px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.os-hero-meta dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.os-cue { position: absolute; left: var(--pad); bottom: clamp(28px, 5vh, 48px); pointer-events: auto; color: var(--fg-3); display: inline-flex; gap: 12px; align-items: center; transition: color .3s; }
.os-cue:hover { color: var(--fg); }
.os-cue::before { content: ''; width: 1px; height: 30px; background: linear-gradient(var(--signal), rgba(224, 160, 74, 0)); }
.os .os-ch .os-hero-in { transform: translateY(14px); transition: transform .9s var(--ease); }
.os .os-ch.on .os-hero-in { transform: none; }

/* static (reduced motion) and no-WebGL: hero, a still image, then the chapters as text */
.os-static .os-scrolly { height: auto; }
.os-static .os-stage { position: relative; height: auto; overflow: visible; background: none; display: flex; flex-direction: column; }
.os-static .os-stage::before, .os-static .os-stage::after { display: none; }
.os-static .os-chapters { display: contents; }
.os-static .os-canvas-wrap { position: relative; order: 0; height: min(72vh, 720px); border-block: 1px solid var(--line); background: radial-gradient(120% 90% at 62% 38%, #12110f 0%, var(--bg) 62%); }
.os.gl-off .os-canvas-wrap, .os-static .os-hud, .os-static .os-rail, .os-static .os-cue, .os-static .os-idx, .os-static .os-hint { display: none; }
.os-static .os-ch { position: static; order: 1; opacity: 1; visibility: visible; margin-inline: var(--pad); border-top: 1px solid var(--line); padding: 22px 0 30px; }
.os-static .os-ch:nth-child(2) { border-top: 0; margin-top: 24px; }
.os-static .os-hero { order: -1; margin: 0; border: 0; padding: calc(var(--header) + clamp(56px, 9vw, 132px)) var(--pad) clamp(48px, 6vw, 80px); }
.os-static .os-hero::before { display: none; }
.os-static .os-copy, .os-static .os-hero-in { position: static; transform: none; max-width: 46rem; width: auto; }
.os-static .os-copy h3 { font-size: var(--t-m); }

/* ledger */
.os-ledger-wrap { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(80px, 9vw, 136px); }
.os-ledger-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.os-ledger-head .small { max-width: 34em; }
.os-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ol-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); padding: 26px 0; border-bottom: 1px solid var(--line); }
.ol-head { display: flex; gap: 18px; align-items: start; }
.ol-n { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; color: var(--signal); min-width: 22px; }
.ol-head h4 { font-size: 21px; line-height: 1.2; letter-spacing: -.012em; color: var(--fg); font-weight: 400; }
.ol-head .label { margin-top: 8px; display: block; text-transform: none; letter-spacing: .02em; font-size: 12px; }
.ol-head .link { margin-top: 12px; display: inline-flex; font-size: 14px; }
.ol-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); }
.ol-parts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ol-parts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ol-parts.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ol-part.wide { grid-column: 1 / -1; }
.ol-part h5 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -.004em; }
.ol-part p, .ol-part li { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.ol-part ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ol-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.ol-chips li { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); border: 1px solid var(--line-2); padding: 8px 10px; }
.ol-flow { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 0 12px calc(40px); border-bottom: 1px solid var(--line); }
.ol-flow .label { color: var(--signal); text-transform: none; letter-spacing: .03em; font-size: 12px; }
.ol-flow .label.side { color: var(--fg-3); }
.ol-flow.loop { border-bottom: 0; }
@media (max-width: 1100px) {
  .ol-row { grid-template-columns: 1fr; }
  .ol-parts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .os-stage::after { height: 64%; }
  .os-copy { right: var(--pad); bottom: 28px; max-width: none; }
  .os-copy h3 { font-size: 30px; margin: 10px 0 12px; }
  .os-copy p { font-size: 15px; }
  .os-idx { top: calc(var(--header) + 54px); bottom: auto; right: var(--pad); }
  .os-idx .n { font-size: 44px; }
  .os-idx .label { display: none; }
  .os-rail { top: auto; bottom: auto; translate: none; top: calc(var(--header) + 112px); gap: 0; }
  .os-rail button { padding: 5px 0; }
  .ol-parts, .ol-parts.three, .ol-parts.four, .ol-parts.six { grid-template-columns: 1fr; }
  .ol-flow { padding-left: 0; }
  .os-hero::before { background: linear-gradient(to bottom, rgba(10, 10, 9, .94) 0%, rgba(10, 10, 9, .78) 44%, rgba(10, 10, 9, 0) 66%); }
  .os-hero-in { width: auto; right: var(--pad); top: calc(var(--header) + 28px); }
  .os-hero .h1 { font-size: clamp(36px, 10vw, 44px); }
  .os-hero .lead { font-size: 16.5px; }
  .os-hero-meta { display: none; }
}

@media (max-width: 760px) {
  .home-hero > .wrap:first-of-type { order: 1; }
  .hero-field { position: relative; order: 2; inset: auto; height: clamp(300px, 86vw, 420px); margin-top: 12px; }
  .home-hero > .wrap:last-of-type { order: 3; }
  .hero-field::after { background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 9, 0) 22%, rgba(10, 10, 9, 0) 78%, var(--bg) 100%); }
  .hero-field-note { display: none !important; }
  .hero-field .hub small, .hero-field .hub:not(.main) span { display: none; }
}

/* ───── Brand DNA hero: the particle helix ───── */
.dna-hero { min-height: min(100svh, 1060px); overflow: hidden; }
.dna-hero > .wrap { position: relative; z-index: 2; }
.page-dna .pf-hero h1 { grid-column: 1 / span 7; }
.page-dna .pf-hero .pf-sub { grid-column: 1 / span 6; }
.page-dna .pf-hero .pf-meta { grid-column: 1 / span 5; margin-top: clamp(40px, 5vw, 64px); align-self: start; }
.dna-helix { position: absolute; z-index: 1; top: var(--header); bottom: 0; right: 0; width: 54%; }
.dna-helix canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dna-helix::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 9, 0) 26%), linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 9, 0) 16%, rgba(10, 10, 9, 0) 86%, var(--bg) 100%); }
.hx-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hx-label { position: absolute; left: 0; top: 0; pointer-events: auto; padding: 2px 0 2px 22px; translate: 0 -50%; font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease), color .3s; will-change: transform; text-shadow: 0 0 8px var(--bg), 0 0 3px var(--bg); }
.hx-label::before { content: ''; position: absolute; left: 4px; top: 50%; width: 12px; height: 1px; background: currentColor; opacity: .6; }
.hx-label.left { translate: -100% -50%; padding: 2px 22px 2px 0; }
.hx-label.left::before { left: auto; right: 4px; }
.gl-on .hx-label.on { opacity: 1; }
.gl-on .hx-label.on.back { opacity: .28; }
.hx-label.s1 { color: var(--fg-3); }
.hx-label.s0 { color: var(--fg-2); }
.hx-label.hot, .hx-label:hover, .hx-label:focus-visible { color: var(--signal); opacity: 1 !important; outline: none; }
.hx-cap { position: absolute; z-index: 2; left: 50%; translate: -50% 0; color: var(--fg-4); white-space: nowrap; }
.hx-cap.top { top: 18px; }
.hx-cap.bottom { bottom: 64px; }
.hx-note { position: absolute; z-index: 2; left: 50%; translate: -50% 0; bottom: 28px; font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.hx-note b { color: var(--fg); font-weight: 500; }
.dna-helix.gl-off { display: none; }
.dna-archive { padding-top: 0; }
@media (max-width: 1100px) {
  .dna-helix { width: 50%; }
  .page-dna .pf-hero h1 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dna-hero { min-height: 0; }
  .dna-helix { position: relative; top: 0; width: auto; height: clamp(560px, 150vw, 700px); margin-top: 8px; }
  .hx-cap.bottom { bottom: 74px; }
  .hx-note { bottom: 16px; }
  .dna-helix::before { background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 9, 0) 14%, rgba(10, 10, 9, 0) 84%, var(--bg) 100%); }
  .hx-cap.top { top: 14px; }
  .hx-note { white-space: normal; width: calc(100% - 2 * var(--pad)); text-align: center; }
  .page-dna .pf-hero .pf-meta { grid-column: 1 / -1; }
}

/* ───── Commerce Decisioning hero: simulated moves ───── */
.dx-field { position: relative; overflow: hidden; height: clamp(440px, 44vw, 640px); margin-top: clamp(16px, 3vw, 40px); }
.dx-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dx-field::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 9, 0) 14%, rgba(10, 10, 9, 0) 90%, var(--bg) 100%), linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 9, 0) 14%, rgba(10, 10, 9, 0) 80%, var(--bg) 100%); }
.dx-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dx-l { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); opacity: 0; transition: opacity .6s; will-change: transform; translate: -50% 10px; }
.gl-on .dx-l.on { opacity: 1; }
.dx-l.now { translate: -50% -130%; color: var(--fg-2); }
.dx-l.scn { translate: 14px -50%; color: var(--fg); }
.dx-l.scn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.dx-l.scn.a { color: var(--signal); }
.dx-l.scn.c { color: var(--cool); }
.dx-keys { position: absolute; z-index: 3; left: var(--pad); bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dx-keys button { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-3); padding: 6px 0; transition: color .25s; }
.dx-keys button:hover, .dx-keys button[aria-pressed="true"] { color: var(--fg); }
.dx-keys i { width: 14px; height: 2px; background: var(--fg-2); }
.dx-keys i.a { background: var(--signal); }
.dx-keys i.c { background: var(--cool); }
.dx-cap { position: absolute; z-index: 3; right: var(--pad); bottom: 30px; color: var(--fg-4); }
.dx-field.gl-off { display: none; }
@media (max-width: 900px) {
  .dx-field { height: 520px; }
  .dx-cap { display: none; }
  .dx-keys { flex-direction: column; gap: 2px; }
}

@media (hover: none) { .os-copy .os-hint { display: none; } }
@media (max-width: 760px) { .os-rail { transition: opacity .5s var(--ease); } .os[data-chapter="0"] .os-rail { opacity: 0; pointer-events: none; } }

/* Published brand and company material in the visual shell. */
.about-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-copy .hero-kicker { margin-bottom: 26px; }
.about-copy .lead { max-width: 36em; margin-top: 22px; }
.about-photo, .client-quotes figure, .client-quotes blockquote { margin: 0; }
.about-photo { width: min(100%, 420px); justify-self: center; }
.about-photo img { display: block; width: 100%; height: auto; }
/* The photo is assembled by city.js before it is shown. If the script never runs, the photo appears on its own. */
.about-photo[data-city] { position: relative; overflow: hidden; background: var(--bg); }
.js .about-photo[data-city] img { position: relative; z-index: 1; opacity: 0; animation: city-safety .8s 9s forwards; }
.js .about-photo[data-city].city-live img { opacity: var(--in, 0); filter: blur(calc((1 - var(--in, 0)) * (1 - var(--in, 0)) * 5px)); animation: none; }
.js .about-photo[data-city].city-done img { opacity: 1; filter: none; animation: none; transition: opacity .8s var(--ease); }
.about-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.co-hero { position: relative; overflow: hidden; }
.co-hero > .wrap { position: relative; z-index: 1; }
.co-hero > canvas.city-field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.js .about-photo[data-city].city-live.city-heat img { opacity: 1; filter: none; -webkit-mask-image: radial-gradient(circle at 50% 33%, #000 calc(var(--r, 0%) - 22%), transparent var(--r, 0%)); mask-image: radial-gradient(circle at 50% 33%, #000 calc(var(--r, 0%) - 22%), transparent var(--r, 0%)); }
.about-photo[data-city].city-heat:not(.city-done) { background: none; overflow: visible; }
@keyframes city-safety { to { opacity: 1; } }
/* The copy beside the photo appears in step with the build (city.js adds s1…s4, or city-all when there is no build to follow). */
.about-photo[data-city].city-live { background: none; }
.js .about-intro [data-city-step] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); animation: city-copy-safety .8s 5s forwards; }
.js .about-intro h1[data-city-step] { clip-path: inset(100% 0 0 0); transform: translateY(28px); transition: opacity .5s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
.js .about-intro.s1 [data-city-step="1"], .js .about-intro.s2 [data-city-step="2"], .js .about-intro.s3 [data-city-step="3"], .js .about-intro.s4 [data-city-step="4"], .js .about-intro.city-all [data-city-step] { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); animation: none; }
@keyframes city-copy-safety { to { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); } }
@media (prefers-reduced-motion: reduce) { .js .about-photo[data-city] img, .js .about-intro [data-city-step] { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; } }

.service-detail { margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4.5vw, 64px); }
.service-card { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 32px); background: var(--bg-1); border: 1px solid var(--line-2); }
.service-card svg { color: var(--fg-body); margin-bottom: clamp(24px, 3vw, 44px); }
.service-card h4 { max-width: 15em; }
.service-card p { margin: 14px 0 28px; color: var(--fg-2); font-size: 16px; }
.service-card .label { padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
}
.brand-wall { padding-top: clamp(24px, 3vw, 48px); }
.brand-wall .chapter-head { margin-bottom: 0; }
.brand-wall + .section { padding-top: 0; }
.brand-wall .wrap { --logo-row-height: clamp(88px, 8.4vw, 124px); }
.brand-window { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.brand-track, .brand-logos { display: flex; align-items: center; width: max-content; }
.brand-track { background: var(--bg); }
.brand-logos {
  --cell: clamp(116px, 10.5vw, 158px);
  --gutter: clamp(8px, 1.4vw, 20px);
  min-height: var(--logo-row-height); list-style: none;
  gap: var(--gutter); margin: 0; padding: 0 var(--gutter) 0 0;
}
.brand-logos li { display: grid; place-items: center; width: var(--cell); }
.brand-logos img, .brand-logos svg {
  display: block; max-width: 86%; object-fit: contain; transform: scale(.93);
  filter: var(--logo-ink, brightness(1)) grayscale(1); mix-blend-mode: screen; opacity: .82;
}
.brand-logos img[alt="BISSELL"] { --logo-ink: grayscale(1) brightness(1.6); opacity: .9; }
.brand-logos[aria-hidden] { display: none; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand-window:has(.brand-logos[aria-hidden]):not(:focus) {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 1.25%, black 98.75%, transparent);
  }
  .brand-window:not(:focus) .brand-logos[aria-hidden] { display: flex; }
  .brand-window:not(:focus) .brand-track:has(.brand-logos[aria-hidden]) { animation: brand-scroll 360s linear infinite; animation-play-state: paused; }
  .brand-window.in-view:not(:hover):not(:focus) .brand-track { animation-play-state: running; }
}
@keyframes brand-scroll { to { transform: translateX(-50%); } }
.client-stories, .client-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.client-quotes figure { display: flex; flex-direction: column; justify-content: space-between; padding-right: 16px; }
.client-quotes blockquote { font-family: var(--serif); color: var(--fg); font-size: clamp(20px, 1.85vw, 29px); line-height: 1.35; }
.client-quotes figcaption { margin-top: 22px; font-size: 14px; color: var(--fg-2); }
.client-quotes figcaption span { margin-inline: .25em; color: var(--fg-3); }
.story-photo { display: block; width: 100%; height: auto; }
.story-products { max-width: 30rem; margin-inline: auto; }
.client-stories .label { display: block; margin: 18px 0 8px; }
.client-stories a:hover .h3 { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .about-intro, .client-stories, .client-quotes { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .client-quotes figure + figure { padding-top: 24px; border-top: 1px solid var(--line); }
}

.journal-shelf { padding-top: clamp(28px, 4vw, 58px); }
.journal-shelf[hidden], .rs-list[hidden] { display: none; }
.journal-shelf .client-stories { margin-bottom: 24px; }

.research-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; border-block: 1px solid var(--line); padding: 18px 0; }
.research-stats div { display: flex; flex-direction: column-reverse; justify-content: end; }
.research-stats dt { font: 14px/1.4 var(--sans); color: var(--fg-2); }
.research-stats dd { margin: 0 0 5px; font: 400 var(--t-m)/1.2 var(--sans); color: var(--fg); }

/* OperaX Research covers and figures share the geometry of the original studies. */
.ox-cover { width: 100%; height: auto; background: var(--bg-1); border: 1px solid var(--line); }
.ox-coverInk { fill: var(--fg); }
.ox-coverMuted { fill: #494943; }
.ox-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
.ox-card .meta { margin: 18px 0 8px; }
.ox-card:hover h3, .ox-card:focus-visible h3 { text-decoration: underline; text-underline-offset: .15em; }
.ar-head.has-cover .grid { align-items: center; }
.ar-head.has-cover .grid > :first-child { grid-column: 1 / span 7; }
.ar-head.has-cover .grid > .ox-hero-art { grid-column: 9 / -1; }
.ox-figure {
  --r-ink: var(--fg); --r-muted: #696962; --r-text-2: var(--fg-body); --r-surface: var(--bg-1);
  --r-step-2: #aaa9a4; --r-step-3: #73736f; --r-step-4: #545450; --r-step-5: #353532;
  min-width: 0; padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line-2);
  background: var(--r-surface); font: 400 15px/1.5 var(--sans);
}
.ox-figHead { display: grid; gap: 6px; margin-bottom: 24px; }
.ox-figIndex, .ox-flow li span { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-2); }
.ox-figHead strong { font-size: clamp(17px, 1.4vw, 21px); }
.ox-figCaption, .ox-data { color: var(--fg-2); font-size: 14px; margin-top: 18px; }
.ox-data summary { width: fit-content; cursor: pointer; color: var(--fg-body); }
.ox-data[open] .table-scroll { margin-top: 10px; }
.ox-svg { width: 100%; height: auto; overflow: visible; }
.ox-grid { stroke: var(--line-2); }
.ox-axisText, .ox-valueText, .ox-tickText { font: 13px var(--sans); fill: var(--fg-body); }
.ox-tickText { fill: var(--fg-2); }
.ox-valueText[data-strong="true"], .ox-axisText[data-strong="true"] { fill: var(--fg); }
.ox-mark:hover .ox-bar, .ox-mark:hover .ox-vbar { fill: var(--signal); }
.ox-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ox-panelTitle { color: var(--fg-body); font-size: 14px; margin-bottom: 10px; }
.ox-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; font-size: 13px; color: var(--fg-body); }
.ox-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ox-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--r-ink); }
.ox-legend .ox-hollow { border: 1.5px solid var(--r-ink); background: transparent; }
.ox-segments .ox-legend i { border-radius: 0; }
.ox-segRow { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-block: 8px; }
.ox-segLabel { font-size: 13px; }
.ox-segBar { display: flex; height: 35px; gap: 1px; }
.ox-seg { display: grid; place-items: center; flex-basis: 0; min-width: 0; overflow: hidden; color: white; font: 500 12px var(--sans); }
.ox-seg:hover { filter: brightness(1.18); }
.ox-seg b[data-dark="true"] { color: var(--bg); }
.ox-seg[style*="--r-step-2"] b { color: var(--bg); }
.prose .ox-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.ox-flow li { position: relative; display: grid; align-content: start; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line-3); }
.ox-flow li + li { margin: 0; }
.ox-flow li:not(:last-child)::after { content: '→'; position: absolute; top: -13px; right: 0; color: var(--fg-2); background: var(--r-surface); }
.ox-comparison > div { display: grid; grid-template-columns: 46px 1fr 55px; align-items: center; gap: 12px; margin: 10px 0; }
.ox-comparison i { width: var(--share); height: 10px; background: var(--r-ink); }
.ox-comparison > div + div i { background: var(--r-muted); }
.ox-comparison b { font: 500 13px var(--mono); }
@media (max-width: 900px) {
  .ox-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-head.has-cover .grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .ar-head.has-cover .grid > :first-child, .ar-head.has-cover .grid > .ox-hero-art { grid-column: 1; }
  .ox-hero-art { width: min(100%, 480px); }
}
@media (max-width: 640px) {
  .ox-cards, .ox-panels { grid-template-columns: 1fr; }
  .ox-svg[viewBox^="0 0 600"] text { font-size: 17px; }
  .ox-segRow { grid-template-columns: 1fr; gap: 4px; }
  .prose .ox-flow { gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ox-coverInk, .ox-coverMuted, .ox-bar, .ox-vbar { transform-box: fill-box; }
  .ox-cover rect, .ox-vbar { transform-origin: center bottom; }
  .ox-cover circle { transform-origin: center; }
  .ox-hero-art .ox-cover :is(.ox-coverInk, .ox-coverMuted),
  :is(.ox-card, .r-lead):is(:hover, :focus-visible) .ox-cover :is(.ox-coverInk, .ox-coverMuted) { animation: ox-emerge .85s var(--ease) backwards; }
  .ox-hero-art [data-motif="window"] path.ox-coverInk { animation: ox-cursor 1.3s var(--ease) backwards; }
  .ox-figure.in-view :is(.ox-bar, .ox-seg, .ox-comparison i) { transform-origin: left center; animation: ox-grow-x .7s var(--ease) backwards; }
  .ox-figure.in-view .ox-vbar { animation: ox-grow-y .7s var(--ease) backwards; }
  .ox-figure.in-view :is(.ox-flow li, .ox-mark circle) { animation: ox-appear .65s ease-out backwards; }
  .ox-figure.in-view .ox-flow li:nth-child(2) { animation-delay: .18s; }
  .ox-figure.in-view .ox-flow li:nth-child(3) { animation-delay: .36s; }
}
@keyframes ox-emerge { from { opacity: .2; transform: scale(.65); } }
@keyframes ox-cursor { from { opacity: .2; transform: translate(24px, 20px); } }
@keyframes ox-grow-x { from { transform: scaleX(0); } }
@keyframes ox-grow-y { from { transform: scaleY(0); } }
@keyframes ox-appear { from { opacity: .2; transform: translateY(4px); } }

/* The commerce directory follows the platform map from source to execution. */
.stack-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: end; padding-top: calc(var(--header) + clamp(48px, 7vw, 104px)); }
.stack-intro .label { margin-bottom: 17px; }
.stack-intro .h1 { font-size: clamp(48px, 6.8vw, 100px); }
.stack-intro .lead { max-width: 38ch; justify-self: end; padding-bottom: .25em; }
.stack-directory { padding-block: clamp(40px, 5vw, 76px) 0; }
.stack-directory > h2, .stack-flow > h2 { margin-bottom: 16px; }
.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding-block: 1px; background: var(--line-2); }
.system-card { position: relative; display: flex; flex-direction: column; background: var(--bg); padding: clamp(14px, 1.55vw, 24px); }
.system-card h3 { font: 500 clamp(19px, 1.6vw, 25px)/1.15 var(--sans); letter-spacing: -.035em; }
.system-card h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.system-card h3 a::after { content: ''; position: absolute; inset: 0; }
.system-card:focus-within { outline: 1px solid var(--fg); outline-offset: -2px; z-index: 1; }
.system-card:hover, .system-card:focus-within, .system-card:has([aria-current]) { background: var(--bg-1); }
.system-arrow { font-size: 16px; color: var(--fg-3); }
.system-card:has([aria-current]) .system-arrow, .system-card:hover .system-arrow { color: var(--signal); }
.system-card > p { color: var(--fg-2); font-size: 14px; line-height: 1.5; margin-block: 8px 26px; }
.system-marks { list-style: none; display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: auto 0 0; padding: 0; }
.system-marks li { display: grid; justify-items: start; align-content: end; gap: 7px; }
.system-marks img { height: 25px; width: 32px; object-fit: contain; object-position: left center; filter: saturate(.7); }
.system-marks li > span:last-child { color: var(--fg-2); font: 400 11px/1.2 var(--sans); }
.format-mark { display: inline-grid; place-items: center; height: 25px; padding: 2px 4px; border: 1px solid var(--line-3); border-radius: 2px; color: var(--fg-2); font: 500 9px/1 var(--mono); }
.system-marks .format-mark + span { display: none; }
.stack-bus { display: block; height: 40px; width: 100%; fill: none; stroke: var(--line-3); }
.stack-bus path { vector-effect: non-scaling-stroke; }
.stack-bus .bus-two { display: none; }
.stack-flow { padding-block: 12px clamp(44px, 5vw, 80px); }
.flow-stages, .scenario-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px, 3vw, 52px); }
.flow-stages > div { position: relative; padding-top: 16px; border-top: 1px solid var(--line-3); }
.flow-stages > div::before { content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }
.flow-stages > div:nth-child(2)::before { background: var(--signal); }
.flow-stages h3 { font: 500 clamp(21px, 2.2vw, 33px)/1.1 var(--sans); letter-spacing: -.03em; margin-bottom: 10px; }
.flow-stages h3 span { font-size: .55em; vertical-align: middle; color: var(--fg-3); }
.flow-stages p, .scenario-steps dd, .stack-access p { color: var(--fg-2); line-height: 1.55; }
.flow-stages p a, .scenario-steps dt a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.flow-stages a:hover, .scenario-steps dt a:hover { color: var(--fg); text-decoration-color: currentColor; }
.flow-return { color: var(--fg-2); font-size: 14px; margin-top: 22px; }
.flow-return span { color: var(--signal); margin-right: .35em; }
.system-scenario { padding: clamp(20px, 3.2vw, 46px); background: var(--bg-1); border: 1px solid var(--line-2); scroll-margin-top: 12px; }
.scenario-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.scenario-head .label { margin-bottom: 12px; }
.scenario-head > a { flex-shrink: 0; }
.scenario-steps { margin-top: clamp(22px, 3vw, 44px); }
.scenario-steps dt { font-weight: 500; margin-bottom: 10px; }
.scenario-steps dd { margin: 0; }
.stack-access { padding-block: clamp(48px, 7vw, 100px); display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gap); }
.stack-access > div { max-width: 56ch; }
.stack-access p + p { margin-top: 12px; }
@supports selector(:has(:target)) {
  .workflow-directory .system-scenario { display: none; }
  .workflow-directory .system-scenario:target,
  .workflow-directory:not(:has(.system-scenario:target)) #ecommerce { display: block; }
}
@media (max-width: 1080px) {
  .system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stack-bus .bus-two { display: block; }
  .stack-bus .bus-four { display: none; }
}
@media (max-width: 640px) {
  .stack-intro, .flow-stages, .scenario-steps, .stack-access { grid-template-columns: minmax(0,1fr); }
  .stack-intro .lead { justify-self: start; }
  .system-grid { grid-template-columns: minmax(0,1fr); }
  .stack-bus { display: none; }
  .stack-flow { padding-top: 40px; }
  .system-card { padding: 17px 14px; }
  .system-card > p { margin-block: 4px 15px; }
  .system-marks { gap: 15px; }
  .scenario-head { align-items: start; flex-direction: column; }
  .flow-stages { row-gap: 20px; }
}

/* Editorial motion follows the reading order and finishes at rest. */
@media (prefers-reduced-motion: no-preference) {
  .page-home .home-hero h1 span { display: inline-block; }
  .page-home .home-hero h1.in span { animation: home-title-rise .85s var(--ease) var(--word-delay, 0ms) backwards; }
  .home-hero h1 span:nth-child(2) { --word-delay: 45ms; }
  .home-hero h1 span:nth-child(3) { --word-delay: 90ms; }
  .home-hero h1 span:nth-child(4) { --word-delay: 135ms; }
  .home-hero h1 span:nth-child(5) { --word-delay: 180ms; }
  .home-hero h1 span:nth-child(6) { --word-delay: 225ms; }
  .home-hero .hero-kicker.in .rule { transform-origin: left; animation: home-rule-draw .9s var(--ease) both; }
  .page-home .kde-col.in::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: var(--fg-3); transform-origin: left; animation: home-rule-draw .85s var(--ease) var(--d, 0s) backwards;
  }
  .page-home .service-card.in svg { animation: home-icon-settle .75s var(--ease) var(--d, 0s) backwards; }
  .page-home .service-card:nth-child(2) { --d: .09s; }
  .page-home .service-card:nth-child(3) { --d: .18s; }
  @keyframes home-title-rise { from { opacity: 0; transform: translateY(.2em); } to { opacity: 1; transform: translateY(0); } }
  @keyframes home-rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes home-icon-settle { from { opacity: 0; transform: translateY(6px) rotate(-10deg); } to { opacity: 1; transform: none; } }
}

@media (min-width: 961px) {
  .site-header::after {
    content: ''; position: absolute; bottom: 8px; left: 0; height: 1px;
    width: var(--nav-width, 0px); transform: translateX(var(--nav-x, 0px));
    background: var(--fg-2); pointer-events: none; opacity: 0;
  }
  .site-header[data-nav-indicator]::after { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header::after { transition: width .22s var(--ease), transform .28s var(--ease), opacity .14s ease; }
  .nav-group[open] > .nav-sections { animation: nav-panel-in .23s var(--ease); }
  .nav-group[open] .nav-column { animation: nav-items-in .25s var(--ease) .025s backwards; }
  .nav-group[open] .nav-column:nth-child(2) { animation-delay: .06s; }
  .site-menu.open { animation: nav-panel-in .22s var(--ease); }
  .site-menu.open > .nav-group, .site-menu.open > .nav-direct { animation: nav-items-in .25s var(--ease) backwards; }
  .site-menu.open > :nth-child(n+3) { animation-delay: .035s; }
  .site-menu.open > :nth-child(n+5) { animation-delay: .07s; }
  .system-arrow { transition: transform .2s var(--ease), color .2s; }
  .system-card:is(:hover,:focus-within) .system-arrow { transform: translate(2px,2px); }
  .system-scenario:target { animation: nav-items-in .24s var(--ease); }
  @keyframes nav-panel-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes nav-items-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
}
