/* The complete infographic is the default; scrolling progressively enhances it. */
.hero.hero--story { overflow: visible; padding-bottom: 32px; }
.ki-story {
  --story-top: 89px;
  --story-travel: 200svh;
  position: relative;
  margin: 0;
  color: var(--ink);
  scroll-margin-top: var(--story-top);
  isolation: isolate;
}
.ki-story-stage {
  position: relative;
  overflow: hidden;
  padding: 24px 0 16px;
  background: radial-gradient(ellipse at 50% 56%, #f5f7fa 0, #ffffff00 64%);
}
.ki-story-header { position: relative; z-index: 3; }
.ki-story h2 {
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(32px, 4.3vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-align: center;
}
.ki-story h2 > span {
  display: block;
  margin-bottom: 3px;
  color: #74777d;
  font-size: .72em;
  font-weight: 500;
  letter-spacing: -.035em;
}
.ki-story-view {
  display: none;
  position: absolute;
  top: 5px;
  right: 0;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #d2d7df;
  background: transparent;
  color: #68717c;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}
.ki-story.can-animate .ki-story-view { display: block; }
.ki-story-view:hover { color: var(--ink); border-color: #727c88; }
.ki-story-view:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.ki-story-scene { position: relative; margin-top: 30px; }
.ki-story-wires { display: none; }
.ki-story-wire {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  opacity: .48;
}
.ki-story-hub {
  position: relative;
  z-index: 2;
  display: flex;
  width: 236px;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 30px;
  padding: 20px;
  border: 1px solid #dce1e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px #2039550b, 0 3px 8px #20395504;
}
.ki-story-hub-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ki-story-hub-brand .brand-mark { width: 35px; height: 35px; flex: 0 0 35px; color: #fff; background: var(--blue); font-size: 12px; }
.ki-story-hub-brand strong { font-size: 22px; font-weight: 750; letter-spacing: -.045em; line-height: 1.2; }
.ki-story-hub p { margin: 0; color: #747b85; font-size: 13px; line-height: 1.5; }
.ki-story-tiles {
  display: grid;
  width: min(100%, 580px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ki-usecase {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 122px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, white);
  border-radius: 22px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 60%, #1d1d1f);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 8%, transparent), inset 0 1px #ffffffb3;
  text-align: center;
}
.ki-usecase:last-child { grid-column: 1 / -1; width: calc((100% - 16px) / 2); justify-self: center; }
.ki-usecase-icon { display: block; width: 33px; height: 33px; flex: 0 0 33px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ki-usecase > span { max-width: 100%; font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.ki-usecase[data-case="text"] { --end-x: 50; --end-y: 15; }
.ki-usecase[data-case="knowledge"] { --end-x: 79; --end-y: 40; }
.ki-usecase[data-case="website"] { --end-x: 67; --end-y: 82; }
.ki-usecase[data-case="service"] { --end-x: 33; --end-y: 82; }
.ki-usecase[data-case="automation"] { --end-x: 21; --end-y: 40; }
.ki-story-footer { display: none; }
.ki-story-hint { margin: 0; color: #727982; font-size: 11px; line-height: 1.5; }
.ki-story-hint > span { display: inline-block; margin-left: 8px; }
.ki-story-progress { width: 160px; height: 2px; overflow: hidden; border-radius: 2px; background: #e5e9ee; }
.ki-story-progress > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple), var(--turquoise), var(--green), var(--orange)); transform: scaleX(0); transform-origin: left; }

/* A ring at desktop widths, including the complete no-JS/reduced-motion view. */
@media (min-width: 1000px) {
  .ki-story-stage { background: radial-gradient(ellipse at 50% 58%, #eaf0f8 0, #f7f9fc 28%, #ffffff00 67%); }
  .ki-story h2 { max-width: calc(100% - 290px); font-size: clamp(44px, 4.4vw, 64px); letter-spacing: -.05em; }
  .ki-story h2 > span { margin-bottom: 8px; color: #697383; font-size: .52em; letter-spacing: -.025em; }
  .ki-story-view { top: 2px; font-size: 12px; }
  .ki-story-scene { height: 560px; margin-top: 24px; }
  .ki-story-hub {
    position: absolute;
    top: 52%; left: 50%;
    width: clamp(272px, 23vw, 328px);
    min-height: clamp(132px, 16vh, 148px);
    gap: 12px;
    margin: 0;
    padding: 24px;
    border: 1px solid #30415a;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #263954, #152033 65%, #101a2b);
    box-shadow: inset 0 1px #ffffff26, 0 3px 5px #11233c0a, 0 24px 54px -18px #19365766;
    transform: translate(-50%, -50%);
  }
  .ki-story-hub::after {
    content: "";
    position: absolute;
    right: 24%; bottom: -1px; left: 24%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--turquoise), var(--green), var(--orange));
  }
  .ki-story-hub-brand { gap: 13px; }
  .ki-story-hub-brand .brand-mark { width: 44px; height: 44px; flex-basis: 44px; border: 1px solid #ffffff40; border-radius: 13px; background: #ffffff10; font-size: 15px; }
  .ki-story-hub-brand strong { font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -.045em; }
  .ki-story-hub p { color: #c3cfe0; font-size: 15px; letter-spacing: .015em; }
  .ki-story-tiles { position: absolute; inset: 0; display: block; width: auto; margin: 0; }
  .ki-usecase, .ki-usecase:last-child {
    position: absolute;
    top: calc(var(--end-y) * 1%);
    left: calc(var(--end-x) * 1%);
    width: clamp(188px, 16.5vw, 238px);
    height: clamp(132px, 17vh, 154px);
    min-height: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(18px, 1.7vw, 24px);
    border-color: color-mix(in srgb, var(--accent) 28%, white);
    border-radius: 26px;
    color: color-mix(in srgb, var(--accent) 40%, #142337);
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 82%, white), color-mix(in srgb, var(--accent) 14%, var(--accent-soft)));
    box-shadow: inset 0 1px #ffffffed, inset 0 -2px color-mix(in srgb, var(--accent) 8%, transparent), 0 2px 3px #162a4005, 0 17px 32px -17px color-mix(in srgb, var(--accent) 35%, transparent);
    text-align: left;
    transform: translate(-50%, -50%);
  }
  .ki-usecase-icon { width: clamp(38px, 3.3vw, 46px); height: clamp(38px, 3.3vw, 46px); flex-basis: clamp(38px, 3.3vw, 46px); stroke-width: 1.5; }
  .ki-usecase > span { font-size: clamp(18px, 1.55vw, 22px); font-weight: 650; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
  .ki-story-wire { stroke-width: 2; opacity: .64; }
  .ki-story-hint { color: #657183; font-size: 12px; }
  .ki-story-progress { width: 200px; }
  .ki-story-wires { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
}
@media (min-width: 1000px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .ki-story.is-animated { height: calc(var(--story-height) + var(--story-travel)); }
  .ki-story.is-animated .ki-story-stage { position: sticky; top: var(--story-top); display: flex; height: var(--story-height); flex-direction: column; padding: 20px 0 14px; }
  .ki-story.is-animated .ki-story-scene { height: auto; min-height: 0; flex: 1; margin-top: 16px; }
  .ki-story.is-animated .ki-usecase { will-change: transform; }
  .ki-story.is-animated .ki-story-wire { stroke-dasharray: 1; }
  .ki-story.is-animated .ki-story-footer { position: relative; display: flex; min-height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; margin-top: 8px; }
  .ki-story.is-animated .ki-story-hint { position: absolute; right: 0; }
}

/* Centered introduction with readable line lengths on a white canvas. */
.ki-intro-section { padding: clamp(104px, 9vw, 144px) 0 120px; background: #fff; color: var(--ink); text-align: center; scroll-margin-top: 72px; }
.ki-intro-section .hero-intro { margin: 0; text-align: center; }
.ki-intro-section .eyebrow { margin-bottom: 30px; color: var(--blue); font-size: 14px; line-height: 1.6; text-wrap: balance; }
.ki-intro-section h2 { max-width: 1000px; margin: 0 auto 40px; color: var(--ink); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.08; text-wrap: balance; }
.ki-intro-copy { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 820px; margin-inline: auto; }
.ki-intro-promise { max-width: 780px; margin: 0 auto; color: var(--ink); font-size: clamp(26px, 2.3vw, 34px); font-weight: 500; line-height: 1.38; letter-spacing: -.025em; text-wrap: balance; }
.ki-intro-section .hero-intro .lead { margin: 0; color: var(--muted); font-size: clamp(20px, 1.65vw, 23px); line-height: 1.6; text-wrap: pretty; }
.ki-intro-closing { max-width: 840px; margin: 48px auto 0; color: var(--ink); font-size: clamp(22px, 2vw, 27px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; }
.ki-intro-section .proof-strip { margin-top: 80px; border-color: var(--line); background: var(--line); }
.ki-intro-section .proof-item { padding: 36px 32px; background: #fff; }
.ki-intro-section .proof-item > svg { display: block; width: 48px; height: 48px; margin: 0 auto 22px; }
.ki-intro-section .proof-item strong { margin-bottom: 10px; color: var(--ink); font-size: 22px; line-height: 1.25; text-wrap: balance; }
.ki-intro-section .proof-item span { display: block; max-width: 280px; margin-inline: auto; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: balance; }
@media (max-width: 980px) {
  .ki-intro-copy { grid-template-columns: 1fr; gap: 30px; max-width: 760px; }
  .ki-intro-promise { max-width: 620px; }
  .ki-intro-section .proof-item { padding: 28px 22px; }
}
@media (max-width: 700px) {
  .hero.hero--story { padding-bottom: 30px; }
  .ki-story-stage { padding-top: 14px; padding-bottom: 8px; }
  .ki-story h2 { font-size: clamp(29px, 7.7vw, 42px); }
  .ki-story h2 > span { font-size: .78em; }
  .ki-story-scene { margin-top: 28px; }
  .ki-story-hub { width: 228px; min-height: 102px; margin-bottom: 24px; border-radius: 21px; }
  .ki-story-tiles { gap: 12px; }
  .ki-usecase { min-height: 114px; gap: 10px; padding: 15px 10px; border-radius: 18px; }
  .ki-usecase:last-child { width: calc((100% - 12px) / 2); }
  .ki-usecase-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .ki-usecase > span { font-size: 13px; }
  .ki-intro-section { padding: 80px 0; }
  .ki-intro-section .eyebrow { margin-bottom: 26px; font-size: 13px; }
  .ki-intro-section h2 { margin-bottom: 36px; font-size: clamp(36px, 9vw, 48px); }
  .ki-intro-promise { font-size: 25px; }
  .ki-intro-section .hero-intro .lead { font-size: 19px; }
  .ki-intro-closing { margin-top: 38px; font-size: 23px; }
  .ki-intro-section .proof-strip { margin-top: 54px; }
  .ki-intro-section .proof-item { padding: 30px 28px; }
}
