/* Renvail. Brand colours: Copper #B77B50, Mineral #DACDBF, White #FAF9F6, Graphite #282725.
   Every other tone below is a shade or tint of these four. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --copper: #B77B50;
  --copper-hi: #D9A47C;
  --copper-ink: #8A5733;
  --mineral: #DACDBF;
  --white: #FAF9F6;
  --graphite: #282725;
  --ink: #0C0B0A;
  --ink-0: #080807;
  --ink-1: #121110;
  --ink-2: #171614;
  --ink-3: #1F1E1B;
  --paper: #EFEBE5;
  --text-2: rgba(250, 249, 246, .64);
  --text-3: rgba(250, 249, 246, .5);
  --line: rgba(250, 249, 246, .08);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 52px;
  --vh: 1svh;
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--copper-ink); }

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

.skip {
  position: fixed; left: 16px; top: 10px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

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

/* Type */
.eyebrow {
  font-size: clamp(1.0625rem, 1.25vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--copper-hi);
  margin-bottom: 18px;
}
.light .eyebrow { color: var(--copper-ink); }
.display {
  font-size: clamp(2.75rem, 6.4vw, 6.75rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: .96;
  text-wrap: balance;
}
.display--m { font-size: clamp(2.5rem, 4.8vw, 5rem); }

/* Buttons: one solid pill, the secondary action is a text link with a chevron */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn--sm { height: 32px; padding: 0 15px; font-size: 13.5px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--white); color: var(--ink); }
.btn--primary:hover { background: var(--mineral); }
.btn--text { height: auto; padding: 0; color: var(--copper-hi); }
.btn--text::after { content: "\203A"; margin-left: .32em; font-size: 1.25em; line-height: 0; transform: translateY(-.04em); transition: transform .25s var(--ease); }
.btn--text:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn--text:hover::after { transform: translate(2px, -.04em); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  background: rgba(12, 11, 10, .72);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  backdrop-filter: saturate(170%) blur(22px);
  border-bottom: 1px solid rgba(250, 249, 246, .07);
}
.nav__inner {
  height: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 36px;
}
.nav__logo { display: block; color: var(--white); border-radius: 4px; }
.nav__logo svg { width: 102px; height: 21px; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { font-size: 14px; color: rgba(250, 249, 246, .74); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__toggle { display: none; }
.nav__menu { display: none; }

/* 1 Hero stage */
.stage { position: relative; background: var(--ink); }
.stage__pin {
  --ww: min(1180px, 86vw, calc((var(--vh) * 100 - 300px) * 1.6));
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(var(--vh) * 100); min-height: 640px;
  display: grid; place-items: center;
}
.stage__glow {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 34% at 50% 50%, rgba(183, 123, 80, .17), rgba(183, 123, 80, .05) 50%, transparent 72%),
    radial-gradient(70% 60% at 50% 110%, rgba(218, 205, 191, .06), transparent 70%);
  opacity: .7;
}
.stage__product { display: none; }
.stage__gl { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage__gl canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.stage__gl canvas.is-ready { opacity: 1; }
html:not(.gl) .stage__gl { display: none; }

.stage__copy {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
}
.stage__still { width: clamp(128px, 15vw, 210px); height: auto; margin-bottom: clamp(28px, calc(var(--vh) * 5), 56px); }
html.gl .stage__still { display: none; }

.hero__title {
  font-size: clamp(3.25rem, 8.1vw, 8.75rem);
  font-weight: 600; letter-spacing: -0.056em; line-height: .92;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .ln > span { display: block; }
.hero__sub {
  max-width: 34ch; margin-top: clamp(24px, calc(var(--vh) * 3.4), 36px);
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.38; letter-spacing: -0.018em;
  color: var(--text-2);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 32px; margin-top: clamp(32px, calc(var(--vh) * 4.6), 48px); }

.stage__line, .stage__note { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.still) .hero__title .ln > span { animation: rise 1.3s var(--ease) both; }
  html.js:not(.still) .hero__title .ln + .ln > span { animation-delay: .09s; }
  html.js:not(.still) .hero__sub { animation: fadeup 1.2s var(--ease) .35s both; }
  html.js:not(.still) .hero__cta { animation: fadeup 1.2s var(--ease) .5s both; }
}
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Pinned hero with product reveal (desktop, JavaScript, motion allowed) */
html.pin .stage__product {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 1;
  width: var(--ww);
  transform: translate(-50%, -50%) scale(.18); opacity: 0;
  will-change: transform, opacity; pointer-events: none;
}
html.pin .stage__line {
  display: block; position: absolute; left: 0; right: 0; z-index: 3;
  top: calc((var(--nav-h) + var(--vh) * 50 - var(--ww) / 3.2) / 2);
  transform: translateY(-50%);
  text-align: center; opacity: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em;
}
html.pin .stage__note {
  display: block; position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
  text-align: center; font-size: 13px; color: var(--text-3); opacity: 0;
}

/* 3 Statement */
.statement { background: var(--ink); }
.statement__pin {
  min-height: calc(var(--vh) * 100);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(120px, calc(var(--vh) * 18), 200px);
}
.statement__text {
  max-width: 15ch;
  font-size: clamp(2.75rem, 7vw, 7.5rem);
  font-weight: 600; letter-spacing: -0.054em; line-height: .98;
}
.statement__text .w { display: inline; }
.statement__sub {
  max-width: 31ch; margin-top: clamp(36px, calc(var(--vh) * 6), 64px);
  font-size: clamp(1.25rem, 2.05vw, 2rem); line-height: 1.3; letter-spacing: -0.024em;
  color: var(--text-2);
}

/* 4 Product */
.product { background: var(--ink); padding-top: clamp(80px, calc(var(--vh) * 12), 160px); padding-bottom: clamp(100px, calc(var(--vh) * 14), 180px); }
.product__head { text-align: center; }
.product__head .display { max-width: 15ch; margin-inline: auto; }
.product__pin { position: relative; margin-top: clamp(56px, calc(var(--vh) * 8), 96px); }
.product__track { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, calc(var(--vh) * 4), 48px); }
.beats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.beat__bar { display: block; height: 2px; border-radius: 2px; background: rgba(250, 249, 246, .14); overflow: hidden; }
.beat__bar i { display: block; height: 100%; background: var(--copper); transform-origin: left center; transform: scaleX(var(--b, 1)); }
.beat > h3 { margin-top: 16px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; letter-spacing: -0.025em; }
.beat > p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.product__stage { display: flex; flex-direction: column; align-items: center; }
.product__stage .appframe { width: min(100%, 1240px); }
.preview-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

html.pin .product__pin { height: calc(var(--vh) * 100); margin-top: 0; overflow: clip; }
html.pin .product__track { height: 100%; justify-content: center; padding-top: var(--nav-h); gap: clamp(20px, calc(var(--vh) * 3.2), 36px); will-change: transform; }
html.pin .product__stage { align-self: stretch; }
html.pin .product__stage .preview-note { align-self: flex-end; margin-right: max(0px, calc((100% - min(100%, 1240px, calc((var(--vh) * 100 - 290px) * 1.6))) / 2)); }
html.pin .product__stage .appframe { width: min(100%, 1240px, calc((var(--vh) * 100 - 290px) * 1.6)); }
html.pin .beat { opacity: .38; transition: opacity .5s var(--ease); }
html.pin .beat.is-on, html.pin .beat.is-done { opacity: 1; }
html.pin .beat.is-done { opacity: .62; }
html.pin .beat.is-on { opacity: 1; }

/* App window: the product as an enterprise BI workspace. All sizes in --u, 1/1280 of the window width. */
.appframe { container-type: inline-size; position: relative; width: 100%; }
.app {
  --u: calc(100cqw / 1280);
  --a-0: #0E0D0C; --a-1: #121110; --a-2: #161513; --a-3: #1C1B18;
  --a-line: rgba(250, 249, 246, .075); --a-line-2: rgba(250, 249, 246, .12);
  --a-t2: rgba(250, 249, 246, .62); --a-t3: rgba(250, 249, 246, .42);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  position: relative; width: 100%; aspect-ratio: 1280 / 800;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--u) * 14);
  background: var(--a-0);
  box-shadow: 0 0 0 1px rgba(250, 249, 246, .1), 0 calc(var(--u) * 50) calc(var(--u) * 140) rgba(0, 0, 0, .65), 0 0 calc(var(--u) * 220) rgba(183, 123, 80, .08);
  color: var(--white);
  font-size: calc(var(--u) * 12); line-height: 1.35; letter-spacing: -0.006em;
  text-align: left; font-variant-numeric: tabular-nums;
}
.app::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(250, 249, 246, .07); }
.app b { font-weight: 500; }
.g { width: calc(var(--u) * 15); height: calc(var(--u) * 15); flex: none; color: rgba(250, 249, 246, .6); }
.a-id { font-family: var(--mono); font-size: calc(var(--u) * 9); letter-spacing: .02em; color: var(--a-t3); }

/* Top bar */
.a-top { flex: none; height: calc(var(--u) * 44); display: flex; align-items: center; gap: calc(var(--u) * 14); padding: 0 calc(var(--u) * 16); background: var(--a-1); box-shadow: inset 0 -1px 0 var(--a-line); }
.a-dots { display: flex; gap: calc(var(--u) * 7); }
.a-dots i { width: calc(var(--u) * 10); height: calc(var(--u) * 10); border-radius: 50%; background: rgba(250, 249, 246, .13); }
.a-brand { display: flex; align-items: center; gap: calc(var(--u) * 8); margin-left: calc(var(--u) * 8); font-size: calc(var(--u) * 13); }
.a-brand svg { width: calc(var(--u) * 17); height: calc(var(--u) * 16); }
.a-brand b { font-weight: 600; letter-spacing: -0.02em; }
.a-vr { width: 1px; height: calc(var(--u) * 18); background: var(--a-line-2); }
.a-ws { display: flex; align-items: center; gap: calc(var(--u) * 7); font-size: calc(var(--u) * 12); color: var(--a-t2); }
.a-ws__ini { display: grid; place-items: center; width: calc(var(--u) * 18); height: calc(var(--u) * 18); border-radius: calc(var(--u) * 4); background: var(--mineral); color: var(--ink); font-size: calc(var(--u) * 8.5); font-weight: 700; }
.a-ws .g { width: calc(var(--u) * 12); height: calc(var(--u) * 12); }
.a-crumb { display: flex; gap: calc(var(--u) * 7); font-size: calc(var(--u) * 12); color: var(--a-t3); white-space: nowrap; }
.a-crumb i { font-style: normal; opacity: .6; }
.a-crumb b { color: var(--white); }
.a-search { flex: 1; max-width: calc(var(--u) * 330); margin-left: auto; display: flex; align-items: center; gap: calc(var(--u) * 8); height: calc(var(--u) * 28); padding: 0 calc(var(--u) * 10); border-radius: calc(var(--u) * 6); background: rgba(250, 249, 246, .04); box-shadow: inset 0 0 0 1px var(--a-line); font-size: calc(var(--u) * 11.5); color: var(--a-t3); white-space: nowrap; }
.a-search .g { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }
.a-search span { flex: 1; overflow: hidden; }
kbd { font-family: var(--mono); font-size: calc(var(--u) * 9.5); color: var(--a-t3); padding: calc(var(--u) * 1) calc(var(--u) * 5); border-radius: calc(var(--u) * 4); box-shadow: inset 0 0 0 1px var(--a-line-2); }
.a-env { font-family: var(--mono); font-size: calc(var(--u) * 9); letter-spacing: .04em; text-transform: uppercase; color: var(--copper-hi); padding: calc(var(--u) * 3) calc(var(--u) * 7); border-radius: calc(var(--u) * 4); box-shadow: inset 0 0 0 1px rgba(183, 123, 80, .45); white-space: nowrap; }
.a-ico .g { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.a-av { display: grid; place-items: center; width: calc(var(--u) * 24); height: calc(var(--u) * 24); border-radius: 50%; background: var(--mineral); color: var(--ink); font-size: calc(var(--u) * 9); font-weight: 700; }

/* Body grid */
.a-body { flex: 1; min-height: 0; display: grid; grid-template-columns: calc(var(--u) * 52) calc(var(--u) * 184) minmax(0, 1fr) calc(var(--u) * 292); }
.a-rail { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 4); padding: calc(var(--u) * 10) 0; background: var(--a-1); box-shadow: inset -1px 0 0 var(--a-line); }
.ri { position: relative; display: grid; place-items: center; width: calc(var(--u) * 34); height: calc(var(--u) * 34); border-radius: calc(var(--u) * 7); transition: background-color .4s var(--ease); }
.ri .g { width: calc(var(--u) * 17); height: calc(var(--u) * 17); color: var(--a-t3); transition: color .4s var(--ease); }
.ri::before { content: ""; position: absolute; left: calc(var(--u) * -9); top: calc(var(--u) * 9); bottom: calc(var(--u) * 9); width: calc(var(--u) * 2); border-radius: 2px; background: var(--copper); opacity: 0; transition: opacity .4s var(--ease); }
.ri--end { margin-top: auto; }
.a-nav { display: flex; flex-direction: column; padding: calc(var(--u) * 12) calc(var(--u) * 10); background: var(--a-1); box-shadow: inset -1px 0 0 var(--a-line); }
.a-nav__h { margin: calc(var(--u) * 14) calc(var(--u) * 8) calc(var(--u) * 6); font-family: var(--mono); font-size: calc(var(--u) * 8.5); letter-spacing: .08em; text-transform: uppercase; color: var(--a-t3); }
.a-nav__h:first-child { margin-top: calc(var(--u) * 4); }
.a-nav__list li { display: flex; align-items: center; gap: calc(var(--u) * 8); height: calc(var(--u) * 27); padding: 0 calc(var(--u) * 8); border-radius: calc(var(--u) * 5); font-size: calc(var(--u) * 11.5); color: var(--a-t2); white-space: nowrap; }
.a-nav__list .a-id { width: calc(var(--u) * 42); flex: none; }
.a-nav__list li.on { background: rgba(250, 249, 246, .06); color: var(--white); }
.a-nav__list li.on .a-id { color: var(--copper-hi); }
.a-nav__list .g { width: calc(var(--u) * 13); height: calc(var(--u) * 13); color: var(--a-t3); }
.a-nav__list em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-nav__foot { margin-top: auto; display: flex; align-items: center; gap: calc(var(--u) * 7); padding: 0 calc(var(--u) * 8); font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-sync { display: inline-block; width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: #8FB59A; box-shadow: 0 0 0 calc(var(--u) * 2.5) rgba(143, 181, 154, .16); }

/* Main column */
.a-main { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--a-0); }
.a-head { flex: none; height: calc(var(--u) * 52); display: flex; align-items: stretch; gap: calc(var(--u) * 26); padding: 0 calc(var(--u) * 20); box-shadow: inset 0 -1px 0 var(--a-line); }
.a-title { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 2); }
.a-title b { font-size: calc(var(--u) * 14.5); font-weight: 600; letter-spacing: -0.02em; }
.a-title span { font-family: var(--mono); font-size: calc(var(--u) * 8.5); color: var(--a-t3); white-space: nowrap; }
.a-tabs { display: flex; gap: calc(var(--u) * 18); }
.a-tabs span { position: relative; display: flex; align-items: center; font-size: calc(var(--u) * 11.5); color: var(--a-t3); transition: color .4s var(--ease); }
.a-tabs span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 2); background: var(--copper); transform: scaleX(0); transition: transform .5s var(--ease); }
.a-tools { margin-left: auto; display: flex; align-items: center; gap: calc(var(--u) * 6); }
.a-chip { padding: calc(var(--u) * 4) calc(var(--u) * 9); border-radius: calc(var(--u) * 5); box-shadow: inset 0 0 0 1px var(--a-line-2); font-size: calc(var(--u) * 10.5); color: var(--a-t2); white-space: nowrap; }

.a-kpis { flex: none; position: relative; height: calc(var(--u) * 62); box-shadow: inset 0 -1px 0 var(--a-line); }
.a-kset { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); transition: opacity .5s var(--ease); }
.a-kset > div { position: relative; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 3); padding: 0 calc(var(--u) * 20); box-shadow: inset -1px 0 0 var(--a-line); }
.a-kset > div:last-child { box-shadow: none; }
.a-kset span { font-size: calc(var(--u) * 10); color: var(--a-t3); white-space: nowrap; }
.a-kset b { font-size: calc(var(--u) * 19); font-weight: 600; letter-spacing: -0.03em; transition: opacity .5s var(--ease); }
.a-kset .k-dev b { color: var(--copper-hi); }
.a-kset i { position: absolute; left: calc(var(--u) * 20); bottom: calc(var(--u) * 14); width: calc(var(--u) * 56); height: calc(var(--u) * 12); border-radius: calc(var(--u) * 3); background: rgba(250, 249, 246, .06); opacity: 0; transition: opacity .5s var(--ease); }

.a-canvas { position: relative; flex: 1; min-height: 0; overflow: hidden; background-image: radial-gradient(rgba(250, 249, 246, .045) 1px, transparent 1.2px); background-size: calc(var(--u) * 16) calc(var(--u) * 16); background-position: calc(var(--u) * 8) calc(var(--u) * 8); }
.a-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.a-svg text { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.005em; }
.a-status { flex: none; height: calc(var(--u) * 26); display: flex; align-items: center; gap: calc(var(--u) * 18); padding: 0 calc(var(--u) * 20); box-shadow: inset 0 1px 0 var(--a-line); font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-status span { display: flex; align-items: center; gap: calc(var(--u) * 7); }
.a-status__r { margin-left: auto; }

/* Map */
.m { transition: opacity .6s var(--ease), transform .8s var(--ease); transform-origin: 50% 40%; }
.m-chip rect { fill: var(--a-2); stroke: var(--a-line-2); stroke-width: 1; }
.m-chip use { color: var(--mineral); }
.m-chip .t { font-size: 10.5px; font-weight: 500; fill: var(--white); }
.m-chip .s, .m-st .s, .m-st .tg, .m-box .id, .m-box .ct, .el, .m-gap .lab, .m-gap .s, .m-exc text { font-family: "Geist Mono", ui-monospace, monospace !important; }
.m-chip .s { font-size: 7.5px; letter-spacing: .03em; fill: rgba(250, 249, 246, .45); }
.m-chip .ok { fill: #8FB59A; }
.m-sync { fill: none; stroke: var(--copper); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.m-bus path { fill: none; stroke: rgba(218, 205, 191, .28); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-bus circle { fill: var(--a-0); stroke: rgba(218, 205, 191, .5); stroke-width: 1; }
.m-bus-hot { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-box rect { fill: rgba(250, 249, 246, .018); stroke: var(--a-line-2); stroke-width: 1; }
.m-box path { stroke: var(--a-line); stroke-width: 1; }
.m-box .id { font-size: 8.5px; fill: var(--copper-hi); letter-spacing: .02em; }
.m-box .nm { font-size: 10.5px; font-weight: 600; fill: var(--white); }
.m-box .ct { font-size: 8.5px; fill: rgba(250, 249, 246, .42); text-anchor: end; }
.m-st rect:first-child { fill: var(--a-2); stroke: rgba(250, 249, 246, .14); stroke-width: 1; transition: stroke .5s var(--ease), fill .5s var(--ease); }
.m-st .ac { fill: rgba(218, 205, 191, .55); transition: fill .5s var(--ease); }
.m-st .t { font-size: 10.5px; font-weight: 500; fill: var(--white); }
.m-st .s { font-size: 7.5px; fill: rgba(250, 249, 246, .45); }
.m-st .tg { font-size: 7px; fill: rgba(218, 205, 191, .6); text-anchor: end; letter-spacing: .03em; transition: opacity .5s var(--ease); }
.m-e path:first-child { fill: none; stroke: rgba(250, 249, 246, .34); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-e .ah { fill: none; stroke: rgba(250, 249, 246, .45); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.m-e--x path:first-child { stroke: rgba(218, 205, 191, .5); stroke-width: 1.6; }
.m-e--rule path:first-child { stroke: rgba(250, 249, 246, .55); stroke-dasharray: .06 .05; }
.m-e--dev path:first-child { stroke: rgba(218, 205, 191, .5); stroke-width: 1.6; transition: stroke .6s var(--ease), stroke-width .6s var(--ease), stroke-dashoffset 1s var(--ease) calc(var(--i, 0) * 70ms) !important; }
.el { font-size: 7.5px; fill: rgba(250, 249, 246, .6); text-anchor: middle; paint-order: stroke; stroke: var(--a-0); stroke-width: 3px; stroke-linejoin: round; }
.el--l { text-anchor: start; }
.m-gl path { fill: none; stroke: rgba(250, 249, 246, .45); stroke-width: 1; stroke-dasharray: 3 3; }
.m-gap rect { fill: rgba(250, 249, 246, .02); stroke: rgba(250, 249, 246, .55); stroke-width: 1; stroke-dasharray: 4 3; }
.m-gap .lab { font-size: 7.5px; letter-spacing: .08em; fill: rgba(250, 249, 246, .55); }
.m-gap .t { font-size: 10.5px; font-weight: 500; fill: var(--white); }
.m-gap .s { font-size: 7.5px; fill: rgba(250, 249, 246, .5); letter-spacing: .02em; }
.m-exc rect { fill: #24221E; stroke: rgba(218, 205, 191, .45); stroke-width: 1; }
.m-exc text { font-size: 6.5px; letter-spacing: .06em; fill: var(--mineral); text-anchor: middle; }
.m-dev .ring { fill: rgba(183, 123, 80, .14); stroke: rgba(183, 123, 80, .6); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.m-dev .dot { fill: var(--copper); }
.m-dev .el--dev { fill: var(--copper-hi); stroke: none; font-size: 7.5px; text-anchor: middle; }
.m-pv rect { fill: none; stroke: var(--copper); stroke-width: 1.4; }

/* Lower canvas panels */
.a-low { position: absolute; left: calc(var(--u) * 20); top: calc(var(--u) * 404); width: calc(var(--u) * 712); height: calc(var(--u) * 196); padding: calc(var(--u) * 12) calc(var(--u) * 14); border-radius: calc(var(--u) * 6); background: var(--a-1); box-shadow: inset 0 0 0 1px var(--a-line-2); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.a-low__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(var(--u) * 8); }
.a-low__h b { font-size: calc(var(--u) * 12); font-weight: 600; }
.a-low__h span { font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-live { display: flex; align-items: center; gap: calc(var(--u) * 6); color: #A9C9B2 !important; }
.a-live::before { content: ""; width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: #8FB59A; }
.a-tr { display: grid; grid-template-columns: calc(var(--u) * 64) calc(var(--u) * 76) minmax(0, 1fr) calc(var(--u) * 120); align-items: center; height: calc(var(--u) * 26); padding: 0 calc(var(--u) * 6); box-shadow: inset 0 -1px 0 var(--a-line); font-size: calc(var(--u) * 10.5); color: var(--a-t2); transition: opacity .5s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms); }
.a-tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-tr span:first-child { font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-tr span:nth-child(3) { color: var(--white); }
.a-tr span:last-child { position: relative; font-family: var(--mono); font-size: calc(var(--u) * 9); }
.a-th { height: calc(var(--u) * 22); font-family: var(--mono); }
.a-th span, .a-th span:nth-child(3) { font-size: calc(var(--u) * 8.5) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--a-t3) !important; }
.a-tr em { font-style: normal; transition: opacity .45s var(--ease) calc(var(--i, 0) * 90ms); }
.a-tr .c1 { color: var(--a-t2); }
.a-tr .c2 { position: absolute; left: 0; color: var(--copper-hi); opacity: 0; }

.a-vrow { display: grid; grid-template-columns: calc(var(--u) * 26) minmax(0, 1fr) calc(var(--u) * 70) calc(var(--u) * 130) calc(var(--u) * 38) calc(var(--u) * 46); align-items: center; gap: calc(var(--u) * 10); height: calc(var(--u) * 46); padding: 0 calc(var(--u) * 6); box-shadow: inset 0 -1px 0 var(--a-line); font-size: calc(var(--u) * 10.5); transition: opacity .5s var(--ease) calc(var(--i, 0) * 90ms), transform .7s var(--ease) calc(var(--i, 0) * 90ms); }
.a-vrow:last-child { box-shadow: none; }
.a-vid, .a-num, .a-pct { font-family: var(--mono); font-size: calc(var(--u) * 9.5); color: var(--a-t3); }
.a-num, .a-pct { text-align: right; }
.a-pct { color: var(--white); }
.a-path { color: var(--a-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-path i { font-style: normal; margin: 0 calc(var(--u) * 5); color: var(--a-t3); }
.a-path b { color: var(--copper-hi); font-weight: 500; }
.a-tag { justify-self: start; font-family: var(--mono); font-size: calc(var(--u) * 8); letter-spacing: .05em; text-transform: uppercase; padding: calc(var(--u) * 2) calc(var(--u) * 6); border-radius: calc(var(--u) * 3); color: var(--mineral); box-shadow: inset 0 0 0 1px rgba(218, 205, 191, .35); }
.a-vrow--dev .a-tag { color: var(--copper-hi); box-shadow: inset 0 0 0 1px rgba(183, 123, 80, .55); }
.a-bar { height: calc(var(--u) * 6); border-radius: calc(var(--u) * 3); background: rgba(250, 249, 246, .06); overflow: hidden; }
.a-bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--mineral); transform-origin: left; transition: transform 1s var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
.a-vrow--dev .a-bar i { background: var(--copper); }

.a-tl { position: relative; height: calc(var(--u) * 150); margin: 0 calc(var(--u) * 8); }
.a-tl__axis { position: absolute; left: 0; right: 0; top: calc(var(--u) * 52); height: 1px; background: var(--a-line-2); }
.a-tl__gap { position: absolute; left: 26%; width: 32%; top: calc(var(--u) * -1.5); height: calc(var(--u) * 4); border-radius: 2px; background: var(--copper); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.a-tl__note { position: absolute; left: 26%; top: calc(var(--u) * 22); font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--copper-hi); white-space: nowrap; transition: opacity .6s var(--ease) .7s; }
.a-ev { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--u) * 47); display: flex; flex-direction: column; gap: calc(var(--u) * 3); padding-top: calc(var(--u) * 20); transition: opacity .5s var(--ease) calc(var(--i, 0) * 110ms), transform .7s var(--ease) calc(var(--i, 0) * 110ms); }
.a-ev::before { content: ""; position: absolute; left: 0; top: 0; width: calc(var(--u) * 9); height: calc(var(--u) * 9); margin-left: calc(var(--u) * -4.5); border-radius: 50%; background: var(--a-0); box-shadow: inset 0 0 0 calc(var(--u) * 1.6) var(--mineral); }
.a-ev--hot::before { box-shadow: inset 0 0 0 calc(var(--u) * 1.6) var(--copper); background: var(--copper); }
.a-ev__t { font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-ev b { font-size: calc(var(--u) * 11.5); }
.a-ev__s { font-family: var(--mono); font-size: calc(var(--u) * 8.5); color: var(--a-t3); white-space: nowrap; }

/* Inspector */
.a-ins { position: relative; min-width: 0; background: var(--a-1); box-shadow: inset 1px 0 0 var(--a-line); }
.a-p { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 16) calc(var(--u) * 16); transition: opacity .5s var(--ease); }
.a-p > * { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.a-p__h { display: flex; align-items: center; gap: calc(var(--u) * 8); min-height: calc(var(--u) * 24); font-size: calc(var(--u) * 13); }
.a-p__h b { font-weight: 600; }
.a-cnt { font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t2); padding: calc(var(--u) * 1) calc(var(--u) * 6); border-radius: 99px; background: rgba(250, 249, 246, .07); }
.a-btn { margin-left: auto; font-size: calc(var(--u) * 10.5); padding: calc(var(--u) * 4) calc(var(--u) * 9); border-radius: calc(var(--u) * 5); background: var(--copper); color: var(--ink); font-weight: 600; }
.a-p__sub { display: flex; justify-content: space-between; margin: calc(var(--u) * 16) 0 calc(var(--u) * 6); font-family: var(--mono); font-size: calc(var(--u) * 8.5); letter-spacing: .06em; text-transform: uppercase; color: var(--a-t3); }
.a-p__sub--gap { margin-top: calc(var(--u) * 22); }
.a-srcs { margin-top: calc(var(--u) * 12); display: flex; flex-direction: column; }
.a-srcs li, .a-steps li, .a-links li, .a-evid li, .a-f { transition: opacity .5s var(--ease) calc(var(--i, 0) * 80ms), transform .7s var(--ease) calc(var(--i, 0) * 80ms); }
.a-srcs li { display: flex; align-items: flex-start; gap: calc(var(--u) * 10); padding: calc(var(--u) * 11) 0; box-shadow: inset 0 -1px 0 var(--a-line); }
.a-srcs .g { margin-top: calc(var(--u) * 1); color: var(--mineral); }
.a-srcs div { flex: 1; min-width: 0; }
.a-srcs b { display: block; font-size: calc(var(--u) * 11.5); }
.a-srcs div span { display: block; margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 9.5); color: var(--a-t3); }
.a-pb { display: block; position: relative; height: calc(var(--u) * 3); margin-top: calc(var(--u) * 8); border-radius: 2px; background: rgba(250, 249, 246, .07); overflow: hidden; }
.a-pb::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: var(--copper); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--i, 0) * 150ms + 200ms); }
.a-srcs em { font-style: normal; font-family: var(--mono); font-size: calc(var(--u) * 8.5); color: #A9C9B2; }
.a-srcs em.a-busy { color: var(--copper-hi); }
.a-spark { margin-top: auto; }
.a-bars { display: flex; align-items: flex-end; gap: calc(var(--u) * 4); height: calc(var(--u) * 64); padding-top: calc(var(--u) * 4); box-shadow: inset 0 -1px 0 var(--a-line-2); }
.a-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: calc(var(--u) * 1.5) calc(var(--u) * 1.5) 0 0; background: rgba(218, 205, 191, .32); transform-origin: bottom; transition: transform .8s var(--ease); }
.a-bars i:last-child { background: var(--copper); }
.a-steps li { display: grid; grid-template-columns: calc(var(--u) * 46) minmax(0, 1fr) auto; align-items: center; height: calc(var(--u) * 32); box-shadow: inset 0 -1px 0 var(--a-line); font-size: calc(var(--u) * 11.5); }
.a-steps em, .a-links em { font-style: normal; font-family: var(--mono); font-size: calc(var(--u) * 9.5); color: var(--a-t2); }
.a-links { display: flex; flex-direction: column; gap: calc(var(--u) * 6); }
.a-links li { display: flex; align-items: center; gap: calc(var(--u) * 8); height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 10); border-radius: calc(var(--u) * 6); box-shadow: inset 0 0 0 1px var(--a-line-2); font-size: calc(var(--u) * 11.5); }
.a-links .a-id { color: var(--copper-hi); }
.a-links .g { margin-left: auto; width: calc(var(--u) * 12); height: calc(var(--u) * 12); color: var(--a-t3); }
.a-seg { display: flex; gap: calc(var(--u) * 2); margin-top: calc(var(--u) * 12); padding: calc(var(--u) * 2); border-radius: calc(var(--u) * 6); background: rgba(250, 249, 246, .04); }
.a-seg span { flex: 1; text-align: center; padding: calc(var(--u) * 4) 0; border-radius: calc(var(--u) * 4); font-size: calc(var(--u) * 10.5); color: var(--a-t3); }
.a-seg .on { background: rgba(250, 249, 246, .09); color: var(--white); }
.a-finds { display: flex; flex-direction: column; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 12); }
.a-f { display: flex; flex-direction: column; gap: calc(var(--u) * 5); padding: calc(var(--u) * 11) calc(var(--u) * 12); border-radius: calc(var(--u) * 6); background: rgba(250, 249, 246, .025); box-shadow: inset 0 0 0 1px var(--a-line-2); }
.a-f__top { display: flex; align-items: center; gap: calc(var(--u) * 7); }
.a-sev { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: var(--copper); }
.a-f--gap .a-sev { background: transparent; box-shadow: inset 0 0 0 calc(var(--u) * 1.3) var(--mineral); }
.a-f--exc .a-sev { background: var(--mineral); }
.a-f__k { font-size: calc(var(--u) * 10); color: var(--a-t2); }
.a-f__n { margin-left: auto; font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--copper-hi); }
.a-f--exc .a-f__n { color: var(--mineral); }
.a-f > b { font-size: calc(var(--u) * 11.5); line-height: 1.3; }
.a-f__m { font-family: var(--mono); font-size: calc(var(--u) * 8.5); color: var(--a-t3); }
.a-f--dev { background: rgba(183, 123, 80, .07); box-shadow: inset 0 0 0 1px rgba(183, 123, 80, .5); }
.a-back { font-size: calc(var(--u) * 11.5); color: var(--a-t3); }
.a-slash { font-style: normal; color: var(--a-t3); opacity: .6; }
.a-p .a-p__h .a-id { font-size: calc(var(--u) * 10); color: var(--copper-hi); }
.a-p .badge { align-self: flex-start; margin-top: calc(var(--u) * 14); }
.a-claim { margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 15); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.a-claim__m { margin-top: calc(var(--u) * 4); font-family: var(--mono); font-size: calc(var(--u) * 9); color: var(--a-t3); }
.a-evid { position: relative; display: flex; flex-direction: column; }
.a-evid::before { content: ""; position: absolute; left: calc(var(--u) * 7.5); top: calc(var(--u) * 14); bottom: calc(var(--u) * 20); width: 1px; background: rgba(183, 123, 80, .45); }
.a-evid li { position: relative; display: flex; gap: calc(var(--u) * 10); padding: calc(var(--u) * 7) 0; }
.a-evid .g { position: relative; width: calc(var(--u) * 15); height: calc(var(--u) * 15); padding: calc(var(--u) * 1); border-radius: calc(var(--u) * 3); background: var(--a-1); color: var(--copper-hi); }
.a-evid b { display: block; font-size: calc(var(--u) * 10.5); }
.a-evid div span { display: block; margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 9.5); color: var(--a-t2); line-height: 1.35; }
.a-decide { margin-top: auto; display: flex; gap: calc(var(--u) * 8); }
.b { flex: 1; display: block; text-align: center; padding: calc(var(--u) * 8) 0; border-radius: calc(var(--u) * 6); font-size: calc(var(--u) * 11); font-weight: 500; white-space: nowrap; }
.b--ghost { box-shadow: inset 0 0 0 1px rgba(250, 249, 246, .18); }
.b--solid { background: var(--copper); color: var(--ink); font-weight: 600; }
.badge { display: inline-flex; align-items: center; padding: calc(var(--u) * 3) calc(var(--u) * 8); border-radius: calc(var(--u) * 4); font-size: calc(var(--u) * 10); font-weight: 600; }
.badge--dev { color: #EBC3A3; background: rgba(183, 123, 80, .2); }
/* States: capture, connect, reveal, provenance. Default markup is the provenance state. */
.app .m-chip, .app .m-box, .app .m-st, .app .m-e, .app .m-rv, .app .m-bus, .app .m-pv, .app .m-bus-hot { transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms); }
.app .m-e path:first-child, .app .m-bus path, .app .m-bus-hot { transition: stroke-dashoffset 1s var(--ease) calc(var(--i, 0) * 70ms), opacity .6s var(--ease); }

.app[data-state="capture"] :is(.m-bus, .m-box, .m-st, .m-e) { opacity: 0; transition-delay: 0s; }
.app[data-state="capture"] :is(.m-e path:first-child, .m-bus path) { stroke-dashoffset: 1; }
.app:is([data-state="capture"], [data-state="connect"]) .m-rv { opacity: 0; transition-delay: 0s; }
.app:not([data-state="provenance"]) :is(.m-pv, .m-bus-hot) { opacity: 0; transition-delay: 0s; }
.app:not([data-state="provenance"]) .m-bus-hot { stroke-dashoffset: 1; }
.app[data-state="capture"] .m-sync { animation: sync 1.8s var(--ease) both; }
.app[data-state="capture"] .m-chip:nth-child(2) .m-sync { animation-delay: .15s; }
.app[data-state="capture"] .m-chip:nth-child(3) .m-sync { animation-delay: .3s; }
.app[data-state="capture"] .m-chip:nth-child(4) .m-sync { animation-delay: .45s; }
@keyframes sync { 0% { opacity: 1; stroke-dashoffset: 1; } 80% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.app:is([data-state="reveal"], [data-state="provenance"]) .m-e--dev path:first-child { stroke: var(--copper); stroke-width: 2.2; }
.app:is([data-state="reveal"], [data-state="provenance"]) .m-e--dev .ah { stroke: var(--copper); }
.app:is([data-state="reveal"], [data-state="provenance"]) .m-st--key rect:first-child { stroke: var(--copper); fill: #221A14; }
.app:is([data-state="reveal"], [data-state="provenance"]) .m-st--key .ac { fill: var(--copper); }
.app:is([data-state="reveal"], [data-state="provenance"]) .m-st:not(.m-st--key, .m-st--exc), .app:is([data-state="reveal"], [data-state="provenance"]) .m-e:not(.m-e--dev, .m-e--rule) { opacity: .45; }
.app[data-state="provenance"] .m-chip:nth-child(4) { opacity: .45; }
.app[data-state="provenance"] .m-st--exc { opacity: .45; }

.app :is(.a-rec, .a-var, .a-case) { opacity: 0; transform: translateY(calc(var(--u) * 12)); pointer-events: none; transition-delay: 0s; }
.app:is([data-state="capture"], [data-state="connect"]) .a-rec,
.app[data-state="reveal"] .a-var,
.app[data-state="provenance"] .a-case { opacity: 1; transform: none; transition-delay: .15s; }
.app[data-state="capture"] .a-tr:not(.a-th) { animation: rowin .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(calc(var(--u) * -8)); } to { opacity: 1; transform: none; } }
.app:not([data-state="capture"]) .a-tr .c1 { opacity: 0; }
.app:not([data-state="capture"]) .a-tr .c2 { opacity: 1; }
.app:not([data-state="reveal"]) .a-bar i { transform: scaleX(0); transition-delay: 0s; }
.app:not([data-state="provenance"]) .a-tl__gap { transform: scaleX(0); transition-delay: 0s; }
.app:not([data-state="provenance"]) .a-tl__note { opacity: 0; transition-delay: 0s; }
.app:not([data-state="provenance"]) .a-ev { opacity: 0; transform: translateY(calc(var(--u) * 8)); transition-delay: 0s; }

.app .a-kset { opacity: 0; }
.app[data-state="capture"] .a-kset[data-k="capture"],
.app:is([data-state="connect"], [data-state="reveal"], [data-state="provenance"]) .a-kset[data-k="map"] { opacity: 1; }
.app[data-state="connect"] .k-late b { opacity: 0; }
.app[data-state="connect"] .k-late i { opacity: 1; }

.app .a-p { opacity: 0; pointer-events: none; }
.app .a-p > * { opacity: 0; transform: translateY(calc(var(--u) * 8)); }
.app .a-p :is(.a-srcs li, .a-steps li, .a-links li, .a-evid li, .a-f) { opacity: 0; transform: translateY(calc(var(--u) * 8)); }
.app .a-p .a-pb::after { transform: scaleX(0); }
.app .a-p .a-bars i { transform: scaleY(0); }
.app[data-state="capture"] [data-p="capture"], .app[data-state="connect"] [data-p="connect"], .app[data-state="reveal"] [data-p="reveal"], .app[data-state="provenance"] [data-p="provenance"] { opacity: 1; }
.app[data-state="capture"] [data-p="capture"] :is(*, .a-srcs li), .app[data-state="connect"] [data-p="connect"] :is(*, .a-steps li, .a-links li), .app[data-state="reveal"] [data-p="reveal"] :is(*, .a-f), .app[data-state="provenance"] [data-p="provenance"] :is(*, .a-evid li) { opacity: 1; transform: none; }
.app[data-state="capture"] [data-p="capture"] .a-pb::after { transform: none; }
.app[data-state="capture"] [data-p="capture"] .a-bars i { transform: none; }
.app[data-state="capture"] [data-p="capture"] .a-bars i:nth-child(n) { transition-delay: calc(var(--h) * 300ms + 300ms); }

.app[data-state="capture"] .ri[data-r="capture"], .app[data-state="connect"] .ri[data-r="connect"], .app[data-state="reveal"] .ri[data-r="reveal"], .app[data-state="provenance"] .ri[data-r="provenance"] { background: rgba(250, 249, 246, .07); }
.app[data-state="capture"] .ri[data-r="capture"] :is(.g), .app[data-state="connect"] .ri[data-r="connect"] .g, .app[data-state="reveal"] .ri[data-r="reveal"] .g, .app[data-state="provenance"] .ri[data-r="provenance"] .g { color: var(--white); }
.app[data-state="capture"] .ri[data-r="capture"]::before, .app[data-state="connect"] .ri[data-r="connect"]::before, .app[data-state="reveal"] .ri[data-r="reveal"]::before, .app[data-state="provenance"] .ri[data-r="provenance"]::before { opacity: 1; }
.app[data-state="capture"] .a-tabs [data-t="capture"], .app[data-state="connect"] .a-tabs [data-t="connect"], .app[data-state="reveal"] .a-tabs [data-t="reveal"], .app[data-state="provenance"] .a-tabs [data-t="provenance"] { color: var(--white); }
.app[data-state="capture"] .a-tabs [data-t="capture"]::after, .app[data-state="connect"] .a-tabs [data-t="connect"]::after, .app[data-state="reveal"] .a-tabs [data-t="reveal"]::after, .app[data-state="provenance"] .a-tabs [data-t="provenance"]::after { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .app:is([data-state="reveal"], [data-state="provenance"]) .m-dev .ring { animation: ring 2.4s ease-out infinite; }
}
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* 4b Flow: the orange process is pulled out of the tool and joins the knowledge network */
.flow { position: relative; padding-top: clamp(110px, calc(var(--vh) * 16), 180px); }
.flow__cap { position: relative; z-index: 2; max-width: 1000px; margin-inline: auto; padding-inline: var(--pad); text-align: center; }
.flow__title { font-size: clamp(2.5rem, 4.8vw, 5.25rem); font-weight: 600; letter-spacing: -0.052em; line-height: .98; text-wrap: balance; }
.flow__copy { max-width: 44ch; margin: 18px auto 0; font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.4; letter-spacing: -0.016em; color: var(--text-2); text-wrap: balance; }
.flow__stage { position: relative; width: 100%; aspect-ratio: 16 / 8.6; margin: clamp(24px, calc(var(--vh) * 4), 56px) 0; }
.flow__gl { position: absolute; inset: 0; }
.flow__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(34% 30% at 50% 56%, rgba(183, 123, 80, .16), rgba(183, 123, 80, .04) 55%, transparent 78%); }
html.pin .flow__glow { opacity: 0; }
.flow__gl canvas { display: block; width: 100%; height: 100%; }
html.no-js .flow__stage { display: none; }
.nl, .ul { position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform, opacity; }
.nl {
  margin: -12px 0 0 16px; padding: 4px 8px; border-radius: 6px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .02em; color: rgba(250, 249, 246, .78);
  background: rgba(12, 11, 10, .66); box-shadow: inset 0 0 0 1px rgba(183, 123, 80, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nl--new { color: var(--copper-hi); box-shadow: inset 0 0 0 1px rgba(183, 123, 80, .8); }
.ul { translate: -50% -50%; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 249, 246, .6); }

/* The process glows, then the particles take over from the drawn lines */
.app :is(.m-pv rect, .m-bus-hot, .m-e--dev path:first-child) { transition: filter .6s var(--ease), opacity .25s var(--ease); }
.app.is-lift :is(.m-pv rect, .m-bus-hot, .m-e--dev path:first-child) { filter: drop-shadow(0 0 3px rgba(217, 164, 124, .9)); }
.app.is-pulled :is(.m-pv, .m-bus-hot, .m-e--dev, .m-dev, .a-tl__gap) { opacity: 0 !important; transition: opacity .2s var(--ease) !important; }
.app.is-pulled .a-evid::before { opacity: 0; }

html.pin .flow { position: absolute; inset: 0; z-index: 3; padding: 0; pointer-events: none; }
html.pin .flow__stage { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
html.pin .flow__cap { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + var(--vh) * 6); opacity: 0; will-change: opacity, transform; }
html.pin .product__stage .appframe { transform-origin: 50% 100%; will-change: transform, opacity; }

/* 5 Capabilities, light chapter */
.light { background: var(--paper); color: var(--graphite); color-scheme: light; }
.caps { padding-block: clamp(120px, calc(var(--vh) * 17), 220px) clamp(80px, calc(var(--vh) * 10), 120px); }
.sec-head { max-width: 1040px; margin-bottom: clamp(48px, calc(var(--vh) * 7), 88px); }
.sec-head .display { color: var(--ink); }
.sec-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(500px, 40vw, 600px);
  padding: clamp(28px, 3.2vw, 48px);
  border-radius: clamp(22px, 2vw, 28px);
  background: var(--white); color: var(--ink);
}
.t-8 { grid-column: span 8; } .t-7 { grid-column: span 7; } .t-5 { grid-column: span 5; } .t-4 { grid-column: span 4; }
.tile h3 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.042em; line-height: 1.02; max-width: 16ch; }
.tile p { margin-top: 14px; max-width: 36ch; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.42; letter-spacing: -0.014em; color: rgba(12, 11, 10, .64); }
.tile__vis { margin-top: auto; padding-top: clamp(32px, 4vw, 56px); }

/* Product shots: crops of the real app window, bleeding off the tile's bottom right corner.
   --x, --y, --w, --h are the cropped region in window units (1280 x 800). */
.shot {
  position: relative; overflow: hidden; aspect-ratio: calc(var(--w) / var(--h));
  border-top-left-radius: 14px; background: #0E0D0C; box-shadow: 0 0 0 1px rgba(12, 11, 10, .1);
}
.shot .appframe { position: absolute; left: 0; top: 0; width: calc(100% * 1280 / var(--w)); transform: translate(calc(var(--x) * -100% / 1280), calc(var(--y) * -100% / 800)); }
.shot .app { border-radius: 0; box-shadow: none; }
.shot--net { background: #0C0B0A; }
.shot--net img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .shot { margin-right: calc(-1 * clamp(28px, 3.2vw, 48px)); margin-bottom: calc(-1 * clamp(28px, 3.2vw, 48px)); }

/* 6 Use cases */
.cases { padding-block: clamp(80px, calc(var(--vh) * 10), 120px) clamp(120px, calc(var(--vh) * 17), 220px); }
.cases .sec-head { margin-bottom: clamp(36px, calc(var(--vh) * 5), 56px); }
.car-nav { display: flex; gap: 12px; flex: none; }
.car-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(40, 39, 37, .08); color: var(--graphite); cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.car-btn:hover:not(:disabled) { background: rgba(40, 39, 37, .14); }
.car-btn:disabled { opacity: .32; cursor: default; }
.car {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  padding-block: 8px 24px;
}
.car::-webkit-scrollbar { display: none; }
.car:focus-visible { outline-offset: -4px; border-radius: 0; }
.car__track { display: flex; gap: clamp(14px, 1.4vw, 20px); width: max-content; }
.card {
  scroll-snap-align: start;
  width: clamp(300px, 31vw, 440px); height: clamp(560px, 46vw, 680px);
  border-radius: clamp(22px, 2vw, 28px);
  background: var(--white); color: var(--ink);
  overflow: hidden; position: relative;
}
.card article { height: 100%; display: flex; flex-direction: column; padding: clamp(28px, 2.6vw, 40px) clamp(26px, 2.6vw, 40px) 0; }
.card__eyebrow { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--copper-ink); }
.card h3 { margin-top: 10px; font-size: clamp(1.75rem, 2.3vw, 2.375rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.card__p { margin-top: 14px; font-size: 17px; line-height: 1.42; color: rgba(12, 11, 10, .64); max-width: 30ch; }
.card__vis { margin-top: auto; padding-top: 28px; margin-right: calc(-1 * clamp(26px, 2.6vw, 40px)); }

/* 7 Who it's for */
.who { background: var(--ink); padding-block: clamp(130px, calc(var(--vh) * 19), 240px); }
.who__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 120px); }
.who__head { align-self: start; position: sticky; top: calc(var(--nav-h) + 56px); }
.who__head .display { max-width: 12ch; }
.roles { display: flex; flex-direction: column; gap: clamp(64px, calc(var(--vh) * 10), 120px); padding-top: clamp(4px, calc(var(--vh) * 1), 12px); }
.role h3 { font-size: clamp(2.75rem, 5.6vw, 6rem); font-weight: 600; letter-spacing: -0.055em; line-height: .94; }
.role p { margin-top: 22px; max-width: 26ch; font-size: clamp(1.1875rem, 1.65vw, 1.5625rem); line-height: 1.32; letter-spacing: -0.02em; color: var(--text-2); }
.also { margin-top: clamp(110px, calc(var(--vh) * 16), 180px); text-align: center; }
.also__label { font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: var(--text-2); letter-spacing: -0.015em; }
.also__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-top: 24px; }
.also__list li { font-size: clamp(1.375rem, 2.3vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.also__list li + li::before { content: "/"; margin: 0 .55em; font-weight: 400; color: rgba(250, 249, 246, .24); }

/* 8 Principles */
.principles { background: var(--ink); padding-block: clamp(100px, calc(var(--vh) * 14), 180px) clamp(130px, calc(var(--vh) * 19), 240px); overflow: hidden; }
.principles .eyebrow { margin-bottom: clamp(36px, calc(var(--vh) * 6), 64px); }
.values { max-width: calc(1560px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.value { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 3vw, 48px); padding-block: clamp(6px, calc(var(--vh) * 1.4), 18px); }
.value__word { font-size: clamp(3.5rem, 12.2vw, 14rem); font-weight: 600; letter-spacing: -0.062em; line-height: .88; white-space: nowrap; }
.value__word span { color: var(--copper); }
.value p { flex: 0 1 25ch; max-width: 25ch; padding-bottom: .5em; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.38; letter-spacing: -0.015em; color: var(--text-2); }

/* 9 Closing */
.close { position: relative; overflow: hidden; background: var(--ink); padding-block: clamp(120px, calc(var(--vh) * 17), 220px) clamp(90px, calc(var(--vh) * 12), 140px); text-align: center; }
.close__inner { position: relative; }
.close__mark { width: clamp(150px, 16vw, 236px); height: auto; margin-inline: auto; }
.close__title { max-width: 13ch; margin: clamp(32px, calc(var(--vh) * 5), 56px) auto 0; font-size: clamp(3rem, 7.6vw, 8.25rem); font-weight: 600; letter-spacing: -0.056em; line-height: .94; text-wrap: balance; }
.close__sub { margin-top: 28px; font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.38; letter-spacing: -0.018em; color: var(--text-2); }

.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 96px);
  margin-top: clamp(96px, calc(var(--vh) * 14), 160px); padding: clamp(32px, 5vw, 72px);
  border-radius: clamp(24px, 2.2vw, 32px); background: var(--ink-1);
  text-align: left;
}
.contact__intro h3 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: .98; }
.contact__intro p { margin-top: 20px; max-width: 24ch; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.4; color: var(--text-2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; font-size: 15px; font-weight: 500; color: rgba(250, 249, 246, .78); }
.field input, .field textarea {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid rgba(250, 249, 246, .12); border-radius: 12px;
  background: rgba(250, 249, 246, .04); color: var(--white);
  font: 400 17px/1.4 "Geist", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.01em;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: 144px; padding: 14px 16px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(250, 249, 246, .3); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--copper-hi); }
.field [aria-invalid="true"] { border-color: var(--copper-hi); }
.err { margin-top: 9px; font-size: 14px; color: #EBC3A3; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__status { font-size: 15px; color: var(--mineral); }
.form__status:empty { display: none; }
.form__status a { color: inherit; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 10 Footer */
.foot { background: var(--ink); color: rgba(250, 249, 246, .58); font-size: 13px; padding-block: 0 40px; }
.foot__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot__logo { display: block; color: var(--white); border-radius: 4px; }
.foot__logo svg { width: 97px; height: 20px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; padding-block: 30px 34px; }
.foot__cols h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--white); }
.foot__cols ul { display: grid; gap: 9px; }
.foot__cols a { text-decoration: none; transition: color .2s; }
.foot__cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Responsive */
@media (min-width: 821px) and (max-width: 1100px) {
  .t-7, .t-5, .t-4 { grid-column: span 6; }
  .t-8 { grid-column: span 12; }
}
@media (max-width: 1100px) {
  .value { flex-direction: column; align-items: flex-start; gap: 14px; }
  .value p { flex: none; padding-bottom: 0; }
}

@media (max-width: 820px) {
  :root { --nav-h: 52px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; align-content: center; justify-items: center; gap: 6px;
    width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; cursor: pointer; border-radius: 10px;
  }
  .nav__toggle i { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--white); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__inner { gap: 14px; }
  .nav__menu:not([hidden]) {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    padding: 24px var(--pad); background: rgba(12, 11, 10, .97);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  }
  .nav__menu a { padding: 12px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.035em; text-decoration: none; color: var(--white); }

  .stage__pin { min-height: 600px; }
  .hero__title { font-size: clamp(2.75rem, 13.4vw, 4.5rem); }
  .hero__title .ln { display: inline; }
  .hero__title .ln > span { display: inline; }
  .hero__cta .btn { flex: 1 1 auto; }

  .statement__text { font-size: clamp(2.5rem, 11.4vw, 4.5rem); }

  .beats { grid-template-columns: 1fr; gap: 56px; }
  .beat > p { font-size: 17px; }
  .beat > h3 { font-size: 1.75rem; letter-spacing: -0.035em; }
  .crop {
    position: relative; overflow: hidden; margin-top: 26px; aspect-ratio: 4 / 5;
    border-radius: 18px; background: var(--ink-1); box-shadow: 0 0 0 1px rgba(250, 249, 246, .1);
  }
  /* The window at 2.2x: a crop shows 582 x 727 of its 1280 x 800 units. Offsets are the crop's top left. */
  .crop .appframe { width: 220%; transform: translate(var(--tx), var(--ty)); }
  .crop .app { border-radius: 0; box-shadow: none; }
  .crop[data-state="capture"] { --tx: -54.53%; --ty: -9.13%; }
  .crop[data-state="connect"], .crop[data-state="reveal"] { --tx: -18.44%; --ty: -9.13%; }
  .crop[data-state="provenance"] { --tx: -54.53%; --ty: -9.13%; }
  html.mstack .product__stage .appframe { display: none; }
  html.mstack .product__stage .preview-note { margin-top: 0; }

    .flow { padding-top: 96px; }
  .flow__stage { aspect-ratio: 4 / 5; }
  .nl { display: none; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .tile { grid-column: auto; min-height: 0; min-width: 0; }
  .card { width: min(82vw, 400px); height: 600px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .car-nav { display: none; }

  .who__grid { grid-template-columns: 1fr; }
  .who__head { position: static; margin-bottom: 64px; }
  .roles { gap: 56px; }

  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .tile { padding: 26px 22px; border-radius: 22px; }
  .tile__vis { padding-top: 28px; }
  .tile .shot { margin-right: -22px; margin-bottom: -26px; }
  .value__word { font-size: 15.4vw; }
  .contact { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
