/* Data Bridge — site styles */

/* Fonts are served from this site. No third-party requests. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #08090a;
  --bg-raise: #0f1012;
  --card: #151618;
  --card-2: #1b1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --muted: #b0b3bb;
  --dim: #8d9099;
  --blue: #2f8fff;
  --blue-text: #7db9ff;
  --blue-soft: rgba(47, 143, 255, 0.14);
  --ph: #f2c94c;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 24px;
  --nav-h: 64px;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #000; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.038em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }

.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--blue-text); margin-bottom: 20px; }
.eyebrow__sep { width: 18px; height: 1px; background: var(--line-strong); }
.hero .eyebrow { color: var(--muted); }

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46em; }
.lede strong { color: var(--text); font-weight: 500; }
.body-lg { font-size: clamp(1.0625rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--muted); margin-top: 20px; max-width: 34em; }
.body { color: var(--muted); margin-top: 16px; max-width: 36em; }

.link { display: inline-flex; gap: 8px; margin-top: 24px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.2s; }
.link:hover { border-color: var(--text); }

.ph { display: inline; font-size: 0.86em; line-height: 1.4; color: var(--ph); border: 1px dashed rgba(242, 201, 76, 0.55); border-radius: 6px; padding: 1px 7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--text); color: #08090a; font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.2s var(--ease); }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { height: 36px; padding: 0 15px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */

.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(8, 9, 10, 0.72); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 16px; flex: none; }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__glow { position: absolute; inset: -30% 0 auto 0; height: 110%; background: radial-gradient(60% 50% at 78% 38%, rgba(47, 143, 255, 0.13), transparent 70%), radial-gradient(40% 40% at 12% 10%, rgba(255, 255, 255, 0.05), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; }
.hero h1 { max-width: 15.5em; }
.hero .lede { margin-top: 28px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 36px; }
.hero__note { font-size: 14.5px; color: var(--dim); max-width: 22em; line-height: 1.4; }

.span { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.span svg { display: block; width: 100%; height: auto; }
.span__labels { display: flex; justify-content: space-between; padding: 0 2.5%; margin-top: 4px; font-size: 13px; color: var(--muted); }
.span__labels span:last-child { color: var(--blue-text); }

.facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 4.4vw, 52px); border-top: 1px solid var(--line); }
.facts li { padding: 20px 28px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { color: var(--text); font-weight: 500; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.aside { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 4px 12px 12px 4px; background: var(--bg-raise); color: var(--muted); font-size: 15.5px; max-width: 760px; }

/* Stat */
.stat { position: relative; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%), var(--bg-raise); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(47, 143, 255, 0.7), transparent); }
.stat__label { font-size: 13px; font-weight: 500; color: var(--blue-text); }
.stat__figure { margin-top: 14px; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; white-space: nowrap; }
.stat__figure span { font-size: 0.42em; letter-spacing: -0.01em; font-weight: 400; color: var(--muted); margin: 0 0.15em; }
.stat__unit { margin-top: 10px; color: var(--muted); }
.stat__note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--dim); }

/* Tiles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tile { padding: 28px 26px 32px; background: var(--bg); transition: background 0.3s; }
.tile:hover { background: var(--bg-raise); }
.tile__n { display: block; font-family: var(--mono); font-size: 12px; color: var(--blue-text); margin-bottom: 44px; }
.tile h3 { margin-bottom: 10px; }
.tile p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.steps li { padding: 24px 22px 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #04101f; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps p { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Lists */
.list-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-raise); }
.list-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.125rem; }
.list-card li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--in { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.dot--out { border: 1.5px solid var(--dim); }

/* Labs */
.labs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 4.5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(70% 90% at 100% 0%, rgba(47, 143, 255, 0.1), transparent 70%), var(--bg-raise); }
.labs h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.labs__list li { padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.labs__list li:first-child { border-top: 0; padding-top: 0; }
.labs__list strong { color: var(--text); font-weight: 500; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__group + .faq__group { margin-top: 44px; }
.faq__group h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--blue-text); padding-bottom: 14px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 19px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 16.5px; line-height: 1.4; letter-spacing: -0.01em; transition: color 0.2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 7px; background: linear-gradient(var(--muted), var(--muted)) center / 100% 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 100% no-repeat; transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: #fff; }
details p { padding: 0 32px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Contact */
.contact { background: radial-gradient(50% 60% at 50% 100%, rgba(47, 143, 255, 0.09), transparent 70%); }
.contact .split { align-items: start; }
.form { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.opt { font-weight: 400; color: var(--dim); }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #0b0c0e; font-size: 16px; line-height: 1.3; transition: border-color 0.2s, box-shadow 0.2s; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; min-height: 84px; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[aria-invalid="true"] { border-color: #ff8a7a; }
.form .btn { margin-top: 6px; }
.form__status { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--muted); }
.form__status.is-error { color: #ffa093; }
.form__status.is-note { color: var(--ph); }

/* Who you will speak to */
.people { margin-top: 32px; max-width: 30em; }
.people__label { font-size: 13px; font-weight: 500; color: var(--blue-text); margin-bottom: 12px; }
.person { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); }
.person + .person { margin-top: 10px; }
.person__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.person__photo--mark { display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); }
.person__name { font-weight: 600; letter-spacing: -0.012em; }
.person__role { margin-top: 2px; font-size: 15px; color: var(--muted); }
.person__bio { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.person__bio a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: start; }
.footer__legal { font-size: 13.5px; color: var(--dim); max-width: 46em; }
.footer__meta { font-size: 13.5px; color: var(--dim); text-align: right; max-width: 22em; }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* =========================================================
   Process animation
   Stage progress arrives as --s1 … --s6 (each 0 → 1).
   Without JS the defaults below show the de-identified state.
   ========================================================= */

.pipeline { padding-top: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); }
.pipeline .section__head { margin-bottom: 0; }

.pipeline__track { position: relative; padding: 40px 0 72px; }
.pipeline__stage { display: grid; gap: clamp(16px, 2.6vh, 28px); }

.js .pipeline:not(.is-static) .pipeline__track { height: calc(100svh + 520vh); padding: 0; }
.js .pipeline:not(.is-static) .pipeline__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }

/* Captions */
.pipeline__captions { display: grid; min-height: 5.4em; align-items: end; }
.cap { grid-area: 1 / 1; max-width: 30em; font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.cap.is-active { opacity: 1; transform: none; }
.cap__k { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--blue-text); }

/* Canvas */
.canvas {
  --s1: 1; --s2: 1; --s3: 1; --s4: 0; --s5: 0; --s6: 0;
  position: relative; display: grid; align-items: center; justify-items: center;
  min-height: 440px; padding: 46px 30px 34px; border: 1px solid var(--line); border-radius: 20px;
  background:
    linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box,
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px;
  background-blend-mode: normal;
  overflow: hidden;
}
.canvas::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); pointer-events: none; }

.records, .deal { grid-area: 1 / 1; position: relative; width: 100%; }

/* "Your systems": everything inside this outline is still with the data owner.
   Through stage 4 it holds the whole canvas. In stage 5 it draws in around the dataset,
   so the buyers sit outside it. --zl/--zt/--zr/--zb are measured in main.js. */
.zone {
  position: absolute; pointer-events: none;
  left: calc(12px + var(--s5) * (var(--zl, 12px) - 12px));
  top: calc(18px + var(--s5) * (var(--zt, 18px) - 18px));
  right: calc(12px + var(--s5) * (var(--zr, 12px) - 12px));
  bottom: calc(12px + var(--s5) * (var(--zb, 12px) - 12px));
  border: 1px dashed rgba(255, 255, 255, 0.26); border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
}
.zone__label { position: absolute; top: -10px; left: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; background: var(--bg-raise); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; }
.zone__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }

/* Records */
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; }

.rec {
  --in: clamp(0, calc((var(--s1) - var(--d, 0)) * 3), 1);
  --k: clamp(0, calc((var(--s3) - var(--pd, 0)) * 3.5 - 0.3), 1);
  --hl: clamp(0, calc(var(--s3) * 8), 1);
  position: relative; min-width: 0; padding: 16px 18px 18px; border-radius: 13px;
  background: var(--card-2); border: 1px solid var(--line-strong);
  font-size: 14px; line-height: 1.55; color: var(--muted);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9);
  will-change: transform, opacity;
}
.rec p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.rec__type { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.rec__ok { font-size: 11.5px; font-weight: 500; color: var(--blue-text); white-space: nowrap; opacity: clamp(0, calc(var(--s2) * 3 - 0.9), 1); }
.rec__ok::before { content: "✓ "; }

.rec--keep {
  opacity: calc(var(--in) * (1 - clamp(0, calc(var(--s4) * 1.7 - 0.25), 1)));
  transform: translate(calc((1 - var(--in)) * -28px + var(--s4) * var(--cx, 0%)), calc(var(--s4) * var(--cy, 0%))) scale(calc(1 - var(--s4) * 0.45));
}
.rec--drop {
  --flag: clamp(0, calc(var(--s2) * 3 - 0.9), 1);
  --out: clamp(0, calc(var(--s2) * 2.4 - 1.4), 1);
  opacity: calc(var(--in) * (1 - var(--out)));
  transform: translate(calc((1 - var(--in)) * -28px), calc(var(--out) * 64px)) rotate(calc(var(--out) * 3deg));
}
.rec--drop::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.45); background: rgba(8, 9, 10, 0.55); opacity: var(--flag); }
.rec__flag { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 999px; background: var(--text); color: #08090a; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: var(--flag); }

/* children: 1 = scan, 2–5 = kept records, 6–7 = records that are filtered out */
.records { --shift: clamp(0, calc(var(--s2) * 2.4 - 1.4), 1); transform: translateX(calc(var(--shift) * (16.667% + 2px))); }
.records > :nth-child(2) { --d: 0;    --pd: 0;    --cx: 52%;  --cy: 55%;  grid-area: 1 / 1; }
.records > :nth-child(3) { --d: 0.1;  --pd: 0.12; --cx: -52%; --cy: 55%;  grid-area: 1 / 2; }
.records > :nth-child(4) { --d: 0.2;  --pd: 0.24; --cx: 52%;  --cy: -55%; grid-area: 2 / 1; }
.records > :nth-child(5) { --d: 0.3;  --pd: 0.36; --cx: -52%; --cy: -55%; grid-area: 2 / 2; }
.records > :nth-child(6) { --d: 0.4;  grid-area: 1 / 3; }
.records > :nth-child(7) { --d: 0.5;  grid-area: 2 / 3; }

.scan { position: absolute; z-index: 2; top: -14px; bottom: -14px; left: calc(var(--s2) * 112% - 6%); width: 1px; background: linear-gradient(transparent, var(--blue), transparent); box-shadow: 0 0 22px 3px rgba(47, 143, 255, 0.45); opacity: clamp(0, calc(min(var(--s2), calc(1 - var(--s2))) * 7), 1); }

/* Identifiers → tokens */
.pii { display: inline-grid; vertical-align: bottom; padding: 0 4px; margin: 0 -1px; border-radius: 4px; background: rgb(47 143 255 / calc(var(--hl) * 0.17)); }
.pii > * { grid-area: 1 / 1; white-space: nowrap; }
.rec p > .pii:first-child { margin-left: -4px; }
.raw { color: var(--text); opacity: calc(1 - var(--k)); }
.tok { font-family: var(--mono); font-size: 0.9em; font-weight: 500; color: var(--blue-text); opacity: var(--k); }

/* Small glyphs */
.ico { display: inline-block; width: 11px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; opacity: 0.75; flex: none; }
.ico--doc { width: 9px; height: 11px; }
.ico--ticket { border-radius: 5px; }
.ico--chat { border-radius: 5px 5px 5px 1px; }
.ico--box { width: 11px; height: 11px; border-radius: 3px; }

/* Deal layer */
.deal { --pkg-dx: calc(50% + 68px); --pkg-dy: 0px; display: grid; grid-template-columns: 1fr 136px 1fr; align-items: center; max-width: 980px; }

.pkg {
  --pin: clamp(0, calc(var(--s4) * 2.5 - 1), 1);
  padding: 20px 22px 22px; border-radius: 15px; background: var(--card-2); border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgb(47 143 255 / calc(var(--s6) * 0.5)), 0 24px 60px -30px rgb(47 143 255 / calc(0.15 + var(--s6) * 0.4));
  opacity: var(--pin);
  transform: translate(calc((1 - var(--s5)) * var(--pkg-dx)), calc((1 - var(--s5)) * var(--pkg-dy))) scale(calc(0.94 + var(--pin) * 0.06));
  will-change: transform, opacity;
}
.pkg__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pkg__title { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; }
.pkg__status { display: inline-grid; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); }
.pkg__status > * { grid-area: 1 / 1; text-align: center; }
.pkg__s1 { color: var(--muted); opacity: calc(1 - clamp(0, calc(var(--s6) * 5 - 3.8), 1)); }
.pkg__s2 { color: var(--blue-text); opacity: clamp(0, calc(var(--s6) * 5 - 3.8), 1); }
.pkg__label { margin: 12px 0 6px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.pkg__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); opacity: clamp(0, calc((var(--s4) - var(--md)) * 6), 1); }
.pkg__rows b { font-weight: 500; color: var(--text); }
.pkg__rows li:nth-child(1) { --md: 0.5; }
.pkg__rows li:nth-child(2) { --md: 0.6; }
.pkg__rows li:nth-child(3) { --md: 0.7; }
.pkg__rows li:nth-child(4) { --md: 0.8; }
.pkg__prov { display: grid; gap: 6px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); opacity: clamp(0, calc(var(--s4) * 6 - 5), 1); }
.pkg__prov i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.pkg__prov i:nth-child(2) { width: 72%; }
.pkg__prov i:nth-child(3) { width: 46%; }

.channel { position: relative; height: 1px; opacity: clamp(0, calc(var(--s6) * 6), 1); }
.channel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.channel__line { position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--s6)); transform-origin: left center; }
.channel__packet { position: absolute; left: calc(var(--s6) * 100%); top: 50%; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--blue); color: #04101f; box-shadow: 0 0 20px 2px rgba(47, 143, 255, 0.55); opacity: clamp(0, calc(min(var(--s6), calc(1 - var(--s6))) * 9), 1); }

.buyers { position: relative; display: grid; gap: 10px; }
.buyers::before { content: "Buyers"; position: absolute; left: 2px; top: -28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--dim); opacity: clamp(0, calc(var(--s5) * 3), 1); }
.buyers li {
  --bin: clamp(0, calc(var(--s5) * 3.4 - var(--bd, 0)), 1);
  display: grid; grid-template-columns: 66px 1fr 72px; align-items: center; gap: 12px;
  padding: 12px 15px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  font-size: 14px; color: var(--muted);
  opacity: calc(var(--bin) * (1 - var(--s6) * 0.62));
  transform: translateX(calc((1 - var(--bin)) * 18px));
}
.buyers li:nth-child(2) { --bd: 0.2; }
.buyers li:nth-child(3) { --bd: 0.4; }
.buyers li:nth-child(4) { --bd: 0.6; }
.buyers li:nth-child(5) { --bd: 0.8; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(clamp(0, calc(var(--s5) * 1.5 - 0.2), 1) * var(--bid) * 100%); border-radius: 3px; background: rgba(255, 255, 255, 0.5); }
.buyers em { grid-area: 1 / 3; font-style: normal; font-size: 11.5px; font-weight: 600; text-align: right; white-space: nowrap; }

.buyers .is-winner {
  --win: clamp(0, calc(var(--s5) * 5 - 3.6), 1);
  --got: clamp(0, calc(var(--s6) * 5 - 3.8), 1);
  opacity: var(--bin); color: var(--text);
  border-color: rgb(47 143 255 / calc(0.08 + var(--win) * 0.6));
  background: rgb(47 143 255 / calc(var(--win) * 0.1));
}
.buyers .is-winner .bar i { background: color-mix(in srgb, var(--blue) calc(var(--win) * 100%), rgba(255, 255, 255, 0.5)); }
.buyers__best { color: var(--blue-text); opacity: calc(var(--win) * (1 - var(--got))); }
.buyers__got { color: var(--blue-text); opacity: var(--got); }
.buyers__got::before { content: "✓ "; }

/* Rail */
.rail { --p: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.rail::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: calc(var(--p) * 100%); background: var(--blue); }
.rail button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 8px 4px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--dim); font-size: 13px; transition: color 0.25s; }
.rail button span { font-family: var(--mono); font-size: 11px; }
.rail button b { font-weight: 500; }
.rail button:hover { color: var(--muted); }
.rail button.is-active { color: var(--text); }
.rail button.is-active span { color: var(--blue-text); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile__n { margin-bottom: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }
  .split, .split--even, .labs { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
  .span__labels { padding: 0; }
  .eyebrow__sep { display: none; }
  .hero .eyebrow { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 720px) {
  .pipeline__captions { min-height: 6.6em; }
  .canvas { min-height: 430px; padding: 40px 18px 22px; border-radius: 16px; }
  .zone { left: calc(8px + var(--s5) * (var(--zl, 8px) - 8px)); right: calc(8px + var(--s5) * (var(--zr, 8px) - 8px)); }
  .zone__label { left: 12px; font-size: 10.5px; }
  .buyers::before { display: none; }
  .records { grid-template-columns: 1fr 1fr; gap: 9px; }
  .rec { padding: 10px 10px 11px; font-size: 11px; border-radius: 10px; }
  .rec__type { font-size: 11px; gap: 5px; }
  .rec__ok { font-size: 0; }
  .rec__ok::before { content: "✓"; font-size: 11px; }
  .rec__head { margin-bottom: 6px; }
  .rec__flag { font-size: 10px; padding: 3px 8px; }

  .records { transform: translateY(calc(var(--shift) * 17%)); }
  .records > :nth-child(2) { --cy: 20%; }
  .records > :nth-child(3) { --cy: 20%; }
  .records > :nth-child(4) { --cy: -85%; }
  .records > :nth-child(5) { --cy: -85%; }
  .records > :nth-child(6) { grid-area: 3 / 1; }
  .records > :nth-child(7) { grid-area: 3 / 2; }

  .deal { --pkg-dx: 0px; --pkg-dy: 84px; grid-template-columns: 1fr; grid-template-rows: auto 30px auto; }
  .pkg { padding: 12px 14px 14px; }
  .pkg__head { margin-bottom: 6px; }
  .pkg__label { margin: 8px 0 4px; }
  .pkg__rows li { padding: 4px 0; font-size: 12px; }
  .pkg__prov { padding: 8px; gap: 5px; }
  .pkg__prov i { height: 4px; }
  .channel { justify-self: center; width: 1px; height: 100%; }
  .channel::before { background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
  .channel__line { transform: scaleY(var(--s6)); transform-origin: center top; }
  .channel__packet { left: 50%; top: calc(var(--s6) * 100%); width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .buyers { gap: 5px; }
  .buyers li { padding: 6px 10px; font-size: 12px; grid-template-columns: 56px 1fr 62px; gap: 8px; }
  .buyers em { font-size: 10.5px; }
  .pkg__title { font-size: 14px; }

  .rail button { padding-top: 10px; }
  .rail button b { display: none; }
  .rail button span { font-size: 12px; }
}

@media (max-width: 720px) and (max-height: 720px) {
  .canvas { zoom: 0.86; }
  .pipeline__captions { min-height: 5.6em; }
  .cap { font-size: 1.05rem; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .tile__n { margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .nav .btn--small { padding: 0 13px; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .span__dots { display: none; }
}
