/* ==========================================================================
   Capsys — brand stylesheet
   Palette, type scale and spacing taken from "Capsys Brand Identity (Blue)"
   ========================================================================== */

:root {
  --primary: #3b82f6;
  --secondary: #1e3a8a;
  --secondary-deep: #16296b;
  --tertiary: #dbeafe;
  --neutral: #f5f5f5;

  --ink: #0e1729;
  --ink-soft: #46536b;
  --ink-faint: #6f7c93;
  --line: #e3e7ee;
  --line-strong: #cfd7e4;
  --white: #ffffff;

  --ink-panel: #24449b;

  --tint-05: rgba(59, 130, 246, 0.05);
  --tint-10: rgba(59, 130, 246, 0.1);
  --tint-20: rgba(59, 130, 246, 0.2);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(14, 23, 41, 0.04);
  --shadow: 0 12px 32px -18px rgba(14, 23, 41, 0.28);
  --shadow-lg: 0 40px 80px -50px rgba(30, 58, 138, 0.55);

  --gutter: 24px;
  --maxw: 1200px;
  --narrow: 820px;

  --font: "League Spartan", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

/* smooth scrolling only after the page has been interacted with — on `html`
   it also animates the browser's scroll restoration on reload */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.56;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type scale ---------- */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.small {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

strong {
  font-weight: 700;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--tint {
  background: var(--neutral);
}

.section--ink {
  background: var(--secondary);
  color: var(--white);
}

/* depth layers — soft gradients that sit behind each alternating section and
   drift at their own rate on scroll (see the motion block at the end of the
   file). Deliberately no `overflow` or `clip-path` here: either one would
   disable `position: sticky` on the pathway stages inside this section. */

.section--tint,
.section--ink {
  position: relative;
}

.section--tint > .wrap,
.section--ink > .wrap {
  position: relative;
  z-index: 1;
}

.section--tint::after,
.section--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}

.section--ink::after {
  background-image: radial-gradient(
      42% 32% at 20% 34%,
      rgba(59, 130, 246, 0.5),
      transparent 66%
    ),
    radial-gradient(
      36% 28% at 84% 70%,
      rgba(219, 234, 254, 0.14),
      transparent 68%
    );
}

.section--tint::after {
  background-image: radial-gradient(
      34% 26% at 82% 26%,
      rgba(59, 130, 246, 0.11),
      transparent 68%
    ),
    radial-gradient(
      30% 24% at 10% 76%,
      rgba(30, 58, 138, 0.07),
      transparent 70%
    );
}

.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

.section--ink .lede,
.section--ink .small {
  color: rgba(255, 255, 255, 0.72);
}

.section--ink p a {
  color: var(--tertiary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--ink p a:hover {
  color: var(--white);
}

.section--ink .form p a,
.section--ink .form a {
  color: var(--secondary);
}

.section-head {
  max-width: var(--narrow);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head > * + * {
  margin-top: 20px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section--ink .eyebrow {
  color: var(--tertiary);
}

.section--ink .eyebrow::before {
  background: var(--tertiary);
}

.section-head--center .eyebrow {
  justify-content: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tint-05);
}

.btn--light {
  background: var(--white);
  color: var(--secondary);
}

.btn--light:hover {
  background: var(--tertiary);
  color: var(--secondary);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- brand mark ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  height: 30px;
  width: auto;
  flex: none;
}

.logo--light {
  color: var(--white);
}

.logo--light:hover {
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--primary);
}

.nav a.btn--primary,
.nav a.btn--primary:hover {
  color: var(--white);
}

.nav .btn {
  padding: 12px 22px;
  font-size: 0.9375rem;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--tertiary) 100%);
  padding-block: clamp(64px, 8vw, 112px) clamp(72px, 9vw, 120px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 45%;
  height: 620px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(59, 130, 246, 0.22),
    transparent 62%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy > * + * {
  margin-top: 26px;
}

.hero h1 {
  color: var(--secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* hero visual — stylised product frame */

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--neutral);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar b {
  margin-left: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.window-body {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--neutral);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--secondary);
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pathway-mini {
  display: grid;
  gap: 10px;
}

.pathway-mini li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.pathway-mini li em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--tint-10);
  border-radius: 6px;
  text-align: center;
  padding: 4px 0;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.tag--done {
  color: #0f6b3d;
  background: #e3f5ec;
}

.tag--live {
  color: var(--secondary);
  background: var(--tertiary);
}

.tag--next {
  color: var(--ink-faint);
  background: var(--neutral);
}

.tag--roadmap {
  color: #8a5a00;
  background: #fdf1da;
}

/* ---------- problem list ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.problem-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 1rem;
  color: var(--ink-soft);
}

.problem-grid li svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: var(--tint-20);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card > * + * {
  margin-top: 14px;
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tertiary);
  color: var(--secondary);
  transition: background-color 0.2s ease, color 0.2s ease, scale 0.2s ease,
    rotate 0.2s ease;
}

.card:hover .icon {
  background: var(--primary);
  color: var(--white);
  scale: 1.08;
  rotate: -3deg;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card p {
  font-size: 1rem;
  color: var(--ink-soft);
}

.card .problem-line {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

.card .problem-line b {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
}

/* ---------- stage gate map ---------- */

.gatemap {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.gm-route {
  display: grid;
  grid-template-columns: 2fr auto 4fr;
  align-items: stretch;
  gap: 26px;
}

.gm-phase {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
}

.gm-phase-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.gm-lane {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.gm-stage {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px 14px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.gm-stage::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: rgba(219, 234, 254, 0.55);
  transition: background-color 0.18s ease;
}

.gm-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: var(--tertiary);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.gm-icon svg {
  width: 23px;
  height: 23px;
}

.gm-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
  transition: color 0.18s ease;
}

.gm-title {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
  transition: color 0.18s ease;
}

.gm-stage:hover {
  background: var(--tertiary);
  border-color: var(--tertiary);
  box-shadow: 0 30px 60px -28px rgba(219, 234, 254, 0.85);
  transform: translateY(-4px);
}

.gm-stage:hover::before {
  background: var(--secondary);
}

.gm-stage:hover .gm-icon {
  border-color: rgba(30, 58, 138, 0.22);
  background: rgba(30, 58, 138, 0.1);
  color: var(--secondary);
}

.gm-stage:hover .gm-num {
  color: rgba(30, 58, 138, 0.68);
}

.gm-stage:hover .gm-title {
  color: var(--secondary);
}

/* the gateway — the boundary the route has to cross */

.gm-wall {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(84px, 8vw, 112px);
}

.gm-wall::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  width: 2px;
  border-radius: 2px;
  background: var(--tertiary);
}

.gm-wall-name {
  position: relative;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--tertiary);
  border-radius: 999px;
  padding: 7px 12px;
}

.gm-band {
  margin: 26px 0 0;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.gatemap figcaption {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 62ch;
}

@media (max-width: 1024px) {
  .gm-route {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gm-lane {
    flex-direction: column;
    align-items: stretch;
  }

  .gm-stage {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon num"
      "icon title";
    align-items: center;
    justify-content: start;
    gap: 2px 16px;
    text-align: left;
    padding: 16px 18px;
  }

  .gm-icon {
    grid-area: icon;
  }

  .gm-num {
    grid-area: num;
  }

  .gm-title {
    grid-area: title;
  }

  .gm-wall {
    width: auto;
    height: 40px;
  }

  .gm-wall::before {
    top: 50%;
    bottom: auto;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
  }
}

/* ---------- pathway timeline ---------- */

.pathway {
  --stack-top: 96px;
  --stack-step: 14px;
  display: grid;
  gap: 22px;
  position: relative;
}

/* progress rail: a track down the left gutter of the timeline, filled by the
   scroll position so the route is visibly travelled */

.pathway::before,
.pathway::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.pathway::before {
  background: rgba(255, 255, 255, 0.16);
}

.pathway::after {
  background: linear-gradient(180deg, var(--tertiary), var(--primary));
  transform-origin: 50% 0;
  scale: 1 0;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: var(--ink-panel);
  box-shadow: 0 26px 50px -30px rgba(2, 8, 30, 0.9);
}

/* stacking cards: each stage pins a little lower than the one before, so the
   pathway deals itself into a deck as you scroll */
@media (min-width: 861px) and (min-height: 700px) {
  .pathway {
    padding-bottom: clamp(40px, 8vw, 120px);
  }

  .stage {
    position: sticky;
    top: calc(var(--stack-top) + var(--stack-index, 0) * var(--stack-step));
  }

  .stage:nth-child(2) {
    --stack-index: 1;
  }
  .stage:nth-child(3) {
    --stack-index: 2;
  }
  .stage:nth-child(4) {
    --stack-index: 3;
  }
  .stage:nth-child(5) {
    --stack-index: 4;
  }
  .stage:nth-child(6) {
    --stack-index: 5;
  }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .stage {
        animation: stage-recede linear both;
        animation-timeline: view();
        animation-range: exit 25% exit 95%;
        transform-origin: 50% 0;
      }
    }
  }
}

@keyframes stage-recede {
  to {
    transform: scale(0.92);
    opacity: 0.45;
  }
}

.stage-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-label .num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.stage-label h3 {
  font-size: 1.5rem;
}

.stage-body > * + * {
  margin-top: 16px;
}

.stage-body .quote {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--white);
  text-wrap: pretty;
}

.stage-body .detail {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 62ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- AI section ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.chat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.msg {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 1rem;
  max-width: 88%;
}

.msg--user {
  justify-self: end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 5px;
}

.msg--bot {
  justify-self: start;
  background: var(--neutral);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.msg--bot .tag {
  display: inline-block;
  margin-top: 10px;
}

/* ---------- value cards ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.value {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value .num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.value p {
  font-size: 1rem;
  color: var(--ink-soft);
  flex: 1;
}

.value .audience {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- working together / steps ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.check-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 3px;
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 26px 24px 74px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}

.steps li p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-aside > * + * {
  margin-top: 22px;
}

.contact-aside .contact-lines {
  display: grid;
  gap: 12px;
  font-size: 1rem;
}

.contact-lines a {
  font-weight: 500;
}

.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.field label .req {
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--white);
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346536b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px 18px;
}

.field select:hover {
  border-color: var(--primary);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa5b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--tint-10);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding-block: 64px 32px;
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top p {
  margin-top: 16px;
  max-width: 46ch;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- legal pages ---------- */

.page-hero {
  background: var(--neutral);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 88px);
}

.page-hero .wrap > * + * {
  margin-top: 16px;
}

.legal {
  padding-block: clamp(56px, 7vw, 88px);
}

.legal .wrap {
  max-width: var(--narrow);
}

.legal h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  margin-top: 48px;
  margin-bottom: 14px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.legal ul li {
  padding-left: 22px;
  position: relative;
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.notice {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--tertiary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--secondary);
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.toc a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tint-05);
}

/* ==========================================================================
   Motion — CSS scroll-driven animations only, no JS.
   Everything below is progressive enhancement: browsers without
   `animation-timeline` render the page exactly as before, fully visible.
   Reveals animate the `translate` property rather than `transform`, so the
   filled end state doesn't override hover lifts on .card / .btn.
   ========================================================================== */

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    translate: -22px 0;
  }
}

@keyframes reveal-right {
  from {
    opacity: 0;
    translate: 22px 0;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 18px;
    scale: 0.97;
  }
}

@keyframes scroll-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes rail-fill {
  to {
    scale: 1 1;
  }
}

@keyframes gate-draw {
  from {
    scale: 1 0;
  }
}

@keyframes tone-shift {
  from {
    background-color: var(--secondary-deep);
  }
  to {
    background-color: var(--secondary);
  }
}

@keyframes depth-drift-slow {
  from {
    translate: 0 -28px;
  }
  to {
    translate: 0 28px;
  }
}

@keyframes depth-drift-fast {
  from {
    translate: 0 -52px;
  }
  to {
    translate: 0 52px;
  }
}

@keyframes hero-drift {
  to {
    translate: 0 -46px;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* --- hero: plays on load, not on scroll --- */

  .hero-copy > *,
  .hero-visual {
    animation: hero-in 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) both;
  }

  .hero-copy > *:nth-child(1) {
    animation-delay: 0.05s;
  }
  .hero-copy > *:nth-child(2) {
    animation-delay: 0.13s;
  }
  .hero-copy > *:nth-child(3) {
    animation-delay: 0.21s;
  }
  .hero-copy > *:nth-child(4) {
    animation-delay: 0.29s;
  }
  .hero-copy > *:nth-child(5) {
    animation-delay: 0.37s;
  }
  .hero-visual {
    animation-delay: 0.24s;
  }

  .pathway-mini li {
    animation: reveal-left 0.5s ease-out both;
  }
  .pathway-mini li:nth-child(1) {
    animation-delay: 0.5s;
  }
  .pathway-mini li:nth-child(2) {
    animation-delay: 0.6s;
  }
  .pathway-mini li:nth-child(3) {
    animation-delay: 0.7s;
  }
  .pathway-mini li:nth-child(4) {
    animation-delay: 0.8s;
  }
  .pathway-mini li:nth-child(5) {
    animation-delay: 0.9s;
  }

  @supports (animation-timeline: view()) {
    /* --- the route draws itself as the timeline is scrolled --- */

    .pathway::after {
      animation: rail-fill linear both;
      animation-timeline: view(block);
      animation-range: cover 22% cover 90%;
    }

    /* --- stage graphic assembles left to right, gateway drawn last --- */

    .gm-route .gm-stage {
      animation: reveal-up linear both;
      animation-timeline: view(block);
      animation-range: entry 70% contain 15%;
    }

    .gm-route > .gm-phase:first-child .gm-stage:nth-child(2) {
      animation-range: entry 78% contain 22%;
    }

    .gm-wall::before {
      animation: gate-draw linear both;
      animation-timeline: view(block);
      animation-range: entry 86% contain 30%;
    }

    .gm-wall-name {
      animation: reveal-in linear both;
      animation-timeline: view(block);
      animation-range: entry 94% contain 38%;
    }

    .gm-route > .gm-phase:last-child .gm-stage:nth-child(1) {
      animation-range: entry 90% contain 34%;
    }

    .gm-route > .gm-phase:last-child .gm-stage:nth-child(2) {
      animation-range: entry 96% contain 40%;
    }

    .gm-route > .gm-phase:last-child .gm-stage:nth-child(3) {
      animation-range: contain 2% contain 46%;
    }

    .gm-route > .gm-phase:last-child .gm-stage:nth-child(4) {
      animation-range: contain 8% contain 52%;
    }

    /* --- dark sections settle from a deeper navy as they come into view --- */

    .section--ink {
      animation: tone-shift linear both;
      animation-timeline: view(block);
      animation-range: entry 35% entry 100%;
    }

    /* --- section depth layers drift at two different rates --- */

    .section--ink::after {
      animation: depth-drift-slow linear both;
      animation-timeline: view(block);
      animation-range: cover 20% cover 95%;
    }

    .section--tint::after {
      animation: depth-drift-fast linear both;
      animation-timeline: view(block);
      animation-range: cover 20% cover 95%;
    }

    /* --- reading-progress bar under the sticky header --- */

    .site-header::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      transform: scaleX(0);
      transform-origin: 0 50%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      animation: scroll-progress linear both;
      animation-timeline: scroll(root block);
    }

    /* --- hero visual parallaxes away as the page scrolls --- */

    .hero-visual {
      animation: hero-in 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) 0.24s both,
        hero-drift linear both;
      animation-timeline: auto, view(block);
      animation-range: normal, exit 25% exit 100%;
    }

    /* --- section reveals --- */

    .section-head > *,
    .problem-grid li,
    .pillars .card,
    .values .value,
    .steps li,
    .check-list li,
    .chat .msg,
    .contact-aside > * {
      animation: reveal-up linear both;
      animation-timeline: view(block);
      animation-range: entry 50% entry 95%;
    }

    .section-head > *:nth-child(2) {
      animation-range: entry 56% entry 100%;
    }
    .section-head > *:nth-child(3) {
      animation-range: entry 62% entry 100%;
    }
    .section-head > *:nth-child(4) {
      animation-range: entry 68% entry 100%;
    }

    /* grids stagger by column, so a row deals itself in left to right */
    .problem-grid li:nth-child(3n + 2),
    .pillars .card:nth-child(3n + 2),
    .values .value:nth-child(4n + 2),
    .steps li:nth-child(2),
    .check-list li:nth-child(2n) {
      animation-range: entry 58% entry 100%;
    }

    .problem-grid li:nth-child(3n),
    .pillars .card:nth-child(3n),
    .values .value:nth-child(4n + 3),
    .steps li:nth-child(3) {
      animation-range: entry 66% entry 100%;
    }

    .values .value:nth-child(4n) {
      animation-range: entry 74% entry 100%;
    }

    .chat {
      animation: reveal-in linear both;
      animation-timeline: view(block);
      animation-range: entry 45% entry 90%;
    }

    .chat .msg {
      animation-range: entry 55% entry 100%;
    }

    .chat .msg--user {
      animation-name: reveal-right;
    }

    .chat .msg--bot {
      animation-name: reveal-left;
    }

    .chat .msg:nth-child(3),
    .chat .msg:nth-child(4) {
      animation-range: entry 65% entry 100%;
    }

    .chat .msg:nth-child(5),
    .chat .msg:nth-child(6) {
      animation-range: entry 75% entry 100%;
    }

    .form {
      animation: reveal-in linear both;
      animation-timeline: view(block);
      animation-range: entry 50% entry 95%;
    }

    .contact-aside > *:nth-child(n + 2) {
      animation-range: entry 58% entry 100%;
    }

    /* --- footer --- */

    .footer-top > * {
      animation: reveal-up linear both;
      animation-timeline: view(block);
      animation-range: entry 50% entry 100%;
    }

    .footer-top > *:nth-child(2) {
      animation-range: entry 58% entry 100%;
    }

    .footer-top > *:nth-child(3) {
      animation-range: entry 66% entry 100%;
    }
  }
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .ai-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    gap: 32px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .nav-toggle-label {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    color: var(--secondary);
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--gutter) 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 12px;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
