/* ==========================================================================
   Homepage sections. Builds on css/core/system.css.
   ========================================================================== */

/* ==========================================================================
   Hero — centred, in the attio.com pattern: a chip, the headline with a grey
   second clause, a grey lead and two buttons; below them the foundry model
   (js/pages/home/hero-model.js) in a framed panel that runs into the next
   section's hairline.
   ========================================================================== */

.hero--home {
  --hero-nav: 64px;
  background:
    radial-gradient(60% 50% at 50% 100%, #F2F3F5 0%, rgba(242, 243, 245, 0) 70%),
    var(--paper);
}

.hero--home .hero-inner {
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--hero-nav) + clamp(48px, 7vh, 88px));
  padding-bottom: 0;
  text-align: center;
}

.hero--home .hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Announcement chip above the headline. It rolls through the three
   products; the reel eases to the width of whichever name is showing. */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 28px;
  padding: 0 10px 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.05);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s, background-color 0.2s;
}

.chip-reel {
  position: relative;
  display: inline-grid;
  height: 22px;
  overflow: hidden;
  transition: width 0.6s var(--ease);
}

.chip-item {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(105%);
  filter: blur(3px);
  transition: transform 0.6s var(--ease), opacity 0.45s ease, filter 0.45s ease;
}

.chip-item.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.chip-item.is-out {
  transform: translateY(-105%);
}

.chip-dot {
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--s);
}

.chip-item b {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.chip-arrow {
  width: 12px;
  height: 12px;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease);
}

.hero-chip:hover {
  border-color: rgba(14, 15, 17, 0.28);
}

.hero-chip:hover .chip-arrow {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .chip-reel,
  .chip-item {
    transition: none;
  }
}

.hero--home .hero-title {
  max-width: 14ch;
  font-size: clamp(44px, 5.8vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.hero--home .hero-title em {
  color: var(--ink-3);
}

.hero--home .hero-lead {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(18px, 1.5vw, 21px);
}

.hero--home .hero-actions {
  justify-content: center;
  margin-top: 32px;
}

/* Entrance: the copy rises line by line */
.js .hero--home .hero-inner > * {
  opacity: 1;
  transform: none;
  animation: none;
}

.js .hero--home .hero-copy > * {
  opacity: 0;
  translate: 0 14px;
  animation: heroRise 0.8s var(--ease) forwards;
}

.js .hero--home .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero--home .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero--home .hero-copy > :nth-child(4) { animation-delay: 0.24s; }

@keyframes heroRise {
  to { opacity: 1; translate: 0 0; }
}

/* The model's panel: a framed window on faint grey with a dotted floor */
.hero-visual {
  position: relative;
  width: 100%;
  margin-top: clamp(44px, 5.5vh, 64px);
  aspect-ratio: 1280 / 620;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background:
    radial-gradient(circle, rgba(14, 15, 17, 0.09) 1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 80px -40px rgba(14, 15, 17, 0.25);
}

.hero-model {
  position: absolute;
  inset: 0;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}

.js .hero--home .hero-visual {
  opacity: 0;
  translate: 0 24px;
  animation: heroRise 1s var(--ease) 0.3s forwards;
}

/* Focus is drawn on the canvas as corner brackets around the model */
.hero--home .hero-model:focus-visible {
  outline: none;
}

.hero-model canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (forced-colors: active) {
  .hero--home .hero-model:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero--home .hero-copy > *,
  .js .hero--home .hero-visual {
    opacity: 1;
    translate: none;
    animation: none;
  }
}

/* ==========================================================================
   01 The problem — the question, and the records it depends on

   One screen: the question, the four records it depends on and the
   answer. Each record settles in as it scrolls into view
   (js/core/site.js, initProblemStage).
   ========================================================================== */

/* ==========================================================================
   Splash: "RAGIONEER" typed in block letters, then a wipe up to the hero.
   Created by the inline snippet at the top of index.html, played by
   js/core/splash.js
   ========================================================================== */
html.splash-lock,
html.splash-lock body {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 50%, #1F2124 0%, #0F1114 72%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  /* If the script never runs, the splash still leaves on its own */
  animation: splashGone 0.5s ease 4.5s forwards;
}

.splash.is-live {
  animation: none;
}

.splash.is-out {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

@keyframes splashGone {
  to { opacity: 0; visibility: hidden; }
}

.splash-word {
  position: relative;
  font-family: Menlo, Consolas, 'Courier New', monospace;
  font-size: min(17px, calc((100vw - 48px) / 43));
  transition: translate 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s;
}

.splash.is-out .splash-word {
  translate: 0 -48px;
  opacity: 0;
}

.splash-art {
  margin: 0;
  font: inherit;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  color: #E5E7EA;
}

.splash-l {
  opacity: 0;
}

.splash-l.is-on {
  opacity: 1;
}

.splash-l.is-noise {
  color: #3B82F6;
}

.splash-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.62em;
  height: 100%;
  background: #3B82F6;
  transition: transform 0.09s linear;
}

.splash.is-typed .splash-cursor {
  animation: splashBlink 0.7s steps(1) infinite;
}

@keyframes splashBlink {
  50% { opacity: 0; }
}

/* ==========================================================================
   Brands that trust Ragioneer: one quiet row of client logos after the hero
   ========================================================================== */
.trust {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line, #E0E2E5);
  background: var(--paper);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.trust-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink-3);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px clamp(56px, 8vw, 120px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-logo img {
  display: block;
  width: auto;
  height: var(--h, 30px);
  /* Ink silhouettes at rest so the row reads as one set; colour on hover */
  filter: brightness(0);
  opacity: 0.56;
  transition: filter 0.45s var(--ease), opacity 0.45s var(--ease), scale 0.45s var(--ease);
}

.trust-logo:hover img {
  filter: none;
  opacity: 1;
  scale: 1.04;
}

/* Matched by eye so the three marks carry the same visual weight */
.trust-logo--mycofoundr { --h: 31px; }
.trust-logo--xponix { --h: 33px; }
.trust-logo--lam13 { --h: 25px; }
.trust-logo--clearpol { --h: 29px; }

/* The logos rise in one after another once the row is reached */
.js .trust-logo {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.js .trust-logos.visible .trust-logo {
  opacity: 1;
  translate: 0 0;
}

.trust-logos.visible .trust-logo:nth-child(2) { transition-delay: 0.1s; }
.trust-logos.visible .trust-logo:nth-child(3) { transition-delay: 0.2s; }
.trust-logos.visible .trust-logo:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 760px) {
  .trust {
    padding: 48px 0 44px;
  }

  .trust-inner {
    gap: 28px;
  }

  .trust-logos {
    gap: 28px 44px;
  }

  .trust-logo img {
    height: calc(var(--h, 30px) * 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .trust-logo {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .trust-logo img {
    transition: none;
  }

  .trust-logo:hover img {
    scale: none;
  }
}

.problem {
  position: relative;
  padding: 128px 0;
  background: var(--paper);
}

.problem-stage {
  display: flex;
  flex-direction: column;
}

.problem-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
}

.problem-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.problem-title span {
  color: var(--ink-3);
}

.problem .problem-lead {
  max-width: 400px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-3);
}

.problem-board {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 72px;
}

.problem-question {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-align: center;
}

.problem-question em {
  font-style: normal;
  color: var(--signal);
}

.problem-wires {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.problem-wires path {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
}

.problem-wires .trunk {
  stroke: var(--signal);
}

.problem-wires circle {
  fill: var(--signal);
}

.problem-records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.rec {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--line-2);
  background: var(--white);
  will-change: transform, opacity;
  transition: border-color 0.25s var(--ease);
}

.rec:hover,
.rec:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.rec h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.rec .src {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-3);
}

.rec p {
  margin: 10px 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}






/* Opening: each record drops in, one after another. Only with JS, so the
   records always show without it. */
.js .rec {
  opacity: 0;
  scale: 0.86;
  translate: 0 48px;
}

.js .rec.is-in {
  animation: recDeal 0.9s var(--ease) both;
}

.js .rec:nth-child(2).is-in { animation-delay: 0.12s; }
.js .rec:nth-child(3).is-in { animation-delay: 0.24s; }
.js .rec:nth-child(4).is-in { animation-delay: 0.36s; }

@keyframes recDeal {
  0%   { opacity: 0; scale: 0.86; translate: 0 48px; }
  60%  { opacity: 1; scale: 1.02; translate: 0 -4px; }
  100% { opacity: 1; scale: 1; translate: 0 0; }
}

.rec.is-in {
  box-shadow: 0 1px 0 rgba(24, 26, 29, 0.04);
}

.js .problem-question {
  opacity: 0;
  translate: 0 16px;
}

.js .problem-question.is-in {
  animation: recRise 0.8s var(--ease) both;
}

@keyframes recRise {
  to { opacity: 1; translate: 0 0; }
}

/* Records come alive once they settle */














/* Records: small isometric scenes that come alive once the card settles,
   and a card that tilts towards the pointer (initRecordTilt in js/core/site.js) */
.problem-records {
  perspective: 1100px;
}

.rec {
  rotate: var(--rx, 0) var(--ry, 1) 0 var(--ra, 0deg);
  transform-style: preserve-3d;
  transition: border-color 0.25s var(--ease), rotate 0.5s var(--ease), box-shadow 0.4s;
}

.rec:hover {
  box-shadow: 0 30px 50px -36px rgba(39, 41, 44, 0.55);
}

.rec-art {
  margin-top: 4px;
  transform: translateZ(22px);
}

.rec .iso {
  display: block;
  width: 100%;
  height: 104px;
  overflow: visible;
}

.iso text {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--ink-3);
  text-anchor: middle;
}

.iso .iso-day.is-hot {
  fill: #DC2626;
  font-weight: 600;
}

.iso .iso-q {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  fill: #1D4ED8;
}

.iso .iso-road {
  stroke: #2B2D30;
  stroke-dasharray: 4 4;
}

.iso g {
  transform-box: fill-box;
  transform-origin: center;
}

/* Inventory: boxes drop onto the pallet; the promised ones bob in amber */
.js .rec .iso-drop {
  opacity: 0;
  translate: 0 -14px;
}

.rec.is-live .iso-drop {
  animation: isoDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--d) * 90ms);
}

.rec.is-live .iso-bob {
  animation: isoDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, isoBob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--d) * 90ms), calc(1s + var(--d) * 120ms);
}

@keyframes isoDrop {
  from { opacity: 0; translate: 0 -14px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes isoBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* Procurement: the parcel rides to Wednesday and waits for confirmation */
.rec.is-live .iso-ride {
  animation: isoRide 4.2s ease-in-out infinite;
}

.iso .iso-ask {
  opacity: 0;
}

.rec.is-live .iso-ask {
  animation: isoAsk 4.2s ease-in-out infinite;
}

@keyframes isoRide {
  0%       { translate: 0 0; }
  45%, 85% { translate: 38px 22px; }
  100%     { translate: 0 0; opacity: 0.4; }
}

@keyframes isoAsk {
  0%, 40%  { opacity: 0; scale: 0.6; }
  50%, 80% { opacity: 1; scale: 1; }
  90%, 100% { opacity: 0; scale: 0.6; }
}

/* Logistics: the van drives up to the cut-off flag */
.rec.is-live .iso-drive {
  animation: isoDrive 4.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.rec.is-live .iso-road {
  animation: isoRoad 1s linear infinite;
}

.iso .iso-flag-cloth {
  transform-box: fill-box;
  transform-origin: left center;
}

.rec.is-live .iso-flag-cloth {
  animation: isoWave 1.6s ease-in-out infinite;
}

@keyframes isoDrive {
  0%       { translate: 0 0; opacity: 0; }
  10%      { opacity: 1; }
  60%, 85% { translate: 52px 30px; opacity: 1; }
  100%     { translate: 52px 30px; opacity: 0; }
}

@keyframes isoRoad {
  to { stroke-dashoffset: -16; }
}

@keyframes isoWave {
  0%, 100% { scale: 1 1; }
  50%      { scale: 0.82 1; }
}

/* Contract: the signature draws, then two parcels split apart */
.iso .iso-sign {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.rec.is-live .iso-sign {
  animation: isoSign 4s ease-in-out infinite;
}

.rec.is-live .iso-split--a {
  animation: isoSplitA 4s ease-in-out infinite;
}

.rec.is-live .iso-split--b {
  animation: isoSplitB 4s ease-in-out infinite;
}

@keyframes isoSign {
  0%       { stroke-dashoffset: 30; }
  25%, 100% { stroke-dashoffset: 0; }
}

@keyframes isoSplitA {
  0%, 30%  { translate: 0 0; }
  60%, 90% { translate: -26px 8px; }
  100%     { translate: 0 0; }
}

@keyframes isoSplitB {
  0%, 30%  { translate: 0 0; }
  60%, 90% { translate: 26px 8px; }
  100%     { translate: 0 0; }
}

.rec.is-linked h3::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: middle;
  animation: recPop 0.4s var(--ease);
}

@keyframes recPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.problem-answer {
  max-width: 920px;
  margin: 56px auto 0;
  font-family: var(--sans);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink-3);
}

.problem-answer b {
  font-weight: 700;
  color: var(--ink);
}

/* Phones and short screens: no sticky stage, final layout, simple reveal */
@media (max-width: 900px), (max-height: 640px) {
  .problem {
    padding: 88px 0;
  }

  .problem-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .problem-records {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 40px;
  }

  .problem-wires {
    display: none;
  }

  .rec {
    transition: transform 0.8s var(--ease), opacity 0.6s, border-color 0.25s;
  }

  .problem-board {
    margin-top: 48px;
  }

  .problem-answer {
    margin-top: 32px;
    text-align: left;
  }

}

@media (max-width: 420px) {
  .problem-records {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec {
    rotate: none;
  }

  .js .rec .iso-drop {
    opacity: 1;
    translate: 0 0;
  }

  .iso .iso-ask {
    opacity: 1;
  }

  .iso .iso-sign {
    stroke-dashoffset: 0;
  }

  .problem {
    height: auto;
  }

  .problem-stage {
    position: static;
    height: auto;
  }

  .problem *,
  .problem *::before,
  .problem *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .rec,
  .js .problem-question {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }

}

/* ==========================================================================
   03 The foundation — four steps as a pinned story

   The story is taller than the screen and its stage sticks: scrolling
   moves through the four steps, each pairing a short text with a
   before/after scene (js/core/site.js, initFoundationStory). Clicking a step
   jumps to it. Tablets, phones and reduced motion get the steps stacked,
   each scene playing as it scrolls into view. The brown palette belongs
   to this section only.
   ========================================================================== */

.found {
  --brown: #0B0B0C;
  --brown-2: #1D1E21;
  --cream: #F4F4F5;
  --cream-2: #C9CBD0;
  --cream-3: #8B8E96;
  --card: #FFFFFF;
  --before: #F4F4F5;
  --f-ink: #0E0F11;
  --f-ink-2: #6B6F78;
  --f-line: #E6E7EA;
  --amber: #0E0F11;
  --amber-soft: #EEEFF1;
  --sage: #0E0F11;
  --sage-soft: #EEEFF1;
  --pop: cubic-bezier(0.34, 1.4, 0.64, 1);

  background: var(--brown);
  color: var(--cream);
}

.found .marker {
  margin-bottom: 20px;
  color: var(--cream-2);
}

.found .marker-num {
  border-color: rgba(238, 240, 243, 0.35);
  color: var(--cream);
}

.found-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
}

.found-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.found-title span {
  color: var(--cream-3);
}

.found-lead {
  max-width: 400px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--cream-2);
}

/* Pinned story — heading, steps and scene pin together as one screen */
.found-pin {
  display: flex;
  flex-direction: column;
  padding: 128px 0;
}

.found-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: repeat(4, auto) auto;
  align-content: center;
  column-gap: 72px;
  margin-top: 32px;
}

.found-step {
  display: contents;
}

.found-txt {
  position: relative;
  grid-column: 1;
  padding: 16px 0 16px 34px;
  border-left: 1px solid rgba(238, 240, 243, 0.18);
}

.found-txt::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--cream);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.found-txt h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--cream-3);
  transition: color 0.35s;
}

.found-txt button {
  all: unset;
  display: block;
  cursor: pointer;
}

.found-txt button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 6px;
}

.found-txt h3 small {
  display: inline-block;
  width: 30px;
  font-size: 13px;
  font-weight: 400;
  color: var(--cream-3);
}

.found-txt p {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 380px;
  margin: 0;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-2);
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s, margin 0.5s;
}

.found-txt p span {
  overflow: hidden;
}

.found-step.is-on .found-txt::before {
  transform: none;
}

.found-step.is-on .found-txt h3 {
  color: var(--cream);
}

.found-step.is-on .found-txt p {
  grid-template-rows: 1fr;
  margin-top: 8px;
  opacity: 1;
}

.found-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  grid-column: 1;
  justify-self: start;
  height: 40px;
  margin: 26px 0 0 34px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  transition: background-color 0.2s;
}

.found-cta:hover {
  background: var(--white);
}

.found-cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* Scenes: all four share one cell on the right */
.found-scene {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: center;
  margin: 0;
  padding: 30px;
  border-radius: 16px;
  background: var(--card);
  color: var(--f-ink);
  box-shadow: 0 30px 60px -30px rgba(19, 21, 24, 0.6);
  opacity: 0;
  visibility: hidden;
  translate: 0 16px;
  transition: opacity 0.45s, translate 0.45s var(--ease), visibility 0s 0.45s;
}

.found-step.is-on .found-scene {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.45s, translate 0.45s var(--ease);
}

.found .scene__q {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--f-ink-2);
}

.found .scene__q b {
  font-weight: 500;
  color: var(--f-ink);
}

.found .ba {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: stretch;
}

.found-panel {
  display: flex;
  flex-direction: column;
  min-height: clamp(300px, 42vh, 420px);
  padding: 18px;
  border-radius: 16px;
}

.found-panel--before {
  background: var(--before);
}

.found-panel--after {
  border: 1px solid var(--f-line);
  background: var(--white);
}

.found .tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.found-panel--before .tag {
  background: #D5D7DA;
  color: var(--f-ink-2);
}

.found-panel--after .tag {
  background: var(--sage-soft);
  color: var(--sage);
}

.found .arrow {
  display: grid;
  place-items: center;
  color: var(--amber);
}

.found .arrow svg {
  width: 22px;
  height: 22px;
}

.found-step.is-on .arrow svg {
  animation: foundNudge 1.6s ease-in-out 0.6s infinite;
}

@keyframes foundNudge {
  50% { transform: translateX(4px); }
}

.found .cap {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--f-ink-2);
}

.found-panel--after .cap {
  color: var(--f-ink);
}

/* Steps 01, 03 and 04: Today items and 3D After scenes, played by
   js/pages/home/found-scenes.js (data-at timing, data-link highlights) */
.found .names,
.found .docs,
.found .scene3d-wrap {
  margin-top: auto;
}

.found .scene3d-wrap {
  margin-right: -4px;
  margin-bottom: auto;
  margin-left: -4px;
  perspective: 900px;
}

.found .scene3d {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease);
}

.found .scene3d--flat {
  transform: none;
}

.found .scene3d text {
  font-family: var(--sans);
  text-anchor: middle;
}

.found .scene3d g,
.found .scene3d circle {
  transform-box: fill-box;
  transform-origin: center;
}

.found .s-shadow { fill: rgba(43, 45, 48, 0.14); stroke: none; }
.found .s-ink { fill: none; stroke: #2B2D30; stroke-width: 1.1; stroke-linecap: round; opacity: 0.5; }
.found .s-label { font-size: 10.5px; fill: var(--f-ink-2); }
.found .s-name { font-size: 12.5px; font-weight: 600; fill: var(--f-ink); }
.found .s-role { font-size: 10.5px; font-weight: 600; fill: var(--f-ink); transition: fill 0.3s; }
.found .s-tiny { font-size: 9px; fill: var(--f-ink-2); }
.found .scene3d .s-layer { font-size: 9.5px; font-weight: 500; fill: var(--f-ink); text-anchor: start; }
.found .s-chip { stroke: #FFFFFF; stroke-width: 1.5; }
.found .s-chip-t { font-size: 10px; font-weight: 700; fill: #FFFFFF; }
.found .s-av-ring { fill: #FFFFFF; stroke: #2B2D30; stroke-width: 1.2; transition: stroke 0.3s, stroke-width 0.3s; }
.found .s-av--ai .s-av-ring { fill: #E2E4E7; }
.found .s-clip { fill: #FFFFFF; stroke: var(--sage); stroke-width: 1.4; }

.found .pill rect { stroke-width: 1; }
.found .pill text { font-size: 10px; font-weight: 600; }
.found .pill--sage rect { fill: var(--sage-soft); stroke: #C9CBCE; }
.found .pill--sage text { fill: var(--sage); }
.found .pill--amber rect { fill: var(--amber-soft); stroke: #BBBDC0; }
.found .pill--amber text { fill: var(--amber); }

.found .s-check circle { fill: var(--sage); stroke: #FFFFFF; stroke-width: 1.5; }
.found .s-check path { fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Lines draw themselves in; packets travel along them once the scene is done */
.found .wire {
  fill: none;
  stroke: #2B2D30;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-width 0.3s;
}

.found .wire--sage { stroke: var(--sage); }
.found .wire--amber { stroke: #6A6C6F; }
.found .wire--blocked { stroke: #6A6C6F; stroke-dasharray: 0.04 0.035; }

.found .flow {
  fill: none;
  stroke: #848689;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  opacity: 0;
  pointer-events: none;
}

.found .flow.wire--sage { stroke: #47494C; }
.found .flow.wire--amber { stroke: #484A4D; }

.found-step.is-done .flow {
  opacity: 1;
  animation: sFlow 1.8s linear infinite;
}

.found-step.is-done .flow:nth-of-type(2n) { animation-delay: -0.6s; }
.found-step.is-done .flow:nth-of-type(3n) { animation-delay: -1.2s; }

@keyframes sFlow {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Timed entrances (only once the script has armed the step) */
.found-step.is-armed [data-at] {
  opacity: 0;
  transition: opacity 0.45s var(--ease), translate 0.6s var(--pop), scale 0.6s var(--pop), stroke-dashoffset 0.8s var(--ease);
}

.found-step.is-armed [data-at].is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.found-step.is-armed .drop:not(.is-in) { translate: 0 -14px; }
.found-step.is-armed .drop-far:not(.is-in) { translate: 0 -40px; }
.found-step.is-armed .slide-l:not(.is-in) { translate: -18px 0; }
.found-step.is-armed .slide-r:not(.is-in) { translate: 18px 0; }
.found-step.is-armed .pop:not(.is-in) { scale: 0.6; }
.found-step.is-armed .draw:not(.is-in) { stroke-dashoffset: 1; }
.found-step.is-armed .fade-old:not(.is-in) { opacity: 1; }
.found-step.is-armed .fade-old.is-in { opacity: 0.45; }

/* Linked highlights */
.found .found-step .sys.is-hl,
.found .found-step--current g[data-link].is-hl {
  translate: 0 -6px;
}

.found .found-step .wire.is-hl { stroke-width: 2.6; }
.found .found-step .s-av.is-hl .s-av-ring { stroke: var(--amber); stroke-width: 2.6; }
.found .found-step .is-hl .s-role { fill: var(--amber); }

.found .sys,
.found .found-step--current g[data-link] {
  transition: opacity 0.45s var(--ease), translate 0.45s var(--pop), scale 0.6s var(--pop);
}

/* Pulses */
.found .s-ring,
.found .s-alert-ring {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
}

.found .s-ring { stroke: var(--sage); }
.found .s-alert-ring { stroke: #6A6C6F; }

.found-step.is-done .s-ring { animation: sRing 2.2s ease-out infinite; }
.found-step.is-done .s-alert-ring { animation: sRing 1.6s ease-out infinite; }

@keyframes sRing {
  0%   { opacity: 0.8; scale: 0.9; }
  100% { opacity: 0; scale: 1.6; }
}

/* Step 1: four spellings of one patient */
.found .names {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.found .name {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 22px -18px rgba(39, 41, 44, 0.55);
  font-size: 13.5px;
  font-weight: 500;
  rotate: var(--r, 0deg);
}

.found .name i {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #FFFFFF;
}

.found .name small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--f-ink-2);
}

.found .name,
.found .doc {
  transition: opacity 0.45s var(--ease), translate 0.6s var(--pop), scale 0.6s var(--pop), border-color 0.3s, box-shadow 0.3s;
}

.found .name.is-hl,
.found .doc.is-hl {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(94, 96, 99, 0.14), 0 12px 24px -18px rgba(39, 41, 44, 0.6);
}

.found .ask {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--amber-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber);
}

.found .ask b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  font-size: 12px;
  color: #FFFFFF;
}

.found-step.is-done .ask b {
  animation: sBob 1.4s ease-in-out infinite;
}

@keyframes sBob {
  50% { translate: 0 -3px; }
}

/* Step 2: three teams answer "visits" three ways (chat bubbles), then the
   same counts become three named measures in glass cylinders.
   Fill, count, fizz, highlights and tilt: js/pages/home/found-define.js */
.found .bubbles {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.found .bubble {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 11px;
  border: 1px solid transparent;
  border-radius: 14px 14px 14px 4px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(39, 41, 44, 0.04), 0 10px 22px -18px rgba(39, 41, 44, 0.5);
  font-size: 13.5px;
  line-height: 1.35;
  transition: border-color 0.3s, box-shadow 0.3s, translate 0.35s var(--ease);
}

.found .bubble.is-hl {
  border-color: var(--hl);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 22%, transparent), 0 14px 26px -18px rgba(39, 41, 44, 0.6);
  translate: 4px 0;
}

.found .bubble:nth-child(1) { --hl: #B2B4B7; --chip: #EAECEF; }
.found .bubble:nth-child(2) { --hl: #888A8D; --chip: #E0E2E5; }
.found .bubble:nth-child(3) { --hl: #5E6063; --chip: #D2D4D7; }

.found .bubble .who {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--f-ink);
}

.found .bubble .who svg {
  width: 16px;
  height: 16px;
}

.found .bubble .say small {
  display: block;
  margin-bottom: 1px;
  font-size: 11.5px;
  color: var(--f-ink-2);
}

.found .bubble .n {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10.5px;
  line-height: 1.1;
  color: var(--f-ink-2);
}

.found .bubble .n b {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--f-ink);
}

/* Both panels centre their content between the tag and the caption */
.found-step--define .bubbles,
.found-step--define .vols-wrap {
  margin-block: auto;
}

/* Typing dots, shown while each team "answers" */
.found .typing {
  position: absolute;
  top: 50%;
  left: 54px;
  display: flex;
  gap: 4px;
  translate: 0 -50%;
  opacity: 0;
  pointer-events: none;
}

.found .typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-3);
  animation: defDot 0.9s ease-in-out infinite;
}

.found .typing i:nth-child(2) { animation-delay: 0.15s; }
.found .typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes defDot {
  0%, 60%, 100% { translate: 0 0; opacity: 0.5; }
  30%           { translate: 0 -4px; opacity: 1; }
}

/* Sequence: each bubble pops in, types for a beat, then shows its answer */
.js .found .bubble {
  opacity: 0;
  translate: -12px 0;
  scale: 0.97;
}

.js .found .bubble .say,
.js .found .bubble .n {
  opacity: 0;
}

.found-step.is-on .bubble {
  animation: defBubble 0.5s var(--pop) both;
  animation-delay: calc(0.1s + var(--d) * 0.5s);
}

.found-step.is-on .bubble .typing {
  animation: defTyping 0.5s linear both;
  animation-delay: calc(0.2s + var(--d) * 0.5s);
}

.found-step.is-on .bubble .say {
  animation: defShow 0.35s var(--ease) both;
  animation-delay: calc(0.6s + var(--d) * 0.5s);
}

.found-step.is-on .bubble .n {
  animation: defShow 0.35s var(--ease) both, defClash 0.5s var(--pop) both;
  animation-delay: calc(0.65s + var(--d) * 0.5s), calc(0.65s + var(--d) * 0.5s);
}

@keyframes defBubble {
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes defTyping {
  0%, 85% { opacity: 1; }
  100%    { opacity: 0; }
}

@keyframes defShow {
  from { opacity: 0; translate: 0 4px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes defClash {
  0%   { scale: 1.35; color: var(--amber); }
  100% { scale: 1; }
}

/* Glass cylinders on a plinth; the panel leans towards the pointer */
.found .vols-wrap {
  margin: 2px -4px 0;
  perspective: 900px;
}

.found .vols {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease);
}

.found .vols text {
  font-family: var(--sans);
  text-anchor: middle;
}

.found .plinth-top {
  fill: #ECEEF1;
  stroke: #2B2D30;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.found .plinth-front {
  fill: #D3D5D8;
  stroke: #2B2D30;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.found .vol {
  cursor: default;
  transition: translate 0.4s var(--pop);
}

.found .vol.is-hl {
  translate: 0 -7px;
}

.found .vol-shadow {
  fill: rgba(43, 45, 48, 0.16);
  transition: opacity 0.4s;
}

.found .vol.is-hl .vol-shadow {
  opacity: 0.55;
}

.found .vol-glass {
  fill: rgba(255, 255, 255, 0.6);
}

.found .vol-line {
  fill: none;
  stroke: #2B2D30;
  stroke-width: 1.6;
}

.found .vol-rim {
  fill: rgba(255, 255, 255, 0.35);
}

.found .surf {
  stroke: #2B2D30;
  stroke-width: 1;
  stroke-opacity: 0.55;
}

.found .vol-shine {
  fill: #FFFFFF;
  opacity: 0.55;
}

.found .fizz circle {
  fill: #FFFFFF;
  opacity: 0.6;
}

.found .vol-num {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  fill: var(--f-ink);
}

.found .vol-name {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--f-ink);
  transition: fill 0.3s;
}

.found .vol.is-hl .vol-name {
  fill: var(--amber);
}

.found .vol-def {
  font-size: 10.5px;
  fill: var(--f-ink-2);
}

/* The gaps between the counts, drawn once the cylinders have filled */
.found .gap path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.found .gap-n {
  font-size: 12px;
  font-weight: 700;
  fill: var(--amber);
}

.found .gap-w {
  font-size: 9.5px;
  fill: var(--f-ink-2);
}

.js .found .gap {
  opacity: 0;
  translate: 0 4px;
  transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
}

.js .found-step.is-filled .gap {
  opacity: 1;
  translate: 0 0;
}

.js .found-step.is-filled .gap--b {
  transition-delay: 0.18s;
}

/* Step 3: an ageing protocol and an unnoticed clash */
.found .docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.found .doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 22px -18px rgba(39, 41, 44, 0.55);
  font-size: 13.5px;
  color: var(--f-ink);
}

.found .doc svg {
  flex: none;
  color: #595B5E;
}

.found .doc > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.found .doc small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--f-ink-2);
}

.found .doc em {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--before);
  font-style: normal;
}

.found .doc small i {
  font-style: normal;
  color: var(--amber);
}

.found .doc--old {
  background: #F1F3F6;
}

.found .doc--old s {
  color: var(--f-ink-2);
  text-decoration-color: rgba(94, 96, 99, 0.6);
}

.found .clock {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
}

.found .clock::after {
  content: '';
  position: absolute;
  bottom: 50%;
  left: calc(50% - 0.65px);
  width: 1.3px;
  height: 3.6px;
  background: currentColor;
  transform-origin: bottom center;
}

.found-step.is-on .clock::after {
  animation: sTick 2.4s steps(12) infinite;
}

@keyframes sTick {
  to { rotate: 360deg; }
}

.found .doc .faint {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber-soft);
  font-size: 11px;
  color: var(--amber);
  opacity: 0.2;
}

.found-step.is-on .doc .faint {
  animation: sFaint 3.2s ease-in-out infinite;
}

@keyframes sFaint {
  50% { opacity: 0.45; }
}

.found .s-alert circle:not(.s-alert-ring) { fill: #6A6C6F; }
.found .s-alert text { font-size: 12px; font-weight: 700; fill: #FFFFFF; }

/* Step 4: the whole record is open to everyone; then access by role */
.found .scene3d-wrap--before {
  margin-top: auto;
}

.found .s-open rect {
  fill: #FFFFFF;
  stroke: #2B2D30;
  stroke-width: 1.3;
}

.found .s-open-badge circle {
  fill: #6A6C6F;
  stroke: #FFFFFF;
  stroke-width: 1.5;
}

.found .s-open-badge rect {
  fill: #FFFFFF;
  stroke: none;
}

.found .s-open-badge path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.found .s-open-glow {
  fill: rgba(132, 134, 137, 0.2);
}

.found-step.is-done .s-open-glow {
  animation: sGlow 1.8s ease-in-out infinite;
}

@keyframes sGlow {
  50% { scale: 1.18; opacity: 0.55; }
}

.found .s-lock rect {
  fill: #E5E7EA;
  stroke: #545659;
  stroke-width: 1.2;
}

.found .s-lock path {
  fill: none;
  stroke: #545659;
  stroke-width: 1.4;
}

.found-step.is-armed .s-lock.is-in {
  animation: sShake 0.5s ease-in-out 0.35s both;
}

@keyframes sShake {
  20%, 60% { translate: -2px 0; }
  40%, 80% { translate: 2px 0; }
}

.found .s-gate circle {
  fill: #FFFFFF;
  stroke: var(--sage);
  stroke-width: 1.5;
}

.found .s-gate path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

/* Tablet and phone — the steps stack, each scene plays as it arrives */
@media (max-width: 980px) {
  .found-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .found-story {
    height: auto;
  }

  .found-pin {
    position: static;
    display: block;
    height: auto;
    min-height: 0;
    padding: 88px 0;
  }

  .found-grid {
    display: block;
    margin-top: 12px;
  }

  .found-txt {
    padding: 28px 0 14px;
    border-left: 0;
  }

  .found-txt::before {
    display: none;
  }

  .found-txt h3 {
    color: var(--cream);
  }

  .found-txt p {
    grid-template-rows: 1fr;
    margin-top: 8px;
    padding-left: 30px;
    opacity: 1;
  }

  .found-scene {
    padding: 18px;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .found-cta {
    margin: 32px 0 0;
  }
}

@media (max-width: 560px) {
  .found .ba {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .found .arrow {
    height: 30px;
  }

  .found .arrow svg {
    rotate: 90deg;
  }

  .found-panel {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .found *,
  .found *::before,
  .found *::after {
    transition: none !important;
    animation: none !important;
  }

  .found .scene3d {
    transform: none;
  }

  .js .found .bubble,
  .js .found .bubble .say,
  .js .found .bubble .n,
  .js .found .gap {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }

  .found .typing {
    display: none;
  }

  .found .vols {
    transform: none;
  }

  .found-story {
    height: auto;
  }

  .found-pin {
    position: static;
    display: block;
    height: auto;
    min-height: 0;
    padding: 88px 0 96px;
  }

  .found-grid {
    display: block;
    margin-top: 12px;
  }

  .found-scene {
    margin-bottom: 24px;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .found-txt p {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}

/* ==========================================================================
   04 What changes when your data is connected to AI — three outcomes in one
   framed grid, the attio.com feature-cell pattern. Each cell: an icon tile,
   a two-tone sentence, then the outcome as product UI on a dotted canvas:
   an AI answer with its sources, a workflow with an approval step, and two
   candidate sites compared (js/pages/home/foundation-uses.js). Example
   figures are illustrative; reduced motion shows the finished state.
   ========================================================================== */

.uses {
  padding: 128px 0;
  background: var(--paper);
}

.uses-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 56px;
}

.uses-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.uses-title span {
  color: var(--ink-3);
}

.uses-lead {
  max-width: 400px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* The frame: three equal cells divided by hairlines */
.uses .caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.04);
}

.uses .cap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Side by side, the sentence rows and the canvases line up across cells */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1101px) {
    .uses .cap {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
  }
}

.uses .cap + .cap {
  border-left: 1px solid var(--line);
}

.uses .cap-copy {
  padding: 32px 32px 30px;
}

.uses .cap-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: var(--s);
  color: var(--c);
}

.uses .cap h3 {
  max-width: 30ch;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.uses .cap h3 span {
  font-weight: 500;
  color: var(--ink-3);
}

.uses .cap-shot {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 32px 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(14, 15, 17, 0.08) 1px, transparent 1.3px) 0 0 / 18px 18px,
    var(--paper-2);
}

/* Cells rise in once the grid is reached */
.js .uses .caps[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .uses .caps .cap {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.js .uses .caps.visible .cap {
  opacity: 1;
  translate: 0 0;
}

.js .uses .caps.visible .cap:nth-child(2) { transition-delay: 0.08s; }
.js .uses .caps.visible .cap:nth-child(3) { transition-delay: 0.16s; }

/* ---------- 1. An AI answer with its sources ---------- */
.uses .chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.uses .chat-q {
  align-self: flex-end;
  max-width: 88%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  background: #ECEDEF;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  transition: opacity 0.3s;
}

.uses .chat-a {
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px -18px rgba(14, 15, 17, 0.3);
}

.uses .chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.uses .chat-who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ink);
}

.uses .chat-who img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--line);
}

.uses .chat-tools {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-weight: 500;
  color: #1D4ED8;
}

.uses .chat-text {
  min-height: 4.5em;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.uses .chat-cite {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-top: 12px;
}

.uses .chat-cite span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  animation: capPop 0.35s var(--ease) both;
}

.uses .chat-cite i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

@keyframes capPop {
  from { opacity: 0; scale: 0.85; }
  to   { opacity: 1; scale: 1; }
}

.uses .chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  font-size: 13px;
  color: var(--ink-3);
}

.uses .chat-input b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

/* ---------- 2. A workflow with an approval step ---------- */
.uses .wf {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  padding-top: 20px;
}

.uses .wf-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.uses .wf-node + .wf-node {
  margin-top: 26px;
}

/* Connector from the node above, with an arrowhead */
.uses .wf-node + .wf-node::before {
  content: '';
  position: absolute;
  top: -27px;
  left: 26px;
  width: 1.5px;
  height: 26px;
  background: var(--line-2);
  transition: background-color 0.3s;
}

.uses .wf-node + .wf-node::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 23px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--line-2);
  border-bottom: 1.5px solid var(--line-2);
  rotate: 45deg;
  transition: border-color 0.3s;
}

.uses .wf-node.is-done + .wf-node::before { background: #3B82F6; }
.uses .wf-node.is-done + .wf-node::after { border-color: #3B82F6; }

.uses .wf-node:first-child {
  border-top-left-radius: 0;
}

.uses .wf-trigger {
  position: absolute;
  top: -21px;
  left: -1px;
  display: flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 7px 7px 0 0;
  background: var(--blue);
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
}

.uses .wf-node.is-active {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.uses .wf-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--s);
  color: var(--c);
}

.uses .wf-txt {
  min-width: 0;
}

.uses .wf-txt b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.uses .wf-txt small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.uses .wf-st {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.3s, scale 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.uses .wf-node.is-done .wf-st,
.uses .wf-node.is-wait .wf-st {
  opacity: 1;
  scale: 1;
}

.uses .wf-node.is-done .wf-st { background: #E7F7EC; color: #15803D; }
.uses .wf-node.is-wait .wf-st { background: #FEF3DB; color: #B45309; }

/* ---------- 3. Two candidate sites compared ---------- */
.uses .cc {
  width: 100%;
  max-width: 370px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px -18px rgba(14, 15, 17, 0.3);
}

.uses .cc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.uses .cc-head b {
  font-size: 14px;
  font-weight: 600;
}

.uses .cc-legend {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.uses .cc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.uses .cc-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}

.uses .cc-row {
  margin-top: 14px;
}

.uses .cc-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.uses .cc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
}

.uses .cc-bar + .cc-bar {
  margin-top: 4px;
}

.uses .cc-bar i {
  width: var(--w);
  height: 100%;
  border-radius: 4px;
  background: var(--c);
  transform-origin: left center;
  transition: scale 0.9s var(--ease);
}

.uses .cc-bar em {
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
}

.js .uses .cc:not(.is-in) .cc-bar i {
  scale: 0 1;
}

.uses .cc-row:nth-of-type(3) .cc-bar i { transition-delay: 0.1s; }
.uses .cc-row:nth-of-type(4) .cc-bar i { transition-delay: 0.2s; }

.uses .cc-verdicts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.uses .vp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.uses .vp b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  color: var(--white);
}

.uses .vp--go { background: #E7F7EC; color: #15803D; }
.uses .vp--go b { background: #16A34A; }
.uses .vp--hold { background: #FEF3DB; color: #B45309; }
.uses .vp--hold b { background: #F59E0B; }

@media (max-width: 1100px) {
  .uses .caps {
    grid-template-columns: minmax(0, 1fr);
  }

  .uses .cap + .cap {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .uses .cap-shot {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .uses {
    padding: 88px 0;
  }

  .uses-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

  .uses .cap-copy {
    padding: 26px 22px 24px;
  }

  .uses .cap-shot {
    min-height: 0;
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .uses .caps .cap {
    opacity: 1;
    translate: none;
  }

  .js .uses .cc:not(.is-in) .cc-bar i {
    scale: 1 1;
  }
}

/* ==========================================================================
   05 Industries — six tiles, each with the question it can answer
   ========================================================================== */

.ind {
  padding: 128px 0;
  background: var(--paper);
}

.ind-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 56px;
}

.ind-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.ind-title span {
  color: var(--ink-3);
}

.ind-lead {
  max-width: 400px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

/* Five industries: three across, then two of the same width, centred */
.ind-grid > .ind-tile {
  grid-column: span 2;
}

.ind-grid > .ind-tile:nth-child(4) {
  grid-column: 2 / span 2;
}

.ind-grid > .ind-tile:nth-child(5) {
  grid-column: 4 / span 2;
}

.ind-tile .ind-go {
  margin-left: auto;
  color: var(--t-2);
  transition: translate 0.3s var(--ease), color 0.3s;
}

.ind-tile:hover .ind-go {
  translate: 3px 0;
  color: var(--t-ink);
}

.ind-tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ind-tile[data-tone="light"] { --t-bg: #FFFFFF; --t-ink: #0E0F11; --t-2: #6B6F78; --t-art: #0E0F11; --t-acc: #6B6F78; --t-line: #E6E7EA; }
.ind-tile[data-tone="sand"]  { --t-bg: #FFFFFF; --t-ink: #0E0F11; --t-2: #6B6F78; --t-art: #0E0F11; --t-acc: #6B6F78; --t-line: #E6E7EA; }
.ind-tile[data-tone="brown"] { --t-bg: #FFFFFF; --t-ink: #0E0F11; --t-2: #6B6F78; --t-art: #0E0F11; --t-acc: #6B6F78; --t-line: #E6E7EA; }
.ind-tile[data-tone="clay"]  { --t-bg: #FFFFFF; --t-ink: #0E0F11; --t-2: #6B6F78; --t-art: #0E0F11; --t-acc: #6B6F78; --t-line: #E6E7EA; }

.ind-tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--t-bg);
  color: var(--t-ink);
  transition: translate 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.ind-tile:hover {
  translate: 0 -3px;
  box-shadow:  0 24px 40px -30px rgba(14, 15, 17, 0.25);
  border-color: var(--line-2);
}

.ind-tile .tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--t-2);
}

.ind-tile h3 {
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ind-tile .q {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--t-line);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--t-2);
}

/* Line-art illustration: moves only while the section is on screen
   (.is-live, set in js/core/site.js) */
.ind-art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  min-height: 104px;
  margin: 4px 0 18px;
  color: var(--t-art);
}

.ind-art svg {
  width: 104px;
  height: 104px;
  overflow: visible;
}

.ind-art .acc {
  stroke: var(--t-acc);
}

.ind-art rect.acc,
.ind-art .trend-dot {
  fill: var(--t-acc);
  fill-opacity: 0.22;
}

.ind-art * {
  transform-box: fill-box;
  animation-play-state: paused;
}

.ind.is-live .ind-art * {
  animation-play-state: running;
}

/* Construction: the cable pays out as the block is lowered */
.ind-art .crane-cable {
  transform-origin: top;
  animation: craneCable 4s ease-in-out infinite;
}

.ind-art .crane-load {
  animation: craneLoad 4s ease-in-out infinite;
}

@keyframes craneCable {
  0%, 100% { scale: 1 1; }
  50%      { scale: 1 1.37; }
}

@keyframes craneLoad {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 10px; }
}

/* Commerce: an order drops into the bag */
.ind-art .bag-drop {
  animation: bagDrop 3.2s cubic-bezier(0.5, 0, 0.7, 1) infinite;
}

.ind-art .spark {
  transform-origin: center;
  animation: spark 3.2s ease-in-out infinite;
}

.ind-art .spark--2 {
  animation-delay: 0.4s;
}

@keyframes bagDrop {
  0%       { opacity: 0; translate: 0 -8px; }
  15%      { opacity: 1; }
  55%      { opacity: 1; translate: 0 34px; }
  70%, 100% { opacity: 0; translate: 0 34px; }
}

@keyframes spark {
  0%, 45%, 100% { opacity: 0; scale: 0.4; }
  60%           { opacity: 1; scale: 1; }
}

/* Banking: the price line draws across the candles */
.ind-art .candle {
  transform-origin: bottom;
  animation: candle 3.6s ease-in-out infinite;
}

.ind-art .candle--2 { animation-delay: 0.2s; }
.ind-art .candle--3 { animation-delay: 0.4s; }
.ind-art .candle--4 { animation-delay: 0.6s; }
.ind-art .candle--5 { animation-delay: 0.8s; }

.ind-art .trend {
  stroke-dasharray: 100;
  animation: trend 3.6s ease-in-out infinite;
}

.ind-art .trend-dot {
  transform-origin: center;
  animation: trendDot 3.6s ease-in-out infinite;
}

@keyframes candle {
  0%, 100% { scale: 1 1; }
  50%      { scale: 1 0.72; }
}

@keyframes trend {
  0%       { stroke-dashoffset: 100; }
  60%, 85% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -100; }
}

@keyframes trendDot {
  0%, 50%, 100% { opacity: 0; scale: 0.4; }
  62%, 85%      { opacity: 1; scale: 1; }
}

/* Healthcare: a pulse runs along the line as the heart beats */
.ind-art .heart {
  transform-origin: center;
  animation: heartBeat 1.4s ease-in-out infinite;
}

.ind-art .ecg-base {
  opacity: 0.25;
}

.ind-art .ecg {
  stroke-dasharray: 34 66;
  stroke-width: 2;
  animation: ecg 1.4s linear infinite;
}

@keyframes heartBeat {
  0%, 40%, 100% { scale: 1; }
  15%           { scale: 1.07; }
  28%           { scale: 0.98; }
}

@keyframes ecg {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Legal: the scales tip one way, then the other */
.ind-art .beam {
  transform-origin: center;
  animation: beam 4.4s ease-in-out infinite;
}

.ind-art .pan--left {
  animation: panLeft 4.4s ease-in-out infinite;
}

.ind-art .pan--right {
  animation: panRight 4.4s ease-in-out infinite;
}

@keyframes beam {
  0%, 100% { rotate: -7deg; }
  50%      { rotate: 7deg; }
}

@keyframes panLeft {
  0%, 100% { translate: 0 3.6px; }
  50%      { translate: 0 -3.6px; }
}

@keyframes panRight {
  0%, 100% { translate: 0 -3.6px; }
  50%      { translate: 0 3.6px; }
}

/* Energy: the turbine turns and the bolt flickers */
/* The group holds an invisible circle centred on the hub, so its box
   centre is the pivot */
.ind-art .blades {
  transform-origin: center;
  animation: blades 3.2s linear infinite;
}

/* Blades placed with a transform attribute keep the normal coordinate box */
.ind-art .blades path {
  transform-box: view-box;
  transform-origin: 0 0;
}

.ind-art .bolt {
  animation: bolt 3.2s ease-in-out infinite;
}

@keyframes blades {
  to { rotate: 360deg; }
}

@keyframes bolt {
  0%, 30%, 100% { opacity: 0.25; }
  40%, 70%      { opacity: 1; }
}

@media (max-width: 1024px) {
  .ind-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ind-grid > .ind-tile,
  .ind-grid > .ind-tile:nth-child(4) {
    grid-column: span 2;
  }

  .ind-grid > .ind-tile:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 700px) {
  .ind {
    padding: 88px 0;
  }

  .ind-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

  .ind-grid {
    grid-template-columns: 1fr;
  }

  .ind-grid > .ind-tile,
  .ind-grid > .ind-tile:nth-child(n + 4),
  .ind-grid > .ind-tile:last-child {
    grid-column: auto;
  }

  .ind-tile {
    min-height: 0;
    padding: 22px;
  }

  .ind-tile .q {
    margin-top: 0;
  }

  .ind-art {
    min-height: 88px;
    margin: 12px 0 16px;
  }

  .ind-art svg {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ind-tile {
    transition: none;
  }

  .ind-art * {
    animation: none !important;
  }

  .ind-art .trend {
    stroke-dashoffset: 0;
  }

  .ind-art .bag-drop {
    translate: 0 30px;
  }
}

/* ==========================================================================
   09 Decision Intelligence — learn from what the foundation shows

   A clinic example: visit length drifts out of the planned range after a
   new protocol, the cause is found, a fix is tested and the plan updated.
   The chart and steps play together while on screen
   (js/pages/home/decision-teaser.js). Without JS or with reduced motion
   the finished story shows.
   ========================================================================== */

.dint {
  --d-brown: #FAFAFA;
  --d-cream: #0E0F11;
  --d-cream-2: #6B6F78;
  --d-cream-3: #6B6F78;
  --d-paper: #FFFFFF;
  --d-line: #E6E7EA;
  --d-amber: #2563EB;
  --d-sage: #16A34A;

  padding: 128px 0;
  background: var(--d-brown);
  color: var(--d-cream);
}

.dint-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 48px;
}

.dint-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.dint-title span {
  color: var(--d-cream-3);
}

.dint-lead {
  max-width: 420px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--d-cream-2);
}

.dint-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--d-paper);
  color: var(--ink);
  box-shadow: 0 30px 70px -45px rgba(14, 15, 17, 0.28);
}

/* Chart */
.dint .chart {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border: 1px solid var(--d-line);
  border-radius: 20px;
  background: var(--white);
}

/* The 3D model of the story (js/pages/home/decision-teaser.js) */
.dint .dm {
  position: relative;
  height: clamp(280px, 30vw, 380px);
  margin: 12px -8px 0;
}

.dint .dm canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dint .dm-tag {
  position: absolute;
  top: 4px;
  left: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #EAF1FE;
  font-size: 13px;
  font-weight: 500;
  color: #1D4ED8;
  transition: background-color 0.4s, color 0.4s;
}

.dint .dm-tag.is-drift {
  background: #FDECEC;
  color: #B91C1C;
}

.dint .dm-tag.is-ok {
  background: #E7F7EC;
  color: #15803D;
}

.dint .chart h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
}

.dint .chart .sub {
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.dint .key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

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

.dint .key i {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
}

/* Steps */
.dint-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dint-steps h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
}

.dint .step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--white);
  transition: opacity 0.4s, border-color 0.4s, background-color 0.4s;
}

.js .dint .step {
  opacity: 0.5;
}

.js .dint .step.on {
  opacity: 1;
  border-color: #C7D8FB;
  background: #F7FAFF;
}

.js .dint .step.done {
  opacity: 1;
}

.dint .n {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EAECEF;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s;
}

.dint .step.on .n {
  background: var(--d-amber);
  color: var(--white);
}

.dint .step.done .n {
  background: var(--d-sage);
  color: var(--white);
}

.dint .step b {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.dint .step p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.dint-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 28px;
}

.dint-foot p {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--d-cream-2);
}

/* The section's primary button: ink, 10px corners, like every other */
.dint-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(14, 15, 17, 0.18);
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  transition: background-color 0.2s;
}

.dint-cta:hover {
  background: #2A2C31;
}

.dint-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .dint-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dint {
    padding: 88px 0;
  }

  .dint-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .dint-stage {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dint *,
  .dint *::before,
  .dint *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .dint .step {
    opacity: 1;
  }
}

/* ==========================================================================
   10 Approach — start with one part of the business

   Three step cards rise in along a line that fills (initApproach in
   js/core/site.js), then a note on how each next step starts further ahead.
   Without JS or with reduced motion everything shows.
   ========================================================================== */

.ap {
  --a-line: #D9DBDE;
  --a-brown: #45474A;
  --a-cream: #EEF0F3;
  --a-amber: #5E6063;
  --a-amber-2: #848689;
  --a-amber-soft: #EBEDF0;

  padding: 128px 0;
  background: var(--paper);
}

.ap-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 56px;
}

.ap-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.ap-title span {
  color: var(--ink-3);
}

.ap-lead {
  max-width: 420px;
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Steps */
.ap-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

/* One timeline through the number tiles, fading out to the right */
.ap-line {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, #E6E7EA 0%, #E6E7EA 78%, rgba(230, 231, 234, 0) 100%);
}

.ap-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 45%, #22C55E 75%, rgba(34, 197, 94, 0) 100%);
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}

.js .ap-line i {
  transform: scaleX(0);
}

.js .ap-steps.in .ap-line i {
  transform: none;
}

.ap .step {
  position: relative;
  z-index: 1;
  padding: 0 12px 0 0;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.js .ap .step {
  opacity: 0;
  translate: 0 24px;
}

.js .ap-steps.in .step {
  opacity: 1;
  translate: 0 0;
}

.js .ap-steps.in .step:nth-of-type(2) { transition-delay: 0.35s; }
.js .ap-steps.in .step:nth-of-type(3) { transition-delay: 0.7s; }

.ap .badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--ap-soft, #F4F4F5);
  /* A ring in the page colour lifts the tile off the timeline */
  box-shadow: 0 0 0 8px var(--paper);
  font-size: 20px;
  font-weight: 600;
  color: var(--ap-c, #0E0F11);
}

.ap .step h3,
.ap .grow h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ap .step p,
.ap .grow p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ap .step .ex {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
  font-size: 15px;
  line-height: 1.5;
}

.ap .ex b {
  font-weight: 500;
  color: var(--ink);
}

/* Every next step starts further ahead: heading left, reason right */
.ap .grow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding: 32px 36px;
  border-radius: 16px;
  background: #F6F6F7;
}

.ap .grow h3 {
  margin: 0;
}

.ap-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
}

.ap-cta p {
  margin: 0;
  font-size: 20px;
}

.ap-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(14, 15, 17, 0.18);
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  transition: background-color 0.2s;
}

.ap-cta a:hover {
  background: #2A2C31;
}

.ap-cta a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .ap-steps {
    grid-template-columns: 1fr;
  }

  .ap-steps {
    gap: 40px;
  }

  .ap-line {
    top: 26px;
    bottom: 26px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    background: #E6E7EA;
  }

  .ap-line i {
    background: linear-gradient(180deg, #3B82F6, #8B5CF6 50%, #22C55E);
  }

  .ap .step {
    padding: 0 0 0 76px;
  }

  .ap .badge {
    position: absolute;
    top: 0;
    left: 0;
  }

  .ap-line i {
    transform-origin: top;
  }

  .js .ap-line i {
    transform: scaleY(0);
  }

  .ap .grow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ap {
    padding: 88px 0;
  }

  .ap-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

  .ap .grow {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap *,
  .ap *::before,
  .ap *::after {
    transition: none !important;
  }

  .js .ap .step {
    opacity: 1;
    translate: 0 0;
  }

  .js .ap-line i {
    transform: none;
  }
}

/* ==========================================================================
   11 Client voices — the teams we build with, in their own words

   One quote at a time on a brown stage: the words fade in, the key phrase
   is underlined and a bar on the chosen client fills while the quote is
   read. The quotes advance while on screen until the visitor picks a client
   or after one full round (js/pages/home/voices.js). Without JS every quote
   shows in a column.
   ========================================================================== */

.vox {
  --v-brown: #FAFAFA;
  --v-brown-2: #0E0F11;
  --v-cream: #0E0F11;
  --v-cream-2: #E9EAED;
  --v-cream-3: #6B6F78;
  --v-amber: #2563EB;

  padding: 128px 0;
  background:
    radial-gradient(circle, rgba(14, 15, 17, 0.08) 1px, transparent 1.3px) 0 0 / 20px 20px,
    var(--v-brown);
  color: var(--v-cream);
}

.vox-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}

.vox-title {
  max-width: 19ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--v-cream);
}

.vox-title span {
  color: var(--v-cream-3);
}

.vox-lead {
  max-width: 40ch;
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--v-cream-3);
}

.vox-arrows {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.vox-arrows button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.06);
  color: var(--v-cream);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, scale 0.2s;
}

.vox-arrows button:hover {
  border-color: rgba(14, 15, 17, 0.28);
  background: var(--paper-2);
}

.vox-arrows button:active {
  scale: 0.94;
}

.vox button:focus-visible,
.vox-quote:focus-visible {
  outline: 2px solid var(--v-cream);
  outline-offset: 2px;
}

html:not(.js) .vox-arrows {
  display: none;
}

/* Quote stage */
.vox-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 64px;
}

.vox-stage {
  position: relative;
  padding-left: 56px;
}

.vox-mark {
  position: absolute;
  top: -18px;
  left: 0;
  font-family: var(--sans);
  font-size: 120px;
  line-height: 1;
  color: var(--v-amber);
  transition: translate 0.5s var(--ease), opacity 0.5s;
}

.vox-mark.bump {
  opacity: 0.4;
  translate: 0 -10px;
}

.vox-quotes {
  display: grid;
  gap: 56px;
}

.vox-quote {
  margin: 0;
}

.vox-quote blockquote {
  margin: 0;
}

.vox-quote p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.vox .hl {
  background: linear-gradient(var(--v-amber), var(--v-amber)) left 92% / 100% 2px no-repeat;
  color: #1D4ED8;
  transition: background-size 0.8s var(--ease);
}

.vox .by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.vox .by b {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.vox .by b + span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: var(--v-cream-3);
}

/* One quote at a time once the script runs */
.js .vox-quotes {
  gap: 0;
}

.js .vox-quote {
  grid-area: 1 / 1;
  visibility: hidden;
}

.js .vox-quote.on {
  visibility: visible;
}

.vox .w {
  display: inline-block;
  opacity: 0;
  translate: 0 0.35em;
  filter: blur(4px);
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), filter 0.5s var(--ease);
}

.vox-quote.on .w {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

.js .vox .hl {
  background-size: 0% 2px;
}

.js .vox-quote.on .hl {
  background-size: 100% 2px;
}

.js .vox .by {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.5s 0.2s, translate 0.5s 0.2s var(--ease);
}

.js .vox-quote.on .by {
  opacity: 1;
  translate: 0 0;
}

/* Client list */
.vox-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vox-people button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  overflow: hidden;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
}

.vox-people button:hover {
  background: rgba(14, 15, 17, 0.04);
}

.vox-people button[aria-selected="true"] {
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -16px rgba(14, 15, 17, 0.3);
}

.vox-people .txt {
  min-width: 0;
}

.vox-people b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.vox-people .txt span {
  display: block;
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--v-cream-3);
}

.vox-people button[aria-selected="false"] .av {
  opacity: 0.7;
}

.vox-people .bar {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(14, 15, 17, 0.08);
  opacity: 0;
  transition: opacity 0.3s;
}

.vox-people .bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--v-amber);
}

.vox-people [aria-selected="true"] .bar {
  opacity: 1;
}

.vox-people.held .bar {
  opacity: 0;
}

.vox .av {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--v-cream-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--v-brown-2);
  transition: opacity 0.3s;
}

.vox .by .av {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.vox .av.c2 { background: #C0C2C5; }
.vox .av.c3 { background: #D6D8DB; }
.vox .av.c4 { background: #D9DBDE; }
.vox .av.c5 { background: #D6D8DB; }

@media (max-width: 900px) {
  .vox {
    padding: 88px 0;
  }

  .vox-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .vox-arrows {
    display: none;
  }

  .vox-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vox-stage {
    padding-top: 44px;
    padding-left: 0;
  }

  .vox-mark {
    top: -6px;
    font-size: 88px;
  }

  .vox-quote p {
    font-size: 25px;
  }

  .vox-people {
    flex-direction: row;
    margin: 0 calc(var(--gutter) * -1);
    overflow-x: auto;
    padding: 0 var(--gutter) 4px;
    scroll-padding-left: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .vox-people::-webkit-scrollbar {
    display: none;
  }

  .vox-people li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .vox-people button {
    width: auto;
    padding: 12px 16px 14px 12px;
    border: 1px solid rgba(238, 240, 243, 0.16);
  }

  .vox-people .txt span {
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vox *,
  .vox *::before,
  .vox *::after {
    transition: none !important;
  }

  .vox .w {
    opacity: 1;
    translate: 0 0;
    filter: none;
  }
}

/* ==========================================================================
   Insights — cards rendered by js/components/blog.js
   ========================================================================== */

.ins-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 64px;
  text-align: center;
}

.ins-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.ins-title span {
  color: var(--ink-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-visual {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .hero--home .hero-inner {
    padding-top: calc(var(--hero-nav) + 48px);
  }

  .hero-visual {
    aspect-ratio: 1 / 1.05;
    margin-top: 44px;
  }

}



/* ---------- Foundation scenes: semantic colour ---------- */
.found {
  --amber: #2563EB;
  --amber-soft: #EAF1FE;
  --sage: #16A34A;
  --sage-soft: #E7F7EC;
}

.found .arrow { color: var(--blue-2, #3B82F6); }
.found .ask { background: #FEF3DB; color: #B45309; }
.found .ask b { background: #F59E0B; }

/* Step 2: three answers, three measures */
.found .bubble:nth-child(1) { --hl: #3B82F6; --chip: #EAF1FE; }
.found .bubble:nth-child(2) { --hl: #22C55E; --chip: #E7F7EC; }
.found .bubble:nth-child(3) { --hl: #8B5CF6; --chip: #F1EBFE; }
.found .bubble:nth-child(1) .who { color: #2563EB; }
.found .bubble:nth-child(2) .who { color: #16A34A; }
.found .bubble:nth-child(3) .who { color: #7C3AED; }
.found .gap path { stroke: #EF4444; }
.found .gap-n { fill: #DC2626; }
.found .vol.is-hl .vol-name { fill: #2563EB; }

/* Steps 1, 3, 4 */
.found .wire--amber { stroke: #3B82F6; }
.found .flow { stroke: #2563EB; }
.found .flow.wire--amber { stroke: #1D4ED8; }
.found .flow.wire--sage { stroke: #15803D; }
.found .found-panel--before .wire--amber { stroke: #EF4444; stroke-opacity: 0.75; }
.found .wire--blocked { stroke: #EF4444; }
.found .s-ring { stroke: #3B82F6; }
.found .s-check circle { fill: #16A34A; }
.found .pill--amber rect { fill: #EAF1FE; stroke: #C7D8FB; }
.found .pill--amber text { fill: #1D4ED8; }
.found .found-panel--before .pill--amber rect { fill: #FDECEC; stroke: #F8C4C4; }
.found .found-panel--before .pill--amber text { fill: #B91C1C; }
.found .s-alert circle:not(.s-alert-ring) { fill: #EF4444; }
.found .s-alert-ring { stroke: #EF4444; }
.found .s-open-badge circle { fill: #EF4444; }
.found .s-open-glow { fill: rgba(239, 68, 68, 0.14); }
.found .s-lock rect { fill: #FDECEC; stroke: #DC2626; }
.found .s-lock path { stroke: #DC2626; }
.found .s-gate circle { stroke: #16A34A; }
.found .s-gate path { stroke: #16A34A; }
.found .doc .faint { background: #FDECEC; color: #DC2626; }
.found .doc small i { color: #DC2626; }
.found .name.is-hl,
.found .doc.is-hl {
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 12px 24px -18px rgba(14, 15, 17, 0.4);
}
.found .found-step .wire.is-hl { stroke-width: 2.6; }
.found .found-step .s-av.is-hl .s-av-ring { stroke: #2563EB; }
.found .found-step .is-hl .s-role { fill: #2563EB; }

/* The night section gets the same fine-line texture as the CTA */
.found {
  position: relative;
  isolation: isolate;
}

.found::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(60% 55% at 70% 45%, #000 0%, transparent 80%);
  mask-image: radial-gradient(60% 55% at 70% 45%, #000 0%, transparent 80%);
  pointer-events: none;
}

/* Problem records: each record's live dot in its own colour */
.problem .rec:nth-child(1) { --rec-c: #F97316; }
.problem .rec:nth-child(2) { --rec-c: #3B82F6; }
.problem .rec:nth-child(3) { --rec-c: #EF4444; }
.problem .rec:nth-child(4) { --rec-c: #22C55E; }
.problem .rec.is-linked h3::after { background: var(--rec-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rec-c) 20%, transparent); }

/* Industries: a colour per industry, on a soft icon tile */
.ind-tile:nth-child(1) { --t-c: #EA580C; --t-soft: #FFEEDF; }
.ind-tile:nth-child(2) { --t-c: #DB2777; --t-soft: #FCE8F3; }
.ind-tile:nth-child(3) { --t-c: #2563EB; --t-soft: #EAF1FE; }
.ind-tile:nth-child(4) { --t-c: #16A34A; --t-soft: #E7F7EC; }
.ind-tile:nth-child(5) { --t-c: #7C3AED; --t-soft: #F1EBFE; }
.ind-tile:nth-child(6) { --t-c: #D97706; --t-soft: #FEF3DB; }

.ind-tile .ind-art {
  color: var(--t-c);
}

.ind-tile .ind-art svg {
  box-sizing: border-box;
  padding: 16px;
  border-radius: 20px;
  background: var(--t-soft);
}

.ind-tile .ind-art .acc {
  stroke: var(--t-c);
}

.ind-tile .ind-art rect.acc,
.ind-tile .ind-art .trend-dot {
  fill: var(--t-c);
}

.ind-tile .tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t-c);
}

.ind-tile:hover {
  border-color: color-mix(in srgb, var(--t-c) 35%, transparent);
}

/* Approach: each step on its own colour tile */
.ap .step:nth-of-type(1) { --ap-c: #2563EB; --ap-soft: #EAF1FE; }
.ap .step:nth-of-type(2) { --ap-c: #7C3AED; --ap-soft: #F1EBFE; }
.ap .step:nth-of-type(3) { --ap-c: #16A34A; --ap-soft: #E7F7EC; }
.ap .step:nth-of-type(4) { --ap-c: #EA580C; --ap-soft: #FFEEDF; }

/* Voices: each speaker's initials on their own colour */
.vox .av.c1 { background: #EAF1FE; color: #1D4ED8; }
.vox .av.c2 { background: #F1EBFE; color: #6D28D9; }
.vox .av.c3 { background: #E7F7EC; color: #15803D; }
.vox .av.c4 { background: #FFEEDF; color: #C2410C; }
.vox .av.c5 { background: #FCE8F3; color: #BE185D; }
.vox .av.c6 { background: #FEF3DB; color: #B45309; }

/* ==========================================================================
   06 Context Intelligence: a memory that outlasts the conversation. Three
   sessions on one timeline; the third answer draws on the first two.
   ========================================================================== */

.ctx {
  padding: 128px 0;
  background: var(--paper);
}

.ctx-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 56px;
}

.ctx-title {
  max-width: 22ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.ctx-title span {
  color: var(--ink-3);
}

.ctx-lead {
  max-width: 420px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
}

.ctx-stage {
  padding: 40px 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle, rgba(14, 15, 17, 0.07) 1px, transparent 1.3px) 0 0 / 20px 20px,
    var(--paper-2);
}

.js .ctx-stage[data-reveal] {
  opacity: 1;
  transform: none;
}

.ctx-sessions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The timeline the memories travel along */
.ctx-sessions::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #F97316 50%, #3B82F6);
  opacity: 0.35;
}

.ctx-sessions li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.04), 0 18px 40px -30px rgba(14, 15, 17, 0.3);
}

.ctx-sessions li.is-now {
  border-color: #C7D8FB;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 24px 50px -30px rgba(37, 99, 235, 0.35);
}

.ctx-sessions small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.ctx-sessions p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.ctx-kept {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: auto;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: var(--s);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c);
}

.ctx-kept i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c) var(--check) center / 9px no-repeat;
}

.ctx-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--s);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}

.ctx-answer img {
  border-radius: 4px;
}

.ctx-answer b {
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  color: #1D4ED8;
}

/* Sessions arrive one after another once the stage is reached */
.js .ctx-sessions li {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.js .ctx-stage.visible .ctx-sessions li {
  opacity: 1;
  translate: 0 0;
}

.js .ctx-stage.visible .ctx-sessions li:nth-child(2) { transition-delay: 0.25s; }
.js .ctx-stage.visible .ctx-sessions li:nth-child(3) { transition-delay: 0.5s; }

.ctx-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.ctx-foot p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .ctx-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

  .ctx-sessions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ctx-sessions::before {
    top: 4%;
    bottom: 4%;
    left: 28px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #8B5CF6, #F97316 50%, #3B82F6);
  }

  .ctx-stage {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .ctx-sessions li {
    opacity: 1;
    translate: none;
  }
}

/* ==========================================================================
   Phones: the four records and the six industries become rows you swipe
   through, edge to edge, with the next card peeking in.
   ========================================================================== */
@media (max-width: 600px) {
  .problem-records,
  .ind-grid {
    display: flex;
    gap: 12px;
    margin-right: calc(-1 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }

  .problem-records::-webkit-scrollbar,
  .ind-grid::-webkit-scrollbar {
    display: none;
  }

  .problem-records > *,
  .ind-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .problem-records {
    perspective: none;
  }

  .ind-tile {
    display: flex;
    flex-direction: column;
  }

  .ind-tile .q {
    margin-top: auto;
  }
}

/* ==========================================================================
   Industries, cards: icon, name, one line, and a small picture of the data
   that industry runs on. Each card's colour comes from --t-c / --t-soft.
   The pictures settle in while the section is on screen (.ind.is-live).
   ========================================================================== */
.ind .ind-tile {
  min-height: 0;
  padding: 24px;
}

.ind-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ind .ind-tile .ind-art {
  display: block;
  flex: none;
  min-height: 0;
  margin: 0;
}

.ind .ind-tile .ind-art svg {
  width: 64px;
  height: 64px;
  padding: 11px;
  border-radius: 16px;
  stroke-width: 3.2;
}

.ind .ind-tile .ind-go {
  margin-top: 4px;
}

.ind .ind-tile h3 {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.ind-sub {
  max-width: 48ch;
  margin: 8px 0 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 600px) {
  .ind .ind-tile {
    padding: 20px;
  }

  .ind .ind-tile .ind-art svg {
    width: 56px;
    height: 56px;
    padding: 9px;
  }

  .ind-sub {
    margin-bottom: 20px;
    font-size: 15px;
  }
}


/* Industries: icons without a tile, drawn in the card's own colour with a
   pale fill, still moving as before. The cards and their pictures stay
   still. An underlined link leads to each industry page. */
.ind .ind-tile .ind-art {
  color: var(--t-c);
}

.ind .ind-tile .ind-art svg {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  background: none;
  stroke-width: 3;
}

.ind .ind-tile .ind-art .acc {
  stroke: currentColor;
}

.ind .ind-tile .ind-art rect.acc,
.ind .ind-tile .ind-art .trend-dot {
  fill: var(--t-soft);
  fill-opacity: 1;
}

.ind .ind-tile,
.ind .ind-tile:hover {
  translate: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ind .ind-tile h3 {
  margin-top: 20px;
}

.ind-cta {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s;
}

.ind-tile:hover .ind-cta,
.ind-tile:focus-visible .ind-cta {
  border-color: var(--ink);
}

/* ==========================================================================
   Routes, services, first engagement and team (from the site review)
   ========================================================================== */

/* Hero: two ways in, under the main call to action */
.hero-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin-top: 18px;
}

.hero-route {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px 15px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), translate 0.2s var(--ease);
}

.hero-route b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.hero-route b::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--ink-3);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: translate 0.2s var(--ease), background-color 0.2s var(--ease);
}

.hero-route span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}

.hero-route:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 24px -18px rgba(14, 15, 17, 0.45);
  translate: 0 -1px;
}

.hero-route:hover b::after {
  background: var(--ink);
  translate: 2px 0;
}

.hero-route:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Logos, then one result in a client's own words */
.trust-result {
  max-width: 62ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-2);
}

/* ---------- What we build ---------- */

.svc {
  padding: 128px 0;
  background: var(--paper);
}

.svc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: 40px;
}

.svc-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.svc-title span {
  color: var(--ink-3);
}

.svc-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.svc-tabs [role="tab"] {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.svc-tabs [role="tab"]:hover {
  color: var(--ink);
}

.svc-tabs [aria-selected="true"] {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.08), 0 0 0 1px var(--line);
  color: var(--ink);
}

.svc-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.svc-panel + .svc-panel {
  margin-top: 72px;
}

.js .svc-panel + .svc-panel {
  margin-top: 0;
}

.svc-panel.is-active .svc-card {
  animation: svcIn 0.6s var(--ease) both;
}

.svc-panel.is-active .svc-card:nth-child(2) { animation-delay: 0.06s; }
.svc-panel.is-active .svc-card:nth-child(3) { animation-delay: 0.12s; }

@keyframes svcIn {
  from { opacity: 0; translate: 0 12px; }
}

.svc-lead {
  max-width: 64ch;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
}

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

.svc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.svc-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.svc-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.svc-card h3 a {
  color: var(--ink);
}

.svc-what {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.svc-text {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.svc-out {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.svc-out li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.svc-out li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--ink);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.svc-more {
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.svc-more:hover {
  color: var(--ink-3);
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: background-color 0.2s;
}

.svc-cta:hover {
  background: #2A2C31;
}

/* ---------- First engagement: four stages ---------- */

.ap-steps--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.js .ap-steps.in .step:nth-of-type(4) { transition-delay: 1.05s; }

.ap .step .out {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--a-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.ap .step .out b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .ap-steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .ap-steps--4 .ap-line {
    display: none;
  }
}

@media (max-width: 980px) {
  .ap-steps--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero-routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc {
    padding: 88px 0;
  }

  .svc-tabs {
    width: 100%;
  }

  .svc-tabs [role="tab"] {
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
  }

  .svc-card {
    padding: 22px;
  }

}
