/* Nizento site · design system
   Built on Brand Book v2.7 and web tokens v2.2 (4 October 2026).
   Layout concept: an operator's ledger. Paper pages ruled with hairlines carry the company story;
   navy "instrument" chambers hold the machine and the software. One gold accent marks the one action.
   The site commits to one visual world and paints every colour explicitly (it is not theme-switched). */

:root {
  color-scheme: light;
  /* primary */
  --navy: #0E1B25;
  --gold: #C18C31;
  --paper: #F1F2ED;
  --white: #FFFFFF;
  /* secondary · light */
  --navy-2: #3E4A54;
  --slate: #5E6A74;
  --navy-3: #74808A;
  --line: #D9DAD3;
  --paper-2: #E7E8E1;
  --gold-deep: #9C6F22;
  --gold-text: #85601C;
  --sea: #2F6F66;
  --alert: #A33A2A;
  /* instrument mode */
  --raised: #16262F;
  --raised-2: #1C2F3A;
  --line-dark: #2A3B46;
  --mist: #9AA5AD;
  --mint: #7FC4B4;
  --coral: #E58A78;
  /* product palettes */
  --clay: #B4472B;
  --ivory: #F4EEE4;
  --charcoal: #24211F;
  --sand: #E3D5C1;
  --stone: #70665C;
  --emerald: #0B7A5B;
  --night: #0C1512;
  --tracer-surface: #EDF8F2;
  --tracer-line: #CFE6DA;
  --tracer-mint: #DDF6EA;
  --signal: #7FE0B4;
  --night-raised: #13211C;
  --night-line: #20302A;

  /* type */
  --f-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --f-body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --t-hero: clamp(2.6rem, 6.4vw, 5.9rem);
  --t-h1: clamp(2.3rem, 5vw, 4.1rem);
  --t-h2: clamp(1.85rem, 3.4vw, 2.85rem);
  --t-h3: clamp(1.3rem, 1.8vw, 1.6rem);
  --t-body: 1.0625rem;
  --t-ui: 0.875rem;
  --t-label: 0.75rem;
  --track-display: -0.018em;

  /* space (8 px base) and shape */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px; --s8: 140px;
  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 var(--t-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: var(--track-display); font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font-size: 1.15rem; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--navy); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: var(--s7); }
.section-tight { padding-block: var(--s6); }
@media (max-width: 720px) { .section { padding-block: var(--s6); } .section-tight { padding-block: var(--s5); } }

/* instrument mode: navy grounds */
.dark { background: var(--navy); color: var(--paper); }
.dark .lede, .dark .muted { color: var(--mist); }
.raised { background: var(--raised); }
.paper-2 { background: var(--paper-2); }
.white { background: var(--white); }

/* type utilities */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.dark .eyebrow { color: var(--gold); }
.eyebrow .mark { width: 16px; height: 16px; flex: none; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--navy-2); max-width: 62ch; }
.muted { color: var(--slate); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.dark .label { color: var(--mist); }
.measure { max-width: 64ch; }
.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s4); }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0; }
.figure-big { font: 700 clamp(2.6rem, 5.2vw, 4.4rem)/1 var(--f-display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; }
.caption { font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.dark .caption { color: var(--mist); }

/* ------------------------------------------------------------------ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent; font: 600 0.95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--paper); }
.dark .btn-secondary { color: var(--paper); border-color: rgba(241, 242, 237, .55); }
.dark .btn-secondary:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: var(--t-ui); }
.btn .arr { width: 14px; height: 14px; flex: none; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.textlink:hover { color: var(--gold-text); }
.dark .textlink:hover { color: var(--gold); }
.arrowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.arrowlink svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.arrowlink:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ status chips (square + word) */
.chip { display: inline-flex; align-items: center; gap: .5em; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--navy); }
.dark .chip { color: var(--paper); }
.chip::before { content: ""; width: .78em; height: .78em; flex: none; }
.chip-running::before { background: var(--sea); }
.dark .chip-running::before { background: var(--mint); }
.chip-built::before { background: var(--navy); }
.dark .chip-built::before { background: var(--paper); }
.chip-custom::before { border: 1.5px solid var(--gold); }
.chip-concept::before { border: 1.5px dashed var(--navy-3); }
.dark .chip-concept::before { border-color: var(--mist); }
.chip-done::before { background: var(--navy-2); }
.chip-demo { color: var(--gold-text); }
.dark .chip-demo { color: var(--gold); }
.chip-demo::before { background: var(--gold); }
.chip-confirm::before { border: 1.5px solid var(--alert); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(241, 242, 237, .92); color: var(--navy); border-bottom: 1px solid rgba(14, 27, 37, .08); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.site-header.on-dark { background: rgba(14, 27, 37, .9); color: var(--paper); border-bottom-color: rgba(241, 242, 237, .08); }
.site-header .bar { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.brand-link { display: inline-flex; align-items: center; flex: none; margin-right: auto; text-decoration: none; }
.brand-link img { height: 34px; width: auto; }
.brand-link .logo-dark { display: none; }
.site-header.on-dark .brand-link .logo-light { display: none; }
.site-header.on-dark .brand-link .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: var(--radius); font: 500 var(--t-ui)/1 var(--f-body); text-decoration: none; cursor: pointer; color: inherit; }
.nav > a:hover, .nav .nav-trigger:hover, .nav > a[aria-current="page"] { color: var(--gold-text); }
.site-header.on-dark .nav > a:hover, .site-header.on-dark .nav .nav-trigger:hover, .site-header.on-dark .nav > a[aria-current="page"] { color: var(--gold); }
.nav .chev { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-group { position: relative; }
.nav-group[data-open="true"] .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -12px; width: 360px; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(14, 27, 37, .18); padding: 10px; display: none; }
.nav-group[data-open="true"] .nav-menu { display: block; }
.nav-menu a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); text-decoration: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--paper); }
.nav-menu .pm { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); }
.nav-menu .pm img { width: 28px; height: 28px; }
.nav-menu b { display: block; font: 600 0.95rem/1.3 var(--f-body); }
.nav-menu span { display: block; font-size: 0.82rem; line-height: 1.4; color: var(--slate); }
.header-cta { flex: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; color: inherit; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--paper); padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav .top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-nav .top img { height: 32px; width: auto; }
.mobile-nav nav { display: flex; flex-direction: column; margin-top: 18px; }
.mobile-nav nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font: 700 1.6rem/1.2 var(--f-display); text-decoration: none; letter-spacing: -0.01em; }
.mobile-nav nav a.sub { font: 500 1rem/1.3 var(--f-body); padding: 12px 0 12px 18px; color: var(--mist); }
.mobile-nav .btn { margin-top: 28px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: var(--paper); padding-block: var(--s7) var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s5); }
.footer-grid h4 { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--paper); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { color: var(--mist); margin-top: 18px; max-width: 34ch; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-bottom p { font: 500 11px/1.7 var(--f-mono); letter-spacing: .06em; color: var(--mist); max-width: 80ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* close band used at the foot of pages */
.close-band { position: relative; overflow: hidden; }
.close-band h2 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: 1.02; max-width: 16ch; }
.close-band .lede { margin-top: var(--s4); }
.close-band .actions { margin-top: var(--s5); }
.close-routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: var(--s6); background: var(--line-dark); border: 1px solid var(--line-dark); }
.close-routes a { background: var(--navy); padding: 22px; text-decoration: none; display: grid; gap: 6px; transition: background .2s var(--ease); }
.close-routes a:hover { background: var(--raised); }
.close-routes b { font-weight: 600; }
.close-routes span { font-size: var(--t-ui); color: var(--mist); }
@media (max-width: 860px) { .close-routes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .close-routes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ section heads */
.head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--s5); }
.head h2 { max-width: 20ch; }
@media (max-width: 860px) { .head.split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ hero (home) */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -0.026em; max-width: 11ch; }
.hero h1 .gold { color: var(--gold-text); }
.hero .lede { margin-top: var(--s4); max-width: 46ch; }
.hero .actions { margin-top: var(--s5); }
.hero-proof { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-proof li { list-style: none; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.hero-proof li::before { content: ""; width: 7px; height: 7px; background: var(--gold); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 13ch; } }

/* The layered composition: software, knowledge, workflows and infrastructure as stacked plates */
.strata { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: end; perspective: 1600px; }
.strata-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg) translateZ(0); transition: transform .6s var(--ease); }
.plate { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; transform-style: preserve-3d; border-radius: 2px; }
.plate .face { position: absolute; inset: 0; border-radius: 2px; }
.plate-label { position: absolute; left: 100%; top: 0; transform: translateX(14px); white-space: nowrap; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-2); }
.strata-legend { position: absolute; right: 0; bottom: 2%; display: grid; gap: 8px; }
.strata-legend li { list-style: none; display: flex; align-items: center; gap: 10px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-2); }
.strata-legend i { width: 18px; height: 1.5px; background: var(--navy); display: inline-block; }
.strata-legend li.g i { background: var(--gold); }
@media (max-width: 980px) { .strata { justify-self: center; max-width: 520px; margin-top: 8px; } }

/* ------------------------------------------------------------------ "what we build" index */
.build-index { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.build-list { list-style: none; border-top: 1.5px solid var(--navy); }
.build-item { border-bottom: 1px solid var(--line); }
.build-item button { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 14px; align-items: baseline; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.build-item .n { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--gold-text); }
.build-item .t { font: 700 clamp(1.5rem, 2.6vw, 2.15rem)/1.1 var(--f-display); letter-spacing: -0.015em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; transition: color .2s var(--ease); }
.build-item .plus { width: 18px; height: 18px; align-self: center; transition: transform .3s var(--ease); }
.build-item[data-active="true"] .plus { transform: rotate(45deg); }
.build-item[data-active="true"] .t { color: var(--navy); }
.build-item:not([data-active="true"]) .t { color: var(--navy-2); }
.build-item button:hover .t { color: var(--gold-text); }
.build-body { padding: 0 0 26px 68px; display: grid; gap: 14px; }
.build-body[hidden] { display: none; }
.build-body p { color: var(--navy-2); max-width: 54ch; }
.build-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.build-tags li { list-style: none; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--navy-2); }
.specimen { position: sticky; top: calc(var(--header-h) + 32px); min-height: 460px; background: var(--navy); color: var(--paper); border-radius: var(--radius); overflow: hidden; }
.specimen-pane { position: absolute; inset: 0; padding: 26px; display: grid; align-content: start; gap: 16px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.specimen-pane[data-active="true"] { opacity: 1; visibility: visible; }
.specimen .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 980px) { .build-index { grid-template-columns: 1fr; } .specimen { position: relative; top: 0; min-height: 420px; } .build-body { padding-left: 0; } }

/* small interface primitives used in specimens and demos (instrument mode) */
.ui { font-size: var(--t-ui); }
.ui-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--raised); border-radius: var(--radius); }
.ui-row + .ui-row { margin-top: 8px; }
.ui-row b { font-weight: 600; display: block; }
.ui-row span { color: var(--mist); font-size: 12.5px; }
.ui-num { font: 500 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.ui-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ui-col { background: var(--raised); border-radius: var(--radius); padding: 10px; min-height: 180px; display: grid; align-content: start; gap: 8px; }
.ui-col h5 { margin: 0 0 4px; font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.ui-card { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px; font-size: 12px; line-height: 1.35; }
.ui-card b { display: block; font: 500 11px/1.2 var(--f-mono); color: var(--gold); }
.ui-card .late { color: var(--coral); }
.ui-card .ok { color: var(--mint); }

/* ------------------------------------------------------------------ products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 520px; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; }
.product-card .pc-top { padding: 28px 28px 0; display: grid; gap: 14px; }
.product-card .pc-logo { height: 34px; width: auto; }
.product-card .pc-by { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.product-card h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.12; }
.product-card p { font-size: 0.97rem; line-height: 1.55; }
.product-card .pc-visual { margin-top: auto; padding: 22px 28px 0; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 24px; }
.pc-tracer { background: var(--night); color: var(--tracer-mint); }
.pc-tracer .pc-by, .pc-tracer p { color: #8FA89C; }
.pc-atelier { background: var(--ivory); color: var(--charcoal); }
.pc-atelier .pc-by, .pc-atelier p { color: var(--stone); }
.pc-ds { background: var(--navy); color: var(--paper); }
.pc-ds .pc-by, .pc-ds p { color: var(--mist); }
.product-card .go { font: 600 0.92rem/1 var(--f-body); display: inline-flex; gap: 8px; align-items: center; }
.product-card:hover .go svg { transform: translateX(3px); }
.product-card .go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.pc-tracer .go { color: var(--signal); }
.pc-atelier .go { color: var(--clay); }
.pc-ds .go { color: var(--gold); }
@media (max-width: 1040px) { .products { grid-template-columns: 1fr; } .product-card { min-height: 0; } }
.relation { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--navy); }
.relation > div { padding: 18px 20px 0 0; }
.relation b { display: block; font: 600 0.95rem/1.3 var(--f-body); }
.relation span { display: block; margin-top: 6px; color: var(--navy-2); font-size: 0.95rem; }
@media (max-width: 860px) { .relation { grid-template-columns: 1fr; } .relation > div { padding: 16px 0; border-bottom: 1px solid var(--line); } }

/* Tracer mini-flow inside the ecosystem section */
.flow-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-steps button { border: 1px solid var(--night-line); background: transparent; color: #8FA89C; padding: 7px 10px; border-radius: var(--radius); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.flow-steps button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: var(--white); }

/* ------------------------------------------------------------------ DS journey */
.ds-intro { padding-block: var(--s7) var(--s6); }
.ds-journey { position: relative; height: 650vh; background: #071018; color: var(--paper); }
@media (max-width: 760px) { .ds-journey { height: 520vh; } }
.ds-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #071018; }
.ds-stage .ds-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.ds-stage.ready .ds-canvas { opacity: 1; }
.ds-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.ds-stage.ready .ds-poster { opacity: 0; }
.ds-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 16, 24, .72) 0%, rgba(7, 16, 24, .35) 34%, rgba(7, 16, 24, 0) 56%); }
.ds-copy { position: absolute; inset: 0; pointer-events: none; }
.ds-block { position: absolute; left: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--dy, 0px))); width: min(460px, calc(100% - 2 * var(--gutter))); opacity: 0; visibility: hidden; }
.ds-block.on { visibility: visible; }
.ds-block .actions { pointer-events: auto; margin-top: 26px; }
.ds-block h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.02; color: var(--paper); }
.ds-block .spec { font: 700 clamp(3rem, 7vw, 6rem)/0.95 var(--f-display); letter-spacing: -0.03em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; color: var(--paper); }
.ds-block .spec small { display: block; margin-top: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.ds-block p { margin-top: 16px; color: #C3CBD1; font-size: 1.08rem; line-height: 1.55; max-width: 38ch; text-shadow: 0 1px 18px rgba(7, 16, 24, .8); }
.ds-block .eyebrow { margin-bottom: 18px; }
.ds-note { position: absolute; left: var(--gutter); bottom: 22px; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7F8B93; pointer-events: none; max-width: 70ch; }
.ds-skip { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 14px); z-index: 3; pointer-events: auto; }
.ds-skip a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(241, 242, 237, .3); border-radius: var(--radius); color: var(--paper); text-decoration: none; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(7, 16, 24, .5); backdrop-filter: blur(6px); }
.ds-skip a:hover { border-color: var(--gold); color: var(--gold); }
.ds-rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; z-index: 3; }
.ds-rail button { display: grid; grid-template-columns: auto 18px; align-items: center; justify-content: end; gap: 12px; background: none; border: 0; padding: 5px 0; cursor: pointer; color: #7F8B93; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.ds-rail button span { opacity: 0; transform: translateX(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.ds-rail:hover button span, .ds-rail button:focus-visible span, .ds-rail button[aria-current="step"] span { opacity: 1; transform: none; }
.ds-rail button i { width: 18px; height: 1.5px; background: #4E5D68; display: block; transition: background .25s, width .25s; justify-self: end; }
.ds-rail button[aria-current="step"] { color: var(--paper); }
.ds-rail button[aria-current="step"] i { background: var(--gold); width: 18px; height: 2px; }
.ds-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(241, 242, 237, .08); z-index: 3; }
.ds-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.ds-panels { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(400px, 40vw); display: grid; gap: 10px; opacity: 0; visibility: hidden; pointer-events: auto; }
.ds-panels.on { visibility: visible; }
.ds-panels a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; border-radius: var(--radius); border: 1px solid rgba(241, 242, 237, .14); background: rgba(14, 27, 37, .72); backdrop-filter: blur(8px); }
.ds-panels a:hover { border-color: var(--gold); }
.ds-panels img { width: 36px; height: 36px; }
.ds-panels b { display: block; font-weight: 600; }
.ds-panels span { display: block; font-size: 0.85rem; color: var(--mist); }
@media (max-width: 760px) {
  .ds-shade { background: linear-gradient(180deg, rgba(7, 16, 24, 0) 30%, rgba(7, 16, 24, .55) 58%, rgba(7, 16, 24, .92) 100%); }
  .ds-block { top: auto; bottom: 64px; transform: translateY(var(--dy, 0px)); }
  .ds-block h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .ds-block .spec { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .ds-block p { font-size: 1rem; }
  .ds-rail { display: none; }
  .ds-skip { top: calc(var(--header-h) + 10px); }
  .ds-panels { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 64px; transform: none; }
  .ds-note { bottom: 16px; font-size: 9.5px; }
}
/* static alternative: reduced motion, no WebGL, or scripts off */
.ds-static { display: none; }
.ds-journey.is-static { height: auto; }
.ds-journey.is-static .ds-stage { display: none; }
.ds-journey.is-static .ds-static { display: block; }
.ds-static-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: var(--s6); border-bottom: 1px solid var(--line-dark); }
.ds-static-item:last-child { border-bottom: 0; }
.ds-static-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.ds-static-item h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.ds-static-item p { margin-top: 12px; color: var(--mist); max-width: 44ch; }
@media (max-width: 760px) { .ds-static-item { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ module explorer */
.explorer { display: grid; gap: var(--s4); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; font: 500 var(--t-ui)/1 var(--f-body); color: var(--navy-2); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.dark .filters button { background: transparent; border-color: var(--line-dark); color: var(--mist); }
.dark .filters button[aria-pressed="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.explorer-body { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.mod-list { list-style: none; display: grid; gap: 2px; }
.mod-list button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; text-align: left; padding: 14px 14px; background: transparent; border: 0; border-left: 2px solid transparent; cursor: pointer; border-radius: 0; }
.mod-list button .l { font: 500 11px/1 var(--f-mono); color: var(--gold-text); letter-spacing: .08em; }
.mod-list button .n { font-weight: 600; line-height: 1.3; }
.mod-list button .s { grid-column: 2; display: block; margin-top: 6px; }
.mod-list button[aria-selected="true"] { background: var(--white); border-left-color: var(--gold); }
.mod-list button:hover { background: rgba(255, 255, 255, .6); }
.dark .mod-list button[aria-selected="true"] { background: var(--raised); }
.dark .mod-list button:hover { background: rgba(22, 38, 47, .6); }
.dark .mod-list button .l { color: var(--gold); }
.mod-panel { background: var(--navy); color: var(--paper); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.mod-visual { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: #0b1620; }
.mod-visual img, .mod-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-visual .vis-tag { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.mod-visual .vis-play { position: absolute; right: 14px; bottom: 12px; z-index: 2; min-height: 34px; padding: 0 12px; border: 1px solid rgba(241, 242, 237, .35); background: rgba(7, 16, 24, .55); color: var(--paper); border-radius: var(--radius); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mod-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 27, 37, .92) 0%, rgba(14, 27, 37, .45) 38%, rgba(14, 27, 37, 0) 62%); pointer-events: none; }
.mod-visual .vis-copy { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: min(46%, 440px); padding: 26px; display: grid; align-content: center; gap: 12px; }
.mod-visual .vis-copy h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.08; }
.mod-visual .vis-copy p { color: #C3CBD1; font-size: 0.95rem; }
.mod-detail { padding: 24px 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; }
.mod-detail .problem p + p { margin-top: 10px; }
.mod-detail h4 { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.mod-detail .problem p { color: #C9D0D5; font-size: 0.97rem; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 1040px) {
  .explorer-body { grid-template-columns: 1fr; }
  .mod-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .mod-list li { scroll-snap-align: start; }
  .mod-list button { border-left: 0; border-top: 2px solid transparent; height: 100%; }
  .mod-list button[aria-selected="true"] { border-top-color: var(--gold); }
}
@media (max-width: 760px) {
  .mod-visual { aspect-ratio: 4 / 5; }
  .mod-visual::after { background: linear-gradient(180deg, rgba(14, 27, 37, 0) 35%, rgba(14, 27, 37, .92) 100%); }
  .mod-visual .vis-copy { top: auto; width: 100%; padding: 20px; }
  .mod-detail { grid-template-columns: 1fr; padding: 20px; }
}

/* workflow stages (shared by explorer, module pages and stories) */
.stages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.stages li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: 0.85rem; color: #C9D0D5; }
.stages li::before { content: counter(st, decimal-leading-zero); font: 500 10.5px/1 var(--f-mono); color: var(--gold); }
.stages li[data-on="true"] { border-color: var(--gold); color: var(--paper); background: rgba(193, 140, 49, .1); }
.light-stages li { border-color: var(--line); color: var(--navy-2); background: var(--white); }
.light-stages li::before { color: var(--gold-text); }
.light-stages li[data-on="true"] { border-color: var(--gold); color: var(--navy); background: #FBF6EC; }

/* ------------------------------------------------------------------ demos */
.demo { background: var(--raised); border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--paper); overflow: hidden; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); background: rgba(14, 27, 37, .5); }
.demo-top .t { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.demo-top .reset { border: 0; background: none; color: var(--mist); font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 6px; }
.demo-top .reset:hover { color: var(--gold); }
.demo-body { padding: 16px; display: grid; gap: 12px; min-height: 260px; align-content: start; }
.demo-q { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-q button, .demo-btn { min-height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--navy); color: var(--paper); cursor: pointer; font: 500 0.86rem/1.2 var(--f-body); text-align: left; }
.demo-q button:hover, .demo-btn:hover { border-color: var(--gold); }
.demo-btn.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.demo-btn.primary:hover { background: #d39c3c; }
.demo-btn[disabled] { opacity: .45; cursor: not-allowed; }
.demo-out { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 14px; font-size: 0.9rem; line-height: 1.5; }
.demo-out h5 { margin: 0 0 8px; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.demo-list { list-style: none; display: grid; gap: 6px; }
.demo-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: 0.88rem; }
.demo-list li.sel { border-color: var(--gold); }
.demo-list li button { all: unset; cursor: pointer; display: block; }
.demo-list li button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.demo-list .meta { display: block; color: var(--mist); font-size: 12px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--radius); border: 1px solid var(--line-dark); color: var(--mist); white-space: nowrap; }
.tag.ok { color: var(--mint); border-color: rgba(127, 196, 180, .35); }
.tag.bad { color: var(--coral); border-color: rgba(229, 138, 120, .4); }
.tag.wait { color: var(--gold); border-color: rgba(193, 140, 49, .45); }
.demo-src { font: 500 11px/1.5 var(--f-mono); color: var(--mist); }
.demo-src b { color: var(--paper); font-weight: 500; }
.demo-field { display: grid; gap: 6px; }
.demo-field label { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.demo-field input, .demo-field select, .demo-field textarea { min-height: 38px; background: var(--navy); color: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px 10px; font: 400 0.9rem/1.3 var(--f-body); }
.demo-field input:focus, .demo-field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.demo-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-note { font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .06em; color: #7F8B93; }
.demo-log { list-style: none; display: grid; gap: 4px; font: 400 12px/1.5 var(--f-mono); color: var(--mist); }
.demo-log li::before { content: "› "; color: var(--gold); }
.hl { background: rgba(193, 140, 49, .22); color: var(--paper); padding: 0 2px; border-radius: 1px; }
.hl-low { background: rgba(229, 138, 120, .2); outline: 1px dashed var(--coral); }
@media (max-width: 560px) { .demo-grid2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ connected stories */
.story-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.story-tabs button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-dark); background: transparent; color: var(--mist); border-radius: var(--radius); cursor: pointer; font: 600 0.9rem/1 var(--f-body); }
.story-tabs button[aria-selected="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.story { display: grid; gap: var(--s4); }
.story-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.story-station { position: relative; padding: 18px 14px 20px; border-right: 1px solid var(--line-dark); min-height: 150px; display: grid; align-content: start; gap: 8px; transition: background .3s var(--ease); }
.story-station:last-child { border-right: 0; }
.story-station .sm { font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7F8B93; }
.story-station b { font-size: 0.92rem; line-height: 1.3; }
.story-station[data-state="done"] { background: rgba(127, 196, 180, .06); }
.story-station[data-state="done"] .sm { color: var(--mint); }
.story-station[data-state="now"] { background: rgba(193, 140, 49, .12); }
.story-station[data-state="now"] .sm { color: var(--gold); }
.story-token { position: absolute; top: -9px; width: 16px; height: 16px; background: var(--gold); transition: left .6s var(--ease); box-shadow: 0 0 0 4px rgba(193, 140, 49, .18); }
.story-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.story-record { font: 400 12.5px/1.6 var(--f-mono); background: var(--raised); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 14px; overflow-x: auto; }
.story-record dt { color: #7F8B93; }
.story-record dd { margin: 0 0 6px; color: var(--paper); }
.story-record .new { color: var(--gold); }
.story-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .story-track { grid-auto-flow: row; grid-auto-columns: auto; border-bottom: 0; }
  .story-station { border-right: 0; border-bottom: 1px solid var(--line-dark); min-height: 0; }
  .story-token { display: none; }
  .story-detail { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ work / portfolio */
.work-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.work-feature figure { margin: 0; position: relative; }
.work-feature figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.work-feature figcaption { margin-top: 10px; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--navy); margin-top: var(--s6); }
.figs > div { padding: 22px 22px 6px 0; display: grid; gap: 10px; align-content: start; }
.figs .n { font: 700 clamp(2.2rem, 3.8vw, 3.3rem)/1 var(--f-display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; }
.figs p { color: var(--navy-2); font-size: 0.95rem; }
.figs .src { font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
@media (max-width: 960px) { .figs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .figs { grid-template-columns: 1fr; } }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s var(--ease); }
.case-card:hover { border-color: var(--gold); }
.case-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-card .cc-body { padding: 20px; display: grid; gap: 10px; flex: 1; align-content: start; }
.case-card h3 { font-size: 1.3rem; }
.case-card p { color: var(--navy-2); font-size: 0.94rem; }
.case-card .cc-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }
.orgs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.orgs span { font-weight: 600; }
.orgs small { display: block; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 500; }

/* ------------------------------------------------------------------ method */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: m; }
.method > div { counter-increment: m; padding: 26px 26px 26px 0; border-top: 1.5px solid var(--navy); display: grid; gap: 12px; align-content: start; }
.method > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.method .k { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--gold-text); }
.method h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.method p { color: var(--navy-2); font-size: 0.97rem; }
@media (max-width: 960px) { .method { grid-template-columns: 1fr 1fr; } .method > div + div { padding-left: 0; border-left: 0; } .method > div:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } .method > div:nth-child(even) { padding-left: 0; border-left: 0; } }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--s6); }
.steps3 > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps3 .charge { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 0.88rem/1.4 var(--f-mono); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ trust strip and tables */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.trust-grid > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 8px; align-content: start; }
.trust-grid > div:nth-child(3n+2), .trust-grid > div:nth-child(3n+3) { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.trust-grid h3 { font-size: 1.12rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.trust-grid p { color: var(--mist); font-size: 0.95rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } .trust-grid > div:nth-child(n) { padding-left: 0; border-left: 0; } }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-ui); min-width: 560px; }
table.data th { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); text-align: left; padding: 0 14px 10px 0; border-bottom: 1.5px solid var(--navy); vertical-align: bottom; }
table.data td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td:first-child { font-weight: 600; }
.dark table.data th { color: var(--mist); border-bottom-color: var(--paper); }
.dark table.data td { border-bottom-color: var(--line-dark); }

/* ------------------------------------------------------------------ page heads (inner pages) */
.page-head { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.page-head h1 { max-width: 15ch; }
.page-head .lede { margin-top: var(--s4); }
.page-head .actions { margin-top: var(--s5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.dark .crumbs { color: var(--mist); }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split-hero figure { margin: 0; }
.split-hero figure img { width: 100%; border-radius: var(--radius); }
@media (max-width: 960px) { .split-hero { grid-template-columns: 1fr; } }

/* two-column prose + aside */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--navy-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); }
.ticks li b { color: var(--navy); }
.dark .ticks li { color: var(--mist); }
.dark .ticks li b { color: var(--paper); }

/* capability list with status */
.caps { list-style: none; border-top: 1.5px solid var(--navy); }
.caps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.caps li span { color: var(--navy-2); font-size: 0.95rem; }
.caps li b { display: block; font-weight: 600; color: var(--navy); }
.dark .caps { border-top-color: var(--paper); }
.dark .caps li { border-bottom-color: var(--line-dark); }
.dark .caps li span { color: var(--mist); }
.dark .caps li b { color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ------------------------------------------------------------------ configurator */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.cfg-steps { display: grid; gap: 14px; }
.cfg-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cfg-step legend, .cfg-step h3 { font: 600 1rem/1.3 var(--f-body); letter-spacing: 0; padding: 0; }
.cfg-step .hint { font-size: 0.86rem; color: var(--slate); margin-top: 4px; }
.cfg-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; font-size: 0.9rem; color: var(--navy-2); transition: border-color .15s, background .15s; }
.opt span::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--navy-3); flex: none; }
.opt input:checked + span { border-color: var(--navy); background: var(--white); color: var(--navy); }
.opt input:checked + span::before { background: var(--gold); border-color: var(--gold); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cfg-map { position: sticky; top: calc(var(--header-h) + 20px); background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.cfg-map svg { width: 100%; height: auto; }
.cfg-summary { background: var(--raised); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 16px; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 960px) { .cfg { grid-template-columns: 1fr; } .cfg-map { position: relative; top: 0; } }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); font: 400 1rem/1.4 var(--f-body); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(193, 140, 49, .35); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--alert); }
.field .err { color: var(--alert); font-size: 0.86rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-status { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.form-status[data-kind="ok"] { border-color: var(--sea); }
.form-status[data-kind="error"] { border-color: var(--alert); }
.form-status[data-kind="off"] { border-color: var(--gold); background: #FBF6EC; }
.copybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.copybox code { font: 500 0.95rem/1.4 var(--f-mono); background: var(--paper); padding: 6px 10px; border-radius: var(--radius); user-select: all; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ module page */
.mp-hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--navy); color: var(--paper); }
.mp-hero picture, .mp-hero > img, .mp-hero video { position: absolute; inset: 0; }
.mp-hero picture img, .mp-hero > img, .mp-hero video { width: 100%; height: 100%; object-fit: cover; }
.mp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 27, 37, .94) 0%, rgba(14, 27, 37, .6) 40%, rgba(14, 27, 37, 0) 70%), linear-gradient(0deg, rgba(14, 27, 37, .7) 0%, rgba(14, 27, 37, 0) 30%); }
.mp-hero .wrap { position: relative; z-index: 2; padding-block: clamp(80px, 12vw, 160px) clamp(40px, 6vw, 72px); }
.mp-hero h1 { max-width: 14ch; font-size: clamp(2.3rem, 5.2vw, 4.3rem); }
.mp-hero .lede { color: #C9D0D5; margin-top: var(--s4); }
.mp-hero .actions { margin-top: var(--s5); }
.mp-hero .tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: var(--s4); }
@media (max-width: 760px) { .mp-hero::after { background: linear-gradient(0deg, rgba(14, 27, 37, .96) 0%, rgba(14, 27, 37, .75) 45%, rgba(14, 27, 37, .2) 75%); } .mp-hero { min-height: 92vh; } }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.related a:hover { border-color: var(--gold); }
.related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related div { padding: 16px; display: grid; gap: 6px; align-content: start; }
.related b { font-weight: 600; }
.related span { font-size: 0.9rem; color: var(--navy-2); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* catalogue grid on the solutions page */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: var(--navy); color: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; position: relative; }
.cat-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.03); }
.cat-card .cc { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; flex: 1; }
.cat-card .ll { font: 500 11px/1 var(--f-mono); color: var(--gold); letter-spacing: .1em; }
.cat-card h3 { font-size: 1.28rem; }
.cat-card p { color: var(--mist); font-size: 0.92rem; }
.cat-card .cf { margin-top: auto; padding: 0 20px 18px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cat-card[hidden] { display: none; }
@media (max-width: 1040px) { .catalogue { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .catalogue { grid-template-columns: 1fr; } }

/* founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; }
.founder img, .founder .ph { width: 112px; height: 140px; object-fit: cover; border-radius: var(--radius); background: var(--navy); color: var(--paper); display: grid; place-items: center; font: 700 1.8rem var(--f-display); }
.founder p { color: var(--navy-2); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .founder { grid-template-columns: 1fr; } }

/* review mode: content marked for the founders' review becomes visible */
[data-review] { position: relative; }
.review-on [data-review] { outline: 2px dashed var(--alert); outline-offset: 3px; }
.review-on [data-review]::after { content: "To confirm: " attr(data-review); position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 5; background: var(--alert); color: var(--white); font: 500 11px/1.4 var(--f-mono); padding: 4px 6px; max-width: 360px; white-space: normal; }

/* 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; }
}

/* =====================================================================
   Additions for the built pages (v6). Same tokens, same single visual world.
   ===================================================================== */

/* ------------------------------------------------------------------ utilities */
.h2 { font-size: var(--t-h2); line-height: 1.1; }
.h3 { font-size: var(--t-h3); line-height: 1.2; }
.small { font-size: 0.86rem; }
.plain-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.note-line { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font: 500 11px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
h4.mt, .mod-detail h4.mt { margin-top: 18px; }
html.menu-open { overflow: hidden; }
.review-banner { position: sticky; top: 0; z-index: 70; background: var(--alert); color: var(--white); font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; padding: 8px var(--gutter); }
.nav .nav-trigger[aria-current="true"] { color: var(--gold-text); }
.site-header.on-dark .nav .nav-trigger[aria-current="true"] { color: var(--gold); }
.nav-menu a > div { min-width: 0; }
.nav-menu a > div span { color: var(--slate); }
.page-root { min-height: 100%; }

/* ------------------------------------------------------------------ hero composition */
.hero-copy { min-width: 0; }
.strata { container-type: inline-size; }
.strata-stage { --rx: 56deg; --rz: -38deg; --spread: 1; transform: translateY(9cqw) rotateX(var(--rx)) rotateZ(var(--rz)); transition: none; }
.plate { transform: translateZ(calc(var(--i) * 11.5cqw * var(--spread))); }
.plate .face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.plate-infra { box-shadow: 0 30px 60px rgba(14, 27, 37, .28); }
.rise { position: absolute; left: calc(13% + var(--x) * .74); top: calc(13% + var(--y) * .74); width: 1.7cqw; height: 1.7cqw; margin: -.85cqw 0 0 -.85cqw; background: var(--gold); transform: translateZ(0); animation: rise 4.2s linear infinite; animation-delay: var(--d); opacity: 0; }
@keyframes rise { 0% { transform: translateZ(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateZ(34.5cqw); opacity: 0; } }
.strata-legend { right: 0; bottom: 0; }
@media (max-width: 980px) { .strata-legend { right: auto; left: 0; } }
@media (prefers-reduced-motion: reduce) { .rise { display: none; } }

/* ------------------------------------------------------------------ meet */
.meet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.meet-grid h2 { max-width: 16ch; margin-top: var(--s3); }
.meet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s6) 0 0; border-top: 1.5px solid var(--navy); }
.meet-facts > div { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.meet-facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.meet-facts dt { font: 700 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; }
.meet-facts dd { margin: 0; color: var(--navy-2); max-width: 30ch; }
@media (max-width: 860px) { .meet-grid { grid-template-columns: 1fr; } .meet-facts { grid-template-columns: 1fr; } .meet-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; } }

/* ------------------------------------------------------------------ what we build */
.build-item h3 { margin: 0; font: inherit; letter-spacing: 0; }
.build-lead { font-weight: 600; color: var(--navy) !important; }
.specimen { min-height: 470px; }
.specimen-pane .ui-row + .ui-row { margin-top: 0; }
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 4px 0 8px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; font: 500 10px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mist); border-top: 3px solid var(--line-dark); padding-top: 8px; min-width: 0; overflow-wrap: anywhere; }
.mini-steps li[data-on="done"] { border-top-color: var(--mint); color: var(--paper); }
.mini-steps li[data-on="now"] { border-top-color: var(--gold); color: var(--gold); }
.spec-mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.spec-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.spec-dl { margin: 0; display: grid; gap: 10px; }
.spec-dl dt { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.spec-dl dd { margin: 2px 0 0; font-size: 0.9rem; }
@media (max-width: 560px) { .spec-mini { grid-template-columns: 1fr; } .ui-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ products on the home page */
.product-card .go::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .go { position: static; }
.product-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.product-card .go:focus-visible { outline: none; }
.pc-name { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--f-display); letter-spacing: -0.01em; }
.pc-flow { list-style: none; display: grid; gap: 6px; counter-reset: pf; }
.pc-flow li { counter-increment: pf; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--night-line); border-radius: var(--radius); font-size: 0.9rem; color: #B9CDC2; animation: pcflow 10s infinite; }
.pc-flow li::before { content: counter(pf, decimal-leading-zero); font: 500 10.5px/1 var(--f-mono); color: var(--signal); }
.pc-flow li:nth-child(1) { animation-delay: 0s; } .pc-flow li:nth-child(2) { animation-delay: 2s; } .pc-flow li:nth-child(3) { animation-delay: 4s; } .pc-flow li:nth-child(4) { animation-delay: 6s; } .pc-flow li:nth-child(5) { animation-delay: 8s; }
@keyframes pcflow { 0%, 20% { border-color: var(--emerald); background: rgba(11, 122, 91, .22); color: var(--tracer-mint); } 21%, 100% { border-color: var(--night-line); background: transparent; color: #B9CDC2; } }
.pc-record { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pc-record caption { text-align: left; padding-bottom: 10px; color: var(--stone); }
.pc-record th { text-align: left; font: 500 11px/1.3 var(--f-mono); color: var(--clay); padding: 8px 8px 8px 0; vertical-align: top; width: 34%; }
.pc-record td { padding: 8px 8px 8px 0; border-top: 1px solid var(--sand); }
.pc-record td:last-child { color: var(--charcoal); font-weight: 600; }
.pc-ds-visual { padding: 18px 0 0 !important; }
.pc-ds-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.relation > div { padding-right: 24px; }

/* ------------------------------------------------------------------ DS journey (page wiring) */
.ds-intro .head { margin-bottom: 0; }
.ds-poster-wrap, .ds-canvas-host { position: absolute; inset: 0; }
.ds-poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ds-block p.big { font: 600 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--f-body); color: var(--paper); max-width: 26ch; margin-top: 0; text-shadow: 0 1px 18px rgba(7, 16, 24, .85); }
.ds-block { will-change: opacity, transform; }
.ds-panels a > div { min-width: 0; }
.ds-panels { transition: none; }
.ds-static { background: #071018; color: var(--paper); padding-block: var(--s6); }
.ds-static-item .actions { margin-top: var(--s4); }
.ds-static .caption { margin-top: var(--s4); }
.ds-journey .ds-static { display: none; }
.ds-journey.is-static .ds-static { display: block; }
html:not(.js) .ds-journey { height: auto; }
html:not(.js) .ds-journey .ds-stage { display: none; }
html:not(.js) .ds-journey .ds-static { display: block; }

/* ------------------------------------------------------------------ explorer additions */
.mod-panels { min-width: 0; }
.explorer-empty { padding: 40px; background: var(--white); border: 1px solid var(--line); color: var(--slate); }
.mod-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.mod-visual.is-playing video, .mp-hero.is-playing video { opacity: 1; }
.vis-note { position: absolute; right: 14px; top: 12px; z-index: 2; font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(241, 242, 237, .62); pointer-events: none; }
.mod-visual .vis-play { z-index: 3; }
@media (max-width: 760px) { .mod-visual video { display: none; } .mod-visual picture img { animation: drift 18s ease-in-out infinite alternate; } }
@keyframes drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-1.5%); } }
.out-rows { margin: 0; display: grid; gap: 8px; }
.out-rows > div { display: grid; grid-template-columns: minmax(84px, .32fr) minmax(0, 1fr); gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-dark); }
.out-rows > div:first-child { border-top: 0; padding-top: 0; }
.out-rows dt { font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.out-rows dd { margin: 0; }
.mod-list button .s { color: var(--slate); }

/* ------------------------------------------------------------------ connected stories */
.stories .story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: var(--s3); }
.stories .story-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.story-track { list-style: none; margin-top: 12px; }
.story-station { padding: 0; }
.story-station button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; align-content: start; width: 100%; height: 100%; padding: 18px 14px 20px; }
.story-station button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.story-station .mod { font-size: 0.8rem; color: var(--mist); }
.story-station[data-state="now"] b { color: var(--paper); }
.story-station[data-state="next"] b { color: #9AA5AD; }
.story-token { list-style: none; top: -8px; left: 14px; }
.story-detail { margin-top: var(--s4); }
.story-text { display: grid; gap: 10px; align-content: start; }
.story-text h4 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.story-text p { color: #C9D0D5; }
.story-mod a { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-weight: 600; text-decoration: none; }
.story-mod a .arr { width: 14px; height: 14px; }
.story-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.story-record { display: grid; grid-template-columns: minmax(96px, .4fr) minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.story-record dd { margin: 0; }
.story-record dd.new { color: var(--gold); }
.story-nav { margin-top: var(--s4); }
.story-foot { margin-top: var(--s4); max-width: 90ch; }

/* ------------------------------------------------------------------ work teaser and work page */
.fig-callout { display: grid; gap: 8px; padding: 18px 0; border-top: 1.5px solid var(--navy); border-bottom: 1px solid var(--line); }
.fig-callout p { color: var(--navy-2); max-width: 46ch; }
.orgs { display: grid; gap: 12px; }
.orgs-list { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.orgs-list span { font-weight: 600; }
.org-list { list-style: none; border-top: 1.5px solid var(--navy); }
.org-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.org-list span { color: var(--slate); font-size: 0.92rem; text-align: right; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.case-figure { margin: 0; }
.case-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.case-figure figcaption { margin-top: 10px; }
.case-facts { margin: 0; border-top: 1.5px solid var(--navy); }
.case-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.case-facts dt { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.case-facts dd { margin: 0; }
.case-facts .figure-big { display: block; margin-bottom: 6px; }
.runs { list-style: none; display: grid; gap: 6px; }
.runs li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mod-links { list-style: none; border-top: 1.5px solid var(--navy); }
.mod-links a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.mod-links a:hover { color: var(--gold-text); }
.mod-links .l { font: 500 11px/1 var(--f-mono); color: var(--gold-text); }
.mod-links .arr { width: 14px; height: 14px; }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ product pages */
.product-hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 100px); }
.product-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 14ch; margin-top: var(--s3); }
.product-hero .lede { margin-top: var(--s4); }
.product-hero .actions { margin-top: var(--s5); }
.product-logo { height: 44px; width: auto; margin-bottom: var(--s4); }
.status-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin-top: var(--s4); font-size: 0.9rem; color: inherit; opacity: .9; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure .mod-visual { border-radius: var(--radius); aspect-ratio: 16 / 11; }
.hero-figure .mod-visual::after { display: none; }
.demo-wide { margin-top: var(--s5); }
.demo-wide .demo-body { min-height: 320px; padding: 20px; }

/* Tracer palette */
.tracer-hero, .night { background: var(--night); color: var(--tracer-mint); }
.tracer-hero .lede, .night .lede { color: #A9C2B6; }
.tracer-hero .crumbs, .night .crumbs { color: #8FA89C; }
.tracer-eyebrow, .night .eyebrow { color: var(--signal) !important; }
.tracer-hero h1, .night h2 { color: var(--white); }
.tracer-hero .btn-secondary, .night .btn-secondary { color: var(--tracer-mint); border-color: rgba(221, 246, 234, .5); }
.tracer-hero .btn-secondary:hover { background: var(--tracer-mint); color: var(--night); }
.btn-tracer { background: var(--signal); color: var(--night); }
.btn-tracer:hover { background: var(--tracer-mint); color: var(--night); }
.tracer-hero .chip, .night .chip { color: var(--tracer-mint); }
.tracer-hero .chip-running::before, .night .chip-running::before { background: var(--signal); }
.tracer-surface { background: var(--tracer-surface); }
.tracer-surface .eyebrow { color: var(--emerald); }
.layer-steps { list-style: none; border-top: 1.5px solid var(--night); margin-bottom: var(--s4); }
.layer-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--tracer-line); }
.layer-steps .k { font: 500 12px/1 var(--f-mono); color: var(--emerald); }
.layer-steps h3 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.layer-steps p { color: var(--navy-2); margin-top: 4px; }
.night-table th { color: #8FA89C !important; border-bottom-color: var(--tracer-mint) !important; }
.night-table td { border-bottom-color: var(--night-line) !important; color: #CFE6DA; }
.night-table td:first-child { color: var(--white); }
.night-grid { border-top-color: var(--night-line); }
.night-grid > div { border-color: var(--night-line) !important; }
.night-grid p { color: #A9C2B6; }
.night-grid h3 { color: var(--white); }
.tracer-caps { border-top-color: var(--night); }
.tracer-caps li { border-bottom-color: var(--tracer-line); }

/* Atelier palette */
.atelier-hero, .atelier-ivory { background: var(--ivory); color: var(--charcoal); }
.atelier-hero .lede, .atelier-ivory .lede { color: var(--stone); }
.atelier-eyebrow { color: var(--clay) !important; }
.btn-atelier { background: var(--clay); color: var(--ivory); }
.btn-atelier:hover { background: var(--charcoal); color: var(--ivory); }
.atelier-hero .btn-secondary { color: var(--charcoal); border-color: var(--charcoal); }
.atelier-hero .btn-secondary:hover { background: var(--charcoal); color: var(--ivory); }
.atelier-charcoal { background: var(--charcoal); color: var(--ivory); }
.atelier-charcoal .eyebrow { color: #E9A58D; }
.atelier-charcoal .lede { color: var(--sand); }
.atelier-charcoal .arrowlink { color: var(--ivory); }
.atelier-table th { border-bottom-color: var(--charcoal); }
.atelier-table td { border-bottom-color: var(--sand); }
.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--charcoal); }
.principles > div { padding: 22px 20px 6px 0; display: grid; gap: 10px; align-content: start; }
.principles > div + div { padding-left: 20px; border-left: 1px solid var(--sand); }
.principles .k { font: 500 12px/1 var(--f-mono); color: var(--clay); }
.principles h3 { font-size: 1.25rem; }
.principles p { color: var(--stone); font-size: 0.95rem; }
@media (max-width: 1040px) { .principles { grid-template-columns: 1fr 1fr; } .principles > div + div { padding-left: 0; border-left: 0; } .principles > div { border-bottom: 1px solid var(--sand); padding-bottom: 18px; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package { background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.package h3 { font-size: 1.35rem; color: var(--charcoal); }
.package .who { font: 500 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.package p { color: var(--stone); font-size: 0.95rem; }
.package .runs { display: flex; gap: 10px; align-items: baseline; color: var(--charcoal); font-weight: 600; }
.package .first { border-top: 1px solid var(--sand); padding-top: 10px; }
.package .first b { color: var(--charcoal); margin-right: 6px; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }

/* Atelier record demo */
.demo-record { background: var(--charcoal); border-color: #3a3532; }
.demo-record .demo-top { background: rgba(0, 0, 0, .2); border-bottom-color: #3a3532; }
.record-map { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 14px; align-items: stretch; }
.record-core { background: var(--clay); color: var(--ivory); padding: 18px; border-radius: var(--radius); display: grid; gap: 10px; align-content: center; }
.record-core .label { color: var(--ivory); opacity: .85; }
.record-core p { font: 600 1rem/1.45 var(--f-body); }
.record-core .caption { color: var(--ivory); opacity: .8; }
.dept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dept { border: 1px solid #3a3532; border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; align-content: start; opacity: .45; transition: opacity .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.dept b { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sand); }
.dept span { font-size: 0.88rem; color: var(--ivory); }
.dept.on { opacity: 1; border-color: #E9A58D; background: rgba(180, 71, 43, .16); }
@media (max-width: 760px) { .record-map { grid-template-columns: 1fr; } .dept-grid { grid-template-columns: 1fr 1fr; } }

/* DS page */
.ds-hero { padding-bottom: 0; overflow: hidden; }
.ds-hero-grid { max-width: 760px; }
.ds-hero-figure { margin: var(--s5) 0 0; }
.ds-hero-figure img { width: 100%; max-height: 78vh; object-fit: cover; }
.ds-hero-figure figcaption { padding: 10px var(--gutter) var(--s5); }
.spec-sheet { margin: 0; border-top: 1.5px solid var(--navy); }
.spec-sheet > div { display: grid; grid-template-columns: minmax(90px, .3fr) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-sheet dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.spec-sheet dd { margin: 0; }
.spec-sheet .figure-big { margin-right: 6px; }
.ds-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ds-gallery figure { margin: 0; }
.ds-gallery .g-wide { grid-column: span 2; }
.ds-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.ds-gallery figcaption { margin-top: 8px; }
@media (max-width: 860px) { .ds-gallery { grid-template-columns: 1fr; } .ds-gallery .g-wide { grid-column: auto; } }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.two-lists h3 { font-size: 1.2rem; margin-bottom: 14px; }
@media (max-width: 760px) { .two-lists { grid-template-columns: 1fr; } }
.callout { margin-top: var(--s5); padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--paper); }
.dark .callout { background: var(--raised); }

/* ------------------------------------------------------------------ solutions and module pages */
.status-legend { margin-top: var(--s4); display: grid; gap: 8px; list-style: none; }
.status-legend li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 0.88rem; color: var(--navy-2); }
.dark .status-legend li { color: var(--mist); }
.mp-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
@media (max-width: 760px) { .mp-hero video { display: none; } }
.mp-hero .wrap > .crumbs { color: var(--mist); }
.mp-hero .crumbs a:hover { color: var(--gold); }
.mp-hero .chip { color: var(--paper); }
.chip-running-count::before { background: var(--mint); }
.hero-note { right: var(--gutter); top: auto; bottom: 14px; }
.flow { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--gold); opacity: .55; }
.flow li { position: relative; display: grid; gap: 14px; align-content: start; padding-right: 18px; }
.flow .k { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 500 12px/1 var(--f-mono); }
.flow li:last-child .k { background: var(--gold); color: var(--navy); }
.flow b { font-weight: 600; line-height: 1.35; max-width: 18ch; }
@media (max-width: 860px) {
  .flow { grid-auto-flow: row; gap: 10px; }
  .flow::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow li { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
}
.output-sheet .demo-out { background: var(--navy); color: var(--paper); padding: 22px; }
.output-sheet .demo-note { color: var(--slate); margin-top: 10px; }
.caps-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.caps-h { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.caps li div { display: grid; gap: 4px; min-width: 0; }
.caps .where { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .06em; font-style: normal; color: var(--slate); text-transform: uppercase; }
.caps-note { margin-top: 12px; font-size: 0.86rem; color: var(--slate); }
@media (max-width: 860px) { .caps-groups { grid-template-columns: 1fr; } }
.connect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.connect-grid > div { border-top: 3px solid var(--navy); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.connect-grid img { width: 30px; height: 30px; }
.connect-grid h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.connect-grid p { color: var(--navy-2); font-size: 0.95rem; }
.connect-grid .cg-tracer { border-top-color: var(--emerald); }
.connect-grid .cg-atelier { border-top-color: var(--clay); }
.connect-grid .cg-ds { border-top-color: var(--gold); }
.cg-dot { width: 30px; height: 30px; border: 2px solid var(--navy); display: block; }
@media (max-width: 960px) { .connect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .connect-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ about, contact, data */
.founder .founder-photo { width: 112px; height: 140px; object-fit: cover; border-radius: var(--radius); }
.founder .h3 { margin-top: 6px; }
.nots { list-style: none; border-top: 1.5px solid var(--navy); }
.nots li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; }
.nots li::before { content: "×"; position: absolute; left: 4px; top: 12px; color: var(--alert); font-weight: 700; }
.fact-sheet { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--navy); }
.fact-sheet > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.fact-sheet dt { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.fact-sheet dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .fact-sheet { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fact-sheet { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.contact-side { display: grid; gap: 22px; }
.side-block { padding-top: 16px; border-top: 1.5px solid var(--navy); display: grid; gap: 8px; }
.next-steps { list-style: none; display: grid; gap: 12px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); grid-row: span 2; font: 500 11px/1.6 var(--f-mono); color: var(--gold-text); }
.next-steps b { font-weight: 600; }
.next-steps span { color: var(--navy-2); font-size: 0.93rem; }
.form-status p + .copybox { margin-top: 12px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.precise { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deploy-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.deploy-grid h3 { font-size: 1.2rem; }
.deploy-grid p { color: var(--navy-2); font-size: 0.95rem; }
@media (max-width: 860px) { .deploy-grid { grid-template-columns: 1fr; } }
.limits li { color: var(--navy-2); }
.prose h2 { margin-bottom: 8px; }
.prose p { color: var(--navy-2); }
.nf { min-height: 60vh; }

/* ------------------------------------------------------------------ configurator */
.cfg-map-head { display: flex; justify-content: space-between; align-items: center; }
.cfg-map .reset { color: var(--mist); font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.cfg-map .reset:hover { color: var(--gold); }
.cfg-svg { min-height: 220px; display: grid; align-items: center; }
.cfg-svg svg { width: 100%; height: auto; font-family: var(--f-body); }
.cfg-svg .t-h { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--mist); }
.cfg-svg .t-n { font-size: 11.5px; fill: var(--paper); }
.cfg-svg .t-l { font: 500 10.5px var(--f-mono); fill: var(--gold); }
.cfg-svg .t-rec { font: 700 14px var(--f-display); fill: var(--navy); }
.cfg-svg .t-sub { font: 500 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--navy-2); }
.cfg-svg .t-where { font: 600 12.5px var(--f-body); fill: var(--paper); }
.cfg-svg .n-sys { fill: var(--raised); stroke: var(--line-dark); }
.cfg-svg .n-mod { fill: var(--raised-2); stroke: var(--line-dark); }
.cfg-svg .n-rec { fill: var(--gold); }
.cfg-svg .n-tracer { fill: rgba(11, 122, 91, .35); stroke: var(--emerald); }
.cfg-svg .n-ds { fill: rgba(193, 140, 49, .18); stroke: var(--gold); }
.cfg-svg .n-srv { fill: rgba(154, 165, 173, .12); stroke: var(--mist); }
.cfg-svg .n-unsure { fill: none; stroke: var(--mist); stroke-dasharray: 5 5; }
.cfg-svg .l-in { fill: none; stroke: var(--mist); stroke-width: 1.2; opacity: .7; }
.cfg-svg .l-out { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.cfg-summary { color: var(--paper); }
.deploy-note { margin-top: 12px; }

/* ------------------------------------------------------------------ demos */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-tabs button, .demo-q button[aria-pressed] { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--mist); border-radius: var(--radius); cursor: pointer; font: 500 0.82rem/1.2 var(--f-body); text-align: left; }
.demo-tabs button[aria-pressed="true"], .demo-q button[aria-pressed="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-metrics > div { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 4px; min-width: 0; }
.demo-metrics span { font: 500 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.demo-metrics b { font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
.demo-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
[data-compact] .demo-cols { grid-template-columns: 1fr; }
@media (max-width: 760px) { .demo-cols, .demo-metrics { grid-template-columns: 1fr; } }
.demo-h { margin: 0 0 8px; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.demo-out > * + * { margin-top: 8px; }
.demo-result { color: var(--mint); font-size: 0.9rem; }
.demo-warn { color: var(--coral); font-size: 0.9rem; }
.demo-hint { color: var(--mist); font-size: 0.86rem; }
.demo-hint .chip { margin: 0 4px; vertical-align: middle; }
.demo-ask { display: grid; gap: 8px; }
.demo-list li button { line-height: 1.4; }
.demo-list li button .meta { margin: 0 0 2px; }
.cite { all: unset; cursor: pointer; color: var(--gold); font: 500 0.82em/1 var(--f-mono); padding: 0 2px; }
.cite:hover, .cite:focus-visible { text-decoration: underline; outline: none; }
.conflict { border: 1px dashed var(--coral); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.conflict b { color: var(--coral); font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.src-card { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 12px; font-size: 0.88rem; transition: border-color .2s; }
.src-card + .src-card { margin-top: 8px; }
.src-card .meta { display: block; font: 500 10.5px/1.4 var(--f-mono); color: var(--mist); margin-bottom: 6px; }
.src-card.on { border-color: var(--gold); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.stepper li { border-top: 3px solid var(--line-dark); padding-top: 8px; font-size: 0.8rem; color: var(--mist); display: grid; gap: 4px; align-content: start; min-width: 0; }
.stepper li span { font: 500 10px/1 var(--f-mono); color: var(--mist); }
.stepper li .chip { font-size: 9.5px; color: var(--mist); }
.stepper li[data-on="done"] { border-top-color: var(--mint); color: var(--paper); }
.stepper li[data-on="now"] { border-top-color: var(--gold); color: var(--paper); }
.stepper li[data-on="now"] span { color: var(--gold); }
@media (max-width: 560px) { .stepper { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } .stepper li { font-size: 0.72rem; } }
.demo-stage { display: grid; gap: 10px; }
.demo-log li.ok::before { color: var(--mint); }
.demo-log li.wait { color: var(--gold); }
.demo-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.demo-table th, .demo-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-dark); vertical-align: middle; }
.demo-table thead th { font: 500 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.demo-table tbody th { font-weight: 500; color: var(--mist); width: 38%; }
.demo-out .demo-table { margin-top: 8px; }
.meta-line { font-size: 0.82rem; color: var(--mist); }
.meta-line b { color: var(--paper); font-weight: 600; }
.draft { background: var(--raised); border-left: 2px solid var(--gold); padding: 10px 12px; font-size: 0.9rem; }
.quote { font-style: italic; color: #DDE3E7; }
.demo-text { width: 100%; background: var(--raised); color: var(--paper); border: 1px solid var(--gold); border-radius: var(--radius); padding: 10px; font: 400 0.9rem/1.5 var(--f-body); }
.row-acts { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
button.mini { min-height: 26px; padding: 0 8px; background: var(--raised); color: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; font: 500 11px/1 var(--f-body); }
button.mini:hover { border-color: var(--gold); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--paper); cursor: pointer; padding: 4px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.kanban { display: grid; grid-template-columns: repeat(var(--cols), minmax(118px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.kanban .ui-col { min-height: 150px; }
button.ui-card { all: unset; box-sizing: border-box; display: block; cursor: pointer; background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px; font-size: 12px; line-height: 1.35; color: var(--paper); }
button.ui-card:hover { border-color: var(--mist); }
button.ui-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
button.ui-card.sel { border-color: var(--gold); }
.muted-s { color: var(--mist); }
input.count { width: 76px; min-height: 30px; background: var(--navy); color: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 4px 6px; font: 500 0.86rem var(--f-mono); }
.rng { display: grid; grid-template-columns: 110px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 0.86rem; }
.rng input { width: 100%; accent-color: var(--gold); }
.rng output { font: 500 0.82rem var(--f-mono); color: var(--gold); text-align: right; }
.bars { display: grid; gap: 10px; margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 0.86rem; }
.bar-track { position: relative; height: 22px; background: var(--navy); border: 1px solid var(--line-dark); }
.bar-track i { position: absolute; left: 0; top: 3px; bottom: 3px; display: block; transition: width .25s var(--ease); }
.bar-track i.base { background: #4E5D68; top: 0; bottom: 0; opacity: .7; }
.bar-track i.now { background: var(--gold); top: 6px; bottom: 6px; }
.bar-track i.now.neg { background: var(--coral); }
.bv { text-align: right; }
.query { margin: 0; padding: 10px 12px; background: #081119; border: 1px solid var(--line-dark); color: #CFE0EA; font: 400 12px/1.5 var(--f-mono); white-space: pre-wrap; overflow-x: auto; }
.transcript { font-size: 0.92rem; }
@media (max-width: 560px) { .rng { grid-template-columns: 1fr 54px; } .rng label { grid-column: 1 / -1; } .bar-row { grid-template-columns: 60px minmax(0, 1fr) 84px; } }

/* dark sections hold a few light components */
.dark .explorer-empty { background: var(--raised); border-color: var(--line-dark); color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  .pc-flow li { animation: none; }
  .mod-visual picture img { animation: none !important; }
}
.pc-tracer .chip { color: var(--tracer-mint); }
.pc-tracer .chip-running::before { background: var(--signal); }
.pc-ds .chip { color: var(--paper); }
.pc-ds .chip-running::before { background: var(--mint); }
.pc-atelier .chip { color: var(--charcoal); }
/* DS journey: controls inside the dark stage */
.ds-journey .btn-secondary { color: var(--paper); border-color: rgba(241, 242, 237, .55); }
.ds-journey .btn-secondary:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.ds-block.has-cta { pointer-events: none; }
.ds-block .ds-links { pointer-events: auto; display: grid; gap: 8px; margin-top: 22px; max-width: 420px; }
.ds-links a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; border: 1px solid rgba(241, 242, 237, .16); border-radius: var(--radius); background: rgba(14, 27, 37, .7); backdrop-filter: blur(6px); color: var(--paper); }
.ds-links a:hover { border-color: var(--gold); }
.ds-links b { display: block; font-weight: 600; font-size: 0.95rem; }
.ds-links span { display: block; font-size: 0.82rem; color: var(--mist); }
@media (max-width: 760px) { .ds-block .ds-links { display: none; } }
/* hero composition sizing: keep the rotated stack inside its box at every width */
.strata { --pl: 17%; --ps: 66%; --psn: 0.66; max-width: 660px; }
.strata .plate { left: var(--pl); top: var(--pl); width: var(--ps); height: var(--ps); }
.strata .rise { left: calc(var(--pl) + var(--x) * var(--psn) * 100%); top: calc(var(--pl) + var(--y) * var(--psn) * 100%); }
.strata-stage { transform: translateY(7cqw) rotateX(var(--rx)) rotateZ(var(--rz)); }
@media (max-width: 980px) {
  .strata { max-width: 560px; margin-inline: auto; justify-self: center; aspect-ratio: 1 / 1.02; }
  .strata-legend { left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .strata-legend li { font-size: 10px; }
}
@media (max-width: 860px) { .work-feature { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.mp-hero .btn-secondary { color: var(--paper); border-color: rgba(241, 242, 237, .55); }
.mp-hero .btn-secondary:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.mp-hero picture img, .mp-hero video { object-position: 70% 50%; }
.mp-hero::after { background: linear-gradient(90deg, rgba(14, 27, 37, .96) 0%, rgba(14, 27, 37, .82) 34%, rgba(14, 27, 37, .25) 62%, rgba(14, 27, 37, 0) 78%), linear-gradient(0deg, rgba(14, 27, 37, .7) 0%, rgba(14, 27, 37, 0) 30%); }
@media (max-width: 760px) { .mp-hero picture img { object-position: 50% 30%; } .mp-hero::after { background: linear-gradient(0deg, rgba(14, 27, 37, .97) 0%, rgba(14, 27, 37, .8) 48%, rgba(14, 27, 37, .2) 78%); } }
/* DS page hero: the render fills the hero; the copy sits on its dark left side */
.ds-hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; padding-bottom: clamp(48px, 7vw, 100px); }
.ds-hero > .wrap { position: relative; z-index: 2; }
.ds-hero-figure { position: absolute; inset: 0; margin: 0; z-index: 0; }
.ds-hero-figure img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 62% 50%; }
.ds-hero-figure figcaption { position: absolute; right: var(--gutter); bottom: 14px; padding: 0; color: rgba(241, 242, 237, .6); }
.ds-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 27, 37, .95) 0%, rgba(14, 27, 37, .7) 36%, rgba(14, 27, 37, 0) 62%); pointer-events: none; }
.ds-hero-grid { max-width: 560px; }
@media (max-width: 760px) {
  .ds-hero { min-height: 0; align-items: end; padding-top: 52vw; }
  .ds-hero-figure img { height: 64vw; object-position: 60% 50%; }
  .ds-hero::after { background: linear-gradient(180deg, rgba(14, 27, 37, 0) 0%, rgba(14, 27, 37, .2) 36vw, rgba(14, 27, 37, 1) 64vw); }
  .ds-hero-figure figcaption { top: calc(64vw - 26px); bottom: auto; }
}
@media (max-width: 760px) {
  .ds-hero-figure figcaption { top: 12px; right: var(--gutter); left: var(--gutter); bottom: auto; text-align: right; font-size: 9.5px; }
}
.cfg-step legend { float: left; width: 100%; margin-bottom: 2px; }
.cfg-step legend + * { clear: both; }
.cfg-step .hint { clear: both; padding-top: 2px; }
.mobile-nav .mn-label { margin: 18px 0 2px; font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pc-flow li em { margin-left: auto; font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #8FA89C; border: 1px dashed #4F6A5E; padding: 3px 5px; }
/* contrast tuning (axe, WCAG AA) */
:root { --gold-light: #D9A955; --mist-2: #8A969E; }
.site-header.on-dark .nav > a:hover, .site-header.on-dark .nav .nav-trigger:hover, .site-header.on-dark .nav > a[aria-current="page"], .site-header.on-dark .nav .nav-trigger[aria-current="true"] { color: var(--gold-light); }
.specimen .label, .cfg-map .label, .demo .label, .mod-panel .label { color: var(--mist); }
.specimen .chip-demo, .cfg-map .chip-demo, .demo .chip-demo { color: var(--gold); }
.demo-note { color: var(--slate); }
.demo .demo-note, .dark .demo-note, .stories .demo-note, .cfg-map .demo-note, .ds-stage .demo-note { color: var(--mist-2); }
.story-record dt, .story-station .sm { color: var(--mist-2); }
.record-core .label, .record-core .caption { color: var(--ivory); opacity: 1; }
.cfg-svg > .muted { color: var(--mist); }
.contact-form .demo-note .textlink { color: var(--navy); }
.ds-static .caption, .ds-static .label { color: var(--mist); }
.dept { opacity: 1; border-style: dashed; }
.dept b { color: #A79C8F; }
.dept span { color: #B5ADA4; }
.dept.on { border-style: solid; }
.dept.on b { color: var(--sand); }
.dept.on span { color: var(--ivory); }

/* ---------------------------------------------------------------- evaluation fixes, 4 October 2026 */
/* small display headings: let Fraunces pick its optical size, so word spaces stay open */
h3:not(.h2), h4 { font-variation-settings: "SOFT" 0, "WONK" 0; font-optical-sizing: auto; letter-spacing: -0.003em; }
/* home: three figures after the feature callout */
.figs.figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .figs.figs-3 { grid-template-columns: minmax(0, 1fr); } }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
/* contact: say first that sending is off, and how the message reaches us */
.form-off-note { padding: 14px 16px; border: 1px solid var(--gold); border-left-width: 4px; background: rgba(193, 140, 49, .08); font-size: 0.95rem; color: var(--navy); margin-bottom: var(--s4); }
.form-off-note b { display: block; margin-bottom: 4px; }
.copybox .mail-link { font: 500 1rem/1.4 var(--f-mono); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; padding: 6px 10px 6px 0; overflow-wrap: anywhere; }
.copybox .mail-link:hover { color: var(--gold-dark, #8A5F14); }
.site-footer .footer-bottom a { color: inherit; text-decoration: underline; text-decoration-color: rgba(193, 140, 49, .6); text-underline-offset: 3px; }
/* case images: a visible label on every card */
.case-card .cc-img { position: relative; display: block; }
.img-tag { position: absolute; left: 10px; bottom: 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); background: rgba(14, 27, 37, .78); padding: 6px 8px; }
/* DS page hero: copy and render no longer overlap */
@media (min-width: 761px) {
  .ds-hero-grid { max-width: min(500px, 40vw); }
  .ds-hero-figure { left: 36%; }
  .ds-hero-figure img { position: absolute; top: 50%; left: 0; height: auto; aspect-ratio: 1800 / 1013; transform: translateY(-50%); object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
  .ds-hero::after { background: linear-gradient(90deg, rgba(14, 27, 37, 1) 0%, rgba(14, 27, 37, .96) 38%, rgba(14, 27, 37, .35) 52%, rgba(14, 27, 37, 0) 64%); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .ds-hero-figure { left: 44%; }
}
/* module heroes: readable labels, kept clear of the models */
.mp-hero .eyebrow { color: var(--gold-light); }
.mp-hero .tags { max-width: min(640px, 52%); }
.mp-hero .tags .caption { color: #B9C2C8; }
.mp-hero .lede { max-width: 34rem; }
@media (max-width: 1100px) { .mp-hero .tags { max-width: 100%; } }
/* 3D story: the corner caption sits bottom right, away from the chapter cards */
.ds-note { left: auto; right: var(--gutter); text-align: right; }
@media (max-height: 940px) and (min-width: 761px) { .ds-block .ds-links a:nth-child(3) { display: none; } }
/* phones: data tables become stacked cards instead of scrolling sideways */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  table.data { min-width: 0; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data, table.data tbody, table.data tr, table.data td, table.data th { display: block; width: 100%; }
  table.data tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.data td, table.data tbody th { padding: 3px 0; border: 0; }
  table.data td[data-label]::before { content: attr(data-label); display: block; font: 500 10px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
  table.data td:first-child::before { display: none; }
  table.data td:first-child { font-size: 1.05rem; }
}
@media (max-width: 700px) {
  .dark table.data tr { border-bottom-color: var(--line-dark); }
  .night-table tr { border-bottom-color: var(--night-line); }
  .night-table td[data-label]::before { color: #8FA89C; }
  .dark table.data td[data-label]::before { color: var(--mist); }
}

/* ------------------------------------------------------------------ 5 October 2026: homepage copy review, DS story, product depth */
.meet-orgs { display: flex; flex-wrap: wrap; gap: 6px 0; font-weight: 600; color: var(--navy); }
.meet-orgs span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--gold-text); font-weight: 500; }
.hero .actions .arrow-link, .hero .actions .textlink { align-self: center; }
.pc-ds p b { color: var(--paper); }
.product-card h3 { text-wrap: balance; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1.5px solid var(--navy); }
.case-stats > div { padding: 16px 16px 4px 0; display: grid; gap: 6px; align-content: start; }
.case-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.case-stats dt { font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; }
.case-stats dd { margin: 0; color: var(--navy-2); font-size: 0.92rem; }
.fig-note { margin-top: 12px; font: 500 10.5px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.case-facts .case-stats { margin-top: 12px; }
@media (max-width: 620px) { .case-stats { grid-template-columns: 1fr; } .case-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.ds-block h2.mid { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.06; text-wrap: balance; }
.ds-block .ds-small { margin-top: 16px; font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); max-width: none; }

.nav-menu a.nav-all { grid-template-columns: 1fr; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.nav-menu a.nav-all b { font-size: 0.88rem; color: var(--gold-text); }

.method.method-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method.method-3 h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); text-wrap: balance; }
@media (max-width: 960px) { .method.method-3 { grid-template-columns: 1fr; } .method.method-3 > div:nth-child(even) { padding-left: 0; border-left: 0; } }

.deploy-grid.eco .label { color: var(--gold-text); font: 600 1rem/1.35 var(--f-body); letter-spacing: 0; text-transform: none; }
.deploy-grid.eco > div.here { border-color: var(--navy); border-width: 1.5px; }
.deploy-grid.eco .caption { margin-top: 2px; }

.arch { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: stretch; }
.arch-box { background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.arch-box h3 { font-size: 1.5rem; }
.arch-box.arch-out { border: 1px dashed var(--slate); background: transparent; }
.arch-used { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy-2); font-size: 0.95rem; }
.arch-used .label { display: block; margin-bottom: 4px; }
.arch-link { display: grid; place-items: center; padding: 0 14px; position: relative; min-width: 150px; }
.arch-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--gold); }
.arch-link span { position: relative; background: var(--paper); padding: 4px 10px; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); text-align: center; }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr; } .arch-link { min-height: 56px; min-width: 0; } .arch-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--gold); } }

.qa { margin: 0; border-top: 1.5px solid var(--navy); }
.qa > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.qa dt { font-weight: 600; color: var(--navy); }
.qa dd { margin: 0; color: var(--navy-2); }

.erp-areas { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--charcoal); margin: 0 0 var(--s5); padding: 0; }
.erp-areas li { padding: 18px 14px 10px 0; display: grid; gap: 8px; align-content: start; }
.erp-areas li + li { padding-left: 14px; border-left: 1px solid var(--sand); }
.erp-areas .k { font: 500 11px/1 var(--f-mono); color: var(--clay); }
.erp-areas h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.erp-areas p { color: var(--stone); font-size: 0.88rem; line-height: 1.45; }
@media (max-width: 1100px) { .erp-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } .erp-areas li { border-bottom: 1px solid var(--sand); } .erp-areas li:nth-child(4n+1) { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .erp-areas { grid-template-columns: 1fr 1fr; } .erp-areas li:nth-child(n) { padding-left: 14px; border-left: 1px solid var(--sand); } .erp-areas li:nth-child(odd) { padding-left: 0; border-left: 0; } }
table.data tr.total td { font-weight: 600; border-top: 1.5px solid var(--charcoal); }

/* ------------------------------------------------------------------ 5 October 2026: home page clarity (who it is for, price and time, questions) */
.hero-for { margin-top: var(--s4); max-width: 46ch; font-weight: 600; color: var(--navy); }
.pc-atelier p b { color: var(--charcoal); }
.pc-tracer p b { color: var(--tracer-mint); }
.figs.start-facts { margin-top: var(--s5); }
.figs.start-facts .n { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.qa.qa-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 80px); border-top: 0; }
.qa.qa-2 > div { border-top: 1.5px solid var(--navy); border-bottom: 0; padding: 16px 0 22px; }
@media (max-width: 860px) { .qa.qa-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- social links (header, footer, mobile menu, contact) */
.social { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.social a { display: inline-grid; place-items: center; color: inherit; text-decoration: none; border-radius: var(--radius); transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.social svg { width: 18px; height: 18px; display: block; }
.social a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* header: quiet icons between the menu and Book a Demo, with a hairline divider */
.social-header { gap: 2px; padding-left: 14px; border-left: 1px solid rgba(14, 27, 37, .14); }
.site-header.on-dark .social-header { border-left-color: rgba(241, 242, 237, .16); }
.social-header a { width: 34px; height: 34px; opacity: .78; }
.social-header a:hover { opacity: 1; color: var(--gold-text); }
.site-header.on-dark .social-header a:hover { color: var(--gold); }
.social-header svg { width: 17px; height: 17px; }
@media (max-width: 1120px) { .social-header { display: none; } }
/* mobile menu */
.social-mobile { margin-top: 22px; gap: 10px; }
.social-mobile a { width: 44px; height: 44px; border: 1px solid var(--line-dark); color: var(--paper); }
.social-mobile a:hover { border-color: var(--gold); color: var(--gold); }
/* footer: outlined squares under the brand line */
.footer-grid ul.social-footer { display: flex; margin-top: 24px; gap: 10px; }
.social-footer a { width: 40px; height: 40px; border: 1px solid var(--line-dark); color: var(--paper); }
.social-footer a:hover { border-color: var(--gold); color: var(--gold); background: rgba(193, 140, 49, .08); }
/* contact page: icon and name */
.social-contact { flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.social-contact a { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 500 var(--t-ui)/1 var(--f-body); }
.social-contact a:hover { border-color: var(--navy); color: var(--gold-text); }
