/* eLucid, daylight edition.
   A calm, light page whose colour, value and layout shift from section to section.
   Silka (Atipo) ships in Regular only, so hierarchy comes from size and colour, never synthesized weight. */
@font-face {
  font-family: "Silka";
  src: url("assets/fonts/silka-regular-webfont.woff2") format("woff2"), url("assets/fonts/silka-regular-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Silka";
  src: url("assets/fonts/silka-regularitalic-webfont.woff2") format("woff2"), url("assets/fonts/silka-regularitalic-webfont.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f4f6f9;
  --ink: #0b1524;
  --ink-2: #13233b;
  --text: #0b1524;
  --text-rgb: 11 21 36;
  --text-soft: #414e63;
  --text-dim: #5a677c;
  --signal: #1b5fdc;
  --signal-rgb: 27 95 220;
  --signal-2: #077a6e;
  --signal-2-rgb: 7 122 110;
  --warm: #a2640f;
  --warm-rgb: 196 128 34;
  --core-rgb: 14 38 84;
  --sky-light: #8ccaff;
  --aqua-light: #6fe3d3;
  /* Section and card tints: the same hues as the brand spectrum, at paper values. */
  --mist: #e2ecfb;
  --aqua: #d9f1eb;
  --sand: #f6ead6;
  --lilac: #e9e6fa;
  --sky: #d6ebf9;
  --line: rgb(11 21 36 / 0.12);
  --line-strong: rgb(11 21 36 / 0.24);
  --bg: var(--white);
  --bg-deep: var(--white);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: min(74rem, calc(100vw - 2 * var(--gutter)));
  --edge: max(var(--gutter), calc((100vw - 74rem) / 2));
  --pad: clamp(4rem, 7.2vw, 6.5rem);
  --panel: min(86rem, calc(100vw - 2 * clamp(0.75rem, 2vw, 2rem)));
  --panel-pad: max(1.5rem, calc(var(--edge) - (100vw - var(--panel)) / 2));
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --display: "Silka", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Silka", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
  background: var(--white);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong, b { font-weight: 400; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus { transform: none; }

h2 {
  font: 400 clamp(2.1rem, 4.3vw, 3.6rem)/1.06 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font: 400 1.35rem/1.25 var(--display);
  letter-spacing: -0.015em;
}

.section-label {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--signal);
  font-size: 0.95rem;
  line-height: 1.2;
}

.section-label::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

/* Reveals: content rises once as it enters view. Without scripting everything is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.25rem;
  padding: 0 var(--edge);
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.3rem 0;
}

/* The mark is supplied in white; on paper it is shown as ink. */
.brand img,
footer img {
  display: block;
  width: auto;
  height: 2rem;
  filter: brightness(0);
  opacity: 0.9;
}

.site-header nav {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
}

.site-header nav a {
  padding: 0.5rem 0.1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; justify-self: end; }

.nav-cta,
.primary-cta,
.closing-cta,
.ghost-cta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.nav-cta {
  min-height: 2.5rem;
  padding: 0 1.15rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.92rem;
}

.primary-cta,
.closing-cta {
  min-height: 3.25rem;
  padding: 0 1.6rem;
  background: var(--ink);
  color: var(--white);
  font-size: 1.02rem;
}

.nav-cta:hover,
.primary-cta:hover,
.closing-cta:hover { background: var(--signal); }

.primary-cta:active,
.closing-cta:active,
.nav-cta:active { transform: scale(0.98); }

.ghost-cta {
  min-height: 3.25rem;
  padding: 0 1.1rem;
  color: var(--text);
  font-size: 1.02rem;
}

.ghost-cta:hover { color: var(--signal); }
.ghost-cta span:last-child { transition: transform 0.25s var(--ease-out); }
.ghost-cta:hover span:last-child { transform: translateY(3px); }

.scroll-progress { display: none; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  order: 2;
  margin-left: 0.6rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}

.menu-toggle span { transform: translateY(-3px); }
.menu-toggle span::before { transform: translateY(6px); content: ""; }
.is-open .menu-toggle span { transform: rotate(45deg); }
.is-open .menu-toggle span::before { transform: rotate(-90deg); }

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  width: var(--wrap);
  min-height: min(100svh, 56rem);
  margin: 0 auto;
  padding: 5.5rem 0 clamp(1.5rem, 2.4vw, 2rem);
  isolation: isolate;
}

/* Daylight in the brand's azure and aqua, gathered softly behind the copy and falling off to white
   on every side. The fields are sized against the hero, so they keep their proportions on a phone. */
.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(100vw, 110rem);
  height: 100%;
  background:
    radial-gradient(40% 52% at 30% 36%, rgb(96 170 255 / 0.26), rgb(96 170 255 / 0.1) 42%, transparent 74%),
    radial-gradient(40% 52% at 70% 60%, rgb(80 220 200 / 0.22), rgb(80 220 200 / 0.08) 42%, transparent 74%),
    radial-gradient(64% 62% at 50% 46%, rgb(140 202 255 / 0.2), rgb(140 202 255 / 0.08) 45%, transparent 76%);
  translate: -50% 0;
  mask-image: linear-gradient(transparent 4rem, #000 15rem, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent 4rem, #000 15rem, #000 70%, transparent);
  content: "";
}

.hero-copy {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-kicker i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal), var(--signal-2));
}

.hero h1 {
  font: 400 clamp(2.6rem, 5.6vw, 5rem)/0.97 var(--display);
  letter-spacing: -0.05em;
}

.hero-accent {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 0.12em;
  background: linear-gradient(96deg, var(--signal) 8%, #1486c9 48%, var(--signal-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  margin-top: 2.1rem;
}

.hero-clients {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.hero-clients h2 { color: var(--text-soft); font: 400 1rem/1.2 var(--body); letter-spacing: 0; }

.client-logos {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 1rem clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  justify-content: space-between;
}

/* The marks are supplied for dark grounds; on paper they are set in one ink at one optical weight. */
.client-logo-frame { display: inline-flex; align-items: center; justify-content: center; height: 3.1rem; }
.client-logo-frame img { display: block; width: auto; height: 2.2rem; filter: brightness(0); opacity: 0.82; }
.client-logo-demiurge img { height: 2.05rem; }
.client-logo-embracer img { height: 2.45rem; }
.client-logo-saber img { width: 8rem; height: 2.4rem; }
.client-logo-subatomic img { height: 3.1rem; }
.client-logo-ludo img { height: 1.75rem; opacity: 1; }

/* One orchestrated arrival: the copy, then the clients. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.5rem); }
}

.js .hero-copy > * { animation: rise-in 1s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.26s; }
.js .hero-clients { animation: rise-in 1s 0.6s var(--ease-out) both; }

/* -------------------------------------------------- The case: a mist band */
.gain-section {
  padding: var(--pad) 0;
  background:
    radial-gradient(52rem 34rem at 92% 0%, rgb(84 150 255 / 0.55), transparent 62%),
    linear-gradient(165deg, #1b5fdc 0%, #174fc4 55%, #113f9f 100%);
  color: var(--white);
}

.gain-section :focus-visible { outline-color: var(--white); }
.gain-section .section-label { color: #d5e5ff; }

.gain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  width: var(--wrap);
  margin: 0 auto;
}

.gain-copy {
  display: flex;
  flex-direction: column;
  padding-right: clamp(0rem, 3vw, 3rem);
}

.gain-copy p:not(.section-label) {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.9);
  font-size: 1.1rem;
}

.gain-proof { color: var(--white); }

.gain-bars-card {
  margin-top: auto;
  padding: 1.6rem 1.75rem 1.4rem;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}

.gain-copy .gain-bars-card { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.gain-copy { justify-content: flex-start; }

.gain-visual {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  color: var(--white);
}

.gain-figure {
  font: 400 clamp(7rem, 17vw, 15rem)/0.8 var(--display);
  letter-spacing: -0.06em;
}

.gain-figure i { font-style: normal; font-size: 0.5em; letter-spacing: -0.03em; }
.gain-figure strong { font-size: 0.6em; vertical-align: 0.22em; }

.growth-chart { display: block; width: 100%; height: auto; overflow: visible; }
.gx-base { stroke: rgb(255 255 255 / 0.35); stroke-width: 1; }
.gx-area { fill: rgb(255 255 255 / 0.2); opacity: 0; }
.gx-high, .gx-low { fill: none; stroke: var(--white); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-width: 3.5; }
.gx-low { stroke: rgb(255 255 255 / 0.7); stroke-width: 2; }
.gx-gap { stroke: rgb(255 255 255 / 0.7); stroke-dasharray: 3 4; stroke-width: 1.5; opacity: 0; }
.gx-dot { fill: var(--white); opacity: 0; }
.gx-dot.is-low { fill: #174fc4; stroke: var(--white); stroke-width: 2; }
.gx-label { fill: rgb(255 255 255 / 0.92); font: 400 15px var(--body); opacity: 0; }
.gx-label.is-high { fill: var(--white); }
.gx-lead { fill: var(--white); font: 400 21px var(--display); letter-spacing: -0.02em; opacity: 0; }
.gain-visual.is-visible .gx-lead { animation: sa-appear 0.7s 1.7s ease both; }
.gx-axis { fill: rgb(255 255 255 / 0.85); font: 500 12px var(--mono); letter-spacing: 0.06em; }
.gain-visual.is-visible .gx-low { animation: sa-draw 1.4s 0.2s var(--ease-out) both; }
.gain-visual.is-visible .gx-high { animation: sa-draw 1.8s 0.4s var(--ease-out) both; }
.gain-visual.is-visible :is(.gx-area, .gx-dot, .gx-gap) { animation: sa-appear 0.7s 1.5s ease both; }
.gain-visual.is-visible .gx-label { animation: sa-appear 0.5s 0.3s ease both; }

.gain-note { max-width: 33rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.4; }

.growth-chart { margin-top: clamp(0.5rem, 1.4vw, 1.25rem); }
.gain-source { display: block; margin-top: 0.7rem; color: rgb(255 255 255 / 0.88); font-size: 0.88rem; }

/* Headcount bars */
.gain-bars { display: block; width: 100%; overflow: visible; }
.gb-title { fill: rgb(255 255 255 / 0.9); font: 500 9.5px var(--mono); letter-spacing: 0.14em; }
.gb-label { fill: var(--white); font: 400 11px var(--body); }
.gb-track { fill: rgb(255 255 255 / 0.16); }
.gb-bar { fill: rgb(255 255 255 / 0.55); transform: scaleX(0); transform-box: fill-box; transform-origin: left; }
.gb-bar.is-high { fill: var(--white); }
.gb-value { fill: rgb(255 255 255 / 0.9); font: 400 12px var(--body); opacity: 0; }
.gb-value.is-high { fill: var(--white); }
.in-view .gb-bar { animation: gb-grow 1.4s 0.3s var(--ease-out) both; }
.in-view .gb-bar:not(.is-high) { animation-delay: 0.55s; }
.in-view .gb-value { animation: sa-appear 0.6s 1.3s ease both; }
@keyframes gb-grow { to { transform: scaleX(var(--v)); } }

/* --------------------------- The adoption gap: white, with oversized figures */
.gap-section {
  padding: var(--pad) 0;
  background: var(--white);
}

.gap-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: var(--wrap);
  margin: 0 auto;
}

.gap-heading .section-label { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }

.gap-heading > p:not(.section-label) {
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.gap-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  width: var(--wrap);
  margin: clamp(2.5rem, 4.5vw, 3.75rem) auto 0;
}

.gap-stat {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--mist);
}

.gap-stat > p {
  margin-bottom: auto;
  padding-bottom: 2rem;
  color: var(--signal);
  font: 400 clamp(5.5rem, 12.4vw, 11.2rem)/0.82 var(--display);
  letter-spacing: -0.06em;
}

.gap-stat > p strong { font-size: 0.42em; letter-spacing: -0.02em; }
.gap-stat h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); text-wrap: balance; }
.gap-stat span:not(.count) { display: block; color: var(--text-soft); font-size: 0.88rem; line-height: 1.4; }

/* The answer to the gap is the page's one deep-teal moment. */
.gap-stat-accent {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 0.8fr);
  gap: 1.5rem clamp(1.5rem, 2.6vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.6vw, 3.25rem);
  background: radial-gradient(40rem 24rem at 100% 0%, rgb(27 95 220 / 0.75), transparent 70%), linear-gradient(120deg, #0c1f3d, #10305f);
  color: var(--white);
}

.gap-stat-accent > p {
  margin: 0;
  padding: 0;
  padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
  border-left: 1px solid rgb(255 255 255 / 0.28);
  color: var(--aqua-light);
  font-size: clamp(3.75rem, 6vw, 5.5rem);
}

.gap-stat-accent h3 { font-size: 1.15rem; }

.gap-stat.gap-stat-accent > div > span { margin-top: 0.9rem; color: rgb(255 255 255 / 0.85); }

.gap-conclusion { order: -1; }
.gap-stat-accent .gap-conclusion h3 { max-width: 14ch; font-size: clamp(2.1rem, 4.3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.gap-conclusion p { max-width: 30rem; margin-top: 1.1rem; color: rgb(255 255 255 / 0.88); font-size: 1.08rem; }

.gap-curve {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 2.6vw, 2.5rem) clamp(1.25rem, 3.4vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  --bg-deep: var(--paper);
}

.gap-curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.gc-stop { stop-color: rgb(var(--signal-rgb)); }
.gc-stop.is-aqua { stop-color: rgb(var(--signal-2-rgb)); }
.gc-base { stroke: rgb(var(--text-rgb) / 0.22); stroke-width: 1; }
.gc-area { fill: url(#gc-area); opacity: 0; }
.gc-tail { fill: var(--signal-2); opacity: 0; }
.gc-curve { fill: none; stroke: var(--signal); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-width: 1.8; }
.gc-bar { stroke: rgb(var(--text-rgb) / 0.5); stroke-dasharray: 3 5; stroke-width: 1; transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.gc-rider { fill: var(--signal); opacity: 0; }
.gc-label, .gc-axis { fill: var(--text-soft); font: 500 10.5px var(--mono); letter-spacing: 0.12em; opacity: 0; }
.gc-axis { fill: var(--text-dim); font-size: 9.5px; }
.gc-label.is-hot { fill: var(--signal-2); }
.gc-stat { fill: var(--signal-2); font: 400 24px var(--display); letter-spacing: -0.03em; opacity: 0; }
.in-view .gc-curve { animation: sa-draw 1.9s 0.2s var(--ease-out) both; }
.in-view .gc-area { animation: sa-appear 1.2s 0.9s ease both; }
.in-view .gc-bar { animation: gc-bar 0.9s 1.5s var(--ease-out) both; }
.in-view .gc-tail { animation: sa-appear 0.8s 2.2s ease both; }
.in-view .gc-label, .in-view .gc-axis { animation: sa-appear 0.8s 1.2s ease both; }
.in-view .gc-stat, .in-view .gc-label.is-hot { animation: sa-appear 0.8s 2.4s ease both; }
.in-view .gc-rider { animation: sa-appear 0.6s 2.6s ease both; }
@keyframes gc-bar { to { transform: scaleY(1); } }

/* ------------------------------------ What we build: the deep-navy interlude */
.build-section {
  padding: var(--pad) 0;
  background:
    radial-gradient(50rem 30rem at 88% 0%, rgb(27 95 220 / 0.38), transparent 70%),
    linear-gradient(180deg, #0c1f3d, #0a172d);
  color: var(--white);
}

.build-section :focus-visible { outline-color: var(--white); }

.build-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: var(--wrap);
  margin: 0 auto;
}

.build-heading .section-label { grid-column: 1 / -1; margin-bottom: 0; color: var(--sky-light); }
.build-heading h2 { max-width: 20ch; }
.build-heading > p:not(.section-label) { max-width: 46rem; color: rgb(255 255 255 / 0.82); font-size: 1.08rem; }

.build-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  width: var(--wrap);
  margin: clamp(2.5rem, 4.5vw, 3.75rem) auto 0;
}

.week-card {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--text);
}

.week-card :focus-visible { outline-color: var(--signal); }
.week-card figcaption { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; }
.week-title { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.02em; }

.week-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.week-toggle button {
  min-width: 5.25rem;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-soft);
  font: 400 0.95rem/1 var(--body);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.week-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.week-days {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.7vw, 0.6rem);
  min-height: clamp(8rem, 12vw, 10.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-days li {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(0.6rem, 1.2vw, 1rem);
  overflow: hidden;
  border-radius: var(--r-md);
  background: #17877a;
  color: var(--white);
  font: 500 0.82rem/1 var(--mono);
  letter-spacing: 0.04em;
}

/* Repetitive days are hatched amber, so the difference does not rest on colour alone. */
.week-days li::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #d5dae2 0 3px, #c6ccd6 3px 6px);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  content: "";
}

.week-days li span { position: relative; }

.week-days li em {
  position: absolute;
  top: clamp(0.6rem, 1.2vw, 1rem);
  left: clamp(0.6rem, 1.2vw, 1rem);
  color: var(--white);
  font-style: normal;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 0.6s 0.5s ease;
}

[data-week="after"] .week-days li em { opacity: 1; }
.week-days .is-rep::before { opacity: 1; }
.week-days .is-rep span { color: var(--ink); transition: color 0.6s ease; }
[data-week="after"] .week-days .is-freed span { color: var(--white); }
[data-week="after"] .week-days .is-freed::before { opacity: 0; }
[data-week="after"] .week-days .is-freed:nth-child(3)::before { transition-delay: 0.18s; }

.week-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--text-soft); font-size: 0.98rem; }
.week-key { display: inline-flex; gap: 0.6rem; align-items: center; }
.week-key b { color: var(--text); }
.week-key::before { width: 0.9rem; height: 0.9rem; border-radius: 0.25rem; background: #17877a; content: ""; }
.week-key.is-rep::before { background: repeating-linear-gradient(135deg, #d5dae2 0 2px, #b9c0cc 2px 4px); }

.build-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.build-mode { min-height: 17rem; }

/* Each day carries faint hour marks, so the bars read as measured time. */
.week-days li::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 calc(12.5% - 1px), rgb(255 255 255 / 0.11) calc(12.5% - 1px) 12.5%);
  content: "";
}

.week-days li span, .week-days li em { z-index: 1; }

.build-mode {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-radius: var(--r-xl);
}

.build-mode-rules { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.build-mode-ai { background: linear-gradient(140deg, #0a6a62, #0b5479); }

.mode-art {
  width: 7.5rem;
  height: auto;
  margin-bottom: auto;
  overflow: visible;
  fill: none;
  stroke: rgb(255 255 255 / 0.85);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.mode-art .is-dot { fill: var(--aqua-light); stroke: none; }

.build-mode-label {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.75rem;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.92rem;
}

.build-mode-label i { display: none; }
.build-mode h3 { margin-top: 0.6rem; font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: -0.025em; }
.build-mode > p:last-child { margin-top: 0.6rem; color: rgb(255 255 255 / 0.82); font-size: 1rem; }

/* ---------------------------------------- The method: a horizontal carousel */
.loop-section {
  padding: var(--pad) 0;
  background: var(--paper);
}

.loop-heading {
  display: grid;
  justify-items: center;
  width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.loop-heading h2 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1; letter-spacing: -0.05em; }
.loop-heading > p:not(.section-label) { max-width: 34rem; margin-top: 1.2rem; color: var(--text-soft); font-size: 1.1rem; }

.method-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.method-nav button {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.method-nav button:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.method-nav svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.method-track {
  --card: clamp(19rem, calc((100vw - var(--edge) - 2.5rem) / 2.17), 40rem);
  --track-gap: clamp(0.9rem, 1.4vw, 1.25rem);
  display: flex;
  gap: var(--track-gap);
  margin-top: clamp(1.5rem, 2.4vw, 2rem);
  padding: 0.5rem var(--edge) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.method-track::-webkit-scrollbar { display: none; }
.method-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.method-track:focus-visible { outline: none; }
.method-track:focus-visible .loop-chapter.is-current { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Two full cards and a deliberate sliver of the next. */
.loop-chapter {
  position: relative;
  display: flex;
  flex: 0 0 var(--card);
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--tint);
  scroll-snap-align: start;
  transition: box-shadow 0.4s ease;
  --bg-deep: var(--white);
  --hue: var(--signal);
}

.loop-chapter { transition: background-color 0.5s ease, color 0.5s ease; }
.loop-chapter.is-current { background: var(--hue); color: var(--white); }
.loop-chapter.is-current h3, .loop-chapter.is-current > p::after { color: var(--white); }
.loop-chapter.is-current > span { color: rgb(255 255 255 / 0.92); }
/* The five cards step through the brand spectrum, azure to mineral green. */
.loop-chapter[data-loop="0"] { --tint: #dfe9fc; --hue: #1b5fdc; }
.loop-chapter[data-loop="1"] { --tint: #d9ebfa; --hue: #1267c0; }
.loop-chapter[data-loop="2"] { --tint: #d5eef5; --hue: #0c6f9c; }
.loop-chapter[data-loop="3"] { --tint: #d4f0ee; --hue: #08757f; }
.loop-chapter[data-loop="4"] { --tint: #d6f1e7; --hue: #066f64; }

.loop-return {
  display: flex;
  flex: 0 0 max(15rem, calc(100vw - 2 * var(--edge) - var(--card) - var(--track-gap)));
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--white);
  scroll-snap-align: end;
}

.loop-return svg { width: clamp(9rem, 17vw, 15rem); height: auto; margin-bottom: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lr-track { stroke: rgb(255 255 255 / 0.22); stroke-width: 1.5; }
.lr-arc, .lr-head { stroke: var(--aqua-light); stroke-width: 3; }
.lr-node { fill: var(--ink); stroke: rgb(255 255 255 / 0.7); stroke-width: 1.5; }
.lr-node.is-first { fill: var(--aqua-light); stroke: var(--aqua-light); }
.loop-return p { margin-top: 2.5rem; font: 400 clamp(1.7rem, 3vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.04em; text-wrap: balance; }

.loop-return button {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1 var(--body);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.loop-return button:hover { background: var(--aqua-light); }
.loop-return :focus-visible { outline-color: var(--white); }

.loop-chapter > p {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  justify-content: space-between;
  font: 400 clamp(2.3rem, 4.2vw, 3.6rem)/1 var(--display);
  letter-spacing: -0.045em;
}

.loop-chapter > p::after {
  flex: none;
  color: var(--hue);
  font: 500 0.9rem/1 var(--mono);
  letter-spacing: 0.04em;
  content: "0" attr(data-step) " / 05";
}

.loop-chapter h3 {
  margin-top: 1.1rem;
  color: var(--hue);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.loop-chapter > span {
  display: block;
  max-width: 34rem;
  margin: 0.6rem 0 1.25rem;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.step-art {
  width: 100%;
  height: auto;
  margin-top: auto;
  padding: clamp(0.8rem, 1.2vw, 1.1rem) clamp(0.9rem, 1.5vw, 1.25rem);
  overflow: visible;
  border-radius: var(--r-lg);
  background: var(--white);
  --sa-ink: rgb(var(--text-rgb) / 0.5);
  --sa-line: var(--signal);
  --sa-hot: var(--signal-2);
}

.sa-base, .sa-step, .sa-module rect, .sa-meter, .sa-bound, .sa-goal, .sa-link, .sa-wire, .sa-flow, .sa-control-line,
.sa-loop, .sa-loop-head, .sa-orbit, .sa-target, .sa-trend, .sa-person, .sa-human path, .sa-knob line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sa-base { stroke: var(--sa-ink); stroke-width: 1; }
.sa-step { stroke: var(--sa-ink); stroke-width: 1; }
.sa-label { fill: var(--text-soft); font: 500 12px var(--mono); letter-spacing: 0.08em; }
.sa-label.is-hot { fill: var(--sa-hot); }

.sa-bar { fill: rgb(var(--signal-rgb) / 0.6); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.04); }
.sa-scan { fill: rgb(var(--signal-2-rgb) / 0.6); opacity: 0; }
.sa-loop { stroke: var(--warm); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.4; }
.sa-loop-head { stroke: var(--warm); stroke-width: 1.4; opacity: 0; }
.sa-target { stroke: var(--sa-hot); stroke-dasharray: 3 3; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.step-art .sa-label { opacity: 0; }

.is-playing .sa-scan { animation: sa-scan 1.3s 0.1s var(--ease-soft) both; }
.is-playing .sa-bar { animation: sa-grow 0.35s calc(0.15s + var(--i) * 0.15s) var(--ease-out) both; }
.is-playing .sa-bar.is-peak { animation: sa-grow 0.35s 0.45s var(--ease-out) both, sa-peak 0.5s 1.5s var(--ease-out) both; }
.is-playing .sa-bar.is-loop { animation: sa-grow 0.35s calc(0.15s + var(--i) * 0.15s) var(--ease-out) both, sa-loop-bar 0.5s 1.7s var(--ease-out) both; }
.is-playing .sa-target { animation: sa-appear 0.3s 1.5s var(--ease-out) both, sa-spin 9s 1.5s linear infinite; }
.is-playing .sa-loop { animation: sa-draw 0.55s 1.7s var(--ease-out) both; }
.is-playing .sa-loop-head { animation: sa-appear 0.2s 2.15s ease both; }
.is-identify.is-playing .sa-label { animation: sa-appear 0.3s 1.6s ease both; }

.sa-ghost { fill: none; stroke: rgb(var(--text-rgb) / 0.22); stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 1.5; }
.sa-flow { stroke: var(--sa-line); stroke-width: 1.5; }
.sa-nodes circle { fill: var(--bg-deep); stroke: var(--sa-line); stroke-width: 1.3; opacity: 0; }
.sa-bound { stroke: rgb(var(--signal-rgb) / 0.55); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1; }
.sa-control-line { stroke: var(--sa-hot); stroke-dasharray: 2 3; stroke-width: 1; opacity: 0; }
.sa-person { fill: none; stroke: var(--sa-hot); stroke-width: 1.4; opacity: 0; }
circle.sa-person { fill: rgb(var(--signal-2-rgb) / 0.2); }
.sa-knob { opacity: 0; transform-box: fill-box; transform-origin: center; }
.sa-knob circle { fill: var(--bg-deep); stroke: var(--sa-hot); stroke-width: 1.4; }
.sa-knob line { stroke: var(--sa-hot); stroke-width: 1.5; }

.is-playing .sa-nodes circle { animation: sa-appear 0.3s 0.95s ease both; }
.is-playing .sa-bound { animation: sa-draw 0.6s 1.05s var(--ease-out) both; }
.is-playing .sa-person { animation: sa-appear 0.35s 1.6s ease both; }
.is-playing .sa-control-line { animation: sa-appear 0.3s 1.75s ease both; }
.is-playing .sa-knob { animation: sa-appear 0.3s 1.75s ease both, sa-knob 2.5s 2.1s var(--ease-soft) 2; }
.is-design.is-playing .sa-label { animation: sa-appear 0.3s 1.2s ease both; }

.sa-module { opacity: 0; transform: translateY(18px); }
.sa-module rect { fill: rgb(255 255 255 / 0.6); stroke: rgb(var(--signal-2-rgb) / 0.7); stroke-width: 1.1; }
.sa-icon { fill: none; stroke: var(--text-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.3; }
.sa-module:nth-of-type(2) .sa-icon { stroke: var(--signal); }
.sa-wire { stroke: rgb(var(--signal-2-rgb) / 0.8); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.3; }
.sa-meter { stroke: var(--sa-ink); stroke-width: 1; }
.sa-meter-fill { fill: var(--signal-2); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.sa-pulse { fill: var(--signal); opacity: 0; }

.is-playing .sa-module { animation: sa-rise 0.4s calc(0.1s + var(--i) * 0.09s) var(--ease-out) both; }
.is-playing .sa-wire { animation: sa-draw 0.65s 0.55s var(--ease-out) both; }
.is-playing .sa-pulse { animation: sa-appear 0.15s 1.1s ease both; }
.is-playing .sa-meter-fill { animation: sa-fill 1.8s 1.3s var(--ease-soft) both; }
.is-implement.is-playing .sa-label { animation: sa-appear 0.3s 0.5s ease both; }

.sa-link { stroke: rgb(var(--text-rgb) / 0.35); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1; }
.sa-human circle { fill: var(--bg-deep); stroke: var(--sa-ink); stroke-width: 1.3; }
.sa-human path { stroke: var(--sa-ink); stroke-width: 1.3; }
.sa-badge { fill: var(--warm); opacity: 0; }

.is-playing .sa-link { animation: sa-draw 0.45s calc(0.25s + var(--w) * 0.35s) var(--ease-out) both; }
.is-playing .sa-human circle { animation: sa-adopt 0.4s calc(0.15s + var(--w) * 0.35s) var(--ease-out) both; }
.is-playing .sa-human path { animation: sa-adopt-line 0.4s calc(0.15s + var(--w) * 0.35s) var(--ease-out) both; }
.is-playing .sa-badge { animation: sa-appear 0.25s calc(0.4s + var(--w) * 0.35s) ease both; }

.sa-goal { stroke: var(--warm); stroke-dasharray: 4 5; stroke-width: 1; }
.sa-win { fill: rgb(var(--signal-rgb) / 0.35); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.04); }
.sa-trend { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.5; }
.sa-orbit { stroke: var(--sa-hot); stroke-dasharray: 3 4; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sa-apex { fill: var(--sa-hot); opacity: 0; }

.is-playing .sa-win { animation: sa-grow 0.35s calc(0.1s + var(--i) * 0.11s) var(--ease-out) both; }
.is-playing .sa-win.is-over { animation: sa-grow 0.35s calc(0.1s + var(--i) * 0.11s) var(--ease-out) both, sa-over 0.4s calc(0.3s + var(--i) * 0.11s) ease both; }
.is-playing .sa-trend { animation: sa-draw 0.8s 0.8s var(--ease-out) both; }
.is-playing .sa-apex { animation: sa-appear 0.25s 1.5s ease both; }
.is-playing .sa-orbit { animation: sa-appear 0.4s 1.55s ease both, sa-spin 14s 1.55s linear infinite; }
.is-optimize.is-playing .sa-label { animation: sa-appear 0.3s 0.1s ease both; }

@keyframes sa-grow { to { transform: scaleY(1); } }
@keyframes sa-draw { to { stroke-dashoffset: 0; } }
@keyframes sa-appear { to { opacity: 1; } }
@keyframes sa-rise { to { opacity: 1; transform: none; } }
@keyframes sa-spin { to { rotate: 360deg; } }
@keyframes sa-fill { to { transform: scaleY(0.86); } }
@keyframes sa-scan {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(436px); }
}
@keyframes sa-peak { to { fill: var(--sa-hot); } }
@keyframes sa-loop-bar { to { fill: var(--warm); } }
@keyframes sa-over { to { fill: var(--signal-2); } }
@keyframes sa-knob {
  0%, 100% { rotate: 0deg; }
  40% { rotate: 70deg; }
  70% { rotate: 25deg; }
}
@keyframes sa-adopt { to { fill: rgb(var(--signal-2-rgb) / 0.25); stroke: var(--sa-hot); } }
@keyframes sa-adopt-line { to { stroke: var(--sa-hot); } }

.step-art :is(.sa-base, .sa-step, .sa-meter, .sa-bound, .sa-goal, .sa-link, .sa-control-line, .sa-target, .sa-orbit) { stroke-width: 1.5; }
.step-art :is(.sa-flow, .sa-wire, .sa-trend, .sa-loop, .sa-loop-head, .sa-person, .sa-knob circle, .sa-knob line, .sa-human circle, .sa-human path, .sa-module rect, .sa-icon, .sa-nodes circle) { stroke-width: 2; }
.step-art .sa-win { fill: rgb(var(--signal-rgb) / 0.45); }
.step-art .sa-bar { fill: rgb(var(--signal-rgb) / 0.7); }
.step-art .sa-step { fill: rgb(var(--text-rgb) / 0.05); }
.step-art .sa-bound { fill: rgb(var(--signal-rgb) / 0.06); }

/* The stepper under the track is the loop itself: a line of five stops that returns to the start. */
.method-steps {
  display: flex;
  align-items: flex-start;
  width: var(--wrap);
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.method-steps li { flex: 1; min-width: 0; }

.method-steps li:not(.method-return) button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 1.1rem 0.5rem 0.4rem 0;
  border: 0;
  border-top: 2px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--text-dim);
  font: 400 1rem/1.2 var(--body);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.method-steps li:not(.method-return) button::before {
  position: absolute;
  top: -0.45rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, scale 0.3s var(--ease-out);
  content: "";
}

.method-steps li:not(.method-return) button:hover { color: var(--text); }
.method-steps li:not(.method-return) button.is-done { color: var(--text-soft); }
.method-steps li:not(.method-return) button.is-done::before { border-color: var(--ink); background: var(--ink); }
.method-steps li:not(.method-return) button.is-current { color: var(--text); }

/* The rail fills up to the current step, and empties when the loop starts over. */
.method-steps li:not(.method-return) button::after {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  content: "";
}

.method-steps li:not(.method-return) button.is-past::after { transform: scaleX(1); }
.method-steps li:last-child { flex: none; }
.method-steps li:last-child button { border-top-color: transparent; }
.method-steps li:not(.method-return) button.is-current::before { border-color: var(--ink); background: var(--ink); scale: 1.5; }

/* ----------------------------- What remains: three open columns on pale aqua */
.retained-section {
  padding: var(--pad) 0;
  background: var(--white);
}

.retained-heading {
  width: var(--wrap);
  margin: 0 auto;
}

.retained-heading .section-label { color: var(--signal-2); }
.retained-heading h2 { max-width: 16ch; }

.retained-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(2.5rem, 5.2vw, 5rem);
  width: var(--wrap);
  margin: clamp(2.5rem, 4.5vw, 3.75rem) auto 0;
}

.retained-line {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  padding: 0.5rem 0;
}

.retained-line + .retained-line::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * clamp(1.25rem, 2.6vw, 2.5rem));
  width: 1px;
  background: var(--line-strong);
  content: "";
}
.retained-figure { order: -1; width: 100%; height: auto; overflow: visible; }
.retained-copy > span { display: block; margin-bottom: 0.6rem; color: var(--signal-2); font-size: 1rem; }
.retained-copy h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); letter-spacing: -0.025em; text-wrap: balance; }

.retained-figure .ra-label { fill: var(--text-soft); font: 500 10.5px var(--mono); letter-spacing: 0.04em; }
.retained-figure .ra-label.is-hot { fill: var(--signal-2); }
.ra-track, .ra-rule { stroke: rgb(var(--text-rgb) / 0.28); stroke-width: 1; stroke-linecap: round; }
.ra-rule.is-short { stroke: rgb(var(--text-rgb) / 0.18); }
.ra-progress { stroke: var(--signal-2); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-width: 2; }
.ra-milestone { fill: var(--white); stroke: rgb(var(--text-rgb) / 0.45); stroke-width: 1.2; }
.ra-milestone.is-done { fill: var(--signal-2); stroke: var(--signal-2); }
.ra-milestone.is-next { stroke: var(--signal); }
.ra-marker { fill: var(--ink); }
.ra-bar { fill: rgb(var(--signal-rgb) / 0.5); transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
.ra-bar.is-warm { fill: #e2b46b; }
.ra-card { fill: var(--paper); stroke: rgb(var(--signal-rgb) / 0.45); stroke-width: 1; }
.ra-card.is-future { stroke: rgb(var(--signal-2-rgb) / 0.6); }
.ra-chip { fill: rgb(var(--text-rgb) / 0.08); stroke: rgb(var(--text-rgb) / 0.35); stroke-width: 1; }
.ra-slot { fill: none; stroke: rgb(var(--signal-2-rgb) / 0.55); stroke-dasharray: 2 2; stroke-width: 1; }
.ra-carry { fill: var(--signal-2); opacity: 0; }
.ra-arc { fill: none; stroke: rgb(var(--signal-2-rgb) / 0.7); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-width: 1; }
.ra-key { fill: none; stroke: var(--signal-2); stroke-linecap: round; stroke-width: 1.4; }
.ra-version rect { fill: var(--mist); stroke: rgb(var(--signal-rgb) / 0.6); stroke-width: 1; }
.ra-ver { fill: var(--text); font: 500 8.5px var(--mono); opacity: 0; }
.ra-ver[style*="--v: 2"] { opacity: 1; }
.ra-toggle rect { fill: rgb(var(--signal-2-rgb) / 0.25); stroke: var(--signal-2); stroke-width: 1; }
.ra-toggle circle { fill: var(--signal-2); transform: translateX(10px); transform-box: view-box; }
.ra-spark { fill: none; stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.3; }
.ra-spark-end { fill: var(--signal-2); opacity: 0; }

.retained-line.is-visible .ra-progress { animation: sa-draw 1.4s 0.6s var(--ease-out) both; }
.retained-line.is-visible .ra-marker { animation: ra-advance 1.4s 0.6s var(--ease-out) both; }
.retained-line.is-visible .ra-bar { animation: ra-bar 0.9s calc(0.9s + var(--i) * 0.25s) var(--ease-out) both; }
.retained-line.is-visible .ra-chip { animation: ra-learn 0.6s calc(0.4s + var(--i) * 0.2s) ease both; }
.retained-line.is-visible .ra-arc { animation: sa-draw 0.9s 1.1s var(--ease-out) both; }
.retained-line.is-visible .ra-carry { animation: ra-carry 2.4s calc(1.4s + var(--i) * 0.25s) var(--ease-soft) both; }
.retained-line.is-visible .ra-spark { animation: sa-draw 1.6s 1s var(--ease-out) both; }
.retained-line.is-visible .ra-spark-end { animation: sa-appear 0.5s 2.4s ease both; }

@keyframes ra-advance { from { transform: translateX(0); } to { transform: translateX(68px); } }
@keyframes ra-bar { to { transform: scaleX(1); } }
@keyframes ra-learn { to { fill: rgb(var(--signal-2-rgb) / 0.25); stroke: var(--signal-2); } }
@keyframes ra-carry {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; transform: translate(0, 0); }
  60% { opacity: 1; transform: translate(62px, -30px); }
  100% { opacity: 1; transform: translate(124px, 0); }
}

/* --------------------------- How we can help: a ruled list, no cards at all */
.capability-section {
  padding: var(--pad) 0;
  background: var(--mist);
}

.capability-heading { width: var(--wrap); margin: 0 auto; }
.capability-heading h2 { max-width: 20ch; }

.capability-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  width: var(--wrap);
  margin: clamp(2.25rem, 4vw, 3.5rem) auto 0;
}

.capability-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem clamp(1.25rem, 2.4vw, 2.25rem);
  align-content: start;
  padding: clamp(1.5rem, 2.8vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--white);
  --bg-deep: var(--white);
}

.capability-item .cap-glyph { grid-row: span 2; }
.capability-item h3 { align-self: end; font-size: clamp(1.5rem, 2.5vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.capability-item > p { max-width: 26rem; color: var(--text-soft); font-size: 1.05rem; line-height: 1.5; }

.cap-glyph {
  display: block;
  width: clamp(4rem, 7vw, 6rem);
  height: clamp(4rem, 7vw, 6rem);
  overflow: visible;
  fill: none;
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.cg-ticks, .cg-ring { stroke: rgb(var(--text-rgb) / 0.35); }
.cg-needle { transform-origin: 24px 24px; rotate: 24deg; }
.cg-needle-hot { fill: rgb(var(--signal-2-rgb) / 0.8); stroke: var(--signal-2); }
.cg-star, .cg-dot { fill: var(--signal-2); stroke: none; }
.cg-node { fill: var(--bg-deep); }
.cg-node.is-end { stroke: var(--signal-2); }
.cg-core { fill: rgb(var(--signal-rgb) / 0.2); }
.cg-target { fill: var(--bg-deep); }
.cg-layer[style*="--i: 2"] { stroke: var(--signal-2); }

/* Each glyph answers the pointer rather than looping on its own. */
.capability-item:hover .cg-needle { animation: cg-sway 2.4s ease-in-out; }
.capability-item:hover .is-flow .cg-dot { animation: cg-travel 1.6s var(--ease-soft); }
.capability-item:hover .cg-orbit { transform-origin: 24px 24px; animation: sa-spin 2.4s var(--ease-soft); }
.capability-item:hover .cg-layer { animation: cg-layer 1.8s calc(var(--i) * 0.25s) ease; }

@keyframes cg-sway { 0%, 100% { rotate: 24deg; } 40% { rotate: -14deg; } 70% { rotate: 34deg; } }
@keyframes cg-travel { 0% { transform: translateX(0); } 80%, 100% { transform: translateX(32px); } }
@keyframes cg-layer { 30% { stroke: var(--signal-2); transform: translateY(-2px); } }


/* ------------------------- Experience: the photograph, and the one dark panel */
.experience-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: var(--panel);
  margin: clamp(0.75rem, 1.6vw, 1.5rem) auto 0;
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--panel-pad) clamp(2.25rem, 4.4vw, 4rem);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #080f1b;
  color: var(--white);
  isolation: isolate;
}

.experience-section :focus-visible { outline-color: var(--white); }

.experience-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.experience-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 35%;
}

.experience-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 15 27 / 0.97) 0%, rgb(8 15 27 / 0.9) 40%, rgb(8 15 27 / 0.3) 70%, rgb(8 15 27 / 0) 100%),
    linear-gradient(0deg, rgb(8 15 27 / 0.96) 0%, rgb(8 15 27 / 0.75) 16%, rgb(8 15 27 / 0) 36%);
  content: "";
}

.experience-copy { max-width: 37rem; }
.experience-copy .section-label { color: var(--sky-light); }
.experience-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }

.experience-copy h2 span {
  display: block;
  margin-bottom: 0.08em;
  background: linear-gradient(96deg, var(--sky-light), var(--aqua-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(5.5rem, 11vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.experience-body { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.experience-body > p { color: rgb(255 255 255 / 0.8); font-size: 1rem; }

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  padding: 0.6rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 1rem;
  line-height: 1.3;
}

.experience-body .experience-mission {
  margin-top: 1.75rem;
  color: var(--white);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.experience-mission strong { color: var(--aqua-light); }

/* ------------------------------ Closing: the spectrum at full strength */
.faq-section {
  width: var(--wrap);
  margin: 0 auto;
  padding: var(--pad) 0;
}
.faq-section h2 { max-width: 20ch; }
.faq-list { margin-top: 2.5rem; }
.faq-list details { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; min-height: 2.75rem; align-content: center; font-size: 1.2rem; line-height: 1.4; }
.faq-list p { max-width: 65ch; margin: 0.75rem 0 0; color: var(--text-soft); }
.faq-list a, .gain-source a, .gap-stat a { text-underline-offset: 0.2em; }

.closing-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: var(--panel);
  margin: clamp(0.75rem, 1.6vw, 1.5rem) auto 0;
  padding: clamp(2.5rem, 6.5vw, 6rem) var(--panel-pad);
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    repeating-radial-gradient(circle at 82% 50%, rgb(255 255 255 / 0.13) 0 1px, transparent 1px 4.5rem),
    radial-gradient(44rem 30rem at 100% 100%, rgb(18 170 150 / 0.9), transparent 70%),
    radial-gradient(40rem 28rem at 0% 0%, rgb(60 130 255 / 0.9), transparent 70%),
    linear-gradient(120deg, #1b5fdc, #116fb4 60%, #0a7f78);
  color: var(--white);
}

.closing-section :focus-visible { outline-color: var(--white); }
.closing-copy h2 { max-width: 11ch; font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 0.94; letter-spacing: -0.055em; }
.closing-copy > p { max-width: 34rem; margin-top: 1.75rem; color: rgb(255 255 255 / 0.92); font-size: 1.12rem; }
.closing-cta { min-height: 4.25rem; margin-top: 2.25rem; padding: 0 2.25rem; background: var(--white); color: var(--ink); font-size: 1.15rem; }
.closing-cta:hover { background: var(--ink); color: var(--white); }

.analysis-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: analysis;
}

.analysis-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.35);
  font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.2 var(--display);
  letter-spacing: -0.02em;
  counter-increment: analysis;
}

.analysis-steps li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.35); }

.analysis-steps li::after {
  color: rgb(255 255 255 / 0.85);
  font: 500 0.85rem/1 var(--mono);
  content: "0" counter(analysis);
}

.analysis-steps svg {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ------------------------------------------------------------------ Footer */
footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 2rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.footer-top img { height: 2rem; }
.footer-top p { margin-top: 1rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(1.25rem, 2.6vw, 2.25rem); }
footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
footer a:hover { color: var(--signal); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-base a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 0.25em; }
.footer-base { align-items: center; }
.footer-base small { font-size: 0.9rem; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .hero { min-height: min(100svh, 46rem); }
}

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line), 0 1.5rem 2rem -1rem rgb(11 21 36 / 0.18);
  }

  .site-header.is-open nav { display: flex; }

  .site-header.is-open::after {
    position: fixed;
    z-index: -1;
    inset: 4.25rem 0 0;
    background: rgb(11 21 36 / 0.45);
    content: "";
  }
  .site-header nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.1rem; }

  .gain-grid, .build-board { grid-template-columns: minmax(0, 1fr); }
  .gain-copy { padding-right: 0; }
  .gap-stat-accent { grid-template-columns: auto minmax(0, 1fr); }
  .gap-conclusion { grid-column: 1 / -1; padding-bottom: 1.75rem; border-bottom: 1px solid rgb(255 255 255 / 0.28); }
  .gap-stat-accent > p { padding-left: 0; border-left: 0; }
  .build-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-photo::after {
    background:
      linear-gradient(90deg, rgb(8 15 27 / 0.96) 0%, rgb(8 15 27 / 0.88) 55%, rgb(8 15 27 / 0.55) 100%),
      linear-gradient(0deg, rgb(8 15 27 / 0.96) 0%, rgb(8 15 27 / 0) 40%);
  }
  .closing-section { grid-template-columns: minmax(0, 1fr); }
  .hero-clients { flex-direction: column; align-items: center; }
  .client-logos { flex: none; justify-content: center; width: 100%; }
}

@media (max-width: 760px) {
  .retained-lines { grid-template-columns: minmax(0, 1fr); }
  .retained-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 1.75rem 0; border-top: 1px solid rgb(7 122 110 / 0.3); border-left: 0; }
  .retained-line:first-child { border-top: 0; }
  .retained-line + .retained-line::before { display: none; }
  .retained-figure { order: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 1.6rem; }
  .hero { gap: 0.75rem; padding-top: 5.4rem; }
  .hero-kicker { margin-bottom: 1.1rem; }
  .hero-copy > p:not(.hero-kicker) { margin-top: 1.1rem; font-size: 1.02rem; }
  .hero-actions { margin-top: 1.4rem; }
  .ghost-cta { display: none; }
  .nav-cta { height: 2.75rem; }
  .loop-return { scroll-snap-align: start; }
  .hero h1 { font-size: min(9vw, 2.45rem); }
  .client-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; justify-items: center; }
  .client-logo-frame { grid-column: span 2; }
  .client-logo-frame:nth-child(4) { grid-column: 2 / span 2; }
  .client-logo-frame img { max-width: 100%; object-fit: contain; }
  .nav-cta { min-height: 2.75rem; padding: 0 1rem; font-size: 0.88rem; }
  .gb-title { font-size: 14px; letter-spacing: 0.06em; }
  .gb-label { font-size: 14.5px; }
  .gb-value { font-size: 14.5px; }
  .gain-visual { margin-top: 1.5rem; }
  .gx-label { font-size: 19px; }
  .gx-lead { font-size: 26px; }
  .gx-axis { font-size: 19px; letter-spacing: 0; }
  .gap-rail { grid-template-columns: minmax(0, 1fr); }
  .gap-curve { grid-row: 1; padding: 1.25rem 0.75rem; }
  .gap-stat-accent { grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 1.25rem; align-items: center; }
  .gap-stat-accent > p { padding-left: 0; border-left: 0; }
  .gc-label, .gc-axis { font-size: 17px; letter-spacing: 0; }
  .gc-axis { font-size: 16px; }
  .gc-stat { font-size: 30px; }
  .build-modes { grid-template-columns: minmax(0, 1fr); }
  .week-days li { padding: 0.6rem 0.4rem; font-size: 0.8rem; letter-spacing: 0; }
  .loop-heading { justify-items: start; text-align: left; }
  .build-mode { min-height: 0; }
  .loop-chapter { flex-basis: min(84vw, 22rem); }
  .sa-label { font-size: 17px; letter-spacing: 0; }
  .week-days li em { display: none; }
  .loop-return { flex-basis: min(70vw, 18rem); }
  .loop-return svg { width: 8rem; }
  .method-steps li:not(.method-return) button { overflow: visible; font-size: 0.95rem; white-space: nowrap; }
  .method-steps li:not(.method-return) button:not(.is-current) { color: transparent; }
  .retained-line { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .retained-figure { max-width: 17rem; }
  .retained-figure .ra-label { font-size: 11px; letter-spacing: 0; }
  footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .capability-flow { grid-template-columns: minmax(0, 1fr); }
  .capability-item { grid-template-columns: minmax(0, 1fr); }
  .capability-item .cap-glyph { grid-row: auto; margin-bottom: 0.75rem; }
  .experience-section { padding-top: 0; }
  .experience-photo { position: relative; margin: 0 calc(-1 * var(--panel-pad)) 1.75rem; }
  .experience-photo img { aspect-ratio: 1 / 1; object-position: 90% 50%; }
  .experience-photo::after { background: linear-gradient(0deg, #080f1b 0%, rgb(8 15 27 / 0) 45%); }
  .experience-list { gap: 0 1.25rem; }
  .experience-list li { font-size: 0.92rem; }
  .closing-cta { width: 100%; }
  footer { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .sa-scan, .sa-pulse, .gc-rider { display: none; }
}
