/* ==========================================================================
   AI & Innovation — "Intelligence that moves business forward."
   --------------------------------------------------------------------------
   One transformation runs down the page: information becomes understanding,
   understanding becomes a suggestion, a person decides, the business acts.
   Three signature compositions carry it -- the flow, the intelligent layer
   across the foundation, and the convergence -- and everything else supports.

   AUTHORED STILL. Every composition's base styles are its finished, still
   form, which is what no-JavaScript and reduced-motion readers see. Two
   classes on <html>, set in the head before first paint, switch the moving
   forms on:
     .ai-motion   motion is allowed (JavaScript running, no reduced motion)
     .ai-wide     the same, at 1024px and wider (the pinned flow and the
                  seven-column foundation)
   Nothing is ever hidden by CSS alone.
   ========================================================================== */

:root {
  --bl-midnight: #0B1630;
  --bl-deep-navy: #10264A;
  --bl-royal: #2563EB;
  --bl-electric: #4DA8FF;
  --bl-soft: #93C5FD;
  --bl-teal: #14B8A6;
  --bl-violet: #8B5CF6;
  --bl-off-white: #F8FAFC;
  --bl-slate: #475569;
  --ai-ease: cubic-bezier(.22, .61, .36, 1);
}

.ai-petal { display: inline-block; flex: none; width: 10px; height: 22px; color: #4DA8FF; }
.ai-petal svg { display: block; width: 100%; height: 100%; }

/* ============================================================== §1 hero == */
.ai-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--v2-pad-hero) var(--v2-pad);
  color: #FFFFFF;
  background-color: var(--bl-midnight);
  background-image: linear-gradient(160deg, #0B1630 0%, #10264A 58%, #14295A 100%);
}
.ai-hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(44% 58% at 80% 26%, rgba(139, 92, 246, .26), transparent 70%),
    radial-gradient(40% 55% at 8% 30%, rgba(37, 99, 235, .24), transparent 72%),
    radial-gradient(30% 34% at 60% 96%, rgba(20, 184, 166, .10), transparent 70%);
}
.ai-hero__inner { position: relative; z-index: 1; }
.ai-hero .crumbs { margin-bottom: clamp(16px, 2.4vw, 30px); color: #C4D4EC; }
.ai-hero .crumbs a { color: #D6E3F6; }
.ai-hero .crumbs a:hover { color: #FFFFFF; }
.ai-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 4.4vw, 70px);
}
.ai-hero__copy { position: relative; z-index: 2; max-width: 600px; }
.ai-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.035em;
  color: #FFFFFF;
  text-wrap: balance;
}
.ai-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--bl-soft);
  background: linear-gradient(95deg, #93C5FD 0%, #BFDBFE 42%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-hero .v2-eyebrow { color: #BFDBFE; }
.ai-hero .v2-lead { color: #C9D8EE; max-width: 32em; }
.ai-hero .v2-head > .petal-field { inset: -32% -8% -8%; }
/* the hero is dark: its focus ring is Soft Blue, as on every dark section */
.ai-hero .v2-btn:focus-visible, .ai-hero a:focus-visible { outline-color: var(--bl-soft); }
.ai-hero .btn-row { margin-top: clamp(22px, 2.6vw, 34px); }

/* ==========================================================================
   THE ORBIT -- the hero's drawn object

   Four tilted orbits around the Blue Lily, with eight bodies travelling them
   continuously. Periods fall with radius -- 29s outermost, 10s innermost --
   so the nearer a signal is to understanding, the faster it comes round.

   NOT Home's intelligent core: that is flat, face-on concentric CIRCLES made
   from `border-radius: 50%` divs with labelled chips on a spinning track.
   This is SVG, tilted into perspective, unlabelled, and the ring stays still
   while the bodies move along it.

   Authored still: everything here is the FINISHED state and every moving rule
   is inside `prefers-reduced-motion: no-preference`, so reduced motion, a
   failed script and an old browser all land on the complete diagram.
   ========================================================================== */
.ai-orb {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 460;
  margin-inline: auto;
}
.ai-orb__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-orb__ring {
  /* the rings are <path>, so without this each one fills itself solid */
  fill: none;
  stroke: #9CCEFF;
  stroke-opacity: var(--o);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  /* a soft bloom so the orbits read as light rather than as hairlines, the
     way Huenova's rises do; the glow is what carries the extra brightness at
     small sizes, where raw opacity alone just thins out */
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, .38));
}
.ai-orb__body {
  fill: #EAF3FF;
  /* --s spaces the bodies around their orbit when nothing is animating; the
     matching negative animation-delay does the same job while it is. */
  offset-distance: var(--s);
  offset-rotate: 0deg;
  filter: drop-shadow(0 0 7px rgba(147, 197, 253, .9));
}
.ai-orb__core {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, .95));
}
.ai-orb__petal { color: #4DA8FF; }
.ai-orb__bloom {
  transform-box: view-box;
  /* written by the builder from the centre's own coordinates -- a literal
     here drifts the moment the centre moves, which rotation would expose */
  transform-origin: var(--cx) var(--cy);
}

/* ------------------------------------------------- arrival, then motion -- */
@media (prefers-reduced-motion: no-preference) {
  .ai-motion .ai-orb__ring { stroke-dashoffset: 1; }
  .ai-motion .ai-orb__body,
  .ai-motion .ai-orb__core,
  .ai-motion .ai-orb__halo { opacity: 0; }
  .ai-motion .ai-orb__bloom { scale: .2; }

  /* 1. the orbits draw, outermost last */
  .ai-motion .v2.is-in .ai-orb__ring {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.3s var(--ai-ease) calc(.15s + var(--i) * .22s);
  }
  /* 2. the lily opens at the centre of them */
  .ai-motion .v2.is-in .ai-orb__bloom {
    scale: 1;
    transition: scale .85s cubic-bezier(.22, 1.12, .36, 1) 1.5s;
  }
  .ai-motion .v2.is-in .ai-orb__core,
  .ai-motion .v2.is-in .ai-orb__halo {
    opacity: 1;
    transition: opacity .9s ease 1.4s;
  }
  /* 3. the bodies fade in ALREADY IN MOTION and already spread out */
  .ai-motion .v2.is-in .ai-orb__body {
    opacity: 1;
    transition: opacity .8s ease calc(1.1s + var(--i) * .07s);
  }

  /* CONTINUOUS. Eight bodies, the lily's slow turn and the breath of the
     halo: ten looping elements, every one stopped the moment the hero leaves
     the screen. The bodies run from t=0 so that by the time they fade in they
     are already moving -- nothing ever starts from a standstill on screen. */
  .ai-motion .ai-orb__body {
    animation: ai-orb-run var(--p) linear infinite;
    animation-delay: var(--d);
  }
  .ai-motion .ai-hero.is-live .ai-orb__bloom {
    animation: ai-orb-turn 160s linear infinite 3s;
  }
  .ai-motion .ai-hero.is-live .ai-orb__halo {
    animation: ai-orb-breathe 7s ease-in-out infinite alternate 3s;
  }
  .ai-motion .ai-hero:not(.is-live) .ai-orb__body,
  .ai-motion .ai-hero:not(.is-live) .ai-orb__bloom,
  .ai-motion .ai-hero:not(.is-live) .ai-orb__halo {
    animation-play-state: paused;
  }
}

@keyframes ai-orb-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes ai-orb-turn { to { rotate: 360deg; } }
@keyframes ai-orb-breathe { from { opacity: 1; } to { opacity: .6; } }

/* the same diagram, smaller; there is no text in it to drop */
@media (max-width: 767px) {
  .ai-orb { max-width: 420px; }
}

/* ====================================================== §2 the flow ====== */
.ai-flow {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--v2-pad);
  color: #E8F0FE;
}
.ai-flow__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(44% 38% at 78% 12%, rgba(37, 99, 235, .22), transparent 72%),
    radial-gradient(38% 36% at 14% 90%, rgba(139, 92, 246, .14), transparent 72%);
}
.ai-flow__head { max-width: 42rem; margin-bottom: clamp(26px, 3vw, 40px); }
.ai-flow__pane { position: relative; }
.ai-flow__track { position: relative; }
.ai-cols {
  --flow-gap: clamp(20px, 2.8vw, 40px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-col { position: relative; }
.ai-col__name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 34px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #BFDBFE;
}
.ai-col__name span { color: #8FB2E0; }
/* each stage is a point on the thread, just beneath its name */
.ai-col__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 9px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0B1630;
  border: 2px solid #4DA8FF;
  transition: box-shadow .5s ease, background-color .5s ease;
}
.ai-col[data-k="3"] .ai-col__name::before { border-color: #FFFFFF; }
.ai-col[data-k="4"] .ai-col__name::before { border-color: #5EEAD4; }
.ai-sources { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-src {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #C9D8EE;
}
.ai-src::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #93C5FD;
  opacity: .8;
}
.ai-card { position: relative; padding: 0; }
.ai-card .ai-petal { position: absolute; left: -17px; top: 3px; width: 9px; height: 20px; }
.ai-card__kicker {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #FFFFFF;
}
.ai-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: #C9D8EE; }
/* the suggestion carries the lily; the decision is a person's, so its words
   are the brightest; the action is settled */
.ai-card--2 .ai-card__kicker { color: #BFDBFE; }
.ai-card--3 .ai-card__text { color: #E8F0FE; }
.ai-card--3 .ai-card__kicker::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  vertical-align: 1px;
}
.ai-card--4 { border-color: rgba(20, 184, 166, .62); }
.ai-card--4 .ai-card__kicker::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 10px;
  margin: 0 10px 0 2px;
  border: solid #5EEAD4;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  vertical-align: 1px;
}
/* the thread: behind the cards, from the first stage to the last */
.ai-thread {
  position: absolute;
  z-index: 0;
  left: 5px;
  right: calc((100% - 4 * clamp(20px, 2.8vw, 40px)) / 5 - 5px);
  top: 33px;
  height: 2px;
  border-radius: 2px;
  background: rgba(147, 197, 253, .18);
  overflow: hidden;
}
.ai-thread__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4DA8FF, #8B5CF6 60%, #5EEAD4);
  transform-origin: 0 50%;
}

/* --- moving, wide: the stage pins and the scroll carries it -------------- */
.ai-wide .ai-flow__stage { min-height: calc(640px + 5 * clamp(180px, 22vh, 214px)); }
.ai-wide .ai-flow__pane { position: sticky; top: clamp(92px, 12vh, 124px); }
.ai-wide .ai-col { will-change: transform, opacity; }
.ai-wide .ai-col:not([data-k="0"]) { opacity: 0; }
.ai-wide .ai-src { will-change: transform, opacity; }
.ai-wide .ai-thread__fill { transform: scaleX(0); }
.ai-wide .ai-col.is-now .ai-col__name::before {
  background: #4DA8FF;
  box-shadow: 0 0 0 5px rgba(77, 168, 255, .18), 0 0 18px rgba(77, 168, 255, .6);
}
.ai-wide .ai-col.is-now .ai-col__name { color: #FFFFFF; }

/* ======================================================= §3 real work ==== */
.ai-caps { padding-block: var(--v2-pad-tight); }
.ai-caps__head { max-width: 44rem; }
.ai-caps__principle {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #12306E;
}
/* four stages rising left to right: each rung's rule starts a step higher
   than the last, joined by a riser */
.ai-ladder {
  --rise: clamp(18px, 2vw, 26px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}
.ai-rung {
  position: relative;
  margin-top: calc((3 - var(--k)) * var(--rise));
  padding: 26px clamp(16px, 2vw, 28px) 0 clamp(18px, 2vw, 26px);
}
/* one gradient runs unbroken through all four rungs: each rung shows its
   own quarter of it, so the stages read as one rising layer */
.ai-rung::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6 0%, #2563EB 40%, #4DA8FF 100%);
  background-size: 400% 100%;
  background-position: calc(var(--k) * 33.333%) 0;
}
.ai-rung:not(:first-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: var(--rise);
  background: var(--seam);
}
.ai-rung:nth-child(1) { --seam: #8B5CF6; }
.ai-rung:nth-child(2) { --seam: #4B60EF; }
.ai-rung:nth-child(3) { --seam: #2C6FEE; }
.ai-rung:nth-child(4) { --seam: #3C8BF7; }
.ai-rung__node {
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--seam);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.ai-rung__verb {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #0B1630;
}
.ai-rung__what { margin: 0 0 10px; font-size: var(--text-sm); color: var(--bl-slate); }
.ai-rung__caps { margin: 0; }
.ai-rung__caps div { padding: 10px 0; border-top: 1px solid rgba(15, 23, 42, .09); }
.ai-rung__caps dt { font-weight: 600; color: #12306E; }
.ai-rung__caps dd { margin: 4px 0 0; font-size: var(--text-sm); line-height: 1.55; color: var(--bl-slate); }

/* the shared reveal for the supporting sections: each item as it arrives */
.ai-motion .ai-reveal { opacity: 0; transform: translate3d(0, 14px, 0); }
.ai-motion .ai-reveal.is-seen {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease calc(var(--k, 0) * .1s),
              transform .7s var(--ai-ease) calc(var(--k, 0) * .1s);
}

/* ==========================================================================
   THE FLOWCHART KIT -- sections 4, 5 and 7 in one language

   One node, one connector, one arrowhead, one entrance; three topologies,
   because the three arguments have different shapes. CSS grid and CSS
   arrowheads rather than measured SVG, so each one reflows to a column on a
   phone with no JavaScript at all.
   ========================================================================== */
.fc {
  --fc-line: rgba(37, 99, 235, .42);
  --fc-gap: 34px;
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

/* --- the node ----------------------------------------------------------- */
.fc__node {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #FFFFFF;
  box-shadow: 0 16px 34px -26px rgba(11, 22, 48, .55);
  text-align: center;
}
.fc__num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  /* #4DA8FF measures 2.51:1 on the node's white and the contrast probe caught
     372px of it. #2563EB is 5.17:1, and is already this file's label blue. */
  color: #2563EB;
}
.fc__label {
  font-family: var(--font-display);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.2;
  color: #0F172A;
}
.fc__list { display: grid; gap: 4px; margin-top: 2px; }
.fc__item { font-size: 13px; font-weight: 500; color: #475569; }

/* --- the chain: nodes in a row, an arrow between each pair -------------- */
.fc--chain {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
}
.fc__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fc-gap);
  align-items: center;
}
.fc__step:last-child { grid-template-columns: minmax(0, 1fr); }
.fc__arrow {
  position: relative;
  height: 2px;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--fc-line);
  /* --w is section 4's taper: the run thins as the chain narrows */
  scale: 1 var(--w, 1);
}
.fc__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  translate: 0 -50%;
  border-left: 8px solid var(--fc-line);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* section 4 narrows as it goes: the nodes shrink with their connectors */
.fc--taper .fc__step:nth-child(2) .fc__node { scale: .97; }
.fc--taper .fc__step:nth-child(3) .fc__node { scale: .94; }
.fc--taper .fc__step:nth-child(4) .fc__node { scale: .91; }
.fc--taper .fc__step:nth-child(5) .fc__node { scale: .88; }
.fc--taper .fc__step:last-child .fc__label { color: #1D4ED8; }

/* --- on the dark tone (section 5) --------------------------------------- */
.fc--dark { --fc-line: rgba(147, 197, 253, .5); }
.fc--dark .fc__node {
  border-color: rgba(147, 197, 253, .3);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.fc--dark .fc__label { color: #FFFFFF; }
.fc--dark .fc__item { color: #C9D8EE; }
.fc__node--ai { border-color: rgba(139, 92, 246, .55); }
.fc__node--ai .fc__label { color: #C4B5FD; }
.fc__node--people { border-color: rgba(147, 197, 253, .6); }
.fc__node--business { border-color: rgba(94, 234, 212, .5); }
.fc__node--business .fc__label { color: #5EEAD4; }
.fc__verdict {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  font-weight: 600;
  color: #FFFFFF;
}
.fc__verdict span:last-child { color: #BFDBFE; }

/* --- the entrance: every piece arrives in reading order ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .ai-motion .fc__step,
  .ai-motion .fc__verdict { opacity: 0; transform: translate3d(0, 12px, 0); }
  .ai-motion .fc__step.is-seen,
  .ai-motion .fc__verdict.is-seen {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease calc(var(--i) * .07s),
                transform .7s var(--ai-ease) calc(var(--i) * .07s);
  }
}

/* ==========================================================================
   §6 THE FOUR RUNS

   Four lanes of light across a shared four-beat ruler. The heading is
   "Every suggestion ends with a person", so the last beat IS the point: a
   soft band stands behind the final column and every lane ends in a filled,
   ringed mark. No rules, no borders -- it was a 4x4 table with 20 of them.
   ========================================================================== */
.rn {
  position: relative;
  width: 100%;
  max-width: 1140px;
  aspect-ratio: 1140 / 470;
  margin: clamp(16px, 2vw, 26px) auto 0;
}
.rn__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* where the argument lands */
.rn__band { fill: rgba(37, 99, 235, .055); }
.rn__lane {
  stroke: url(#rnLane);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.rn__node { fill: #FFFFFF; stroke: #4DA8FF; stroke-width: 2; }
.rn__node--end {
  fill: #1D4ED8;
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(29, 78, 216, .45));
}
.rn__ring { fill: none; stroke: rgba(29, 78, 216, .35); stroke-width: 1.4; }
.rn__spark {
  fill: #2563EB;
  offset-distance: 0%;
  offset-rotate: 0deg;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(77, 168, 255, .9));
}

/* --- type straight on the drawing -------------------------------------- */
.rn__phases, .rn__runs { margin: 0; padding: 0; list-style: none; }
/* each step carries its phase name for the phone; the ruler shows it here */
.rn__beat { display: none; }
.rn__phase, .rn__name, .rn__step { position: absolute; margin: 0; }
.rn__phase {
  left: var(--x);
  top: 1.5%;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #2563EB;
}
.rn__phase--end { color: #1D4ED8; }
.rn__name {
  left: var(--x);
  top: var(--y);
  transform: translateY(-50%);
  width: 13%;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #0F172A;
}
.rn__step {
  left: var(--x);
  top: var(--y);
  width: 18.1%;              /* 206 of 1140 */
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #475569;
}
/* the sentence where a person acts carries the weight */
.rn__step--end { font-weight: 600; color: #15306B; }

/* ------------------------------------------ it draws, then it runs ------ */
@media (prefers-reduced-motion: no-preference) {
  .ai-motion .rn__lane { stroke-dashoffset: 1; }
  .ai-motion .rn__node,
  .ai-motion .rn__ring,
  .ai-motion .rn__band,
  .ai-motion .rn__phase,
  .ai-motion .rn__name,
  .ai-motion .rn__step { opacity: 0; }

  .ai-motion .rn.is-seen .rn__phase {
    opacity: 1; transition: opacity .5s ease calc(.1s + var(--i) * .08s);
  }
  .ai-motion .rn.is-seen .rn__lane {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s var(--ai-ease) calc(.25s + var(--i) * .12s);
  }
  .ai-motion .rn.is-seen .rn__name {
    opacity: 1; transition: opacity .5s ease calc(.3s + var(--i) * .12s);
  }
  .ai-motion .rn.is-seen .rn__node,
  .ai-motion .rn.is-seen .rn__step {
    opacity: 1;
    transition: opacity .5s ease calc(.5s + var(--i) * .045s);
  }
  /* the band and the rings last: the point arrives after the runs do */
  .ai-motion .rn.is-seen .rn__band { opacity: 1; transition: opacity .9s ease 1.5s; }
  .ai-motion .rn.is-seen .rn__ring {
    opacity: 1; transition: opacity .6s ease calc(1.6s + var(--i) * .1s);
  }

  /* CONTINUOUS: a signal keeps crossing each lane. Four looping elements,
     stopped the moment the section leaves the screen. */
  .ai-motion .ai-signals.is-live .rn__spark {
    animation: rn-run 6s cubic-bezier(.45, 0, .55, 1) infinite;
    animation-delay: calc(2s + var(--i) * .7s);
  }
  .ai-motion .ai-signals:not(.is-live) .rn__spark { animation-play-state: paused; }
}

@keyframes rn-run {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  84%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 1023.98px) {
  .rn__step { font-size: 11px; }
  .rn__name { font-size: 12.5px; }
}

@media (max-width: 767px) {
  /* four beats will not fit a phone, so each run becomes a short column:
     the scenario, then its four steps, each still labelled by its phase */
  .rn { aspect-ratio: auto; display: grid; gap: 4px; }
  .rn__svg, .rn__phases { display: none; }
  .rn__name, .rn__step {
    position: static;
    width: auto;
    transform: none;
  }
  .rn__runs { display: grid; gap: 4px; }
  .rn__name {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #2563EB;
  }
  .rn__step {
    /* `position: relative` is needed for the bullet, but the base rule still
       carries `left: var(--x)` and on a relative box that applies as an
       OFFSET -- the four steps cascaded right and ran off the screen. */
    position: relative;
    left: auto;
    margin-left: 16px;
    padding-left: 12px;
    font-size: 13px;
  }
  .rn__beat {
    display: block;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #64748B;
  }
  .rn__step--end .rn__beat { color: #1D4ED8; }
  .rn__step::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #93C5FD;
  }
  .rn__step--end::before { background: #1D4ED8; }
}

/* ==========================================================================
   §7 SEVEN LANES -- the flowchart

   One source, one sink, seven parallel lanes. Built so that nothing can read
   as unfinished: every lane runs the whole way from the record to the layer,
   whether or not a capability rides on it. The previous version left four of
   seven areas with nothing touching them.
   ========================================================================== */
.fl {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(150px, 200px);
  /* stretch, not center: the terminals are the two walls this runs between,
     and centred boxes floated free of the lanes they are meant to anchor */
  align-items: stretch;
  gap: 0 20px;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
}

/* the two terminals, each spanning every lane */
.fl__source, .fl__sink {
  display: grid;
  gap: 3px;
  align-content: center;
  grid-row: 1 / -1;
  margin: 0;
  padding: 18px 16px;
  border-radius: 18px;
  /* the terminals' second line is the only running copy on the site that had
     invented its own size, and 12px sat below the scale's own floor */
  font-size: var(--text-xs);
  line-height: 1.35;
  color: #475569;
}
.fl__source span, .fl__sink span {
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.2;
}
.fl__source {
  grid-column: 1;
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(77, 168, 255, .07));
  text-align: right;
}
.fl__source span { color: #15306B; }
.fl__sink {
  grid-column: 3;
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(37, 99, 235, .08));
}
.fl__sink span { color: #4C1D95; }

.fl__lanes {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fl__lane {
  /* positioned, so each lane is the containing block for its OWN name --
     without this all seven absolute names stacked on the same ancestor */
  position: relative;
  display: grid;
  align-items: center;
  min-height: 58px;
}
/* The name sits UNDER the start of its own line, not in a column before it.
   In a column it pushed the line inwards, so no lane actually reached the
   record on the left -- which is how a complete diagram still manages to
   look unfinished. */
.fl__area {
  position: absolute;
  left: 2px;
  top: calc(50% + 7px);
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #0F172A;
}

/* the run itself: a dot at the record, a line, an arrow into the layer */
.fl__track { position: relative; display: grid; align-content: center; min-height: 34px; }
.fl__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.6px;
  translate: 0 -50%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .3), rgba(139, 92, 246, .55));
  transform-origin: 0 50%;
}
.fl__line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  translate: 0 -50%;
  background: #2563EB;
}
.fl__line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  translate: 0 -50%;
  border-left: 8px solid rgba(139, 92, 246, .75);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
/* a lane that carries a suggestion runs brighter */
.fl__lane--served .fl__line {
  height: 2.2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .55), rgba(139, 92, 246, .9));
}
.fl__lane--served .fl__line::after { border-left-color: #8B5CF6; }

/* the capability names ride ABOVE the line, so the run stays unbroken */
.fl__caps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% + 6px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fl__cap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bl-off-white);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #4C1D95;
}
.fl__cap .ai-petal { flex: none; width: 6px; height: 13px; color: #8B5CF6; }

/* -------------------------------------- it draws across, then it runs --- */
@media (prefers-reduced-motion: no-preference) {
  .ai-motion .fl__source,
  .ai-motion .fl__sink,
  .ai-motion .fl__area,
  .ai-motion .fl__cap { opacity: 0; }
  .ai-motion .fl__line { transform: scaleX(0); }

  .ai-motion .fl.is-seen .fl__source,
  .ai-motion .fl.is-seen .fl__sink {
    opacity: 1; transition: opacity .7s ease .1s;
  }
  .ai-motion .fl.is-seen .fl__area {
    opacity: 1; transition: opacity .5s ease calc(.3s + var(--i) * .06s);
  }
  /* every lane draws left to right, in turn */
  .ai-motion .fl.is-seen .fl__line {
    transform: scaleX(1);
    transition: transform .7s var(--ai-ease) calc(.4s + var(--i) * .07s);
  }
  .ai-motion .fl.is-seen .fl__cap {
    opacity: 1; transition: opacity .5s ease calc(1s + var(--i) * .07s);
  }
}

@media (max-width: 1023.98px) {
  .fl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fl__source, .fl__sink { grid-column: 1; grid-row: auto; text-align: left; }
  .fl__lanes { grid-column: 1; grid-row: auto; }
  .fl__lane { min-height: 54px; }
}

@media (max-width: 767px) {
  /* a lane becomes a row: the area, then the line it runs on, then whatever
     rides on it -- the capabilities stay with their own area because they
     are nested inside the lane */
  .fl__lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(139, 92, 246, .3);
  }
  .fl__lane--served { border-left-color: #8B5CF6; }
  .fl__area { position: static; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #2563EB; }
  .fl__track { min-height: 0; }
  .fl__line { display: none; }
  .fl__caps { position: static; justify-content: flex-start; }
}

/* =================================================== §8 the convergence == */
.ai-conv { padding-block: var(--v2-pad); }
.ai-conv__head { max-width: 44rem; }
.ai-conv__stage { position: relative; margin-top: clamp(14px, 2vw, 26px); aspect-ratio: 1000 / 380; }
.ai-conv__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-stream {
  fill: none;
  stroke: #93C5FD;
  stroke-opacity: .7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ai-conv__onward {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ai-bloom__petals { color: #93C5FD; opacity: .92; }
/* the emblem bloom's colours (Medha Cloud hero): soft, violet, electric */
.ai-bloom__petals use:nth-child(3n + 2) { color: #818CF8; }
.ai-bloom__petals use:nth-child(3n) { color: #60A5FA; }
.ai-bloom__core { fill: #FFFFFF; }
.ai-conv__sources { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ai-conv__source {
  position: absolute;
  left: 0;
  top: var(--y);
  width: 13.5%;
  transform: translateY(-50%);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
  color: #C9D8EE;
}
.ai-conv__view {
  position: absolute;
  left: 64%;
  top: calc(50% + clamp(40px, 5vw, 64px));
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
  font-weight: 600;
  white-space: nowrap;
  color: #FFFFFF;
}
.ai-conv__cloud { position: absolute; left: 83%; top: 50%; transform: translateY(-50%); margin: 0; }
.ai-conv__cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, .6);
  background: rgba(37, 99, 235, .3);
  font-family: var(--font-display);
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  font-weight: 600;
  white-space: nowrap;
  color: #FFFFFF;
}
.ai-conv__cloud a:hover { background: rgba(37, 99, 235, .5); }
/* --- moving: the streams draw in, bend together, and the lily opens ----- */
.ai-motion .ai-stream, .ai-motion .ai-conv__onward { stroke-dashoffset: 1; }
.ai-motion .ai-bloom__petals { transform: scale(0) rotate(-40deg); }
.ai-motion .ai-conv__view, .ai-motion .ai-conv__cloud { opacity: 0; }
.ai-motion .ai-conv__source { opacity: .35; }

/* ==========================================================================
   THE FLOWCHART KIT -- responsive

   At the END of the file on purpose. Placed in an earlier
   `@media (max-width: 767px)` block, these lost to the kit's own base rules
   further down: source order decides between equal specificity, and a media
   query does not raise specificity at all.
   ========================================================================== */
@media (max-width: 1023.98px) {
}

@media (max-width: 767px) {
  /* every flowchart becomes a column, and the arrows turn to point down */
  .fc--chain { grid-auto-flow: row; }
  .fc__step { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 30px; }
  .fc__step:last-child { grid-template-rows: auto; }
  .fc__arrow {
    justify-self: center;
    width: 2px;
    height: 100%;
    margin: 0;
    scale: var(--w, 1) 1;
  }
  .fc__arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    translate: -50% 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--fc-line);
    border-bottom: none;
  }
  /* The taper stays in the column: the nodes narrow down the page exactly as
     they narrow across it, which reads even more clearly vertically. */
}

/* ==========================================================================
   RESTORED -- rules deleted by accident when THE CANOPY was spliced in.
   The splice ran from section 7 to the flowchart kit banner, and section
   8 plus the page's own responsive block sat between them. Put back from
   the pre-kit baseline; nothing the kit deliberately replaced is here.
   ========================================================================== */
.ai-human { padding-block: var(--v2-pad); }
.ai-human__head { max-width: 44rem; }
.ai-human .container { position: relative; isolation: isolate; }
.ai-signals { padding-block: var(--v2-pad-tight); }
.ai-signals__head { max-width: 44rem; }
.ai-across { padding-block: var(--v2-pad); }
.ai-across__head { max-width: 46rem; }

/* 1023.98, not 1023. `ai.js` turns the wide composition on at
   `innerWidth >= 1024`, so the CSS has to cover everything below that
   exactly. On a fractional viewport -- a zoomed window, a scaled
   display -- a width of 1023.5 matches NEITHER `max-width: 1023px` nor
   `min-width: 1024px`, and the page falls back to the unstacked base
   rule while the script withholds the pinned behaviour: five columns
   163px wide, the exact fault this block exists to prevent.
   Observed, not theorised. */
@media (max-width: 1023.98px) {
  .ai-hero__grid, .ai-useful__grid { grid-template-columns: minmax(0, 1fr); }
  /* §2 STACKS HERE, and until now it did not.
     `.ai-cols` is `repeat(5, 1fr)` for the pinned wide composition, and the
     rule that turned it into a column was lost with the rest of this block
     when THE CANOPY was spliced in. Everything below -- the thread, the node,
     the per-item reveal -- was restored and went on describing a vertical
     list that the grid never became. Measured at 375px: five columns 53px
     wide, each running its sentences at SEVEN characters a line.
     The thread and node below are drawn in the column's own left padding. */
  .ai-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;                  /* matches `.ai-col::before`'s -28px reach,
                                   so the thread runs unbroken between items */
  }
  .ai-col { padding-left: 28px; }
  /* the horizontal thread is the wide composition's spine; stacked, the
     vertical one on `.ai-col` carries the flow and this is a stray rule
     lying across the first item */
  .ai-thread { display: none; }
  /* the dot under the name belongs to the horizontal thread; here the
     vertical one carries the node, and two would read as a mistake */
  .ai-col__name { margin-bottom: var(--space-3); }
  .ai-col__name::before { display: none; }
  .ai-col::before {
      content: "";
      position: absolute;
      left: 5px;
      top: 6px;
      bottom: -28px;
      width: 2px;
      background: rgba(147, 197, 253, .3);
    }
  .ai-col:last-child::before { bottom: auto; height: 10px; }
  .ai-col::after {
      content: "";
      position: absolute;
      left: 0;
      top: 3px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #0B1630;
      border: 2px solid #4DA8FF;
    }
  .ai-motion .ai-col { opacity: 0; transform: translate3d(0, 14px, 0); }
  .ai-motion .ai-col.is-seen {
      opacity: 1;
      transform: none;
      transition: opacity .6s ease, transform .7s var(--ai-ease);
    }
}

/* The ladder is a staircase only while it has four columns to climb. Below
   1024 those columns were 172px, and at 375px they were 88px -- eleven
   characters for a verb set at 30px. Two columns, then one, and the rise
   goes to zero because a staircase of one step is just a list.
   Each rung keeps its own quarter of the single gradient (the `--k`
   background-position), so the four still read as one rising layer. */
@media (max-width: 1023.98px) {
  .ai-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --rise: 0px;
    row-gap: clamp(20px, 3vw, 28px);
  }
  .ai-rung { margin-top: 0; }
  .ai-rung:not(:first-child)::after { display: none; }
}

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

@media (max-width: 767px) {
  .ai-conv__view, .ai-conv__cloud { position: static; transform: none; margin-top: 12px; }
}

/* ========================================================== reduced motion
   Nothing needs undoing: without .ai-motion every composition is already its
   finished, still form. Only the CSS entrances need stopping.

   Restored -- this block was deleted with section 8's. The replaced markup
   (.ai-bit, .ai-field__*, .ai-scene__thread) is dropped; the kit, the canopy
   and the runs are added, since they all animate through .ai-reveal or
   their own `.is-seen` hooks. */
@media (prefers-reduced-motion: reduce) {
  .ai-reveal, .ai-col,
  .fc__step, .fc__verdict,
  .fl__line, .fl__cap, .fl__area, .fl__source, .fl__sink,
  .rn__lane, .rn__node, .rn__ring, .rn__band,
  .rn__phase, .rn__name, .rn__step { transition: none !important; }
}
