/* Layout: one left edge for brand, copy and cards; the scene owns the rest of the frame.
   Palette: cool white paper, graphite pencil, brushed steel and one cobalt line. */
:root {
  --paper: #eceef2;
  --paper-hi: #f7f8fa;
  --ink: #13161c;
  --fg: var(--ink);
  --fg-soft: rgba(19, 22, 28, 0.72);
  --fg-faint: rgba(19, 22, 28, 0.46);
  --rule: rgba(19, 22, 28, 0.16);
  --line: rgba(19, 22, 28, 0.1);
  --fill: rgba(29, 71, 230, 0.06);
  --cobalt: #1d47e6;
  --cobalt-deep: #1433ad;
  --ice: #dde5ff;
  --flag: #c9502f;
  --ok: #16a34a;
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --f: 10px;           /* frame inset */
  --bar: 48px;         /* top bar height */
  --cell: 48px;        /* menu cell / rail width */
  --rail: 0px;         /* width of the left rail that content must clear */
  --gutter-in: 20px;
  --edge: calc(var(--f) + var(--rail) + var(--gutter-in));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* frame units: the real window below 2100px, a 1920×1080 screen above it (wiki: viewport units at scale) */
  --frame-vw: 1vw;
  --frame-vh: 1vh;
  --wide-zoom: 1;   /* set by main.js above 2100px */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }   /* locking scroll for the demo drawer never changes the page width */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 0.9375rem/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.skip {
  position: fixed; z-index: 60; top: 8px; left: 8px;
  padding: 10px 14px; background: var(--ink); color: #fff; text-decoration: none;
  font: 500 0.75rem/1 var(--mono); transform: translateY(-200%);
}
.skip:focus { transform: none; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.spacer { height: calc(100vh + 1400 * var(--frame-vh));   /* the story scrolls the same distance on every screen */ }

/* ── frame: hairline border inset from the screen edge, a top bar and a left rail */
.frame {
  position: fixed;
  inset: var(--f);
  z-index: 9;
  border: 1px solid var(--line);
  pointer-events: none;
}
.bar {
  position: fixed;
  inset-block-start: var(--f);
  inset-inline: var(--f);
  z-index: 10;
  display: flex;
  align-items: stretch;
  height: var(--bar);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.bar__menu {
  flex: none;
  display: grid;
  place-content: center;
  gap: 6px;
  width: var(--cell);
  border: 0;
  border-inline-end: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.bar__menu i { display: block; width: 20px; height: 1px; background: currentColor; transition: transform 0.4s ease; }
.bar__menu[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.bar__menu[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.bar__brand {
  display: flex;
  align-items: center;
  padding-inline: 16px;
  color: inherit;
  text-decoration: none;
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bar__nav {
  position: absolute;
  inset-block: 0;
  left: 50%;
  display: none;
  align-items: center;
  gap: 36px;
  transform: translateX(-50%);
}
/* labels scramble through random characters, then settle into the word (main.js) */
.bar__nav a {
  height: 13px;
  color: inherit;
  text-decoration: none;
  font: 500 0.6875rem/13px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: pre;
  transition: color 0.3s ease;
}
.bar__nav a:hover, .bar__nav a:focus-visible { color: var(--cobalt); }
.bar__cta {
  position: relative;
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  padding-inline: 16px 14px;
  white-space: nowrap;
  background: var(--cobalt);
  color: #fff;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.4s ease;
}
.bar__cta:hover, .bar__cta:focus-visible { background: var(--ink); }
/* scroll progress fills the bar itself, after the menu cell, with a hairline at its leading edge */
.progress {
  position: absolute;
  inset-block: 1px 0;   /* starts under the frame's top hairline, never over it */
  inset-inline-start: calc(var(--cell) - 1px);
  z-index: -1;
  width: calc((100% - var(--cell)) * var(--p, 0) + 1px);
  background: rgba(255, 255, 255, 0.55);   /* a faint light fill */
  border-inline-end: 1px solid var(--line);
  pointer-events: none;
}

/* ── rail: the left frame column, with the bill's status at its foot */
.rail {
  position: fixed;
  inset-block: calc(var(--f) + var(--bar)) var(--f);
  inset-inline-start: var(--f);
  z-index: 10;
  display: none;
  width: var(--cell);
  border-inline-end: 1px solid var(--line);
  color: var(--fg);
}
.rail__status {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  height: var(--cell);
  border-top: 1px solid var(--line);
  font: 500 0.5625rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.rail__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 8px var(--cobalt); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ── menu: an ink drawer from the left */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding: var(--f);
  background: rgba(19, 22, 28, 0.28);
}
.menu[hidden] { display: none; }
.menu__panel {
  --m-rule: rgba(236, 238, 242, 0.12);
  display: grid;
  grid-template-columns: 1fr var(--cell);
  width: min(860px, 100%);
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  animation: menu-in 0.55s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateX(-24px); } }
.menu__body { display: grid; grid-template-rows: 1fr auto auto auto; min-width: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.menu__row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 26px; border-top: 1px solid var(--m-rule); }
.menu__row--main { align-content: start; padding-block: 28px 32px; border-top: 0; }
.menu__label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 500 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.menu__label i { width: 6px; height: 6px; background: var(--cobalt); }
.menu__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.menu__list a {
  display: inline-block;
  padding: 0.04em 0.12em 0.02em;
  margin-inline-start: -0.12em;
  color: inherit;
  text-decoration: none;
  font: 500 clamp(1.7rem, min(calc(6 * var(--frame-vw)), calc(7.4 * var(--frame-vh))), 4rem)/1 var(--sans);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: pre;
  animation: menu-item 0.6s var(--ease) backwards;
}
.menu__list li:nth-child(1) a { animation-delay: 0.04s; }
.menu__list li:nth-child(2) a { animation-delay: 0.08s; }
.menu__list li:nth-child(3) a { animation-delay: 0.12s; }
@keyframes menu-item { from { opacity: 0; transform: translateY(14px); } }
.menu__list a:hover, .menu__list a:focus-visible { color: #8ea6ff; }
/* a closing line at the foot of the page list, leading into "Talk to us" */
.menu__statement {
  margin: 40px 0 0;
  max-width: 30ch;
  font: 300 clamp(1.2rem, min(calc(2.2 * var(--frame-vw)), calc(3 * var(--frame-vh))), 1.75rem)/1.3 var(--sans);
  letter-spacing: -0.015em;
  color: rgba(236, 238, 242, 0.72);
  animation: menu-item 0.6s var(--ease) 0.2s backwards;
}
.menu__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.menu__links a { color: inherit; text-decoration: none; }
.menu__links a:hover, .menu__links a:focus-visible { color: #8ea6ff; }
.menu__row--foot {
  display: flex; justify-content: space-between;
  font: 500 0.625rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(236, 238, 242, 0.6);
}
.menu__side { position: relative; border-inline-start: 1px solid var(--m-rule); }
.menu__close {
  display: grid; place-content: center; width: 100%; height: var(--bar);
  border: 0; border-bottom: 1px solid var(--m-rule); background: none; color: inherit; cursor: pointer;
}
.menu__close i { display: block; width: 20px; height: 1px; background: currentColor; transform: translateY(0.5px) rotate(45deg); }
.menu__close i + i { transform: translateY(-0.5px) rotate(-45deg); }
.menu__close:hover i, .menu__close:focus-visible i { background: #8ea6ff; }
@media (min-width: 768px) {
  .menu__row { grid-template-columns: 200px 1fr; padding-inline: 30px; }
  .menu__row--main { grid-template-rows: auto 1fr; align-content: stretch; padding-block: 30px 36px; }
  .menu__statement { grid-column: 2; align-self: end; }
  .menu__row--main .menu__label { align-self: start; margin-top: 0.9em; }
}

/* ── book a demo: the menu's mirror, a clean white drawer from the right */
.demo {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: flex;
  justify-content: flex-end;
  padding: var(--f);
  background: rgba(19, 22, 28, 0.2);
}
.demo[hidden] { display: none; }
.demo__panel {
  --m-rule: rgba(19, 22, 28, 0.08);
  display: grid;
  grid-template-columns: var(--cell) 1fr;
  width: min(760px, 100%);
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(16, 30, 90, 0.35);
  animation: demo-in 0.55s var(--ease);
}
@keyframes demo-in { from { opacity: 0; transform: translateX(24px); } }
.demo__side { position: relative; border-inline-end: 1px solid var(--m-rule); }
.demo__close {
  display: grid; place-content: center; width: 100%; height: var(--bar);
  border: 0; border-bottom: 1px solid var(--m-rule); background: none; color: inherit; cursor: pointer;
}
.demo__close i { display: block; width: 20px; height: 1px; background: currentColor; transform: translateY(0.5px) rotate(45deg); }
.demo__close i + i { transform: translateY(-0.5px) rotate(-45deg); }
.demo__close:hover i, .demo__close:focus-visible i { background: var(--cobalt); }
.demo__body { min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.demo__form { display: contents; }
.demo__form[hidden] { display: none; }
.demo__row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 26px; border-top: 1px solid var(--m-rule); }
.demo__row--head { align-content: start; padding-block: 28px 30px; border-top: 0; }
.demo .menu__label { color: var(--fg-soft); }
.demo__title {
  margin: 0;
  font: 500 clamp(2rem, min(calc(6 * var(--frame-vw)), calc(7.4 * var(--frame-vh))), 3.6rem)/1 var(--sans);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  animation: menu-item 0.6s var(--ease) 0.06s backwards;
}
.demo__lede { margin: 14px 0 0; max-width: 32rem; color: var(--fg-soft); }
.demo__fields { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font: 500 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.field em { font-style: normal; color: rgba(19, 22, 28, 0.32); margin-inline-start: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(19, 22, 28, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--sans);
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cobalt); }
.field input[aria-invalid="true"] { border-bottom-color: var(--flag); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(19, 22, 28, 0.14);
  font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-soft);
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.chips label:hover span { box-shadow: inset 0 0 0 1px var(--cobalt); color: var(--cobalt); }
.chips input:checked + span { background: var(--cobalt); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 1px solid var(--cobalt); outline-offset: 3px; }
.demo__row--foot .actions { margin-top: 0; }
.demo__error { margin: 0; color: var(--flag); font-size: 0.875rem; }
.demo__done { display: grid; gap: 12px; padding: 28px 26px; outline: none; }
.demo__done[hidden] { display: none; }
.demo__done h3 { margin: 0; font: 500 clamp(2rem, calc(5 * var(--frame-vw)), 3.2rem)/1 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; }
.demo__done p:not(.menu__label) { margin: 0; color: var(--fg-soft); }
@media (min-width: 768px) {
  /* no row labels: everything starts from the drawer's left padding */
  .demo__row, .demo__done { padding-inline: 36px; }
}

/* ── scroll cue, bottom right inside the frame */
.scroll-cue {
  position: fixed;
  inset-inline-end: calc(var(--f) + 22px);
  inset-block-end: calc(var(--f) + 18px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--fg);
  font: 500 0.5625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.6s ease;
}
.scroll-cue i {
  width: 7px; height: 7px;
  border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob { 50% { transform: translateY(1px) rotate(45deg); } }
:root.is-scrolled .scroll-cue { opacity: 0; }

/* ── frosted glass: small descriptions sit on the scene, blurred, never boxed in a border */
.glass {
  position: relative;
  padding: 20px 22px;
  border-radius: 4px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 55%, rgba(226, 233, 255, 0.28));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 30px 60px -36px rgba(18, 32, 90, 0.38);
}
.glass p { margin: 0; color: var(--fg-soft); font-size: 0.9375rem; line-height: 1.6; }

/* ── chapters */
.chapters { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
[data-range] { --o: 0; }
.chapter, .chapters > .glass {
  position: absolute;
  opacity: var(--o);
  transform: translateY(calc((1 - var(--o)) * 18px));
}
.chapter.is-active, .chapters > .glass.is-active { pointer-events: auto; }
.chapter { inset-inline: var(--edge); max-width: 40rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}
/* the kicker line is a small loading bar: a faint rounded track that fills with cobalt
   when its chapter comes in (or, below the story, when it scrolls into view) */
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.eyebrow::before {
  content: '';
  flex: none;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(currentColor, currentColor) left / var(--fill) 100% no-repeat, rgba(29, 71, 230, 0.16);
}
.is-active .eyebrow::before, .eyebrow.is-in::before {
  --fill: 100%;
  transition: --fill 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}
h1, h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, calc(7.2 * var(--frame-vw)), 7.4rem); line-height: 0.95; }
h2 { font-size: clamp(2.3rem, calc(5 * var(--frame-vw)), 5rem); line-height: 0.98; }
h1 span, h2 span { display: block; }

.chapter--hero { inset-block-start: calc(var(--f) + var(--bar) + 28px); max-width: 58rem; }
.glass--hero { inset-inline: var(--edge); inset-block-end: calc(var(--f) + 16px); }
.glass--hero p { max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;   /* <button> brings a default outset border */
  background: none;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.btn--solid {
  padding-inline: 22px 20px;
  background: var(--cobalt);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn--solid:hover, .btn--solid:focus-visible { background: var(--ink); }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: inset 0 0 0 1px var(--cobalt); color: var(--cobalt); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--cobalt); outline-offset: 3px; }

.chapter--dash { inset-block-start: calc(var(--f) + var(--bar) + 24px); }
.chapter--dash h2 { font-size: clamp(2.1rem, calc(4.2 * var(--frame-vw)), 4rem); }
.glass--inline { margin-top: 22px; max-width: 26rem; }

.chapter--statement { inset-block-start: calc(var(--f) + var(--bar) + 28px); max-width: none; }
.chapter--statement h2 { font-size: clamp(2.6rem, calc(7 * var(--frame-vw)), 7.4rem); line-height: 0.95; }
.glass--statement { inset-inline-start: var(--edge); inset-block-end: calc(var(--f) + 16px); max-width: 22rem; }

.chapter--step { inset-block-start: calc(var(--f) + var(--bar) + 28px); }
.chapter--step h2 { font-size: clamp(2.2rem, calc(4.6 * var(--frame-vw)), 4.6rem); }
.sign { color: var(--cobalt); }

/* closing chapters: the whole copy in one frosted panel, the line runs free to its left */
.chapter--panel { inset-block-end: calc(var(--f) + 16px); max-width: none; padding: 26px 22px 24px; }
.chapter--panel h2 { font-size: clamp(2rem, calc(3.6 * var(--frame-vw)), 3.6rem); }
.panel__lede { margin: 18px 0 0 !important; max-width: 30rem; }
.trust { display: grid; margin: 24px 0 0; padding: 0; list-style: none; }
.trust li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid rgba(19, 22, 28, 0.08); }
.trust span { grid-column: 2; }
/* a green check in a soft disc, one per promise */
.tick { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(22, 163, 74, 0.12); }
.tick::after {
  content: ''; position: absolute; left: 8px; top: 4.5px; width: 5px; height: 10px;
  border: solid var(--ok); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg);
}
.trust li:last-child { padding-bottom: 0; }
.trust b { font: 500 0.9375rem/1.3 var(--sans); }
.trust span { color: var(--fg-soft); font-size: 0.875rem; line-height: 1.5; }

.chapter--end h2 { font-size: clamp(2.2rem, calc(4.4 * var(--frame-vw)), 4.6rem); line-height: 0.95; }

/* ── callouts pinned to the scene */
.callout-svg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; overflow: visible; }
.callout-svg g { opacity: 0; }
.c-ring { fill: none; stroke: var(--cobalt); stroke-width: 1; opacity: 0.9; }
.c-ring--far { opacity: 0.35; stroke-dasharray: 2 4; animation: spin 8s linear infinite; transform-origin: 0 0; }
.c-dot { fill: var(--cobalt); }
.c-lead { fill: none; stroke: var(--cobalt); stroke-width: 1; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.callout {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 7;
  display: none;
  min-width: 12.5rem;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
}
.callout b { display: block; margin-bottom: 8px; font: 500 0.625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.callout dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 0.75rem; line-height: 1.2; }
.callout dt { color: var(--fg-faint); }
.callout dd { margin: 0; text-align: end; font-family: var(--mono); font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.ok { display: inline-block; width: 6px; height: 10px; margin-left: 4px; border: solid var(--cobalt); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }

/* ── dashboard showcase */
.dash {
  position: absolute;
  inset-inline: var(--edge);
  inset-block: calc(var(--f) + var(--bar) + 230px) calc(var(--f) + 14px);
  container: dash / inline-size;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  opacity: var(--o);
  transform: perspective(1600px) translateY(calc((1 - var(--o)) * 70px)) rotateX(calc((1 - var(--o)) * 10deg)) scale(calc(0.96 + var(--o) * 0.04));
  transform-origin: 50% 100%;
}
.dash.is-active { pointer-events: auto; }
.dash__window {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fbfbfc;
  color: var(--ink);
  font-size: 0.8125rem;
  box-shadow:
    0 0 0 1px rgba(19, 22, 28, 0.07),
    0 1px 2px rgba(19, 22, 28, 0.05),
    0 50px 100px -40px rgba(16, 30, 90, 0.4),
    0 20px 40px -30px rgba(16, 30, 90, 0.3);
}
.dash__note { margin: 0; justify-self: end; font: 500 0.5625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.dash__side, .dash__detail { display: none; }
.dash__main { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid rgba(19, 22, 28, 0.06); }
.dash__head h3 { margin: 0; font: 500 1.0625rem/1.2 var(--sans); letter-spacing: -0.01em; }
.dash__head p { margin: 2px 0 0; color: var(--fg-faint); font-size: 0.75rem; }
.dash__tools { display: flex; align-items: center; gap: 8px; }
.dash__search {
  display: none; align-items: center; gap: 8px; width: 13rem; height: 32px; padding: 0 10px;
  border-radius: 7px; background: #f1f2f5; color: var(--fg-faint); font-size: 0.75rem;
}
.dash__search svg, .dash__nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.dash__btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 7px;
  background: var(--cobalt); color: #fff; font: 500 0.75rem/1 var(--sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px -6px rgba(29, 71, 230, 0.6);
}
.dash__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid rgba(19, 22, 28, 0.06); }
.dash__stats > div { position: relative; display: grid; gap: 2px; padding: 14px 18px; border-inline-end: 1px solid rgba(19, 22, 28, 0.06); }
.dash__stats > div:nth-child(3) { display: none; }
.dash__stats span { color: var(--fg-faint); font-size: 0.6875rem; }
.dash__stats b { font: 300 1.75rem/1.1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dash__stats small { color: var(--fg-faint); font-size: 0.6875rem; }
.dash__spark { position: absolute; right: 18px; bottom: 16px; width: 92px; height: 24px; fill: none; stroke: var(--cobalt); stroke-width: 1.4; stroke-linejoin: round; }
.dash__table { min-height: 0; overflow: hidden; padding: 4px 8px 8px; }
.dash__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.4s ease;
}
.dash__row + .dash__row { box-shadow: 0 -1px 0 rgba(19, 22, 28, 0.05); }
.dash__row--head { padding-block: 8px; color: var(--fg-faint); font: 500 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.dash__row .code, .dash__row--head span:nth-child(2), .dash__row .amt, .dash__row--head span:nth-child(3) { display: none; }
/* the open bill lifts off the list, like the active item in the sidebar */
.dash__row.is-selected { background: #fff; box-shadow: 0 0 0 1px rgba(19, 22, 28, 0.06), 0 6px 16px -8px rgba(16, 30, 90, 0.22); }
.dash__row.is-selected + .dash__row { box-shadow: none; }
.sup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sup i {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #eef0f4; color: var(--fg-soft); font: 500 0.6875rem/1 var(--sans); font-style: normal;
}
.sup b { display: grid; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup small { color: var(--fg-faint); font: 400 0.6875rem/1.3 var(--mono); }
.code { display: inline-flex; justify-self: start; padding: 4px 8px; border-radius: 6px; background: #f1f2f5; color: var(--fg-soft); font: 400 0.6875rem/1 var(--mono); white-space: nowrap; }
.amt { text-align: end; font: 400 0.75rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.stage { display: grid; justify-items: end; gap: 5px; min-width: 7.5rem; }
.stage em { font: 500 0.6875rem/1 var(--sans); font-style: normal; color: var(--fg-soft); white-space: nowrap; }
.pips { display: flex; gap: 4px; }
.pips b { width: 8px; height: 8px; border: 1px solid rgba(19, 22, 28, 0.22); border-radius: 1.5px; transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.pips b:nth-child(2n) { border-radius: 50%; }
.pips b.is-done { background: var(--cobalt); border-color: var(--cobalt); }
.pips b.is-now { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(29, 71, 230, 0.14); animation: blink 1.6s ease-in-out infinite; }
.dash__row[data-state="you"] .stage em { color: var(--cobalt); }
.dash__row[data-state="flag"] .stage em { color: var(--flag); }
.dash__row[data-state="flag"] .pips b.is-now { border-color: var(--flag); box-shadow: 0 0 0 3px rgba(201, 80, 47, 0.14); }
.dash__row[data-state="paid"] .stage em { color: var(--fg-faint); }

.dash__side {
  flex-direction: column; gap: 22px; padding: 16px 12px;
  background: #f4f5f8; border-inline-end: 1px solid rgba(19, 22, 28, 0.06);
}
.dash__org { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.dash__logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font: 500 0.75rem/1 var(--sans); }
.dash__org span { display: grid; font-weight: 500; line-height: 1.2; }
.dash__org small { color: var(--fg-faint); font-size: 0.6875rem; font-weight: 400; }
.dash__nav { display: grid; gap: 2px; }
.dash__nav span { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; color: var(--fg-soft); }
.dash__nav span.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(19, 22, 28, 0.06), 0 2px 4px rgba(19, 22, 28, 0.04); }
.dash__nav em {
  margin-inline-start: auto; min-width: 18px; padding: 2px 6px; border-radius: 999px;
  background: var(--cobalt); color: #fff; font: 500 0.625rem/1.2 var(--mono); font-style: normal; text-align: center;
}
.dash__agents { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px; color: var(--fg-soft); font-size: 0.75rem; }
.dash__agents i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(29, 71, 230, 0.15); animation: blink 2s ease-in-out infinite; }

.dash__detail {
  flex-direction: column; min-height: 0; padding: 20px 18px;
  border-inline-start: 1px solid rgba(19, 22, 28, 0.06);
  background: linear-gradient(#fff, #fbfbfc);
}
.dash__sup { margin: 0; color: var(--fg-soft); font-size: 0.75rem; }
.dash__amt { margin: 4px 0 2px; font: 300 1.75rem/1.1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dash__meta { margin: 0 0 18px; color: var(--fg-faint); font: 400 0.6875rem/1.3 var(--mono); }
.dash__trail { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 18px; list-style: none; }
.dash__trail::before { content: ''; position: absolute; left: 3.5px; top: 6px; bottom: 6px; width: 1px; background: rgba(19, 22, 28, 0.1); }
.dash__trail li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; opacity: 0.25; transition: opacity 0.5s ease; }
.dash__trail li::before {
  content: ''; position: absolute; left: -18px; top: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(19, 22, 28, 0.25); transition: background 0.4s ease, box-shadow 0.4s ease;
}
.dash__trail li.is-on { opacity: 1; }
.dash__trail li.is-on::before { background: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.dash__trail li.is-you.is-on::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 0 0 4px rgba(29, 71, 230, 0.14); }
.dash__trail b { font-weight: 500; font-size: 0.75rem; }
.dash__trail time { color: var(--fg-faint); font: 400 0.625rem/1.6 var(--mono); }
.dash__trail span { grid-column: 1 / -1; color: var(--fg-soft); font-size: 0.71875rem; line-height: 1.45; }
.dash__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 18px; }
.dash__approve, .dash__hold { display: grid; place-items: center; height: 36px; border-radius: 8px; font: 500 0.75rem/1 var(--sans); }
.dash__approve { background: var(--cobalt); color: #fff; transition: box-shadow 0.5s ease; }
.dash__hold { padding: 0 14px; box-shadow: inset 0 0 0 1px rgba(19, 22, 28, 0.12); color: var(--fg-soft); }
.dash.is-ready .dash__approve { box-shadow: 0 0 0 4px rgba(29, 71, 230, 0.16), 0 10px 24px -8px rgba(29, 71, 230, 0.7); }

@container dash (min-width: 560px) {
  .dash__search { display: flex; }
  .dash__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash__stats > div:nth-child(3) { display: grid; }
  .dash__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
  .dash__row .amt, .dash__row--head span:nth-child(3) { display: block; }
  .dash__row--head span:nth-child(3) { text-align: end; }
}
@container dash (min-width: 760px) {
  .dash__window { grid-template-columns: minmax(0, 1fr) 264px; }
  .dash__detail { display: flex; }
}
@container dash (min-width: 1040px) {
  .dash__window { grid-template-columns: 188px minmax(0, 1fr) 280px; }
  .dash__side { display: flex; }
  .dash__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) auto; }
  .dash__row .code { display: inline-flex; }
  .dash__row--head span:nth-child(2) { display: block; }
}

/* ── after the story: ordinary flow over the scene */
.after {
  position: relative;
  z-index: 8;   /* above the story layers, below the frame, bar and rail */
  background: var(--paper-hi);
  padding: 96px var(--edge) 0;
}
.after::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cobalt) 30%, var(--cobalt) 70%, transparent);
  opacity: 0.5;
}
.after__head { display: grid; gap: 4px; margin-bottom: 40px; }
.after h2 { font-size: clamp(2rem, calc(4.4 * var(--frame-vw)), 3.6rem); max-width: 18ch; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.after__head--center { justify-items: center; text-align: center; margin-bottom: 56px; }
.after__head--center h2 { max-width: 20ch; }
.products { container: products / inline-size; }
/* three tall hairline cells: the mark sits top left, the copy settles at the foot */
.products__list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}
.product { display: flex; flex-direction: column; min-height: 24rem; padding: 40px 32px 36px; background: #fff; }
.product__mark { width: 72px; height: 72px; overflow: visible; }
/* the copy starts at the same height in every cell, so the titles line up across the row */
.product__body { display: grid; gap: 12px; margin-top: 56px; }
.product h3 { margin: 0; font: 300 2.2rem/1 var(--sans); letter-spacing: -0.04em; }
.product p { margin: 0; color: var(--fg-soft); max-width: 30ch; }
.product__tag { display: flex; align-items: center; gap: 8px; font: 500 0.625rem/1 var(--mono) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint) !important; }
.product--live .product__tag { color: var(--cobalt) !important; }
.product__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 8px var(--cobalt); }
.link { justify-self: start; margin-top: 8px; color: var(--cobalt); font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
@container products (min-width: 720px) {
  .products__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product { min-height: clamp(26rem, 40cqi, 34rem); padding: clamp(40px, 6cqi, 88px) clamp(32px, 5cqi, 72px) clamp(36px, 5cqi, 72px); }
  .product__mark { width: 84px; height: 84px; }
  .product__body { margin-top: clamp(96px, 13cqi, 180px); }
}
/* below the story the frame steps aside (cases.js): the rail and hairlines fade out, and the bar
   stays as a solid bordered strip; the button sits flush over its right edge, unbordered */
.bar { transition: background-color 0.3s ease, border-color 0.3s ease; }
.rail, .frame { transition: opacity 0.4s ease, visibility 0s linear 0s; }
:root.in-after .rail, :root.in-after .frame { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
:root.in-after .bar { background: var(--paper-hi); }
/* top, left and right lines in the frame's own tone, cross-fading with it; the bottom line is
   the bar's own border in both states, so nothing shifts when the frame steps aside */
.bar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid var(--line);
  border-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
:root.in-after .bar::after { opacity: 1; }
.bar__menu, .bar__brand { position: relative; z-index: 2; }
.bar__nav, .bar__cta { z-index: 2; }
.bar__cta { margin-bottom: -1px; }   /* covers the bottom line, so the button is never outlined */

/* ── case studies: full-bleed cobalt field, a steel panel and a black-and-white photo column */
/* the outer section owns the width; the grid inside answers to it. It runs edge to edge */
.cases { container: cases / inline-size; margin: 140px calc(var(--edge) * -1) 0; }
.cases__inner {
  --steel: #b7bbc3;
  position: relative;
  display: grid;
  background: var(--cobalt-deep);
  color: #fff;
}
.cases__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px var(--edge) 48px;
  overflow: hidden;   /* narrow: the copy sits straight on the cobalt; the steel panel arrives with the wide layout */
}
.cases__deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cases__deco path { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cases .cases__title {
  position: relative;
  margin: 0 0 32px;
  font: 500 clamp(2.8rem, 10.5cqi, 9.75rem)/0.86 var(--sans);   /* sized so the line ends before the photo column */
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.cases__nav { position: relative; display: flex; gap: 10px; order: 3; margin-top: 32px; }
/* every story stacks in one cell, so the panel keeps the height of the longest */
.cases__text { position: relative; display: grid; }
.cases__item { grid-area: 1 / 1; visibility: hidden; }
.cases__item.is-active { visibility: visible; }
.cases .eyebrow { color: #fff; margin-bottom: 14px; }
.cases .eyebrow::before { background: linear-gradient(currentColor, currentColor) left / var(--fill) 100% no-repeat, rgba(255, 255, 255, 0.3); }
.cases__copy { margin: 0; max-width: 30rem; font: 500 clamp(1.15rem, 2.4cqi, 1.6rem)/1.25 var(--sans); letter-spacing: -0.02em; }
/* words rise in a little after the old line has lifted away */
.cases__copy .w { display: inline-block; }
.cases__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #8f949c; }
.cases__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; }
.cases__slide.is-active, .cases__slide.is-leaving { visibility: visible; }
.cases__slide.is-active { z-index: 2; }
.cases__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  transform-origin: 50% 60%;
}

/* round arrow buttons: on hover the ring fills and the arrow slides through */
.round {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.round::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #fff;
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.round__icon { position: relative; display: block; width: 20px; height: 20px; overflow: hidden; }
.round__icon i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 300 1.25rem/1 var(--sans);
  font-style: normal;
  transition: transform 0.45s var(--ease);
}
.round__icon i + i { transform: translateX(-140%); }
.round--prev .round__icon i + i { transform: translateX(140%); }
.round:hover, .round:focus-visible { color: var(--cobalt-deep); }
.round:hover::before, .round:focus-visible::before { transform: scale(1); }
.round:hover .round__icon i:first-child, .round:focus-visible .round__icon i:first-child { transform: translateX(140%); }
.round--prev:hover .round__icon i:first-child, .round--prev:focus-visible .round__icon i:first-child { transform: translateX(-140%); }
.round:hover .round__icon i + i, .round:focus-visible .round__icon i + i { transform: none; }
.round:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.round:active { transform: scale(0.96); }

/* wide: cobalt quarter, steel half, photo quarter; the title runs back over the cobalt */
@container cases (min-width: 900px) {
  .cases__panel { grid-column: 2; background: var(--steel); padding: clamp(48px, 6cqi, 96px) clamp(40px, 5cqi, 88px) clamp(48px, 6cqi, 96px); }
  .cases__inner { grid-template-columns: 25cqw 50cqw 25cqw; min-height: clamp(34rem, calc(90 * var(--frame-vh)), 56rem); }
  .cases__media { grid-column: 3; aspect-ratio: auto; }
  .cases__panel { overflow: visible; }
  .cases__deco { overflow: hidden; }
  .cases .cases__title { margin: 22% 0 0 calc(var(--edge) - 25cqw - clamp(40px, 5cqi, 88px)); }
  .cases__text { margin-top: auto; }
  .cases__nav { position: absolute; order: 0; margin: 0; top: clamp(48px, 6cqi, 96px); right: clamp(40px, 5cqi, 88px); }
}
.foot { margin-top: 140px; }
.foot__cta { display: grid; gap: 8px; padding-bottom: 72px; }
.foot__cta h2 { max-width: 16ch; }
.foot__word {
  margin: 0;
  font: 300 clamp(4rem, calc(19 * var(--frame-vw)), 20rem)/0.8 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 22, 28, 0.2);
  white-space: nowrap;
  overflow: hidden;
}
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 22px 0 28px; border-top: 1px solid var(--line);
  font: 500 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint);
}
.foot__base nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__base a { color: var(--fg); text-decoration: none; }
.foot__base a:hover, .foot__base a:focus-visible { color: var(--cobalt); }
/* Luthen's copyright, then the build credit, on the same quiet line */
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__legal a { color: var(--fg-faint); }

/* ── intro: the wordmark opens out, the bar fills as the scene loads, then the sheet lifts */
.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--paper);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 1s;
  cursor: pointer;
}
:root.is-ready .intro { transform: translate3d(0, -100%, 0); visibility: hidden; }
:root.no-intro .intro { display: none; }
.intro__lockup { display: grid; justify-items: center; gap: 22px; transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s ease; }
:root.is-ready .intro__lockup { transform: translateY(-40px); opacity: 0; }
.intro__word {
  margin: 0;
  font: 400 clamp(1.4rem, calc(3 * var(--frame-vw)), 2rem)/1 var(--sans);
  letter-spacing: 0.42em;
  margin-inline-end: -0.42em;
  text-transform: uppercase;
  animation: word-in 1.4s var(--ease) both;
}
@keyframes word-in { from { opacity: 0; letter-spacing: 0.9em; margin-inline-end: -0.9em; } }
.intro__bar {
  --load: 0;
  position: relative;
  width: 180px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 22, 28, 0.08);
  animation: bar-in 0.6s ease 0.3s both;
}
/* width, not scale, so the rounded ends keep their shape as it grows */
.intro__bar i {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: max(2px, calc(var(--load) * 100%));
  border-radius: inherit;
  background: var(--cobalt);
  box-shadow: 0 0 8px rgba(29, 71, 230, 0.45);
}
@keyframes bar-in { from { opacity: 0; } }

.no-webgl-msg { display: none; }
:root.no-webgl .no-webgl-msg { display: block; position: fixed; inset-inline: var(--edge); inset-block-start: 45%; z-index: 30; text-align: center; }
:root.no-webgl .intro { display: none; }

/* ── larger screens */
@media (min-width: 480px) {
  :root { --gutter-in: 24px; }
}
@media (min-width: 768px) {
  /* the frame opens up: wider inset, a taller bar, and the left rail carrying the route */
  :root {
    --f: 20px;
    --bar: 52px;
    --cell: 64px;
    --rail: var(--cell);
    --gutter-in: clamp(28px, calc(3.5 * var(--frame-vw)), 56px);
  }
  .rail { display: block; }
  .bar__brand { padding-inline: 26px; }
  .bar__nav { display: flex; }
  .bar__cta { padding-inline: 30px 28px; }
  .chapter--hero { inset-block-start: calc(var(--f) + var(--bar) + calc(6 * var(--frame-vh))); }
  .chapter--hero h1 span { white-space: nowrap; }   /* two lines on desktop, always */
  .glass--hero { inset-inline-end: auto; inset-block-end: calc(var(--f) + 28px); width: min(31rem, calc(44 * var(--frame-vw))); }
  .glass--hero p { font-size: 1rem; }
  .chapter--step { inset-inline-end: auto; width: min(36rem, calc(44 * var(--frame-vw))); }
  .chapter--panel { inset-inline: auto calc(var(--f) + 24px); inset-block-end: calc(var(--f) + 24px); width: 46rem; max-width: calc(100% - var(--edge) - var(--f) - 24px); padding: 36px 36px 34px; }
  /* each half of the headline keeps its own line */
  .chapter--panel h2 span { white-space: nowrap; }
  .trust li { grid-template-columns: 22px 12rem 1fr; gap: 14px; align-items: start; }
  .trust span { grid-column: 3; }
  .trust b { padding-top: 1px; }
  .callout { display: block; }
}
@media (min-width: 1100px) {
  /* dashboard: the copy keeps the left column, the window takes the rest */
  .chapter--dash { inset-inline-end: auto; inset-block-start: 50%; width: min(24rem, calc(26 * var(--frame-vw))); transform: translateY(calc(-50% + (1 - var(--o)) * 18px)); }
  .dash {
    inset-inline: calc(var(--edge) + min(24rem, calc(26 * var(--frame-vw))) + 40px) calc(var(--f) + 24px);
    inset-block: calc(var(--f) + var(--bar) + 32px) calc(var(--f) + 24px);
    transform-origin: 0% 50%;
    transform: perspective(1800px) translateX(calc((1 - var(--o)) * 60px)) rotateY(calc((1 - var(--o)) * -12deg)) scale(calc(0.97 + var(--o) * 0.03));
  }
}
@media (min-width: 1280px) {
  .glass p { font-size: 1rem; }
}
/* below the two-column layout the window sits under the heading; its own copy says the rest */
@media (max-width: 1099px) {
  .chapter--dash .glass--inline { display: none; }
  .dash { inset-block-start: calc(var(--f) + var(--bar) + clamp(150px, calc(22 * var(--frame-vw)), 200px)); }
}
@media (max-width: 1099px) and (max-height: 760px) {
  .chapter--dash h2 { font-size: 1.9rem; }
  .dash { inset-block-start: calc(var(--f) + var(--bar) + 130px); }
}
@media (prefers-reduced-motion: reduce) {
  .c-ring--far, .scroll-cue i, .rail__dot, .pips b.is-now, .dash__agents i { animation: none; }
  .intro__word, .intro__bar { animation: none; }
  .eyebrow::before { --fill: 100%; }
  .round, .round::before, .round__icon i { transition: none; }
  .demo__panel, .demo__title { animation: none; }
  .intro { transition: opacity 0.5s ease, visibility 0s linear 0.5s; transform: none; }
  :root.is-ready .intro { opacity: 0; transform: none; }
}

/* ── inner pages: Shield, Partners, Open source (chrome.js adds .is-page) */
:root.is-page .rail, :root.is-page .frame, :root.is-page .scroll-cue { display: none; }
.page-main { position: relative; z-index: 8; background: var(--paper-hi); }
.wrap { padding-inline: calc(var(--frame-pad, 0px) + var(--edge)); }
.sec { padding-block: clamp(88px, calc(9 * var(--frame-vw)), 168px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { display: grid; gap: 4px; max-width: 46rem; margin-bottom: clamp(36px, calc(4 * var(--frame-vw)), 64px); }
.sec__head h2, .page-main h2 { font-size: clamp(2.1rem, calc(4.4 * var(--frame-vw)), 4rem); max-width: 20ch; }
.sec__lede { margin: 14px 0 0; max-width: 34rem; color: var(--fg-soft); font-size: 1.0625rem; line-height: 1.6; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* hero: the line runs behind the copy, full bleed */
.page-hero { position: relative; display: flex; flex-direction: column; min-height: clamp(38rem, calc(96 * var(--frame-vh)), 62rem); overflow: hidden; background: var(--paper); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.page-hero__copy { position: relative; display: flex; flex-direction: column; flex: 1; padding-block: calc(var(--f) + var(--bar) + clamp(40px, calc(7 * var(--frame-vh)), 96px)) clamp(24px, calc(4 * var(--frame-vh)), 48px); pointer-events: none; }
.page-hero__copy > * { pointer-events: auto; }
.page-hero h1 { font-size: clamp(2.8rem, calc(6.6 * var(--frame-vw)), 7rem); max-width: 12ch; }
.page-hero .glass { margin-top: auto; max-width: 31rem; }
.page-hero .glass p { font-size: 1rem; }

/* rows: a title and a line of text, split by hairlines */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows b { font: 400 1.375rem/1.25 var(--sans); letter-spacing: -0.02em; }
.rows span { color: var(--fg-soft); max-width: 40rem; }
.rows--tick li { grid-template-columns: 22px 1fr; column-gap: 14px; }
.rows--tick li > :not(.tick) { grid-column: 2; }
.split { container: split / inline-size; }
@container split (min-width: 900px) {
  .split__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(40px, 6cqi, 120px); align-items: start; }
  .split__grid > .sec__head { position: sticky; top: calc(var(--f) + var(--bar) + 40px); }
  .rows li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: 32px; align-items: baseline; }
  .rows--tick li { grid-template-columns: 22px minmax(0, 0.8fr) minmax(0, 1fr); }
  .rows--tick li > span { grid-column: 3; }
}

/* cells: the "What we make" grid, for jobs, routes and the open/paid split */
.cells { container: cells / inline-size; }
.cells__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.cell { display: flex; flex-direction: column; gap: 12px; padding: 36px 28px 32px; background: #fff; }
.cell__tag { margin: 0; font: 500 0.625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.cell h3 { margin: 0; font: 300 clamp(1.7rem, 3cqi, 2.4rem)/1.05 var(--sans); letter-spacing: -0.035em; }
.cell p { margin: 0; color: var(--fg-soft); max-width: 34ch; }
.cell__mark { width: 64px; height: 64px; margin-bottom: 28px; overflow: visible; }
.cell__keep { margin-top: auto !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.cell__keep b { font-weight: 500; color: var(--cobalt); }
.cell .link { margin-top: auto; align-self: flex-start; }
.cell--quiet { background: transparent; }
@container cells (min-width: 640px) { .cells__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cells__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container cells (min-width: 1100px) { .cells__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cell { padding: 44px 36px 40px; min-height: 22rem; } }

/* flow: steps on one cobalt line that fills as it comes into view */
.flow { container: flow / inline-size; }
.flow__list { position: relative; display: grid; gap: 28px; margin: 0; padding: 0 0 0 26px; list-style: none; }
.flow__list::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--cobalt), var(--cobalt)) top / 100% var(--fill) no-repeat, rgba(29, 71, 230, 0.16); }
.flow__list.is-in::before { --fill: 100%; transition: --fill 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s; }
.flow__list li { position: relative; display: grid; gap: 8px; }
.flow__list li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-hi); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.flow__list b { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.flow__list span { font: 300 1.375rem/1.3 var(--sans); letter-spacing: -0.015em; max-width: 22ch; }
@container flow (min-width: 820px) {
  .flow__list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; padding: 34px 0 0; }
  .flow__list::before { left: 0; right: 0; top: 4px; bottom: auto; width: auto; height: 1px; background: linear-gradient(var(--cobalt), var(--cobalt)) left / var(--fill) 100% no-repeat, rgba(29, 71, 230, 0.16); }
  .flow__list li::before { left: 0; top: -34px; }
}

/* the Shield screen, shown as a still product shot */
.dash--static { position: relative; inset: auto; height: clamp(34rem, calc(48 * var(--frame-vw)), 46rem); opacity: 1; transform: none; pointer-events: none; }
.shot__caption { margin: 14px 0 0; color: var(--fg-faint); font-size: 0.875rem; }

/* names of the systems Shield connects to */
.names { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.names li { display: inline-flex; align-items: center; height: 64px; padding: 0 28px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 400 1.375rem/1 var(--sans); letter-spacing: -0.02em; }

/* band: a cobalt section for security and control */
.band { background: var(--cobalt-deep); color: #fff; }
.band .eyebrow { color: #fff; }
.band .eyebrow::before { background: linear-gradient(currentColor, currentColor) left / var(--fill) 100% no-repeat, rgba(255, 255, 255, 0.3); }
.band .sec__lede { color: rgba(255, 255, 255, 0.75); }
.band__grid { container: band / inline-size; }
.band__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); }
.band__list li { display: grid; align-content: start; gap: 10px; padding: 30px 24px 34px; background: var(--cobalt-deep); }
.band__list b { font: 400 1.375rem/1.2 var(--sans); letter-spacing: -0.02em; }
.band__list span { color: rgba(255, 255, 255, 0.75); }
.band .link { color: #fff; margin-top: 40px; display: inline-block; }
@container band (min-width: 760px) { .band__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .band__list li { padding: 36px 32px 40px; } }

/* statement: one large line on its own */
.statement p:not(.eyebrow) { margin: 0; max-width: 24ch; font: 300 clamp(2rem, calc(4 * var(--frame-vw)), 3.8rem)/1.08 var(--sans); letter-spacing: -0.035em; }
.statement p:not(.eyebrow) + p { margin-top: 28px; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; letter-spacing: 0; color: var(--fg-soft); }

/* the homepage case studies on an inner page: no outer padding to bleed out of */
.cases--page { margin: 0; }

/* pricing */
.price { container: price / inline-size; }
.price__grid { display: grid; gap: 40px; padding: clamp(32px, 5cqi, 64px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.price__figure { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price__figure small { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); width: 100%; }
.price__figure b { font: 300 clamp(3.6rem, 11cqi, 7.5rem)/0.9 var(--sans); letter-spacing: -0.05em; }
.price__figure span { color: var(--fg-soft); font-size: 1.125rem; }
.price .rows li { padding-block: 16px; }
.price .rows b { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; }
@container price (min-width: 820px) { .price__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }

/* questions: an accordion in the same hairline rhythm */
.faq { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
  font: 400 clamp(1.2rem, calc(1.6 * var(--frame-vw)), 1.5rem)/1.3 var(--sans); letter-spacing: -0.015em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cobalt); }
.faq summary:focus-visible { outline: 1px solid var(--cobalt); outline-offset: 4px; }
.faq details p { margin: 0; padding: 0 0 28px; max-width: 44rem; color: var(--fg-soft); font-size: 1.0625rem; line-height: 1.65; }

/* closing call to action at the foot of each page */
.page-main .foot { margin-top: 0; }

/* legal pages: a sticky contents list beside the text */
.legal { container: legal / inline-size; padding-top: calc(var(--f) + var(--bar) + clamp(56px, calc(7 * var(--frame-vh)), 112px)); padding-bottom: clamp(64px, calc(6 * var(--frame-vw)), 120px); }
.legal h1 { font-size: clamp(2.6rem, calc(5.6 * var(--frame-vw)), 5.6rem); }
.legal__meta { margin: 18px 0 0; color: var(--fg-faint); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.legal__grid { display: grid; gap: 48px; margin-top: clamp(48px, calc(5 * var(--frame-vw)), 88px); padding-top: 40px; border-top: 1px solid var(--line); }
.legal__toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.legal__toc a { color: var(--fg-soft); text-decoration: none; }
.legal__toc a:hover, .legal__toc a:focus-visible { color: var(--cobalt); }
.legal__body { max-width: 44rem; }
.legal__body h2 { margin: 56px 0 16px; font-size: clamp(1.6rem, calc(2.4 * var(--frame-vw)), 2.2rem) !important; max-width: none !important; scroll-margin-top: 110px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--fg-soft); font-size: 1.0625rem; line-height: 1.7; }
.legal__body p { margin: 0 0 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal__body li { margin-bottom: 8px; }
.legal__body b { color: var(--ink); font-weight: 500; }
.legal__body a { color: var(--cobalt); }
@container legal (min-width: 900px) {
  .legal__grid { grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(48px, 8cqi, 140px); }
  .legal__toc { position: sticky; top: calc(var(--f) + var(--bar) + 40px); align-self: start; }
}

/* not found */
.page-hero--404 h1 { max-width: 14ch; }

/* text heroes: the copy, with the product (Shield) or an isometric mark (Partners, Open source) */
.page-hero--text {
  display: grid;
  gap: clamp(48px, calc(5 * var(--frame-vw)), 88px);
  min-height: 0;
  overflow: visible;
  padding-top: calc(var(--f) + var(--bar) + clamp(56px, calc(8 * var(--frame-vh)), 120px));
  padding-bottom: clamp(72px, calc(7 * var(--frame-vw)), 128px);
  background: var(--paper-hi);
}
.page-hero__lead h1 { margin-top: 2px; }
.page-hero__lead .sec__lede { font-size: clamp(1.0625rem, calc(1.2 * var(--frame-vw)), 1.25rem); }
.page-hero__mark { display: none; width: 100%; max-width: 22rem; justify-self: end; align-self: center; overflow: visible; }
.page-hero__shot .dash--static { height: clamp(34rem, calc(50 * var(--frame-vw)), 48rem); }
/* the hero spans the page, so the viewport decides its columns */
@media (min-width: 900px) {
  .page-hero--text:has(.page-hero__mark) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
  .page-hero__mark { display: block; }
}
.page-main .foot__cta { padding-top: clamp(96px, calc(9 * var(--frame-vw)), 160px); }
.foot__cta .sec__lede { margin-top: 6px; }

/* ── 4K and ultrawide: above 2100px the site is drawn from a 1920 design and zoomed with
   the screen (main.js sets --wide-zoom), so 3840×2160 looks like a sharper 1920×1080. */
@media (min-width: 131.25rem) {
  :root {
    --frame-vw: 1.2rem;   /* 1920px / 100 */
    --frame-vh: 0.57rem;  /* 912px browser viewport on a 1920×1080 screen / 100 */
  }
  .bar, .rail, .frame, .chapters, .callout, .callout-svg, .scroll-cue, .menu, .demo, .intro__lockup, .after, .page-main { zoom: var(--wide-zoom); }
  .page-main { --frame-pad: max(0px, calc((100% - 120rem) / 2)); }
  /* the page below zooms by the same factor; on ultrawide screens it is still wider than 1920, so it keeps a 1920 frame */
  .after { --frame-pad: max(0px, calc((100% - 120rem) / 2)); padding-inline: calc(var(--frame-pad) + var(--edge)); }
  /* the cobalt field runs out to the left edge of the screen; painted, so it never scrolls sideways */
  .cases__inner {
    border-image-source: conic-gradient(var(--cobalt-deep) 0 0);
    border-image-slice: 0 fill;
    border-image-outset: 0 0 0 100vmax;
  }
}
