/* General Engine: site styles (V6). Graphite and ivory, editorial serif, one muted blue-gray accent. */

@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --graphite: #0C1111;
  --black: #080C0D;
  --ivory: #F3F0EA;
  --ink: #121615;
  --text: #ECE9E2;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1280px;
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Section theme (dark by default). */
  --bg: var(--graphite);
  --fg: var(--text);
  --muted: #A3ABA8;
  --dim: #8E9895;
  --rule: rgba(236, 233, 226, .14);
  --rule-strong: rgba(236, 233, 226, .42);
  --accent: #8EA7B0;
  --accent-deep: #5F7B85;
  --surface: rgba(236, 233, 226, .025);
}

.theme-ivory {
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #4B5451;
  --dim: #59625F;
  --rule: rgba(18, 22, 21, .16);
  --rule-strong: rgba(18, 22, 21, .5);
  --accent: #42606B;
  --accent-deep: #42606B;
  --surface: rgba(18, 22, 21, .025);
}
.theme-black { --bg: var(--black); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Fine film grain over the graphite: material, not decoration. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.018em; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; }
h1, h2, h3, .statement__lines p { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(142, 167, 176, .35); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ivory); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout frame: a centered column with faint vertical rules, carried through every section. */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); border-inline: 1px solid var(--rule); }
.section { position: relative; background: var(--bg); color: var(--fg); overflow-x: clip; }
.stack, .page-hero, .hero { overflow-x: clip; }
.section > .wrap { padding-block: clamp(80px, 10vw, 148px); }
.section + .section { border-top: 1px solid var(--rule); }
.theme-ivory + .section, .section + .theme-ivory { border-top: 0; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--rule-strong); }
.eyebrow--plain::before { display: none; }

.h2 { font-size: clamp(38px, 4.7vw, 74px); line-height: 1.02; }
.h2 em { color: var(--accent); }
.lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 36em; }
.note { font-size: 13px; color: var(--muted); letter-spacing: .01em; margin-top: 28px; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.section-head .lede { margin: 0; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--rule-strong); color: var(--fg); background: transparent; text-decoration: none; font-size: 14.5px; letter-spacing: .01em; transition: border-color .25s, background .25s, color .25s; cursor: pointer; }
.btn:hover { border-color: var(--fg); background: var(--surface); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-size: 14.5px; padding-bottom: 4px; border-bottom: 1px solid var(--rule-strong); transition: border-color .25s; }
.link:hover { border-color: var(--fg); }
.arr { display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(8, 12, 13, .8); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: rgba(236, 233, 226, .1); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; color: var(--text); transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(60deg); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; text-decoration-thickness: 1px; }
.nav__links .btn { color: var(--text); margin-left: 6px; min-height: 42px; padding: 9px 16px; font-size: 13.5px; }
.nav__links .btn:hover { color: var(--text); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid rgba(236, 233, 226, .3); color: var(--text); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.menu-toggle span[aria-hidden] { width: 16px; height: 8px; border-block: 1px solid currentColor; transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span[aria-hidden] { transform: scaleY(0); }

@media (max-width: 1080px) {
  html:not(.nav-ready) .nav { height: auto; flex-wrap: wrap; padding-block: 16px; }
  html:not(.nav-ready) .nav__links { flex-wrap: wrap; gap: 10px 20px; }
  html.nav-ready .menu-toggle { display: inline-flex; }
  html.nav-ready .nav__links {
    position: fixed; top: var(--header); left: 0; right: 0; height: calc(100dvh - var(--header));
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 36px var(--pad) 48px;
    background: var(--black); border-top: 1px solid rgba(236, 233, 226, .1);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; overflow-y: auto;
  }
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--black); }
  body.nav-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  body.nav-open { overflow: hidden; }
  html.nav-ready .nav__links a { font-family: var(--serif); font-size: clamp(30px, 7vw, 44px); font-weight: 300; color: var(--text); padding: 6px 0; }
  html.nav-ready .nav__links .btn { margin: 24px 0 0; font-family: var(--sans); font-size: 15px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--graphite); }
.hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); min-height: min(860px, calc(100svh - var(--header) - 70px)); padding-block: clamp(56px, 7vw, 104px) clamp(48px, 5vw, 80px); }
.hero h1 { font-size: clamp(50px, 7vw, 116px); line-height: .96; letter-spacing: -.03em; margin: 0 0 .32em; }
.hero h1 em { color: var(--accent); font-weight: 300; }
.hero__lede { max-width: 29em; color: var(--muted); font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 40px; }
.hero__visual { position: relative; width: min(100%, 700px); justify-self: end; }
.hero__glow { position: absolute; inset: -10% -20% -10% 10%; background: radial-gradient(closest-side, rgba(116, 146, 156, .11), transparent 70%); pointer-events: none; }
.annot { position: absolute; right: -8px; bottom: -2%; margin: 0; padding: 2px 0 2px 14px; border-left: 1px solid var(--rule-strong); list-style: none; font-size: 11px; letter-spacing: .28em; line-height: 2.05; text-transform: uppercase; color: var(--muted); }
.annot li:last-child { color: var(--accent); }

/* Kinetic ring (hero and footer) */
.ring { position: relative; margin: 0; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .seg { stroke: rgba(236, 233, 226, .44); stroke-width: 1; }
.ring .bolt { fill: rgba(236, 233, 226, .55); }
.ring .ticks path { stroke: rgba(236, 233, 226, .36); stroke-width: 1; fill: none; }
.ring .cross { stroke: rgba(236, 233, 226, .07); stroke-width: 1; stroke-dasharray: 2 6; fill: none; }
.ring .orbit-path { fill: none; stroke: rgba(236, 233, 226, .18); stroke-width: 1; stroke-dasharray: 1 7; }
.ring .orbit-node { fill: var(--accent); }
.ring .core path { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .9; }
.ring .core .core-top { fill: rgba(142, 167, 176, .12); stroke: none; }
.ring .core circle { fill: none; stroke: rgba(236, 233, 226, .22); stroke-width: 1; }
.ring .rim { opacity: 0; transition: opacity 1.4s ease .1s; }
.ring[data-alignment="aligned"] .rim, html:not(.motion-ready) .ring .rim { opacity: 1; }
.ring .ticks, .ring .orbit, .ring .core { transform-box: view-box; transform-origin: 320px 320px; }
.motion-ready .ring .ticks { animation: spin 150s linear infinite; }
.motion-ready .ring .orbit { animation: spin 28s linear infinite; }
.motion-ready .ring .core { animation: spin 180s linear infinite reverse; }
[data-motion-zone]:not([data-motion-state="running"]) *,
[data-motion-zone]:not([data-motion-state="running"]) *::before,
[data-motion-zone]:not([data-motion-state="running"]) *::after { animation-play-state: paused !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at var(--pointer-x, 30%) var(--pointer-y, 26%), rgba(236, 233, 226, .14), rgba(142, 167, 176, .06) 22%, transparent 44%); opacity: 0; transition: opacity .5s; }
.ring[data-hover="true"]::after { opacity: 1; }

/* Technology strip */
.stack { background: var(--graphite); border-top: 1px solid var(--rule); }
.stack > .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); padding-block: 22px; }
.stack__label { margin: 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee__track ul { display: flex; gap: 64px; margin: 0; padding: 0 64px 0 0; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.marquee li svg { width: 17px; height: 17px; fill: currentColor; opacity: .85; }
.motion-ready .marquee__track { animation: marquee 46s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Practices */
.practices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--rule-strong); color: var(--fg); text-decoration: none; overflow: hidden; transition: border-color .35s, background .35s; }
.card:hover { border-color: var(--fg); background: var(--surface); }
.card--primary { box-shadow: inset 0 2px 0 var(--accent); }
.card__idx { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.card__kicker { margin: 4px 0 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.card h3 { font-size: clamp(34px, 3.3vw, 50px); line-height: 1.04; margin: auto 0 14px; padding-top: 96px; }
.card p { color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.card .link { align-self: flex-start; font-size: 15px; border-bottom-color: var(--fg); }
.card__art { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(24px, 3vw, 40px); width: min(50%, 300px); color: var(--fg); }
.card__art path, .card__art polygon, .card__art rect { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .62; vector-effect: non-scaling-stroke; }
.card__art .hl { stroke: var(--accent); opacity: 1; stroke-width: 1.6; }
.card__art circle { fill: var(--accent); }
.card__art .plate-fill { fill: rgba(236, 233, 226, .035); }
.motion-ready .card:hover .card__art .hl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.motion-ready .card__art .plates g { transition: transform .7s var(--ease); }
.motion-ready .card:hover .card__art .plates g:nth-child(1) { transform: translateY(-10px); }
.motion-ready .card:hover .card__art .plates g:nth-child(2) { transform: translateY(-5px); }

/* Transformation engine */
.engine__diagram { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(60px, 1fr) minmax(220px, auto) minmax(60px, 1fr) minmax(200px, .9fr); grid-template-rows: 440px; margin-top: 72px; }
.engine__inputs, .engine__outputs { display: grid; grid-template-rows: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.engine__inputs li, .engine__outputs li { display: flex; align-items: center; }
.chip { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid var(--rule-strong); background: var(--bg); font-size: 15px; white-space: nowrap; will-change: transform; }
.chip b { font-family: var(--serif); font-weight: 400; font-size: 13px; color: var(--accent); }
.engine__outputs li { gap: 14px; padding-left: 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.15; }
.engine__outputs li::before { content: ""; flex: none; width: 8px; height: 8px; margin-left: -4px; background: var(--accent); transform: rotate(45deg); }
.engine__wires { width: 100%; height: 100%; overflow: visible; }
.engine__wires .track { fill: none; stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.engine__wires .wire { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.engine__wires { align-self: stretch; height: 100%; min-height: 0; }
.engine__wires .pulse { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 4 96; stroke-dashoffset: 100; opacity: 0; }
.motion-ready .engine__wires .pulse { opacity: clamp(0, calc(var(--progress, 1) * 3 - 2), .85); animation: pulse 3.4s linear infinite; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.engine__core > .stem, .engine__core > .stem2 { display: none; }
.calc__full { grid-column: 1 / -1; }
.notfound { overflow: hidden; }
.engine__core { position: relative; align-self: center; display: grid; justify-items: center; gap: 10px; padding: 30px 28px 26px; border: 1px solid var(--fg); text-align: center; background: var(--bg); }
.engine__core::before { content: ""; position: absolute; inset: -9px; border: 1px solid var(--rule); pointer-events: none; }
.engine__core::after { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(142, 167, 176, .22), transparent); opacity: var(--progress, 1); pointer-events: none; }
.engine__core .mark { width: 42px; height: 42px; color: var(--fg); }
.engine__core strong { font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.engine__core span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.engine__core em { font-family: var(--serif); font-size: 17px; color: var(--muted); }

/* Brand statement (ivory) */
.statement > .wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.statement__lines p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -.028em; }
.statement__lines p:first-child { opacity: clamp(.25, calc(var(--progress, 1) * 3), 1); }
.statement__lines p:nth-child(2) { font-style: italic; color: var(--accent); font-weight: 400; opacity: clamp(.12, calc(var(--progress, 1) * 2.6 - .7), 1); }
.statement__body { margin-top: 44px; max-width: 36em; color: var(--muted); font-size: 17px; }
.statement__art svg { width: 100%; height: auto; overflow: visible; }
.statement__art .hint { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 5; fill: none; opacity: max(0, calc(.55 - var(--progress, 1) * .7)); }
.statement__art .struct { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-linejoin: round; }
.statement__art .struct-accent { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.statement__art .node { fill: var(--fg); }
.statement__art .face { fill: rgba(18, 22, 21, .05); opacity: var(--progress, 1); }

/* Use cases */
.cases__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); margin-top: 64px; align-items: start; }
.cases__list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.cases__list button { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--muted); text-align: left; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); font-weight: 300; line-height: 1.15; cursor: pointer; transition: color .25s, padding .35s var(--ease); }
.cases__list button b { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.cases__list button:hover { color: var(--fg); }
.cases__list button[aria-selected="true"] { color: var(--fg); padding-left: 14px; box-shadow: inset 2px 0 0 var(--accent); }
.cases__list button[aria-selected="true"] b { color: var(--accent); }
.cases__stage { border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); background: var(--surface); }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: wf; }
.workflow li { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 104px; padding: 16px 14px; border: 1px solid var(--rule-strong); background: var(--bg); font-size: 14.5px; line-height: 1.35; counter-increment: wf; }
.workflow li::before { content: "0" counter(wf); font-family: var(--serif); font-size: 13px; color: var(--accent); }
.workflow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -27px; width: 26px; height: 1px; background: var(--accent); }
.workflow li:nth-child(3) { border-color: var(--accent); }
.workflow__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 30px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.workflow__legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid var(--rule-strong); vertical-align: -1px; }
.workflow__legend span.accent::before { border-color: var(--accent); }
.case-panel h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 12px; }
.case-panel p { color: var(--muted); max-width: 40em; }
.case-panel .outcome { display: grid; gap: 6px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--fg); font-size: 15px; }
.case-panel .outcome b { font-weight: 500; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-right: 12px; }
html:not(.js) .case-panel + .case-panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
.motion-ready .cases.swap .workflow li { animation: rise .6s var(--ease) both; }
.motion-ready .cases.swap .workflow li:nth-child(2) { animation-delay: .07s; }
.motion-ready .cases.swap .workflow li:nth-child(3) { animation-delay: .14s; }
.motion-ready .cases.swap .workflow li:nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Engagement stages */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.stage { display: flex; flex-direction: column; padding: 30px 24px 6px 0; }
.stage + .stage { padding-left: 24px; border-left: 1px solid var(--rule); }
.stage__n { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.stage h3 { min-height: 2.3em; font-size: clamp(22px, 1.75vw, 27px); font-weight: 400; line-height: 1.14; margin: 12px 0 12px; }
.stage p { flex: 1; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.stage__out { flex: 0 0 auto !important; margin: 0 !important; font-size: 10.5px !important; letter-spacing: .15em; text-transform: uppercase; color: var(--muted) !important; }
.stage__out::before { content: "→ "; color: var(--accent); letter-spacing: 0; }

/* Private equity and value calculator */
.pe > .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.pe__points { margin: 34px 0 36px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.pe__points li { display: grid; grid-template-columns: 34px 1fr; padding: 15px 0; border-bottom: 1px solid var(--rule); color: var(--fg); }
.pe__points li b { font-family: var(--serif); font-weight: 400; font-size: 14px; color: var(--accent); }
.calc { border: 1px solid var(--rule-strong); background: var(--surface); padding: clamp(22px, 3vw, 38px); }
.calc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.calc__head h3 { font-size: 26px; font-weight: 400; }
.calc__head p { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.calc__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 26px 0 30px; }
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; font-size: 13.5px; color: var(--muted); }
.calc output { color: var(--fg); font-variant-numeric: tabular-nums; font-size: 14px; }
.calc input[type="range"] { grid-column: 1 / -1; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--rule-strong); }
.calc input[type="range"]::-moz-range-track { height: 1px; background: var(--rule-strong); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--fg); border: 0; transform: rotate(45deg); }
.calc input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--fg); border: 0; border-radius: 0; transform: rotate(45deg); }
.calc input[type="range"]:disabled { opacity: .45; cursor: default; }
.bridge { display: grid; gap: 12px; }
.bridge__row { display: grid; grid-template-columns: minmax(118px, 160px) minmax(0, 1fr) 80px; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.bridge__row output { text-align: right; }
.bridge__bar { position: relative; height: 16px; }
.bridge__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.bridge__bar i { position: absolute; top: 0; bottom: 0; left: var(--start, 0%); width: var(--size, 0%); background: rgba(236, 233, 226, .5); transition: left .45s var(--ease), width .45s var(--ease); }
.bridge__row--gain .bridge__bar i { background: var(--accent); }
.bridge__row--total { color: var(--fg); }
.bridge__row--total .bridge__bar i { background: var(--fg); }
.calc__result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.calc__result span { font-size: 13.5px; color: var(--muted); }
.calc__result output { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 50px); font-weight: 300; line-height: 1; color: var(--fg); }
.calc__note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.calc__warn { margin: 12px 0 0; font-size: 13px; color: var(--accent); }

/* Data licensing sequence (ivory) */
.license { --replay-w: 56px; }
.license__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) var(--replay-w); margin-top: 64px; border-block: 1px solid var(--rule); }
.license__stages button { position: relative; display: grid; gap: 4px; padding: 20px 16px 20px 0; border: 0; background: none; color: var(--dim); text-align: left; cursor: pointer; transition: color .25s; }
.license__stages button + button { padding-left: 18px; border-left: 1px solid var(--rule); }
.license__stages button b { font-family: var(--serif); font-weight: 400; font-size: 13px; color: inherit; }
.license__stages button span { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; line-height: 1.1; }
.license__stages button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.license__stages button + button::before { left: 0; }
.license__stages button[aria-pressed="true"] { color: var(--fg); }
.license__stages button[aria-pressed="true"] b { color: var(--accent); }
.license__stages button[aria-pressed="true"]::before { transform: scaleX(1); }
.motion-ready .license:not(.is-manual):not(.static-sequence)[data-motion-state="running"] .license__stages button[aria-pressed="true"]::before { animation: progress 2.6s linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.license__replay { display: grid; place-items: center; width: 56px; padding: 0 !important; border-left: 1px solid var(--rule) !important; color: var(--muted) !important; }
.license__replay svg { width: 18px; height: 18px; }
.license__replay:hover { color: var(--fg) !important; }
.license__track { position: relative; height: 236px; margin: 0 var(--replay-w) 0 0; background: linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 25% 100%; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.packet { position: absolute; top: calc(22px + var(--packet-index, 0) * 50px); left: calc(var(--packet-stage, 3) * 25% + 18px); width: calc(25% - 36px); padding: 9px 12px; border: 1px dashed var(--rule-strong); background: var(--bg); font-size: 12.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motion-ready .packet { transition: left .95s var(--ease) calc(var(--packet-index, 0) * 90ms), border-color .4s, background-color .4s, color .4s; }
.packet[data-stage="1"] { border-style: solid; }
.packet[data-stage="2"] { border-style: solid; background-image: repeating-linear-gradient(135deg, rgba(18, 22, 21, .07) 0 1px, transparent 1px 6px); }
.packet[data-stage="3"], html:not(.js) .packet { border-style: solid; border-color: var(--accent); color: var(--accent); }
.license__summaries { display: grid; margin-top: 30px; min-height: 92px; }
.license__summaries p { grid-area: 1 / 1; max-width: 46em; margin: 0; font-size: 17px; color: var(--muted); }
.license__summaries p strong { color: var(--fg); font-weight: 500; }
.license.static-sequence .license__summaries, html:not(.js) .license__summaries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.license.static-sequence .license__summaries p, html:not(.js) .license__summaries p { grid-area: auto; }
.license__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.license__foot p { margin: 0; max-width: 46em; font-size: 14px; color: var(--dim); }

/* Closing call to action */
.cta > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px 64px; }
.cta h2 { font-size: clamp(46px, 6.4vw, 104px); line-height: .98; letter-spacing: -.03em; }
.cta h2 em { color: var(--accent); }
.cta p { margin: 26px 0 0; max-width: 34em; color: var(--muted); font-size: 17px; }
.cta__actions { display: grid; gap: 16px; justify-items: start; }

/* Footer */
.site-footer { position: relative; background: var(--black); color: var(--text); border-top: 1px solid rgba(236, 233, 226, .1); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); padding-block: clamp(64px, 7vw, 104px) 48px; }
.footer__tag { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; margin-bottom: 26px; }
.footer__tag em { color: var(--accent); }
.footer__email { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(236, 233, 226, .34); padding-bottom: 3px; transition: border-color .25s; }
.footer__email:hover { border-color: var(--text); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__cols h2 { margin: 0 0 16px; font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #8E9895; }
.footer__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer__cols a { color: #A3ABA8; text-decoration: none; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__brand { position: relative; border-top: 1px solid rgba(236, 233, 226, .1); }
.footer__stage { position: relative; display: grid; align-items: end; min-height: clamp(220px, 30vw, 460px); padding-bottom: clamp(8px, 1.5vw, 20px); overflow: hidden; }
.footer__ring { position: absolute; left: 50%; top: 4%; width: clamp(240px, 32vw, 480px); transform: translateX(-50%); opacity: .4; }
.footer__word { position: relative; margin: 0; font-family: var(--sans); font-weight: 500; font-stretch: 88%; font-size: 9.6vw; letter-spacing: .05em; line-height: .9; white-space: nowrap; text-align: center; color: transparent; -webkit-user-select: none; user-select: none;
  background-image: radial-gradient(circle at var(--fx, 50%) var(--fy, 70%), rgba(243, 240, 234, .98) 0, rgba(142, 167, 176, .75) 14%, rgba(236, 233, 226, .3) 38%), linear-gradient(rgba(236, 233, 226, .3), rgba(236, 233, 226, .3));
  -webkit-background-clip: text; background-clip: text; }
html:not(.js) .footer__word { color: rgba(236, 233, 226, .14); }
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid rgba(236, 233, 226, .1); font-size: 12.5px; color: #A3ABA8; }
.footer__base p { margin: 0; }
.motion-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(236, 233, 226, .22); background: none; color: #A3ABA8; cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle:hover { color: var(--text); border-color: rgba(236, 233, 226, .5); }
.motion-toggle svg { width: 12px; height: 12px; }
.motion-toggle .play { display: none; }
.motion-toggle[aria-pressed="true"] .play { display: block; }
.motion-toggle[aria-pressed="true"] .pause { display: none; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; background: var(--graphite); }
.page-hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 48px clamp(32px, 6vw, 96px); padding-block: clamp(72px, 9vw, 136px) clamp(56px, 6vw, 96px); }
.page-hero h1 { font-size: clamp(46px, 6.4vw, 104px); line-height: .98; letter-spacing: -.03em; margin-bottom: .36em; }
.page-hero h1 em { color: var(--accent); }
.page-hero__art { position: absolute; right: -9%; top: 50%; width: min(48vw, 640px); transform: translateY(-50%); opacity: .3; pointer-events: none; }
.aside-panel { padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--rule-strong); background: rgba(12, 17, 17, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-hero > .wrap > * { position: relative; }
.page-hero .btn { margin-top: 20px; }
.aside-list { margin: 0; border-top: 1px solid var(--rule-strong); }
.aside-list > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.aside-list dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.aside-list dd { margin: 0; color: var(--muted); font-size: 15px; }
.aside-label { margin: 0 0 14px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }

.doc { border: 1px solid var(--rule-strong); background: var(--surface); padding: clamp(22px, 2.6vw, 32px); }
.doc__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.doc__head span:first-child { color: var(--fg); }
.doc dl { margin: 0; }
.doc dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.doc dt { color: var(--dim); }
.doc dd { margin: 0; color: var(--fg); }
.doc p { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }

.table { width: 100%; margin-top: 56px; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.table th { padding: 14px 24px 14px 0; text-align: left; font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--rule); }
.table td { padding: 24px 24px 24px 0; vertical-align: top; border-bottom: 1px solid var(--rule); color: var(--muted); }
.table td:first-child { width: 24%; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 27px); color: var(--fg); line-height: 1.15; }
.table td:last-child { width: 24%; font-size: 14px; color: var(--accent); }

.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 56px 0 0; border-top: 1px solid var(--rule); }
.items > div { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--rule); }
.items > div:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--rule); }
.items dt { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; margin-bottom: 12px; }
.items dt b { display: block; margin-bottom: 14px; font-weight: 400; font-size: 14px; color: var(--accent); }
.items dd { margin: 0; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }
.principles li { padding: 30px 30px 8px 0; }
.principles li + li { padding-left: 30px; border-left: 1px solid var(--rule); }
.principles h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.06; margin-bottom: 16px; }
.principles h3 em { color: var(--accent); }
.principles p { color: var(--muted); }

.faq { margin-top: 48px; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 24px 56px 24px 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); font-weight: 300; line-height: 1.2; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--fg), var(--fg)) center / 100% 1px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 50em; margin: 0 0 26px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }
.pillars li { padding: 28px 26px 6px 0; }
.pillars li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.pillars h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; margin-bottom: 14px; }
.pillars h3 em { color: var(--accent); }
.pillars p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact > .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); padding-block: clamp(64px, 8vw, 120px); }
.contact h1 { font-size: clamp(48px, 6vw, 96px); line-height: .98; letter-spacing: -.03em; margin-bottom: .4em; }
.contact h1 em { color: var(--accent); }
.next-steps { margin: 36px 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 38px 1fr; padding: 15px 0; border-bottom: 1px solid var(--rule); color: var(--muted); counter-increment: ns; }
.next-steps li::before { content: "0" counter(ns); font-family: var(--serif); color: var(--accent); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.email-row a { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.email-row button { min-height: 38px; padding: 6px 14px; border: 1px solid var(--rule-strong); background: none; font-size: 13px; cursor: pointer; }
.email-row button:hover { border-color: var(--fg); }
.email-status { min-height: 1.6em; margin-top: 8px; font-size: 13px; color: var(--accent); }
.form { border: 1px solid var(--rule-strong); background: var(--surface); padding: clamp(24px, 3.4vw, 44px); }
.form__intro { margin: 0 0 26px; font-size: 13.5px; color: var(--dim); }
.form fieldset { margin: 0 0 30px; padding: 0; border: 0; }
.form legend, .field label { margin-bottom: 12px; padding: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices label { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule-strong); cursor: pointer; transition: border-color .2s, background .2s; }
.choices label:hover { border-color: var(--fg); }
.field textarea::placeholder, .field input::placeholder { color: var(--dim); opacity: 1; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.15; }
.choices span { font-size: 12.5px; color: var(--dim); }
.choices label:has(input:checked) { border-color: var(--accent); background: rgba(142, 167, 176, .06); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.field { display: grid; align-content: start; margin-bottom: 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent; color: var(--fg); font-size: 17px; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.field__hint, .field__error { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.field__error { display: none; color: #D7A797; }
.has-error .field__error { display: block; }
.has-error input, .has-error textarea { border-bottom-color: #D7A797; }
.form__privacy { margin: 4px 0 24px; font-size: 12.5px; color: var(--dim); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__submit .btn:disabled { opacity: .45; cursor: not-allowed; }
.form__status { margin: 16px 0 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form__status[data-state="error"] { color: #D7A797; }
.form__status[data-state="ready"] { color: var(--accent); }
.form__status a { margin-left: 6px; }
.form__nojs { font-size: 13.5px; color: var(--dim); }
html.js .form__nojs { display: none; }

.notfound > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 48px; min-height: calc(100svh - var(--header) - 260px); padding-block: 96px; }
.notfound h1 { font-size: clamp(56px, 8vw, 128px); line-height: .95; margin-bottom: .3em; }
.notfound h1 em { color: var(--accent); }
.notfound .ring { width: min(100%, 460px); justify-self: center; opacity: .8; }

/* Scroll reveal: progressive enhancement only. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage:nth-child(4) { padding-left: 0; border-left: 0; }
  .stage:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .engine__diagram { grid-template-columns: minmax(140px, .9fr) minmax(36px, .7fr) minmax(190px, auto) minmax(36px, .7fr) minmax(160px, 1fr); }
  .chip { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 980px) {
  .hero > .wrap, .page-hero > .wrap, .section-head, .statement > .wrap, .cases__grid, .pe > .wrap, .cta > .wrap, .footer__top, .contact > .wrap, .notfound > .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero > .wrap { min-height: 0; }
  .hero__visual { justify-self: center; width: min(100%, 560px); margin-top: 8px; }
  .page-hero__art { right: -30%; width: 100vw; opacity: .22; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .items > div:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--rule); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .statement__art { max-width: 520px; }
}
@media (max-width: 860px) {
  .engine__diagram { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .engine__wires { display: none; }
  .engine__inputs, .engine__outputs { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chip { width: 100%; white-space: normal; }
  .engine__core { justify-self: center; width: min(100%, 320px); margin-block: 46px; }
  .engine__core::before { inset: -8px; }
  .engine__inputs { position: relative; }
  .engine__core > .stem, .engine__core > .stem2 { position: absolute; left: 50%; width: 1px; height: 38px; background: var(--accent); }
  .engine__core > .stem { top: -47px; }
  .engine__core > .stem2 { bottom: -47px; }
  .engine__outputs li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
  .license__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license__stages button + button { padding-left: 0; border-left: 0; }
  .license__stages button:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .license__stages button:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .license__replay { grid-column: 1 / -1; width: 100%; height: 48px; border-left: 0 !important; border-top: 1px solid var(--rule) !important; }
  .license__track { height: 250px; margin-right: 0; background-size: 50% 100%; }
  .packet { width: calc(50% - 24px); top: calc(14px + var(--packet-index, 0) * 54px); left: 12px; }
  .packet[data-stage="2"], .packet[data-stage="3"], html:not(.js) .packet { left: calc(50% + 12px); }
}
@media (max-width: 760px) {
  .wrap { border-inline: 0; }
  .section > .wrap { padding-block: 76px; }
  .stack > .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .practices__grid { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 320px; }
  .card h3 { padding-top: 110px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage, .stage + .stage { padding: 26px 0 8px; border-left: 0; }
  .stage + .stage { border-top: 1px solid var(--rule); }
  .workflow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .workflow li { flex-direction: row; align-items: baseline; gap: 14px; min-height: 0; padding: 13px 14px; }
  .workflow li:not(:last-child)::after { top: auto; bottom: -11px; right: auto; left: 22px; width: 1px; height: 10px; }
  .card__art { width: 42%; top: 22px; right: 18px; opacity: .8; }
  .card__kicker { max-width: 52%; }
  .calc__inputs { grid-template-columns: minmax(0, 1fr); }
  .bridge__row { grid-template-columns: minmax(0, 1fr) 76px; }
  .bridge__row .bridge__bar { grid-column: 1 / -1; grid-row: 2; }
  .items { grid-template-columns: minmax(0, 1fr); }
  .items > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: auto !important; }
  .table tr { padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .table td { padding: 0; border: 0; }
  .table td + td { margin-top: 10px; }
  .doc dl > div, .aside-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .choices, .fields { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annot { display: none; }
  .footer__stage { min-height: 300px; }
  .footer__ring { width: 230px; top: 14px; }
  .footer__word { font-size: 10.4vw; }
  .license.static-sequence .license__summaries, html:not(.js) .license__summaries { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .brand { font-size: 11px; letter-spacing: .2em; gap: 10px; }
  .brand .mark { width: 22px; height: 22px; }
  .menu-toggle { padding: 8px 11px; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 54px); }
  .engine__inputs, .engine__outputs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn .arr, .brand .mark { transition: none; }
}
@media print {
  body::after, .site-header, .stack, .footer__brand, .motion-toggle { display: none; }
}

/* ================================================================== V6.1 */
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
:root { --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* Type scale for the narrower column */
.hero h1 { font-size: clamp(46px, 6.3vw, 96px); }
.page-hero h1, .cta h2 { font-size: clamp(44px, 5.8vw, 92px); }

/* Mark: six panels around a core. Panels open slightly on hover. */
.mark .mk-p { fill: currentColor; transition: transform .6s var(--ease); }
.mark .mk-core { fill: var(--accent); }
.brand:hover .mark .mk-p { transform: translate(calc(var(--dx) * 1.3px), calc(var(--dy) * 1.3px)); }

/* Ring: continuous motion */
.ring .ticks, .ring .orbit, .ring .orbit2, .ring .core { transform-box: view-box; transform-origin: 320px 320px; }
.motion-ready .ring .ticks { animation: spin 90s linear infinite reverse; }
.motion-ready .ring .orbit { animation: spin 14s linear infinite; }
.motion-ready .ring .orbit2 { animation: spin 40s linear infinite reverse; }
.motion-ready .ring .core { animation: spin 120s linear infinite reverse; }
.ring .orbit-node2 { fill: var(--text); }
.ring .seg { transition: stroke .5s, stroke-width .5s; }
.ring .is-lit .seg { stroke: #F3F0EA; stroke-width: 1.8; }
.ring .is-lit .bolt { fill: #8EA7B0; }
.ring .flow-dot { fill: #F3F0EA; }
.ring .rc-p { fill: rgba(236, 233, 226, .1); stroke: rgba(236, 233, 226, .62); stroke-width: 1.2; }
.ring .rc-core { fill: #8EA7B0; }
.motion-ready .ring .rc-p { animation: breathe 5.2s var(--ease) infinite; animation-delay: calc(var(--i) * -.35s); }
.motion-ready .ring .rc-core { animation: glow 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translate(0, 0); } 45%, 55% { transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)); } }
@keyframes glow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* Practice cards: live art, pointer spotlight, lift */
.card { transition: border-color .35s, background .35s, transform .5s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(440px circle at var(--mx, 75%) var(--my, 18%), rgba(142, 167, 176, .15), transparent 62%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); }
.card > :not(.card__art) { position: relative; }
.card__art { width: min(54%, 330px); }
.card__art .sig { stroke: var(--accent); opacity: 1; stroke-width: 2; vector-effect: none; stroke-dasharray: .16 .84; stroke-dashoffset: .16; }
.motion-ready .card__art .sig { animation: sig 2.8s linear infinite; }
@keyframes sig { from { stroke-dashoffset: .16; } to { stroke-dashoffset: -.84; } }
.card__art .box { stroke: currentColor; opacity: .85; }
.card__art .ln { stroke: var(--accent); opacity: .95; stroke-width: 2; vector-effect: none; stroke-dasharray: 64; stroke-dashoffset: 0; }
.motion-ready .card__art .ln { animation: type 2.8s var(--ease) infinite; }
@keyframes type { 0% { stroke-dashoffset: 64; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.card__art .ok circle { fill: var(--accent); }
.card__art .ok path { fill: none; stroke: var(--graphite); stroke-width: 1.8; opacity: 1; vector-effect: none; }
.motion-ready .card__art .ok { animation: ok 2.8s var(--ease) infinite; }
@keyframes ok { 0%, 55% { opacity: 0; } 65%, 90% { opacity: 1; } 100% { opacity: 0; } }
.card__art .end { fill: var(--accent); }
.card__art .plate-fill { fill: rgba(236, 233, 226, .05); }
.card__art .rec { fill: var(--accent); stroke: none; opacity: .3; }
.motion-ready .card__art .rec { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.card__art .scanbar { fill: url(#scan-g); stroke: none; opacity: 1; }
.motion-ready .card__art .scanbar { animation: scanbar 2.6s var(--ease) infinite; }
@keyframes scanbar { from { transform: translateX(0); } to { transform: translateX(232px); } }
.motion-ready .card__art .plate { animation: float 4.8s ease-in-out infinite; }
.motion-ready .card__art .p2 { animation-delay: -.7s; }
.motion-ready .card__art .p3 { animation-delay: -1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Statement: scan, find, build */
.statement > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.statement__lines p { font-size: clamp(38px, 4.1vw, 64px); }
.scan { display: block; width: 100%; height: auto; overflow: visible; }
.scan .sd { fill: var(--fg); opacity: calc(.22 * var(--dots, 1)); transition: opacity .6s; }
.scan .sf { fill: var(--fg); opacity: .25; transition: fill .3s, opacity .3s, r .3s; }
.scan .sf.is-found, html:not(.js) .scan .sf { fill: var(--accent); opacity: 1; r: 4.5px; }
.scan .beam-line { stroke: var(--accent); stroke-width: 1.5; }
.js .scan .beam { opacity: 0; }
html:not(.js) .scan .beam { display: none; }
.scan .sp { fill: var(--fg); opacity: .92; }
.scan .score { fill: var(--accent); }
.scan .bl { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scan .bl--thin { stroke-width: .9; }
.scan-tag path { fill: none; stroke: var(--accent); stroke-width: 1; }
.scan-tag rect { fill: var(--fg); }
.scan-tag text { fill: var(--bg); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.js .scan-tag { opacity: 0; transform: translateY(5px); transition: opacity .45s, transform .45s var(--ease); }
.js .scan-tag.is-on { opacity: 1; transform: none; }
.scan-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--rule); counter-reset: ss; }
.scan-steps li { counter-increment: ss; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.scan-steps li::before { content: "0" counter(ss); margin-right: 8px; font-family: var(--serif); font-size: 13px; letter-spacing: 0; color: var(--accent); }
.scan-steps li.is-on { color: var(--fg); }

/* Operating layer console */
.engine__diagram { grid-template-columns: minmax(160px, .8fr) minmax(44px, .65fr) minmax(270px, 300px) minmax(44px, .65fr) minmax(190px, .9fr); grid-template-rows: 460px; }
.engine__packets { display: none; }
.engine__wires .pk { fill: none; stroke: #F3F0EA; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 8 100; stroke-dashoffset: 8; opacity: 0; vector-effect: non-scaling-stroke; }
.chip { transition: border-color .3s, background .3s; }
.chip.is-active { border-color: var(--accent); background: rgba(142, 167, 176, .14); }
.engine__outputs li { transition: color .3s; }
.engine__outputs li::before { transition: transform .4s var(--ease), box-shadow .4s; }
.engine__outputs li.is-hit { color: var(--accent); }
.engine__outputs li.is-hit::before { transform: rotate(45deg) scale(1.7); box-shadow: 0 0 0 5px rgba(142, 167, 176, .18); }
.console { position: relative; align-self: center; display: grid; gap: 14px; padding: 20px 18px 18px; border: 1px solid var(--fg); background: var(--bg); }
.console::before { content: ""; position: absolute; inset: -9px; border: 1px solid var(--rule); pointer-events: none; transition: border-color .4s; }
.console::after { content: ""; position: absolute; inset: -46px; z-index: -1; background: radial-gradient(closest-side, rgba(142, 167, 176, .22), transparent); pointer-events: none; }
.console.is-busy::before { border-color: var(--accent); }
.console__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.console__head .mark { width: 30px; height: 30px; flex: none; color: var(--fg); }
.motion-ready .console.is-busy .console__head .mark { animation: spin 2.4s linear infinite; }
.console__head strong { display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
.console__head span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.console__now { display: grid; gap: 2px; margin: 0; }
.console__now span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.console__now b { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; color: var(--fg); }
.motion-ready .console__now b.swap { animation: rise .5s var(--ease) both; }
.console__steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.console__steps li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 10px; border: 1px solid var(--rule); font-size: 13px; color: var(--muted); transition: border-color .25s, color .25s, background .25s; }
.console__steps li.is-done { color: var(--fg); }
.console__steps li.is-on { border-color: var(--accent); background: rgba(142, 167, 176, .12); color: var(--fg); }

/* Step-type tags: icon + word, distinct fills */
.tag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px 4px 7px; border: 1px solid; font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.tag svg { width: 11px; height: 11px; flex: none; }
.tag--ai { color: #CFDDE2; border-color: rgba(142, 167, 176, .6); background: rgba(142, 167, 176, .16); }
.tag--rules { color: var(--muted); border-color: var(--rule-strong); background: transparent; }
.tag--human { color: var(--bg); border-color: var(--fg); background: var(--fg); }
.tag--system { color: var(--dim); border-color: var(--rule-strong); border-style: dashed; background: transparent; }
.console__steps .tag, .vpipe .tag { padding: 2px 7px 2px 5px; font-size: 9.5px; letter-spacing: .08em; }

/* Use-case workflows */
.wf-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 26px; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--rule); }
.wf-legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.wf { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; }
.wf__step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--rule); background: var(--bg); transition: border-color .3s, background .3s, transform .4s var(--ease), opacity .3s; }
.wf__step:not(:last-child)::after { content: ""; position: absolute; left: 30px; bottom: -10px; width: 1px; height: 9px; background: var(--rule-strong); }
.wf__n { font-family: var(--serif); font-size: 14px; color: var(--accent); }
.wf__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; color: var(--fg); }
.wf__t small { display: none; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.wf__t small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--fg); animation: blink 1.2s ease-in-out infinite; }
.wf__step--human { border-color: rgba(236, 233, 226, .55); border-left: 3px solid var(--fg); background: rgba(236, 233, 226, .045); }
.wf-live .wf__step { opacity: .5; }
.wf-live .wf__step.is-done { opacity: .85; }
.wf-live .wf__step.is-on { opacity: 1; border-color: var(--accent); background: rgba(142, 167, 176, .1); transform: translateX(6px); }
.wf-live .wf__step--human.is-on { border-color: var(--fg); background: rgba(236, 233, 226, .1); }
.wf-live .wf__step--human.is-on small { display: inline-block; }
.wf-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.wf-meta dt { margin-bottom: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.wf-meta dd { margin: 0; font-size: 14px; color: var(--muted); }

/* Stage explorers: each stage has its own visual */
.ex { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); margin-top: 56px; border: 1px solid var(--rule-strong); min-height: 540px; }
.ex__side { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 32px); border-right: 1px solid var(--rule-strong); }
.ex__list { margin: 0; padding: 0; list-style: none; }
.ex__item { border-bottom: 1px solid var(--rule); }
.ex__tab { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 6px 12px; width: 100%; padding: 16px 0; border: 0; background: none; color: var(--dim); text-align: left; cursor: pointer; transition: color .25s; }
.ex__tab:hover { color: var(--fg); }
.ex__dot { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); transition: background .3s, border-color .3s; }
.ex__label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.ex__title { grid-column: 2; display: none; font-family: var(--serif); font-weight: 300; font-size: clamp(25px, 2.3vw, 33px); line-height: 1.1; color: var(--fg); }
.ex__item.is-active .ex__tab { color: var(--fg); }
.ex__item.is-active .ex__dot { background: var(--accent); border-color: var(--accent); }
.ex__item.is-active .ex__title, html:not(.js) .ex__title { display: block; margin-top: 6px; }
.ex__body { display: none; padding: 0 0 20px 26px; }
.ex__item.is-active .ex__body, html:not(.js) .ex__body { display: block; }
.ex__body p { margin: 0 0 12px; max-width: 34em; font-size: 15px; color: var(--muted); }
.ex__body .ex__out { margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.ex__bar { display: block; height: 1px; margin-top: 14px; background: var(--rule); overflow: hidden; }
.ex__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.ex.is-manual .ex__bar { visibility: hidden; }
.ex__foot { padding-top: 18px; }
.ex__replay { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule-strong); background: none; color: var(--muted); cursor: pointer; }
.ex__replay:hover { color: var(--fg); border-color: var(--fg); }
.ex__replay svg { width: 17px; height: 17px; }
html:not(.js) .ex__foot { display: none; }
.ex__visual { position: relative; display: grid; overflow: hidden; background: var(--surface); }
.ex__visual--dark { --bg: var(--graphite); --fg: var(--text); --muted: #A3ABA8; --dim: #8E9895; --rule: rgba(236, 233, 226, .14); --rule-strong: rgba(236, 233, 226, .42); --accent: #8EA7B0; --surface: rgba(236, 233, 226, .025); background: var(--graphite); color: var(--fg); }
.ex__panel { grid-area: 1 / 1; min-width: 0; padding: clamp(22px, 2.8vw, 38px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.ex__panel.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
.js .ex [data-seq] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .5s, border-color .5s; }
.js .ex [data-seq].is-in { opacity: 1; transform: none; }

.vz { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.vz__cap { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 12px; border-bottom: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.vz__cap span:first-child { color: var(--fg); }
.vz__note { margin: auto 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.vz__legend { display: flex; gap: 20px; margin: 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vz__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; background: var(--rule-strong); }
.vz__legend .k1::before { background: var(--accent); }

.vmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vmap li { position: relative; min-height: 96px; padding: 14px 12px; border: 1px solid var(--rule-strong); font-size: 13.5px; line-height: 1.35; }
.vmap li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 12px; height: 1px; background: var(--rule-strong); }
.vmap li.hot { border-color: var(--accent); background: rgba(142, 167, 176, .12); }
.vmap li.hot b { display: block; margin-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.vmap__loop { margin: 0; padding: 10px 12px; border: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.vlist { margin: 0; }
.vlist div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.vlist dd { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.vscope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vscope div { padding: 14px; border: 1px solid var(--rule-strong); }
.vscope b { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.vscope div:nth-child(2) b { color: var(--dim); }
.vscope p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.vtests { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vtests li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--rule); font-size: 14px; }
.vtests li i { position: relative; flex: none; width: 17px; height: 17px; border: 1px solid var(--rule-strong); transition: background .25s .3s, border-color .25s .3s; }
.vtests li i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s .4s; }
.vtests li.is-in i { background: var(--accent); border-color: var(--accent); }
.vtests li.is-in i::after { opacity: 1; }
.vtests li.no { color: var(--dim); }
.vtests li.no.is-in i { background: none; border-color: var(--dim); }
.vtests li.no i::after { left: 7px; top: 1px; width: 0; height: 13px; border-width: 0 1.5px 0 0; border-color: var(--dim); }
.vpipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.vpipe li { display: grid; align-content: start; gap: 8px; min-height: 132px; padding: 12px 10px; border: 1px solid var(--rule-strong); }
.vpipe li span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.vpipe li em { font-style: normal; font-size: 13.5px; line-height: 1.3; color: var(--fg); }
.vpipe li .tag { justify-self: start; align-self: end; }
.vpipe li.gate { border-color: var(--fg); border-left-width: 3px; background: rgba(236, 233, 226, .05); }
.vtrack { position: relative; height: 1px; margin: 4px 4px 0; background: var(--rule-strong); }
.vtrack i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); animation: travel 3.6s linear infinite; }
.vtrack i:nth-child(2) { animation-delay: -1.2s; }
.vtrack i:nth-child(3) { animation-delay: -2.4s; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 9px); } }
.vbars { display: grid; gap: 18px; }
.vbar span { font-size: 14px; }
.vbar__pair { display: grid; gap: 5px; margin-top: 8px; }
.vbar__pair i { display: block; height: 11px; transform-origin: left; transition: transform 1s var(--ease) .15s; }
.vbar__pair .b0 { background: var(--rule-strong); }
.vbar__pair .b1 { background: var(--accent); transform: scaleX(var(--w)); }
.js .ex .vbar:not(.is-in) .vbar__pair i { transform: scaleX(0); }
.vport { display: grid; grid-template-columns: 112px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.vport b { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--muted); }
.vport > span { font-size: 13.5px; }
.vport i { height: 34px; border: 1px solid var(--rule-strong); }
.js .ex .vport [data-seq] { opacity: 1; transform: none; }
.vport i.is-in, html:not(.js) .vport i { background: rgba(142, 167, 176, .38); border-color: var(--accent); }
.vport__mon { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.vport__mon .live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.slabs { display: grid; gap: 10px; }
.slab { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 15px 16px; border: 1px solid var(--rule-strong); background: linear-gradient(90deg, rgba(236, 233, 226, .07), rgba(236, 233, 226, 0) 70%); }
.slab:nth-child(2) { margin-left: 18px; }
.slab:nth-child(3) { margin-left: 36px; }
.slab:nth-child(4) { margin-left: 54px; }
.slab b { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.slab span { font-size: 12.5px; text-align: right; color: var(--muted); }
.rec { position: relative; overflow: hidden; padding: 18px 20px; border: 1px dashed var(--rule-strong); background: rgba(8, 12, 13, .55); font-family: var(--mono); font-size: 12.5px; line-height: 2.05; color: var(--muted); }
.rec p { margin: 0; }
.rec__h { color: var(--fg); }
.rec__beam { position: absolute; top: 0; bottom: 0; left: -4%; width: 2px; background: var(--fg); box-shadow: 0 0 18px 6px rgba(142, 167, 176, .35); animation: beam 3.4s var(--ease) infinite; }
@keyframes beam { 0% { left: -4%; } 75%, 100% { left: 104%; } }
.pii { display: inline-grid; vertical-align: bottom; }
.pii__raw, .pii__tok { grid-area: 1 / 1; transition: opacity .35s; }
.pii__raw { color: var(--fg); }
.pii__tok { align-self: center; justify-self: start; padding: 0 5px; border: 1px solid var(--accent); line-height: 1.5; color: var(--accent); opacity: 0; }
.js .ex .pii[data-seq] { opacity: 1; transform: none; }
.pii.is-in .pii__raw { opacity: 0; }
.pii.is-in .pii__tok { opacity: 1; }
.vdoc { margin: 0; border-top: 1px solid var(--rule-strong); }
.vdoc div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.vdoc dt { color: var(--dim); }
.vdoc dd { margin: 0; }
.vstamp { align-self: flex-start; margin: 0; padding: 8px 14px; border: 1.5px solid var(--accent); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); transform: rotate(-2.5deg); }
.js .ex .vstamp[data-seq]:not(.is-in) { opacity: 0; transform: rotate(-2.5deg) scale(1.3); }
.js .ex .vstamp[data-seq].is-in { transform: rotate(-2.5deg); }
.license__foot { margin-top: 36px; }

/* Wider brand moment in the footer, inside the narrower page */
.wrap.footer__stage { max-width: 1600px; }
.footer__word { font-size: min(9.4vw, 136px); }

/* Scroll motion: headings wipe up, rules draw */
.reveal-ready [data-reveal] { transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-ready [data-reveal] .h2, .reveal-ready [data-reveal] > h1 { clip-path: inset(0 0 100% 0); transform: translateY(26%); transition: clip-path 1.1s var(--ease) .12s, transform 1.1s var(--ease) .12s; }
.reveal-ready [data-reveal].is-in .h2, .reveal-ready [data-reveal].is-in > h1 { clip-path: inset(-20% -6% -30% -6%); transform: none; }
.reveal-ready .section-head .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.reveal-ready [data-reveal].is-in .eyebrow::before { transform: scaleX(1); }

@media (max-width: 1180px) {
  .engine__diagram { grid-template-columns: minmax(130px, .8fr) minmax(30px, .5fr) minmax(250px, 270px) minmax(30px, .5fr) minmax(150px, .9fr); }
  .vpipe { gap: 6px; }
  .vpipe li { padding: 10px 8px; }
}
@media (max-width: 980px) {
  .ex { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ex__side { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .ex__visual { min-height: 460px; }
}
@media (max-width: 860px) {
  .engine__diagram { grid-template-rows: none; }
  .console { justify-self: center; width: min(100%, 360px); margin-block: 34px; }
}
@media (max-width: 760px) {
  .vmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vmap li:nth-child(2)::after { display: none; }
  .vmap li { min-height: 0; }
  .vpipe { grid-template-columns: minmax(0, 1fr); }
  .vpipe li { min-height: 0; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; }
  .vpipe li .tag { align-self: center; }
  .vscope { grid-template-columns: minmax(0, 1fr); }
  .vport { grid-template-columns: 86px repeat(4, minmax(0, 1fr)); gap: 6px; }
  .vport b { letter-spacing: .06em; }
  .wf__step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; }
  .wf__step .tag { grid-column: 2; justify-self: start; }
  .wf__step:not(:last-child)::after { left: 24px; }
  .wf-meta { grid-template-columns: minmax(0, 1fr); }
  .slab { flex-direction: column; gap: 4px; }
  .slab:nth-child(n) { margin-left: 0; }
  .slab span { text-align: left; }
  .rec { padding: 14px; font-size: 11.5px; }
  .vdoc div { grid-template-columns: 112px minmax(0, 1fr); }
  .ex__visual { min-height: 0; }
  .ex__panel { padding: 20px 16px 24px; }
  .footer__word { font-size: 10.4vw; }
  .card__art { width: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] .h2, .reveal-ready [data-reveal] > h1 { clip-path: none; transform: none; }
  .wf__t small::before, .vtrack i, .rec__beam, .vport__mon .live { animation: none; }
  .rec__beam { display: none; }
}

/* ---------------------------------------------------- V6.1 review fixes */
/* Ring core breathes as one hexagon (synchronized), never a pinwheel */
.motion-ready .ring .rc-p { animation-delay: 0s; }
/* Cards: art sits in its own top-right zone; text never runs under it */
.card { min-height: 470px; }
.card__art { width: min(46%, 290px); top: clamp(26px, 2.8vw, 40px); }
.card__kicker { max-width: 46%; }
.card h3 { padding-top: 0; margin-top: auto; }
.card__idx, .card__kicker { position: relative; z-index: 1; }
.card__art .ln { stroke-width: 2.6; }
/* Step-type tags: four clearly different treatments */
.tag--ai { color: #0C1111; border-color: #8EA7B0; background: #8EA7B0; }
.tag--human { color: #0C1111; border-color: #F3F0EA; background: #F3F0EA; }
.tag--rules { color: #ECE9E2; border-color: rgba(236, 233, 226, .7); background: transparent; }
.tag--system { color: #A3ABA8; border-color: rgba(236, 233, 226, .45); border-style: dashed; background: transparent; }
.theme-ivory .ex__visual--dark .tag--rules { color: #ECE9E2; }
.wf-legend li { font-size: 13.5px; color: var(--fg); }
.wf__step--ai { border-left: 3px solid #8EA7B0; }
.wf__step--system { border-style: dashed; }
/* Statement: headline keeps two lines; scan steps in one row */
.statement > .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.statement__lines p { font-size: clamp(34px, 3.7vw, 54px); }
.scan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scan-steps li { padding-top: 8px; border-top: 2px solid transparent; transition: color .3s, border-color .3s; }
.scan-steps li.is-on { color: var(--fg); border-top-color: var(--accent); }
/* Explorers: content centered in the visual, list grouped with its control */
.ex { min-height: 500px; }
.ex__side { justify-content: flex-start; }
.ex__panel { display: flex; flex-direction: column; justify-content: center; }
.vz { height: auto; gap: 16px; }
.vz__note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.vz__cap span:last-child { color: var(--muted); }
.slab span, .vdoc dt { color: var(--muted); }
.rec { color: #C2C8C5; }
.rec__beam { width: 1px; opacity: .75; box-shadow: 0 0 10px 3px rgba(142, 167, 176, .3); }
@media (max-width: 760px) {
  .card { min-height: 420px; }
  .card__art { width: 44%; }
  .scan-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Workflow: dim only the inactive text, keep step-type tags at full contrast */
.wf-live .wf__step { opacity: 1; }
.wf-live .wf__step .wf__t, .wf-live .wf__step .wf__n { opacity: .5; transition: opacity .3s; }
.wf-live .wf__step.is-done .wf__t, .wf-live .wf__step.is-done .wf__n { opacity: .85; }
.wf-live .wf__step.is-on .wf__t, .wf-live .wf__step.is-on .wf__n { opacity: 1; }
.tag--system { color: #C9CFCC; border-color: rgba(236, 233, 226, .7); border-width: 1.5px; }

/* Phone layout: diagram collapses to one column; card art moves into the flow above the label */
@media (max-width: 860px) {
  .engine__diagram { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .engine__wires { display: none; }
}
@media (max-width: 1180px) {
  .card { min-height: 0; }
  .card__art { position: relative; top: auto; right: auto; align-self: flex-end; width: min(72%, 260px); margin: 0 -4px 20px auto; }
  .card__kicker { max-width: none; }
  .card h3 { margin-top: 28px; }
}
