/* ==========================================================================
   Kaptivate — design system
   Headings: Clash Display · Body: Plus Jakarta Sans · Accent: #6334F0

   Two temperaments, one system:
   · dark sections   — taut, fast, low-contrast hairlines, faint grain
   · .band-light     — warm, calm, soft-shadowed panels, generous air
   Micro-interactions are fast (140ms) so the UI feels responsive; entrances
   are slow (700ms) so the page feels composed. Never the other way round.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink: #050507;
  --surface: #0b0b0f;
  --surface-2: #101017;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  /* Top-edge catch-light that gives dark panels their dimension */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  /* Type */
  --text: #edeef4;
  --text-dim: #a2a3b3;
  --text-faint: #6e6f80;

  /* Brand */
  --violet: #6334f0;
  --violet-lift: #7d55ff;
  --violet-soft: #a68cff;
  --violet-glow: rgba(99, 52, 240, 0.42);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --radius: 12px;
  --radius-lg: 18px;

  /* Motion — three speeds, two curves */
  --fast: 0.14s;    /* hover / press feedback */
  --base: 0.28s;    /* state changes, disclosure */
  --slow: 0.7s;     /* entrances */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Clash Display", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Lets <details> animate from 0 to auto */
  interpolate-size: allow-keywords;
}

/* Light band — the Mercury half. Warmer than pure white, panels sit on the
   surface with soft shadow rather than being cut out of it with borders. */
.band-light {
  --text: #16161d;
  --text-dim: #4d4d5c;
  --text-faint: #74748a;
  --line: rgba(12, 12, 24, 0.1);
  --line-strong: rgba(12, 12, 24, 0.2);
  --surface: #ffffff;
  --surface-2: #f4f4f0;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 12px 32px -16px rgba(20, 20, 40, 0.14);
  --violet-soft: #4a1fd0;
  --violet-glow: rgba(99, 52, 240, 0.16);
  /* Warm off-white rather than paper white — less glare at full-screen size */
  background: #f7f7f4;
  color: var(--text);
}

/* --------------------------------------------------------------- reset -- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain. Barely perceptible, but it stops large flat fields from
   looking like dead pixels and gives gradients somewhere to dither into. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

::selection { background: rgba(99, 52, 240, 0.85); color: #fff; }

/* Thin scrollbar, dark-native */
* { scrollbar-width: thin; scrollbar-color: #26262f transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #26262f;
  border: 3px solid var(--ink);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #363642; }

/* ---------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
  line-height: 1;
  letter-spacing: -0.038em;
}

.h-section {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.032em;
}

.h-card {
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  letter-spacing: -0.022em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--text-dim);
  max-width: 46ch;
  text-wrap: pretty;
}

/* Gradient-washed accent, the way Linear treats a highlighted phrase */
.accent {
  background: linear-gradient(96deg, var(--violet-soft) 10%, #cdbcff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.band-light .accent {
  background: none;
  color: var(--violet-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), transparent);
}

/* -------------------------------------------------------------- layout -- */

.wrap {
  width: min(1220px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section); }

.section-head {
  display: grid;
  gap: 1.4rem;
  max-width: 62ch;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Hairlines fade out rather than stopping dead — reads as lit, not drawn */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent 70%);
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  background: linear-gradient(180deg, var(--violet-lift), var(--violet));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform var(--fast) var(--ease-io),
              box-shadow var(--fast) var(--ease-io),
              filter var(--fast) var(--ease-io);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 2px 4px rgba(0, 0, 0, 0.3),
              0 10px 28px -10px var(--violet-glow);
}

.btn:active { transform: translateY(0); filter: brightness(0.97); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--edge);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.062);
  border-color: rgba(255, 255, 255, 0.26);
  filter: none;
  box-shadow: var(--edge), 0 6px 20px -12px rgba(0, 0, 0, 0.6);
}

.band-light .btn--ghost {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.band-light .btn--ghost:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn .arrow { transition: transform var(--base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--violet-soft);
  transition: gap var(--base) var(--ease-out);
}

.link-arrow svg { transition: transform var(--base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --------------------------------------------------------------- nav --- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--base) var(--ease-io),
              border-color var(--base) var(--ease-io);
}

/* Opaque enough to stay legible over the light band as well as the dark
   sections — the bar passes over both. */
.nav.is-stuck {
  background: rgba(6, 6, 9, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.2rem;
  transition: padding var(--base) var(--ease-io);
}

/* Condense on scroll — a few pixels, felt more than seen */
.nav.is-stuck .nav__inner { padding-block: 0.82rem; }

.nav__logo img {
  height: 26px;
  width: auto;
  transition: opacity var(--fast) var(--ease-io);
}

.nav__logo:hover img { opacity: 0.78; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  padding: 0;
}

.nav__links a {
  position: relative;
  font-size: 0.895rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease-io);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--violet-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--base) var(--ease-out);
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { padding: 0.66rem 1.3rem; font-size: 0.87rem; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--base) var(--ease-out),
              opacity var(--fast) var(--ease-io);
}

.nav__toggle span + span { margin-top: 4.5px; }

.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vw, 9.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Two aurorae on opposing slow drifts. Neither is legible on its own; the
   interference between them is what keeps the field from reading as static. */
.hero__glow,
.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.hero__glow {
  z-index: -2;
  top: -34%;
  left: 52%;
  width: min(1180px, 136vw);
  aspect-ratio: 1;
  background: radial-gradient(circle,
              rgba(110, 60, 255, 0.34) 0%,
              rgba(90, 50, 240, 0.14) 34%,
              transparent 62%);
  filter: blur(30px);
  opacity: 0.5;
  transform: translate3d(-50%, 0, 0);
  animation: drift-a 22s var(--ease-io) infinite;
}

.hero::before {
  z-index: -3;
  top: -18%;
  left: 20%;
  width: min(760px, 88vw);
  aspect-ratio: 1;
  background: radial-gradient(circle,
              rgba(56, 130, 255, 0.2) 0%,
              rgba(80, 70, 255, 0.1) 40%,
              transparent 66%);
  filter: blur(56px);
  opacity: 0.55;
  transform: translate3d(-50%, 0, 0);
  animation: drift-b 27s var(--ease-io) infinite;
}

/* Third pass, warm, far right — keeps the field from reading as one colour */
.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  top: 6%;
  right: -6%;
  width: min(560px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 90, 255, 0.13) 0%, transparent 66%);
  filter: blur(62px);
  pointer-events: none;
  animation: drift-c 31s var(--ease-io) infinite;
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-8%, 8%, 0) scale(1.14); }
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(-50%, 0, 0) scale(1); }
  50%      { transform: translate3d(-44%, 3%, 0) scale(1.09); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(-50%, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-58%, 6%, 0) scale(0.94); }
}

.hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.32;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 3.4vw, 2.9rem);
}

.hero h1 { max-width: 15ch; }

/* No max-width here — .lede caps its own measure; constraining the whole
   column would force the button row to wrap early. */
.hero__sub {
  display: grid;
  gap: 2rem;
  justify-items: start;
}

/* ======================================================================
   HERO VISUAL — the system diagram
   The site sells integration work, so the hero artifact is an integration:
   existing systems on the left, a delivery layer in the middle, the things
   people actually use on the right, with data visibly moving between them.
   ====================================================================== */

.hero--center { text-align: center; }
.hero--center .hero__inner { justify-items: center; }
.hero--center .hero h1,
.hero--center .lede { max-width: none; margin-inline: auto; }
.hero--center .lede { max-width: 60ch; }
.hero--center .hero__sub { justify-items: center; }

.h-hero {
  font-size: clamp(3rem, 8.2vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
  max-width: 17ch;
  margin-inline: auto;
}

/* Pill above the headline */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-dim);
  box-shadow: var(--edge);
}

.tagline b {
  padding: 0.16rem 0.55rem;
  background: rgba(99, 52, 240, 0.22);
  border-radius: 100px;
  color: var(--violet-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Perspective frame the diagram sits in */
.viz {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  perspective: 1600px;
}

.viz__frame {
  position: relative;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(99, 52, 240, 0.14), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--edge), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  transform: rotateX(9deg) scale(0.985);
  transform-origin: 50% 0;
  overflow: hidden;
}

/* Lit top edge on the frame */
.viz__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 165, 255, 0.7), transparent);
}

.viz svg { width: 100%; height: auto; display: block; }

/* Fade the diagram out at the bottom so it sits in the page rather than
   ending on a hard edge */
.viz::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
  border-radius: 0 0 24px 24px;
}

/* Diagram internals */
.node rect {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.14);
}

.node text {
  fill: #cfd0dc;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}

/* The payoff line under each outcome. Needs to out-specify `.node text`
   above, which otherwise sets these back to 15px and overflows the box. */
.node text.node__value {
  fill: #83849a;
  font-size: 12px;
  font-weight: 500;
}

/* Signals that the three outcomes are examples, not the whole menu. Sits
   below the column as a quiet aside rather than a fourth box, so it does not
   read as a missing item. */
.viz-more {
  fill: #71728a;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
}

.viz-more tspan { fill: var(--violet-soft); font-weight: 600; }

/* Column headings — the labels are what make the diagram self-explanatory */
.viz-label {
  fill: #6e6f80;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* Centre column: what we actually do, as three stages rather than one box */
.core rect {
  fill: rgba(99, 52, 240, 0.13);
  stroke: rgba(150, 115, 255, 0.55);
}

.core__title {
  fill: #b9a6ff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.core__stage {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.core__note {
  fill: #9a8fc4;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.core__rail { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.core__pip  { fill: #0b0b0f; stroke: rgba(166, 140, 255, 0.85); stroke-width: 1.5; }

/* A single marker walking Specify → Build → Operate */
.core__travel {
  fill: #a68cff;
  animation: travel 6s var(--ease-io) infinite;
}

@keyframes travel {
  0%, 8%    { transform: translateY(0); }
  30%, 42%  { transform: translateY(92px); }
  64%, 76%  { transform: translateY(184px); }
  98%, 100% { transform: translateY(0); }
}

.wire {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}

/* Packets travelling the wires. Each flow is offset so they do not pulse
   in unison, which would read as a loading bar rather than traffic. */
.flow {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 26 260;
  animation: flow 3.4s linear infinite;
}

.flow--2 { animation-delay: -0.85s; }
.flow--3 { animation-delay: -1.7s; }
.flow--4 { animation-delay: -2.55s; }
.flow--5 { animation-delay: -1.2s; }
.flow--6 { animation-delay: -2.1s; }

@keyframes flow { to { stroke-dashoffset: -286; } }

.node--core .pulse {
  transform-origin: center;
  animation: corePulse 3.4s var(--ease-io) infinite;
}

@keyframes corePulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

@media (max-width: 720px) {
  .viz__frame { transform: none; padding: 0.75rem; }
  .viz::after { display: none; }
}

/* ======================================================================
   CLIENT MARQUEE
   ====================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2rem, 4vw, 3.5rem);
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--fast) var(--ease-io);
}

.marquee__track span:hover { color: var(--text); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ======================================================================
   BENTO GRID
   Deliberately unequal. Four identical cards in a row is the layout that
   made every previous version read as a template.
   ====================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.bento__cell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
  overflow: hidden;
  transition: border-color var(--base) var(--ease-io),
              transform var(--base) var(--ease-out);
}

.bento__cell:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.bento__cell--wide { grid-column: span 4; }
.bento__cell--half { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }

.bento__cell h3 { font-size: clamp(1.18rem, 1.7vw, 1.42rem); letter-spacing: -0.022em; }
.bento__cell p { color: var(--text-dim); font-size: 0.945rem; }

.bento__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

/* Miniature stack drawing inside the wide cell */
.bento__art {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.bento__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.bento__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-soft);
  flex-shrink: 0;
}

.bento__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--third { grid-column: span 2; }
}

/* ======================================================================
   STICKY FLOW — heading pins while the stages scroll past it
   ====================================================================== */

.flowrow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.flowrow__pin {
  position: sticky;
  top: 8rem;
  display: grid;
  gap: 1.35rem;
  align-content: start;
}

/* The four stages read as a route, not four unrelated boxes — a rail runs
   the length of the list and each numbered node sits on it. */
.stagelist {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.stagelist::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg,
              var(--violet) 0%,
              rgba(99, 52, 240, 0.45) 55%,
              transparent 100%);
}

.stage {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-items: start;
}

.stage__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: clamp(1rem, 1.6vw, 1.3rem);
  border-radius: 50%;
  border: 1px solid rgba(150, 115, 255, 0.5);
  /* Opaque, so the rail passes behind the node rather than through it */
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-soft);
  transition: transform var(--base) var(--ease-out),
              border-color var(--base) var(--ease-io);
}

.stage__card {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
  transition: border-color var(--base) var(--ease-io),
              transform var(--base) var(--ease-out),
              box-shadow var(--base) var(--ease-out);
}

.stage:hover .stage__card {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--edge), 0 2px 4px rgba(20, 20, 40, 0.05),
              0 18px 40px -20px rgba(20, 20, 40, 0.25);
}

.stage:hover .stage__num {
  transform: scale(1.06);
  border-color: var(--violet);
}

.stage h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.stage p { color: var(--text-dim); font-size: 0.945rem; }

@media (max-width: 520px) {
  .stagelist::before { display: none; }
  .stage { grid-template-columns: 1fr; gap: 0.6rem; }
  .stage__num { margin-top: 0; }
}

@media (max-width: 900px) {
  .flowrow { grid-template-columns: 1fr; }
  .flowrow__pin { position: static; }
}

/* --------------------------------------------------------- trust strip -- */

.trust {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--line);
}

.trust__label {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.9rem;
}

.trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

/* Typographic client bar — uniform weight, legible at any size */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Separators are deliberately omitted: on wrap they orphan to the start of
     each new line. Spacing alone carries the separation at every width. */
  gap: 1rem clamp(1.75rem, 4vw, 3.25rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.clients li {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--fast) var(--ease-io);
}

.clients li:hover { color: var(--text); }

/* Wordmarks and square seals are optically matched by area, not by height —
   a 1:1 seal capped at wordmark height renders about a third of the weight. */
.trust__row img {
  height: clamp(21px, 2.4vw, 28px);
  width: auto;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.75) contrast(0.92);
  transition: opacity var(--base) var(--ease-io), filter var(--base) var(--ease-io);
}

.trust__row img.is-mark { height: clamp(40px, 4.2vw, 52px); }

.trust__row img:hover { opacity: 0.92; filter: grayscale(0) brightness(1.15); }

/* ------------------------------------------------------- capabilities -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(2rem, 3.2vw, 2.8rem);
  background: var(--surface);
  transition: background-color var(--base) var(--ease-io);
}

/* Cursor-tracked bloom, set from main.js */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(120, 80, 255, 0.14), transparent 66%);
  opacity: 0;
  transition: opacity var(--base) var(--ease-io);
  pointer-events: none;
}

.card:hover { background: var(--surface-2); }
.card:hover::after { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--violet-soft);
  letter-spacing: 0.09em;
}

.card p { color: var(--text-dim); font-size: 0.955rem; }

.card__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.865rem;
  color: var(--text-faint);
}

.card__list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.card__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
  translate: 0 -2px;
}

/* ------------------------------------------------------------ approach -- */

.phases { display: grid; gap: 0; }

.phase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 3.5vw, 2.7rem) clamp(0.75rem, 1.5vw, 1.25rem);
  margin-inline: clamp(-1.25rem, -1.5vw, -0.75rem);
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color var(--base) var(--ease-io);
}

.phase:last-child { border-bottom: 1px solid var(--line); }

.phase:hover { background: rgba(255, 255, 255, 0.022); }
.band-light .phase:hover { background: rgba(12, 12, 24, 0.022); }

/* A violet tick that grows down the left edge on hover */
.phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  width: 2px;
  height: 76%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--base) var(--ease-out);
}

.phase:hover::before { transform: scaleY(1); }

.phase__num {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  padding-top: 0.45rem;
  transition: color var(--fast) var(--ease-io);
}

.phase:hover .phase__num { color: var(--violet-soft); }

.phase h3 { font-size: clamp(1.32rem, 2.2vw, 1.8rem); }

.phase__body { display: grid; gap: 1rem; }
.phase__body p { color: var(--text-dim); font-size: 0.965rem; max-width: 52ch; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.33rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.775rem;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color var(--fast) var(--ease-io),
              border-color var(--fast) var(--ease-io);
}

.band-light .tag { background: rgba(12, 12, 24, 0.025); }

.phase:hover .tag { color: var(--text-dim); border-color: var(--line-strong); }

/* --------------------------------------------------------- engagements -- */

.engage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

.engage__item {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.9rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
  transition: border-color var(--base) var(--ease-io),
              transform var(--base) var(--ease-out),
              box-shadow var(--base) var(--ease-out);
}

.engage__item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--edge), 0 2px 4px rgba(0, 0, 0, 0.3),
              0 20px 44px -20px rgba(0, 0, 0, 0.7);
}

.engage__item--feature {
  border-color: rgba(99, 52, 240, 0.38);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(99, 52, 240, 0.17), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

.engage__item--feature:hover {
  border-color: rgba(125, 85, 255, 0.6);
  box-shadow: var(--edge), 0 20px 48px -22px var(--violet-glow);
}

.engage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.755rem;
  color: var(--text-faint);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge {
  padding: 0.24rem 0.62rem;
  background: rgba(99, 52, 240, 0.18);
  border: 1px solid rgba(99, 52, 240, 0.35);
  border-radius: 100px;
  color: var(--violet-soft);
  letter-spacing: 0.06em;
}

.engage__item p { color: var(--text-dim); font-size: 0.945rem; }

/* --------------------------------------------------------------- split -- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.principles {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding-left: 1.5rem;
}

/* Static rail plus a violet fill that wipes down it on hover */
.principles li::before,
.principles li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
}

.principles li::before { background: var(--line); }

.principles li::after {
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--base) var(--ease-out);
}

.principles li:hover::after { transform: scaleY(1); }

.principles strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.principles span { color: var(--text-dim); font-size: 0.945rem; }

/* ======================================================================
   CASE STUDIES
   ====================================================================== */

/* Index cards */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.case-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
  transition: border-color var(--base) var(--ease-io),
              transform var(--base) var(--ease-out);
}

.case-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.case-card__sector {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.case-card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.024em; }
.case-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Detail page: the meta strip under the headline */
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.4rem, 2.5vw, 1.9rem) 0;
  border-block: 1px solid var(--line);
}

.case-meta div { display: grid; gap: 0.35rem; align-content: start; }

.case-meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.case-meta dd { margin: 0; font-size: 0.95rem; color: var(--text); }

/* Long-form body, narrower measure than the rest of the site */
.case-body {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 68ch;
}

.case-block { display: grid; gap: 1rem; }

.case-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.028em;
}

.case-block p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.7; }

.case-block ul {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-block li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.case-block li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-soft);
  flex-shrink: 0;
  translate: 0 -3px;
}

/* Outcome tiles — the part enterprise buyers actually scan for */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.outcome {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--edge);
}

.outcome b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.outcome span { font-size: 0.9rem; color: var(--text-dim); }

/* Client quote */
.pullquote {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.9rem, 3.5vw, 2.75rem);
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(99, 52, 240, 0.14), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: pretty;
}

.pullquote figcaption { font-size: 0.9rem; color: var(--text-faint); }

/* ------------------------------------------------------- personal note -- */

/* A person asking to hear from you, rather than a panel selling an offer.
   Works with a photo or, until there is one, with initials. */
.personal {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.5vw, 28px);
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(99, 52, 240, 0.16), transparent 60%),
    var(--surface);
  box-shadow: var(--edge), var(--shadow);
  overflow: hidden;
}

.personal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 140, 255, 0.5), transparent);
}

.personal__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(84px, 9vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(99, 52, 240, 0.32), rgba(99, 52, 240, 0.08));
  border: 1px solid rgba(166, 140, 255, 0.35);
  box-shadow: 0 12px 32px -14px rgba(99, 52, 240, 0.7);
  flex-shrink: 0;
}

.personal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Initials stand in until a headshot exists */
.personal__photo span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #d6cbff;
}

.personal__body { display: grid; gap: 1.1rem; }

.personal__body h2 { max-width: 20ch; }

.personal__body p {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  max-width: 54ch;
}

/* Baseline, not centre: the name is set in the display face and the suffix in
   the body face, so centring them leaves the two sitting at different heights. */
.personal__sig {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.9rem !important;
  color: var(--text-faint) !important;
}

.personal__sig b {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

@media (max-width: 620px) {
  .personal { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- cta -- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.75rem) clamp(1.75rem, 5vw, 5rem);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.5vw, 28px);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(99, 52, 240, 0.2), transparent 62%),
    var(--surface);
  box-shadow: var(--edge), var(--shadow);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.8rem;
}

/* Lit top edge, the detail that makes the panel feel like a surface */
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 140, 255, 0.55), transparent);
}

.cta__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.cta > * { position: relative; z-index: 1; }
.cta p { color: var(--text-dim); max-width: 46ch; }

/* -------------------------------------------------------------- footer -- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

.footer__brand { display: grid; gap: 1.1rem; align-content: start; max-width: 34ch; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { color: var(--text-faint); font-size: 0.885rem; }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.footer__col ul { display: grid; gap: 0.65rem; padding: 0; list-style: none; }

.footer__col a {
  font-size: 0.905rem;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease-io);
}

.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- form -- */

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.form {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge), var(--shadow);
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.795rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.82rem 0.95rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.94rem;
  transition: border-color var(--fast) var(--ease-io),
              background-color var(--fast) var(--ease-io),
              box-shadow var(--fast) var(--ease-io);
}

.field textarea { resize: vertical; min-height: 130px; }

/* Focus ring as a soft halo rather than a hard outline */
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet-lift);
  background: rgba(99, 52, 240, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 52, 240, 0.18);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: right 1.05rem top 55%, right 0.7rem top 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field select option { background: var(--surface-2); }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.3rem;
}

.form__note { font-size: 0.81rem; color: var(--text-faint); }

.form__status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 9px;
  font-size: 0.9rem;
}

.form__status.is-visible { display: block; }
.form__status.is-ok {
  background: rgba(45, 217, 118, 0.1);
  border: 1px solid rgba(45, 217, 118, 0.32);
  color: #87eeb2;
}
.form__status.is-error {
  background: rgba(204, 51, 102, 0.1);
  border: 1px solid rgba(204, 51, 102, 0.32);
  color: #ff8fb0;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

/* Skip link — hidden until keyboard-focused */
.skip {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: 400;
  padding: 0.7rem 1.25rem;
  background: var(--violet);
  color: #fff;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  translate: -50% -200%;
  transition: translate var(--base) var(--ease-out);
}

.skip:focus-visible { translate: -50% 0; }

/* Aside next to the form */
.contact-aside { display: grid; gap: 2.4rem; align-content: start; }

.contact-block { display: grid; gap: 0.65rem; }
.contact-block h3 { font-size: 1.12rem; }
.contact-block p { color: var(--text-dim); font-size: 0.94rem; max-width: 42ch; }

.contact-block a[href^="mailto"] {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 500;
  color: var(--violet-soft);
  letter-spacing: -0.022em;
  transition: opacity var(--fast) var(--ease-io);
}

.contact-block a[href^="mailto"]:hover { opacity: 0.75; }

.steps {
  display: grid;
  gap: 1.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.93rem;
  color: var(--text-dim);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.77rem;
  color: var(--violet-soft);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------- page header -- */

.page-head {
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  isolation: isolate;
}

.page-head__glow {
  position: absolute;
  z-index: -1;
  top: -50%;
  left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 62%);
  filter: blur(40px);
  opacity: 0.42;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  animation: drift-a 24s var(--ease-io) infinite;
}

.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: 18ch; }

/* ------------------------------------------------------------ sectors -- */

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sectors li {
  padding: 0.42rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.845rem;
  color: var(--text-dim);
  transition: border-color var(--fast) var(--ease-io),
              color var(--fast) var(--ease-io),
              background-color var(--fast) var(--ease-io);
}

.sectors li:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ---------------------------------------------------------- assurance -- */

.assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.25rem);
}

/* Cards on the light band rather than bare columns under a heavy black rule —
   the rule was the loudest thing on the page and the type had nothing to sit
   against. */
.assurance__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--base) var(--ease-out),
              box-shadow var(--base) var(--ease-out);
}

.assurance__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(20, 20, 40, 0.05),
              0 18px 40px -18px rgba(20, 20, 40, 0.22);
}

.assurance__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.35rem;
  border-radius: 9px;
  background: rgba(99, 52, 240, 0.09);
  color: var(--violet-soft);
}

.assurance__icon svg { width: 17px; height: 17px; }

.assurance__item h3 {
  font-size: 1.04rem;
  letter-spacing: -0.018em;
}

.assurance__item p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.68;
}

/* Specification-style fact table — reads as a datasheet, not marketing.
   Rows highlight on hover the way a Mercury transaction list does. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0.6rem;
  margin-inline: -0.6rem;
  border-radius: 7px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--fast) var(--ease-io);
}

.facts div:hover { background: rgba(255, 255, 255, 0.03); }
.band-light .facts div:hover { background: rgba(12, 12, 24, 0.032); }

.facts dt {
  font-size: 0.84rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  font-size: 0.89rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- tech stack -- */

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.stack__group h4 {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.85rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.845rem;
  color: var(--text-dim);
  transition: border-color var(--fast) var(--ease-io),
              color var(--fast) var(--ease-io),
              background-color var(--fast) var(--ease-io);
}

.band-light .chips li { background: var(--surface); box-shadow: var(--shadow); }

.chips li:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/* ------------------------------------------- long-form detail sections -- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.detail:last-of-type { border-bottom: 1px solid var(--line); }

.detail__head {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.detail__head p { color: var(--text-dim); font-size: 0.96rem; max-width: 42ch; }

.detail__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.detail__cols h4 {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.95rem;
}

/* Two-column prose pairing, used for "what we ask of you" style blocks */
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.pair > div { display: grid; gap: 0.8rem; align-content: start; }
.pair h3 { font-size: 1.08rem; }
.pair p { color: var(--text-dim); font-size: 0.94rem; }

/* Client roster grouped by sector */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.roster__group h4 {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.85rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.roster__group ul { display: grid; gap: 0.65rem; padding: 0; margin: 0; list-style: none; }

.roster__group li {
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease-io);
}

.roster__group li:hover { color: var(--text); }

/* Cross-page navigation at the foot of a page */
.next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.next span { font-size: 0.84rem; color: var(--text-faint); }

/* ----------------------------------------------------------------- faq -- */

.faq { display: grid; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.01rem, 1.5vw, 1.16rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  cursor: pointer;
  list-style: none;
  transition: color var(--fast) var(--ease-io);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet-soft); }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate var(--base) var(--ease-out),
              translate var(--base) var(--ease-out);
}

.faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }

/* Height-animated disclosure. Browsers without ::details-content simply
   open instantly — no layout difference, only the transition is lost. */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size var(--base) var(--ease-out),
              opacity var(--base) var(--ease-io),
              content-visibility var(--base) allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.faq p {
  padding-bottom: 1.45rem;
  margin: 0;
  max-width: 70ch;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ======================================================================
   SIGNATURE LIGHTING
   The three effects that carry the Linear reference. All are additive —
   remove this block and the layout is untouched, only the light goes.
   ====================================================================== */

/* 1 — Gradient hairline borders.
   A 1px ring whose top edge is lit violet and fades to nothing by the
   bottom, masked so only the border shows. This is what makes a dark panel
   look lit from above rather than outlined. */
.cards,
.cta,
.form,
.engage__item {
  position: relative;
}

.cards::before,
.cta::after,
.form::before,
.engage__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    170deg,
    rgba(166, 140, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.09) 26%,
    transparent 55%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity var(--base) var(--ease-io);
}

.engage__item::before { opacity: 0.6; }
.engage__item:hover::before { opacity: 1; }

.engage__item--feature::before {
  background: linear-gradient(
    170deg,
    rgba(150, 115, 255, 0.95) 0%,
    rgba(120, 80, 255, 0.35) 30%,
    transparent 60%
  );
  opacity: 1;
}

.band-light .cards::before,
.band-light .form::before,
.band-light .engage__item::before {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), transparent 55%);
}

/* 2 — Section-wide cursor spotlight.
   One large bloom tracking the pointer across the whole grid, not a
   separate glow per card. Coordinates come from main.js. */
.cards::after,
.engage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, -20%),
    rgba(130, 90, 255, 0.16),
    rgba(130, 90, 255, 0.05) 38%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--base) var(--ease-io);
  pointer-events: none;
}

.engage { position: relative; }
.cards.is-lit::after,
.engage.is-lit::after { opacity: 1; }

/* Keep card content above both the spotlight and the ring */
.card { z-index: 1; }
.card > * { position: relative; z-index: 3; }
.engage__item > * { position: relative; z-index: 3; }

/* The per-card bloom is now redundant with the section spotlight */
.card::after { display: none; }

/* 3 — Lit section dividers.
   A hairline that brightens toward the centre and fades at both ends, so
   section boundaries read as light rather than as rules. */
.trust {
  border-block: 0;
  position: relative;
}

.trust::before,
.trust::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 100, 255, 0.28) 18%,
    rgba(180, 150, 255, 0.55) 50%,
    rgba(140, 100, 255, 0.28) 82%,
    transparent
  );
}

.trust::before { top: 0; }
.trust::after { bottom: 0; }

/* Same treatment under the stuck nav */
.nav.is-stuck::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(150, 115, 255, 0.4) 30%,
    rgba(150, 115, 255, 0.4) 70%,
    transparent
  );
}

/* A slow specular sweep across the CTA's top edge */
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg,
              transparent, rgba(210, 190, 255, 0.9), transparent);
  background-size: 42% 100%;
  background-repeat: no-repeat;
  animation: sweep 7s var(--ease-io) infinite;
}

@keyframes sweep {
  0%       { background-position: -50% 0; }
  55%, 100% { background-position: 150% 0; }
}

/* Scroll progress beam — element is created by main.js */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 350;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--violet), #a68cff 60%, #7fd0ff);
  box-shadow: 0 0 12px rgba(140, 100, 255, 0.7);
  pointer-events: none;
}

/* ======================================================================
   TRANSITIONS
   ====================================================================== */

/* Cross-page transitions. Browsers without the View Transitions API just
   navigate normally — there is no fallback to maintain. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.22s var(--ease-io) both;
}

::view-transition-new(root) {
  animation: vt-in 0.42s var(--ease-out) both;
}

@keyframes vt-out { to   { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } }

/* The header is the same object on every page, so it should not cross-fade
   with the rest — it stays put while the content changes underneath it. */
.nav { view-transition-name: site-nav; }

/* Headings wipe in behind a soft gradient mask instead of simply fading.
   The mask starts fully off to one side and slides across as the section
   enters, so the words resolve left-to-right like they are being written. */
[data-reveal] .h-display,
[data-reveal] .h-section {
  -webkit-mask-image: linear-gradient(100deg,
    #000 38%, rgba(0, 0, 0, 0.4) 58%, transparent 76%);
  mask-image: linear-gradient(100deg,
    #000 38%, rgba(0, 0, 0, 0.4) 58%, transparent 76%);
  -webkit-mask-size: 280% 100%;
  mask-size: 280% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.15s var(--ease-out),
              mask-position 1.15s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-in .h-display,
[data-reveal].is-in .h-section {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

/* Scroll-driven hero parallax. The hero settles back and dims as it leaves,
   so the section beneath feels like it is arriving rather than the page
   simply moving. Native scroll timelines — no scroll listener. */
@supports (animation-timeline: scroll()) {
  .hero__inner {
    animation: hero-recede linear both;
    animation-timeline: scroll();
    animation-range: 0 80vh;
  }

  .hero__glow {
    animation: drift-a 22s var(--ease-io) infinite,
               glow-recede linear both;
    animation-timeline: auto, scroll();
    animation-range: normal, 0 90vh;
  }

  @keyframes hero-recede {
    to { opacity: 0.18; transform: translateY(-52px) scale(0.985); }
  }

  @keyframes glow-recede {
    to { opacity: 0; }
  }
}

/* Specular sweep across a button on hover */
.btn { overflow: hidden; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
              transparent 34%, rgba(255, 255, 255, 0.38) 50%, transparent 66%);
  background-size: 250% 100%;
  background-position: 210% 0;
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after { animation: shine 0.75s var(--ease-io); }

@keyframes shine {
  from { background-position: 210% 0; opacity: 1; }
  to   { background-position: -60% 0; opacity: 0; }
}

/* ---------------------------------------------------------- animation -- */

/* Entrance: rise, fade and resolve from a slight blur. The blur is what
   separates this from a plain fade — it reads as focus, not opacity. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity var(--slow) var(--ease-out),
              transform var(--slow) var(--ease-out),
              filter var(--slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Children of a revealed grid cascade rather than arriving as a slab */
[data-stagger].is-in > * {
  animation: rise var(--slow) var(--ease-out) backwards;
}

[data-stagger].is-in > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { animation-delay: 70ms; }
[data-stagger].is-in > *:nth-child(3) { animation-delay: 140ms; }
[data-stagger].is-in > *:nth-child(4) { animation-delay: 210ms; }
[data-stagger].is-in > *:nth-child(5) { animation-delay: 280ms; }
[data-stagger].is-in > *:nth-child(6) { animation-delay: 350ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* First paint shouldn't flash — the page resolves in */
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: page-in 0.4s var(--ease-io) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__glow, .hero::before, .hero::after, .page-head__glow { animation: none; }
  .hero__inner { animation: none; }
  .cta::before { animation: none; }

  /* Unmask headings outright — the wipe is the animation */
  [data-reveal] .h-display,
  [data-reveal] .h-section {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .phase {
    grid-template-columns: 2.5rem 1fr;
  }
  .phase__body { grid-column: 2; }
  .phase__num { padding-top: 0.3rem; }

  .detail { grid-template-columns: 1fr; }
  .detail__head { position: static; }
}

@media (max-width: 820px) {
  .nav__toggle { display: grid; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem var(--gutter) 2rem;
    background: rgba(6, 6, 9, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--base) var(--ease-out),
                opacity var(--base) var(--ease-io),
                visibility var(--base);
  }

  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links li { width: 100%; border-top: 1px solid var(--line); }

  .nav__links a {
    display: block;
    padding: 1.05rem 0;
    font-family: var(--font-display);
    font-size: 1.32rem;
    color: var(--text);
  }

  .nav__cta { display: none; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Small screens read at arm's length on a bright panel — body copy that is
   comfortable at 1440px is not comfortable at 390px. Everything long-form
   goes up a step and opens out. */
@media (max-width: 680px) {
  body { font-size: 1.02rem; line-height: 1.72; }

  .assurance__item p,
  .pair p,
  .card p,
  .engage__item p,
  .phase__body p,
  .detail__head p,
  .principles span,
  .faq p,
  .contact-block p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .card__list,
  .detail__cols .card__list { font-size: 0.94rem; line-height: 1.6; }

  .assurance__item h3,
  .pair h3,
  .contact-block h3 { font-size: 1.14rem; }

  .facts dt, .facts dd { font-size: 0.94rem; }

  /* Stacked label/value reads better than a squeezed two-column row */
  .facts div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .facts dd { text-align: left; }

  .lede { font-size: 1.08rem; line-height: 1.68; }
}
