/* Landing overview + connected story flow. Both sections use the canonical
   landing rail so this marketing layer stays aligned with the feature stack. */
body.landing-page .landing-story-bridge,
body.landing-page .landing-demo-experience {
  --demo-heading-size: calc(clamp(1.755rem, 2.8305vw, 2.9835rem) * 1.1);
  --demo-eyebrow-size: clamp(0.66rem, 0.74vw, 0.74rem);
  --demo-copy-size: clamp(0.88rem, 0.97vw, 1rem);
  --demo-gold: color-mix(in srgb, var(--gold) 72%, #9a6729 28%);
  --demo-border: color-mix(in srgb, var(--gold) 30%, rgba(89, 58, 30, 0.22));
  --demo-surface: color-mix(in srgb, var(--ofc-soft-cream) 94%, white 6%);
  --demo-editorial-ink: color-mix(in srgb, var(--ink) 92%, #5b3d2a 8%);
  --demo-editorial-copy: color-mix(in srgb, var(--ink-soft) 86%, #8a7666 14%);
  --demo-editorial-gold: color-mix(in srgb, var(--demo-gold) 70%, #7f6848 30%);
  --demo-rail-width: var(
    --kv-desktop-showcase-rail,
    min(calc(100vw - clamp(1.5rem, 4.5vw, 4rem)), var(--kv-feature-rail-max, 64.6rem))
  );
  box-sizing: border-box;
  width: var(--demo-rail-width);
  max-width: 100%;
  margin-inline: auto;
  scroll-margin-top: clamp(4.5rem, 8vw, 7rem);
}

/* Shared editorial stage keeps the public demo and connected-story follow-up
   visually related without coupling their internal layouts. */
.landing-demo-story-stage {
  position: relative;
  isolation: isolate;
  padding-block: 0.01px;
}

.landing-demo-story-stage::before {
  content: "";
  position: absolute;
  top: -1rem;
  bottom: -1.5rem;
  left: 50%;
  z-index: 0;
  width: 100vw;
  pointer-events: none;
  background:
    linear-gradient(rgba(250, 244, 234, 0.66), rgba(250, 244, 234, 0.72)),
    url("/static/img/hero/kinvella-hero-world-map.webp") center 12% / min(96rem, 105vw) auto no-repeat,
    url("/static/img/parchment-bg.webp") center / 34rem auto repeat;
  opacity: 0.2;
  transform: translateX(-50%);
}

.landing-demo-experience__gutter-art {
  display: none;
}

@media (min-width: 1201px) {
  .landing-demo-experience__gutter-art {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: var(
      --kv-desktop-showcase-rail,
      min(calc(100vw - clamp(1.5rem, 4.5vw, 4rem)), var(--kv-feature-rail-max, 64.6rem))
    );
    height: clamp(25rem, 34vw, 31rem);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .landing-demo-experience__gutter-image {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
    filter: sepia(0.16) saturate(0.88) contrast(1.02);
    user-select: none;
  }

  .landing-demo-experience__gutter-image--sextant {
    top: clamp(3.8rem, 5vw, 5rem);
    left: clamp(-15.5rem, -15vw, -12rem);
    width: clamp(14rem, 17vw, 17.5rem);
    transform: rotate(-8deg);
  }

  .landing-demo-experience__gutter-image--scrapbook {
    top: clamp(8rem, 9.5vw, 9.5rem);
    right: clamp(-16rem, -16vw, -12.5rem);
    width: clamp(15rem, 18vw, 18.5rem);
    opacity: 0.27;
    transform: rotate(6deg);
  }
}

body.landing-page .landing-demo-experience,
body.landing-page .landing-story-bridge {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Add Them Once. Their Story Connects, Everywhere
   -------------------------------------------------------------------------- */
body.landing-page .landing-story-bridge {
  --story-card-reveal-interval: 1755ms;
  --story-row-reveal-duration: var(--story-card-reveal-interval);
  --story-live-data-duration: 19.6s;
  --story-live-data-delay: 2.1s;
  --story-connector-weight: 3px;
  --story-connector-core: var(--gold);
  --story-connector-highlight: color-mix(in srgb, var(--gold) 62%, var(--ofc-soft-cream) 38%);
  --story-data-pulse: #765039;
  --story-connector-shadow:
    0 0 0.22rem color-mix(in srgb, var(--gold) 48%, transparent),
    0 0 0.56rem color-mix(in srgb, var(--gold) 18%, transparent);
  --story-connector-vertical: linear-gradient(90deg, var(--gold), var(--story-connector-highlight) 48%, var(--gold));
  --story-connector-horizontal: linear-gradient(180deg, var(--gold), var(--story-connector-highlight) 48%, var(--gold));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: clamp(2.3rem, 3.5vw, 3.4rem);
  padding: clamp(1.65rem, 2.7vw, 2.7rem) clamp(1rem, 2.4vw, 2.35rem) clamp(1.45rem, 2.2vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, rgba(83, 52, 28, 0.16));
  border-radius: clamp(1.15rem, 1.7vw, 1.55rem);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 253, 247, 0.985) 0 22%, rgba(252, 247, 238, 0.88) 55%, transparent 78%),
    linear-gradient(145deg, rgba(253, 249, 242, 0.99), rgba(247, 238, 224, 0.92));
  box-shadow:
    0 1.1rem 2.6rem rgba(67, 43, 22, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.landing-page .landing-story-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 32%),
    url("/static/img/hero/kinvella-hero-world-map.webp") center 23% / 112% auto no-repeat;
  opacity: 0.2;
}

body.landing-page .landing-story-bridge::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(185, 142, 65, 0.12);
  border-radius: calc(clamp(1.15rem, 1.7vw, 1.55rem) - 0.35rem);
}

/* Staggered archival objects frame the story; the section clips their outer edges. */
.landing-story-flow__artifacts {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-story-flow__artifact {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  user-select: none;
  opacity: 0.94;
  filter: saturate(0.94) drop-shadow(0 0.3rem 0.35rem rgba(67, 43, 22, 0.12));
}

.landing-story-flow__artifact--parchment {
  top: 0;
  left: -5rem;
  width: clamp(8rem, 12vw, 10rem);
  transform: rotate(-16deg);
}

.landing-story-flow__artifact--seal {
  top: 7.8rem;
  left: 19%;
  width: clamp(3rem, 6vw, 4.6rem);
  transform: rotate(12deg);
}

.landing-story-flow__artifact--sextant {
  top: 0.8rem;
  right: -4.5rem;
  width: clamp(8rem, 13vw, 11rem);
  transform: rotate(14deg);
}

.landing-story-flow__artifact--compass {
  bottom: -5.8rem;
  right: 2%;
  width: clamp(3.5rem, 5vw, 4.2rem);
  transform: rotate(-18deg);
}

.landing-story-flow__artifact--quill {
  bottom: -7.3rem;
  left: -2rem;
  width: 5.5rem;
  transform: rotate(11deg);
}

.landing-story-flow__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
}

.landing-story-flow__header {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: min(100%, 50rem);
  margin-inline: auto;
  text-align: center;
}

.landing-story-flow__eyebrow {
  color: var(--demo-editorial-gold);
  font: 760 var(--demo-eyebrow-size)/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-story-flow__header h2 {
  margin: 0;
  color: var(--demo-editorial-ink);
  font: 500 var(--demo-heading-size)/1.02 var(--font-display);
  letter-spacing: 0.003em;
  text-wrap: balance;
}

.landing-story-flow__header h2 span,
.landing-story-flow__header h2 em {
  display: block;
}

.landing-story-flow__header h2 em {
  margin-top: 0.08em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--demo-editorial-gold) 88%, #b77f27 12%);
  font-style: italic;
  font-weight: 500;
}

.landing-story-flow__header > p {
  max-width: 42rem;
  margin: 0.22rem 0 0;
  color: var(--demo-editorial-copy);
  font: 460 var(--demo-copy-size)/1.48 var(--font-body);
  text-wrap: balance;
}

.landing-story-flow__title-rule,
.landing-story-flow__footer-rule {
  position: relative;
  display: block;
  width: min(8rem, 34vw);
  height: 1px;
  margin-top: 0.22rem;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--demo-editorial-gold) 62%, transparent), transparent);
}

.landing-story-flow__title-rule::after,
.landing-story-flow__footer-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(255, 250, 236, 0.96);
  background: var(--demo-editorial-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.landing-story-flow__network {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  margin-top: clamp(1rem, 1.6vw, 1.45rem);
}

/* One source line feeds the hub; six independent lanes then share its coordinate space. */
.landing-story-flow__data-network {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.landing-story-flow__data-path,
.landing-story-flow__data-pulse {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.landing-story-flow__data-path {
  --story-path-rest-opacity: 0.58;
  stroke: var(--story-connector-core);
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 0.13rem rgba(226, 166, 45, 0.22));
}

.landing-story-flow__data-path--source {
  --story-path-rest-opacity: 0.78;
  stroke-width: 1.7;
  filter:
    drop-shadow(0 0 0.14rem rgba(247, 203, 91, 0.38))
    drop-shadow(0 0 0.28rem rgba(217, 151, 39, 0.14));
}

.landing-story-flow__data-pulse {
  stroke: var(--story-data-pulse);
  stroke-width: 2.6;
  /* Two round-capped dots keep an even half-path interval without a loop gap. */
  stroke-dasharray: 0.001 0.499;
  stroke-dashoffset: 1;
  opacity: 0;
  filter:
    drop-shadow(0 0 0.12rem rgba(153, 103, 65, 0.4))
    drop-shadow(0 0 0.34rem rgba(105, 66, 42, 0.18));
}

.landing-story-flow__data-arrival {
  fill: var(--gold);
  stroke: color-mix(in srgb, var(--ofc-soft-cream) 92%, transparent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter:
    drop-shadow(0 0 0.14rem rgba(255, 235, 167, 0.88))
    drop-shadow(0 0 0.38rem rgba(218, 154, 42, 0.42));
  vector-effect: non-scaling-stroke;
}

.landing-story-flow__data-branch {
  transition: opacity 180ms ease;
}

.landing-story-bridge.is-feature-active .landing-story-flow__data-branch:not(.is-active) {
  opacity: 0.24;
}

.landing-story-flow__data-branch.is-active .landing-story-flow__data-path {
  --story-path-rest-opacity: 0.9;
  stroke-width: 1.6;
  filter:
    drop-shadow(0 0 0.15rem rgba(255, 225, 135, 0.68))
    drop-shadow(0 0 0.38rem rgba(218, 154, 42, 0.3));
}

.landing-story-flow__data-branch.is-active .landing-story-flow__data-arrival {
  opacity: 1;
  transform: scale(1.2);
}

/* Hide the CSS-only rails after runtime geometry is ready; they remain a no-JS fallback. */
.landing-story-bridge.has-data-network .landing-story-flow__person-card::after,
.landing-story-bridge.has-data-network .landing-story-flow__hub::after,
.landing-story-bridge.has-data-network .landing-story-flow__feature-field::before,
.landing-story-bridge.has-data-network .landing-story-flow__feature-field::after,
.landing-story-bridge.has-data-network .landing-story-flow__feature::before,
.landing-story-bridge.has-data-network .landing-story-flow__feature::after,
.landing-story-bridge.has-data-network .landing-story-flow__feature-link::before {
  display: none;
}

.landing-story-bridge.is-source-connected .landing-story-flow__data-path--source {
  animation: landing-story-data-path-reveal 780ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.landing-story-bridge.is-source-connected .landing-story-flow__data-pulse--source {
  animation: landing-story-data-flow calc(var(--story-live-data-duration) * 0.2) linear infinite both;
  animation-play-state: paused;
}

.landing-story-flow__data-branch.is-row-revealed .landing-story-flow__data-path {
  animation: landing-story-data-path-reveal var(--story-row-reveal-duration) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.landing-story-flow__data-branch.is-row-revealed .landing-story-flow__data-pulse--branch {
  animation: landing-story-data-flow calc(var(--story-live-data-duration) * 0.32) linear infinite both;
  animation-play-state: paused;
}

.landing-story-flow__data-branch.is-row-revealed .landing-story-flow__data-arrival {
  animation: landing-story-data-arrival-reveal var(--story-row-reveal-duration) ease-out forwards;
}

.landing-story-bridge.is-settled .landing-story-flow__data-path {
  stroke-dashoffset: 0;
  opacity: var(--story-path-rest-opacity);
}

.landing-story-bridge.is-settled .landing-story-flow__data-arrival {
  opacity: 0.56;
  transform: scale(1);
  animation: landing-story-data-arrival-wave var(--story-live-data-duration) var(--story-live-data-delay) linear infinite;
  animation-play-state: paused;
}

.landing-story-bridge.is-network-visible .landing-story-flow__data-pulse,
.landing-story-bridge.is-settled.is-network-visible .landing-story-flow__data-arrival {
  animation-play-state: running;
}

.landing-story-bridge.is-settled .landing-story-flow__data-branch.is-active .landing-story-flow__data-arrival {
  fill: color-mix(in srgb, var(--gold) 78%, #fff3c4 22%);
  stroke-width: 1.35;
  filter:
    drop-shadow(0 0 0.2rem rgba(255, 235, 167, 0.96))
    drop-shadow(0 0 0.52rem rgba(218, 154, 42, 0.58));
}

.landing-story-flow__person-card {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: clamp(4rem, 5.6vw, 5.04rem) max-content;
  align-items: center;
  gap: clamp(0.72rem, 1.12vw, 1.04rem);
  width: fit-content;
  max-width: min(100%, 19.2rem);
  padding: clamp(0.64rem, 0.96vw, 0.84rem) clamp(0.8rem, 1.24vw, 1.12rem);
  border: 1px solid color-mix(in srgb, var(--gold) 47%, rgba(94, 59, 27, 0.16));
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at 9% 6%, rgba(255, 255, 255, 0.96), transparent 38%),
    rgba(252, 248, 240, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0.75rem 1.6rem rgba(72, 44, 20, 0.1),
    0 0 1.2rem color-mix(in srgb, var(--gold) 10%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.landing-story-flow__person-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: var(--story-connector-weight);
  height: 2.7rem;
  background: var(--story-connector-vertical);
  box-shadow: var(--story-connector-shadow);
  transform: translateX(-50%);
}

.landing-story-bridge.is-revealed .landing-story-flow__person-card {
  animation: landing-story-source-reveal 560ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.landing-story-flow__person-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--gold) 58%, #c99a43 42%);
  border-radius: 50%;
  background: #efe2ca;
  box-shadow:
    0 0 0 0.24rem rgba(255, 251, 242, 0.9),
    0 0.34rem 0.82rem rgba(74, 46, 23, 0.12);
}

.landing-story-flow__person-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: sepia(0.18) saturate(0.86) contrast(1.02);
}

.landing-story-bridge.is-ready .landing-story-flow__person-portrait img {
  opacity: 0;
  transform: scale(1.035);
}

.landing-story-bridge.is-revealed .landing-story-flow__person-portrait img {
  animation: landing-story-portrait-reveal 1.45s 120ms ease-out forwards;
}

.landing-story-flow__person-copy {
  display: grid;
  justify-items: start;
  gap: 0.224rem;
  min-width: clamp(6.96rem, 9.25vw, 8.5rem);
  text-align: left;
}

.landing-story-flow__person-copy h3 {
  margin: 0;
  color: var(--demo-editorial-ink);
  font: 650 clamp(1.08rem, 1.4vw, 1.4rem)/1.02 var(--font-display);
}

.landing-story-flow__person-rule {
  display: block;
  width: 4.32rem;
  height: 1px;
  margin: 0.08rem 0 0.12rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--demo-editorial-gold) 68%, transparent), transparent);
}

.landing-story-bridge.is-ready .landing-story-flow__person-copy h3,
.landing-story-bridge.is-ready .landing-story-flow__person-years,
.landing-story-bridge.is-ready .landing-story-flow__person-location span {
  width: max-content;
  max-width: 100%;
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
  border-right: 1px solid transparent;
  opacity: 0;
  white-space: nowrap;
}

.landing-story-flow__person-location span {
  display: inline-block;
}

.landing-story-bridge.is-ready .landing-story-flow__person-rule {
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.landing-story-bridge.is-ready .landing-story-flow__person-location svg {
  opacity: 0;
  transform: translateY(0.12rem);
}

.landing-story-bridge.is-revealed .landing-story-flow__person-copy h3 {
  animation: landing-story-type-in 1000ms 620ms steps(12, end) forwards;
}

.landing-story-bridge.is-revealed .landing-story-flow__person-rule {
  animation: landing-story-person-rule-reveal 320ms 1.62s ease-out forwards;
}

.landing-story-bridge.is-revealed .landing-story-flow__person-years {
  animation: landing-story-type-in 714.286ms 1.78s steps(9, end) forwards;
}

.landing-story-bridge.is-revealed .landing-story-flow__person-location svg {
  animation: landing-story-location-pin-reveal 240ms 2.554286s ease-out forwards;
}

.landing-story-bridge.is-revealed .landing-story-flow__person-location span {
  animation: landing-story-type-in 1028.571ms 2.554286s steps(14, end) forwards;
}

.landing-story-flow__person-years,
.landing-story-flow__person-location {
  margin: 0;
  color: var(--demo-editorial-copy);
}

.landing-story-flow__person-years {
  color: var(--demo-editorial-gold);
  font: 700 0.82rem/1.2 var(--font-body);
  letter-spacing: 0.035em;
}

.landing-story-flow__person-location {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font: 520 0.82rem/1.2 var(--font-body);
}

.landing-story-flow__person-location svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: var(--demo-editorial-gold);
  stroke-width: 1.8;
}

/* The hub positions the canonical medallion without painting behind the asset. */
.landing-story-flow__hub {
  position: relative;
  z-index: 8;
  display: grid;
  place-items: center;
  width: clamp(2.86125rem, 4.62vw, 3.36rem);
  aspect-ratio: 602 / 866;
  margin-top: 0.95rem;
  border: 0;
}

.landing-story-flow__hub::before {
  content: "";
  position: absolute;
  inset: -0.7rem -1rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--gold) 18%, transparent),
    transparent 72%
  );
  opacity: 0.42;
}

.landing-story-bridge.is-hub-awake:not(.has-hub-pulsed) .landing-story-flow__hub::before {
  animation: landing-story-hub-awaken 1.25s ease-in-out both;
}

.landing-story-bridge.is-hub-awake:not(.has-hub-pulsed) .landing-story-flow__hub {
  animation: landing-story-hub-heartbeat 1.25s ease-in-out both;
}

.landing-story-bridge.is-hub-awake:not(.has-hub-pulsed):not(.is-network-visible) .landing-story-flow__hub,
.landing-story-bridge.is-hub-awake:not(.has-hub-pulsed):not(.is-network-visible) .landing-story-flow__hub::before {
  animation-play-state: paused;
}

.landing-story-flow__hub::after {
  content: "";
  position: absolute;
  top: 94%;
  left: 50%;
  width: var(--story-connector-weight);
  height: 2.2rem;
  background: var(--story-connector-vertical);
  box-shadow: var(--story-connector-shadow);
  transform: translateX(-50%);
}

.landing-story-flow__hub img {
  display: block;
  width: 80%;
  height: auto;
  aspect-ratio: 240 / 380;
  object-fit: fill;
  filter: none;
}

.landing-story-flow__feature-field {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 1.29rem;
  padding-top: 1.08rem;
}

/* Desktop uses one illuminated bus and six short drops. */
.landing-story-flow__feature-field::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: var(--story-connector-weight);
  background: var(--story-connector-horizontal);
  box-shadow: var(--story-connector-shadow);
  opacity: 0.96;
  transform: scaleX(0);
  transform-origin: 50% 50%;
}

.landing-story-flow__feature-field::after {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 50%;
  z-index: 4;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(255, 246, 207, 0.98);
  border-radius: 50%;
  background: #f9d87f;
  box-shadow:
    0 0 0.2rem rgba(255, 231, 151, 0.78),
    0 0 0.52rem rgba(225, 165, 48, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.landing-story-bridge.is-revealed .landing-story-flow__feature-field::before {
  animation: landing-story-bus-reveal 680ms 280ms cubic-bezier(0.2, 0.68, 0.22, 1) forwards;
}

.landing-story-flow__features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.48rem, 0.8vw, 0.75rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-story-flow__feature {
  position: relative;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem) scale(0.985);
  transition:
    opacity var(--story-row-reveal-duration) cubic-bezier(0.2, 0.72, 0.22, 1),
    transform var(--story-row-reveal-duration) cubic-bezier(0.2, 0.72, 0.22, 1),
    filter 180ms ease;
}

/* Warm, restrained accents give each experience a little identity without
   breaking Kinvella's archival palette. */
.landing-story-flow__feature--kinroots {
  --story-feature-accent: #8a673d;
}

.landing-story-flow__feature--kinline {
  --story-feature-accent: #73503c;
}

.landing-story-flow__feature--kinjourney {
  --story-feature-accent: #795735;
}

.landing-story-flow__feature--kinsight {
  --story-feature-accent: #94713b;
}

.landing-story-flow__feature--kincrest {
  --story-feature-accent: #84603a;
}

.landing-story-flow__feature--kinfolk {
  --story-feature-accent: #67472c;
}

.landing-story-flow__feature::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: var(--story-connector-weight);
  height: 1.82rem;
  background: var(--story-connector-vertical);
  box-shadow: var(--story-connector-shadow);
  transform: translateX(-50%);
  opacity: 0.96;
}

.landing-story-flow__feature::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1.49rem);
  left: 50%;
  width: 0.44rem;
  height: 0.44rem;
  border: 1px solid rgba(255, 247, 224, 0.96);
  border-radius: 50%;
  background: #f4c95f;
  box-shadow:
    0 0 0.18rem rgba(255, 235, 171, 0.72),
    0 0 0.46rem rgba(218, 154, 42, 0.32);
  transform: translateX(-50%);
}

.landing-story-flow__feature.is-row-revealed {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.landing-story-flow__feature-link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-content: stretch;
  gap: 0.3rem;
  min-height: 7.45rem;
  padding: 0.64rem 0.42rem 0.5rem;
  color: var(--demo-editorial-ink);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, rgba(90, 59, 30, 0.13));
  border-radius: 0.92rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 40%),
    rgba(252, 247, 238, 0.88);
  box-shadow:
    0 0.42rem 0.9rem rgba(66, 43, 23, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

/* A temporary halo arrives with the data pulse; cards remain restrained at rest. */
.landing-story-flow__feature-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 rgba(246, 190, 63, 0);
  opacity: 0;
  pointer-events: none;
}

.landing-story-bridge:not(.is-settled) .landing-story-flow__feature.is-row-revealed .landing-story-flow__feature-link::after {
  animation: landing-story-initial-feature-receive var(--story-row-reveal-duration) ease-out forwards;
}

.landing-story-bridge.is-settled .landing-story-flow__feature-link::after {
  animation: landing-story-feature-receive var(--story-live-data-duration) var(--story-live-data-delay) linear infinite;
  animation-play-state: paused;
}

.landing-story-bridge.is-settled.is-network-visible .landing-story-flow__feature-link::after {
  animation-play-state: running;
}

.landing-story-flow__feature-title {
  position: relative;
  z-index: 2;
  color: color-mix(in srgb, var(--demo-editorial-ink) 94%, var(--story-feature-accent) 6%);
  font: 720 clamp(0.88rem, 1vw, 1rem)/1 var(--font-display);
  letter-spacing: 0.02em;
  text-align: center;
}

.landing-story-flow__feature-visual {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.landing-story-flow__micrograph {
  display: block;
  width: min(100%, 9rem);
  height: 4.35rem;
  overflow: visible;
}

.landing-story-flow__micrograph-line,
.landing-story-flow__micrograph-mark,
.landing-story-flow__micrograph-ghost,
.landing-story-flow__micrograph-pin,
.landing-story-flow__micrograph-shield {
  fill: none;
  stroke: var(--story-feature-accent, var(--demo-editorial-gold));
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.landing-story-flow__micrograph-line {
  stroke-width: 1.45;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 0.09rem color-mix(in srgb, var(--story-feature-accent) 24%, transparent));
}

.landing-story-flow__micrograph-line--soft {
  stroke-width: 1.05;
  opacity: 0.7;
}

.landing-story-flow__micrograph-line--dashed,
.landing-story-flow__micrograph-line--route {
  stroke-dasharray: 0.055 0.045;
}

.landing-story-flow__micrograph-line--route {
  stroke-width: 1.7;
}

.landing-story-flow__micrograph-ghost {
  stroke: color-mix(in srgb, var(--story-feature-accent) 32%, transparent);
  stroke-width: 0.9;
  opacity: 0;
}

.landing-story-flow__micrograph-node,
.landing-story-flow__micrograph-label.is-delay-2 {
  opacity: 0;
}

.landing-story-flow__micrograph-ring {
  fill: rgba(255, 251, 241, 0.96);
  stroke: color-mix(in srgb, var(--story-feature-accent) 74%, var(--gold) 26%);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.landing-story-flow__micrograph-fill,
.landing-story-flow__micrograph-dot {
  fill: color-mix(in srgb, var(--story-feature-accent) 88%, #5b3a20 12%);
}

.landing-story-flow__micrograph-dot {
  stroke: rgba(255, 249, 233, 0.94);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.landing-story-flow__micrograph-mark {
  stroke-width: 1.15;
}

.landing-story-flow__micrograph-pin {
  fill: rgba(255, 251, 241, 0.98);
  stroke-width: 1.45;
}

.landing-story-flow__micrograph-shield {
  fill: color-mix(in srgb, var(--story-feature-accent) 13%, rgba(255, 250, 238, 0.96));
  stroke-width: 1.55;
}

.landing-story-flow__micrograph-label {
  fill: color-mix(in srgb, var(--story-feature-accent) 90%, #5e3e24 10%);
  font: 700 6.5px/1 var(--font-body);
  text-anchor: middle;
}

.landing-story-flow__micrograph-label--score {
  font: 760 11px/1 var(--font-body);
}

.landing-story-flow__micrograph-label--crest {
  font: 650 28px/1 var(--font-display);
}

.landing-story-flow__feature.is-row-revealed .landing-story-flow__micrograph-line {
  animation: landing-story-micrograph-draw 1440ms 210ms cubic-bezier(0.2, 0.72, 0.22, 1) forwards;
}

.landing-story-flow__feature.is-row-revealed .landing-story-flow__micrograph-ghost {
  animation: landing-story-micrograph-fade 1260ms 240ms ease-out forwards;
}

.landing-story-flow__feature.is-row-revealed :is(.landing-story-flow__micrograph-node, .landing-story-flow__micrograph-label.is-delay-2) {
  animation: landing-story-micrograph-fade 780ms ease-out forwards;
}

.landing-story-flow__feature.is-row-revealed .is-delay-1 { animation-delay: 360ms; }
.landing-story-flow__feature.is-row-revealed .is-delay-2 { animation-delay: 720ms; }
.landing-story-flow__feature.is-row-revealed .is-delay-3 { animation-delay: 1080ms; }

@keyframes landing-story-micrograph-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes landing-story-micrograph-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.landing-story-flow__feature-arrow {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: var(--demo-editorial-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-story-flow__feature-link:hover,
.landing-story-flow__feature-link:focus-visible,
.landing-story-flow__feature.is-active .landing-story-flow__feature-link {
  transform: translateY(-0.22rem);
  border-color: color-mix(in srgb, var(--gold) 55%, rgba(90, 59, 30, 0.16));
  background: rgba(255, 251, 242, 0.98);
  box-shadow:
    0 0.72rem 1.35rem rgba(66, 43, 23, 0.1),
    0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent),
    0 0 1.1rem color-mix(in srgb, var(--gold) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.landing-story-bridge.is-feature-active .landing-story-flow__feature:not(.is-active) {
  opacity: 0.58;
  filter: saturate(0.72);
}

.landing-story-flow__footer {
  display: grid;
  justify-items: center;
  gap: 0.56rem;
  margin-top: clamp(1rem, 1.5vw, 1.35rem);
  text-align: center;
}

.landing-story-flow__footer p {
  margin: 0;
  color: var(--demo-editorial-gold);
  font: italic 500 clamp(1rem, 1.35vw, 1.3rem)/1.15 var(--font-display);
  text-wrap: balance;
}

.landing-demo-speed-control:focus-visible,
.landing-story-flow__feature-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes landing-story-source-reveal {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes landing-story-portrait-reveal {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes landing-story-type-in {
  0% {
    clip-path: inset(0 100% 0 0);
    border-right-color: color-mix(in srgb, var(--demo-editorial-gold) 78%, transparent);
    opacity: 1;
  }
  88% {
    border-right-color: color-mix(in srgb, var(--demo-editorial-gold) 78%, transparent);
  }
  100% {
    clip-path: inset(0);
    border-right-color: transparent;
    opacity: 1;
  }
}

@keyframes landing-story-person-rule-reveal {
  to { transform: scaleX(1); }
}

@keyframes landing-story-location-pin-reveal {
  to { opacity: 1; transform: none; }
}

@keyframes landing-story-bus-reveal {
  to { transform: scaleX(1); }
}

@keyframes landing-story-hub-awaken {
  0%, 100% { opacity: 0.42; transform: scale(0.96); }
  45% { opacity: 0.68; transform: scale(1.06); }
  76% { opacity: 0.54; transform: scale(1.01); }
}

@keyframes landing-story-hub-heartbeat {
  0%, 20%, 42%, 100% {
    filter: drop-shadow(0 0 0.16rem color-mix(in srgb, var(--gold) 24%, transparent));
    transform: scale(1);
  }
  12% {
    filter: drop-shadow(0 0 0.28rem color-mix(in srgb, var(--gold) 38%, transparent));
    transform: scale(1.035);
  }
  32% {
    filter: drop-shadow(0 0 0.34rem color-mix(in srgb, var(--gold) 44%, transparent));
    transform: scale(1.05);
  }
  58% {
    filter:
      drop-shadow(0 0 0.4rem color-mix(in srgb, var(--gold) 56%, transparent))
      drop-shadow(0 0 0.78rem color-mix(in srgb, var(--gold) 24%, transparent));
    transform: scale(1.12);
  }
  68% { transform: scale(1); }
  77% {
    filter:
      drop-shadow(0 0 0.32rem color-mix(in srgb, var(--gold) 48%, transparent))
      drop-shadow(0 0 0.64rem color-mix(in srgb, var(--gold) 20%, transparent));
    transform: scale(1.08);
  }
  87% { transform: scale(1); }
}

@keyframes landing-story-data-flow {
  from { stroke-dashoffset: 1; opacity: 0.9; }
  to { stroke-dashoffset: 0; opacity: 0.9; }
}

@keyframes landing-story-data-path-reveal {
  0% { stroke-dashoffset: 1; opacity: 0; }
  14% { opacity: var(--story-path-rest-opacity); }
  100% { stroke-dashoffset: 0; opacity: var(--story-path-rest-opacity); }
}

@keyframes landing-story-data-arrival-reveal {
  0%, 86% { opacity: 0; transform: scale(0.72); }
  94% { opacity: 1; transform: scale(1.34); }
  100% { opacity: 0.72; transform: scale(1); }
}

@keyframes landing-story-initial-feature-receive {
  0%, 72% { opacity: 0; box-shadow: 0 0 0 rgba(246, 190, 63, 0); }
  88% { opacity: 1; box-shadow: 0 0 1.15rem rgba(246, 190, 63, 0.34); }
  100% { opacity: 0; box-shadow: 0 0 0.45rem rgba(246, 190, 63, 0.08); }
}

@keyframes landing-story-data-arrival-wave {
  0%, 46% { opacity: 0.56; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.38); }
  55% { opacity: 0.68; transform: scale(1.05); }
  59%, 100% { opacity: 0.56; transform: scale(1); }
}

@keyframes landing-story-feature-receive {
  0%, 46%, 60%, 100% { opacity: 0; box-shadow: 0 0 0 rgba(246, 190, 63, 0); }
  51% { opacity: 1; box-shadow: 0 0 1.05rem rgba(246, 190, 63, 0.3); }
  56% { opacity: 0.28; box-shadow: 0 0 0.45rem rgba(246, 190, 63, 0.11); }
}

/* --------------------------------------------------------------------------
   Product demo
   -------------------------------------------------------------------------- */
body.landing-page .landing-demo-experience {
  margin-top: var(--landing-demo-top-gap, clamp(1.6rem, 2.7vw, 2.6rem));
  margin-bottom: clamp(2.4rem, 4vw, 4rem);
  padding: clamp(1.35rem, 2.3vw, 2.2rem) clamp(1.2rem, 2.4vw, 2.35rem);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, rgba(83, 52, 28, 0.14));
  border-radius: clamp(1.1rem, 1.55vw, 1.45rem);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(252, 248, 241, 0.985), rgba(248, 239, 226, 0.82));
  box-shadow:
    0 0.8rem 2rem rgba(67, 43, 22, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.landing-demo-experience__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.45rem);
  align-items: center;
}

.landing-demo-experience__header {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.55rem;
  width: min(100%, 50rem);
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}

.landing-demo-experience__eyebrow {
  color: var(--demo-editorial-gold);
  font: 760 var(--demo-eyebrow-size)/1 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.landing-demo-experience__header h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--demo-editorial-ink);
  font: 500 var(--demo-heading-size)/1.02 var(--font-display);
  letter-spacing: 0.004em;
  text-wrap: balance;
}

.landing-demo-experience__header > p {
  margin: 0.12rem 0 0;
  color: var(--demo-editorial-copy);
  font: 450 var(--demo-copy-size)/1.4 var(--font-body);
  white-space: normal;
}

.landing-demo-experience__rule {
  position: relative;
  display: block;
  width: 8rem;
  height: 1px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--demo-editorial-gold) 56%, transparent), transparent);
}

.landing-demo-experience__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid rgba(255, 250, 236, 0.96);
  background: var(--demo-editorial-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.landing-demo-overview {
  width: min(100%, 1160px);
  min-width: 0;
  margin-inline: auto;
}

.landing-demo-media {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, rgba(86, 54, 28, 0.24));
  background: #17100a;
  box-shadow:
    0 0.8rem 1.8rem rgba(51, 31, 15, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-demo-media--overview {
  width: 100%;
  aspect-ratio: 1280 / 880;
  border-radius: clamp(0.8rem, 1.05vw, 1.05rem);
}

.landing-demo-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--ofc-soft-cream);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.landing-demo-media--overview .landing-demo-video {
  object-position: center top;
  object-fit: contain;
}

.landing-demo-transport {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.landing-demo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light, #f3d78d);
  background: var(--espresso, #342216);
  font: 600 0.85rem/1.2 var(--font-body);
  cursor: pointer;
}

.landing-demo-toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.landing-demo-toggle [hidden] { display: none; }
.landing-demo-toggle:hover { filter: brightness(1.15); }
.landing-demo-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.landing-demo-error { font: 500 0.85rem/1.4 var(--font-body); color: var(--demo-editorial-copy); }

@media (max-width: 1100px) {
  .landing-demo-overview { width: min(100%, 400px); }
  .landing-demo-media--overview { aspect-ratio: 400 / 816; }
}

/* Hidden owner kept for compatibility if the speed badge returns later. */
.landing-demo-speed-control {
  display: none;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  color: color-mix(in srgb, var(--demo-editorial-ink) 84%, var(--demo-editorial-copy) 16%);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, rgba(91, 61, 35, 0.2));
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow:
    0 0.28rem 0.72rem rgba(66, 43, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.035em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.landing-demo-speed-control strong {
  color: var(--demo-editorial-gold);
  font: 700 0.74rem/1 var(--font-body);
}

.landing-demo-speed-control:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--gold) 52%, rgba(91, 61, 35, 0.22));
  background: rgba(255, 252, 246, 0.98);
}

.landing-demo-speed-control--media {
  position: absolute;
  top: clamp(0.5rem, 0.72vw, 0.68rem);
  right: clamp(0.5rem, 0.72vw, 0.68rem);
  z-index: 4;
}

/* --------------------------------------------------------------------------
   Responsive layout
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .landing-demo-story-stage::before {
    opacity: 0.12;
  }
}

@media (max-width: 860px) {


  .landing-story-flow__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem 0.72rem;
  }

  .landing-story-flow__feature-field {
    margin-top: 1.2rem;
    padding-top: 0.06rem;
  }

  .landing-story-flow__feature-field::before,
  .landing-story-flow__feature-field::after,
  .landing-story-flow__feature::before,
  .landing-story-flow__feature::after,
  .landing-story-flow__hub::after {
    display: none;
  }

  .landing-story-flow__hub {
    margin-bottom: 0.6rem;
  }

  .landing-demo-experience__rule {
    width: 8rem;
  }
}

@media (max-width: 720px) {
  body.landing-page .landing-story-bridge,
  body.landing-page .landing-demo-experience {
    --demo-heading-size: calc(clamp(0.945rem, 4.86vw, 1.575rem) * 1.1);
    --demo-eyebrow-size: clamp(0.58rem, 2.4vw, 0.66rem);
    --demo-copy-size: clamp(0.76rem, 3.5vw, 0.88rem);
    --demo-rail-width: min(calc(100vw - clamp(0.72rem, 3vw, 0.95rem)), 43.75rem);
  }

  body.landing-page .landing-story-bridge {
    margin-top: 1.1rem;
    margin-bottom: 1.55rem;
    padding: 1.35rem 0.72rem 1.2rem;
    border-radius: 1.05rem;
  }

  body.landing-page .landing-story-bridge::before {
    background-size: auto 46%;
    background-position: center 17%;
    opacity: 0.18;
  }

  .landing-story-flow__header {
    gap: 0.48rem;
    padding-inline: 0.35rem;
  }

  .landing-story-flow__eyebrow {
    font-size: var(--demo-eyebrow-size);
    letter-spacing: 0.17em;
  }

  .landing-story-flow__header h2 {
    max-width: 23rem;
    font-size: var(--demo-heading-size);
    line-height: 0.96;
  }

  .landing-story-flow__header > p {
    max-width: 21.5rem;
    font-size: var(--demo-copy-size);
    line-height: 1.42;
  }

  .landing-story-flow__network {
    margin-top: 1rem;
  }

  .landing-story-flow__person-card {
    grid-template-columns: 4.24rem max-content;
    gap: 0.656rem;
    width: fit-content;
    max-width: min(100%, 14.4rem);
    padding: 0.64rem 0.672rem;
    border-radius: 0.98rem;
  }

  .landing-story-flow__person-copy {
    min-width: 6.96rem;
  }

  .landing-story-flow__person-card::after {
    height: 2.5rem;
  }

  .landing-story-flow__person-copy h3 {
    font-size: 1.104rem;
  }

  .landing-story-flow__person-years,
  .landing-story-flow__person-location {
    font-size: 0.76rem;
  }

  .landing-story-flow__hub {
    width: clamp(2.9925rem, 11.55vw, 3.33375rem);
    margin-top: 0.86rem;
    margin-bottom: 0.21rem;
  }

  .landing-story-flow__hub::before {
    inset: -0.8rem -1rem;
  }

  .landing-story-flow__hub::after {
    display: block;
    height: 1.9rem;
  }

  /* Mobile pairs both sides into three shared rows around one glowing spine. */
  .landing-story-flow__feature-field {
    --story-mobile-card-width: 45.5%;
    --story-mobile-card-offset: -0.45rem;
    --story-mobile-card-height: clamp(6.4rem, 27vw, 7.2rem);
    --story-mobile-connector-weight: var(--story-connector-weight);
    --story-mobile-last-curve-height: 1.08rem;
    --story-mobile-pulse-end: calc(100% - (var(--story-mobile-card-height) / 2));
    width: min(100%, 23.5rem);
    margin-top: 0.78rem;
    padding-top: 0.27rem;
  }

  .landing-story-flow__feature-field::before {
    display: block;
    top: -1.9rem;
    bottom: calc((var(--story-mobile-card-height) / 2) + var(--story-mobile-last-curve-height));
    left: 50%;
    right: auto;
    width: var(--story-mobile-connector-weight);
    height: auto;
    background: var(--story-connector-vertical);
    box-shadow: var(--story-connector-shadow);
    opacity: 0.98;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .landing-story-bridge.is-revealed .landing-story-flow__feature-field::before {
    animation: landing-story-trunk-reveal 720ms 250ms cubic-bezier(0.2, 0.68, 0.22, 1) forwards;
  }

  .landing-story-flow__feature-field::after {
    display: block;
    top: -1.7rem;
    left: 50%;
    width: 0.52rem;
    height: 0.52rem;
    opacity: 0;
  }

  .landing-story-bridge.is-revealed .landing-story-flow__feature-field::after {
    animation: landing-story-mobile-pulse var(--story-live-data-duration) var(--story-live-data-delay) linear infinite;
  }

  .landing-story-flow__features {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, var(--story-mobile-card-height));
    gap: clamp(0.7rem, 3vw, 0.9rem) 0;
  }

  .landing-story-flow__feature {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-height: var(--story-mobile-card-height);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.45rem);
  }

  .landing-story-flow__feature:nth-child(1),
  .landing-story-flow__feature:nth-child(2) { grid-row: 1; }

  .landing-story-flow__feature:nth-child(3),
  .landing-story-flow__feature:nth-child(4) { grid-row: 2; }

  .landing-story-flow__feature:nth-child(5),
  .landing-story-flow__feature:nth-child(6) { grid-row: 3; }

  .landing-story-flow__feature::before {
    display: block;
    top: 50%;
    bottom: auto;
    z-index: 1;
    width: calc(50% - var(--story-mobile-card-width) - var(--story-mobile-card-offset));
    height: var(--story-mobile-connector-weight);
    background: var(--story-connector-horizontal);
    box-shadow: var(--story-connector-shadow);
    opacity: 0.98;
    transform: translateY(-50%);
  }

  .landing-story-flow__feature:nth-child(odd)::before {
    right: 50%;
    left: auto;
  }

  .landing-story-flow__feature:nth-child(even)::before {
    left: 50%;
    right: auto;
  }

  /* KinFolk is the terminal branch: continue the spine into one generous quarter
     curve, then finish horizontally at the card with no vertical tail below. */
  .landing-story-flow__feature:last-child::before {
    top: calc(50% - var(--story-mobile-last-curve-height));
    left: 50%;
    right: auto;
    width: calc(50% - var(--story-mobile-card-width) - var(--story-mobile-card-offset));
    height: var(--story-mobile-last-curve-height);
    background: none;
    border-left: var(--story-mobile-connector-weight) solid var(--story-connector-core);
    border-bottom: var(--story-mobile-connector-weight) solid var(--story-connector-core);
    border-bottom-left-radius: calc(var(--story-mobile-last-curve-height) + 0.2rem);
    box-shadow: 0 0 0.22rem rgba(247, 203, 91, 0.5), 0 0 0.54rem rgba(217, 151, 39, 0.18);
    transform: none;
  }

  .landing-story-flow__feature::after {
    display: block;
    top: 50%;
    bottom: auto;
    left: 50%;
    z-index: 4;
    width: 0.56rem;
    height: 0.56rem;
    border: 1px solid rgba(255, 248, 218, 0.98);
    border-radius: 50%;
    background: #f7d16e;
    box-shadow:
      0 0 0.2rem rgba(255, 235, 167, 0.78),
      0 0 0.5rem rgba(220, 157, 44, 0.34);
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .landing-story-flow__feature-link {
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    align-content: stretch;
    gap: 0.18rem;
    width: var(--story-mobile-card-width);
    min-height: var(--story-mobile-card-height);
    padding: 0.5rem 0.34rem 0.32rem;
    border-color: color-mix(in srgb, var(--gold) 34%, rgba(90, 59, 30, 0.13));
    border-radius: 0.94rem;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 42%),
      linear-gradient(145deg, rgba(255, 252, 244, 0.97), rgba(249, 243, 229, 0.95));
    box-shadow:
      0 0.42rem 1rem rgba(66, 43, 23, 0.08),
      0 0.12rem 0.3rem rgba(66, 43, 23, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
    pointer-events: auto;
    text-align: center;
  }

  .landing-story-flow__feature:nth-child(odd) .landing-story-flow__feature-link {
    margin-left: var(--story-mobile-card-offset);
    margin-right: auto;
  }

  .landing-story-flow__feature:nth-child(even) .landing-story-flow__feature-link {
    margin-right: var(--story-mobile-card-offset);
    margin-left: auto;
  }

  /* A small receiving node locks each card visually into the illuminated branch. */
  .landing-story-flow__feature-link::before {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid rgba(255, 249, 224, 0.98);
    border-radius: 50%;
    background: #f7cf67;
    box-shadow:
      0 0 0.18rem rgba(255, 237, 174, 0.78),
      0 0 0.44rem rgba(218, 154, 42, 0.32);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .landing-story-flow__feature:nth-child(odd) .landing-story-flow__feature-link::before {
    right: -0.29rem;
  }

  .landing-story-flow__feature:nth-child(even) .landing-story-flow__feature-link::before {
    left: -0.29rem;
  }

  .landing-story-flow__feature-title {
    font-size: clamp(0.92rem, 4.1vw, 1.08rem);
    line-height: 1;
  }

  .landing-story-flow__micrograph {
    width: min(100%, 8.6rem);
    height: 4.55rem;
  }

  .landing-story-flow__feature-arrow {
    display: none;
  }

  .landing-story-flow__footer {
    margin-top: 0.8rem;
  }

  .landing-story-flow__footer p {
    max-width: 18rem;
    font-size: clamp(1rem, 4.7vw, 1.2rem);
  }

  .landing-story-flow__artifact--parchment {
    top: 5.8rem;
    left: -1.8rem;
    width: 4.3rem;
  }

  .landing-story-flow__artifact--seal {
    top: 8rem;
    left: 19%;
    width: 2.5rem;
  }

  .landing-story-flow__artifact--sextant {
    top: 6.2rem;
    right: -1.8rem;
    width: 4.5rem;
  }

  .landing-story-flow__artifact--compass {
    bottom: -5.2rem;
    right: -1.4rem;
    width: 3.7rem;
  }

  .landing-story-flow__artifact--quill {
    bottom: -6.4rem;
    left: -1.8rem;
    width: 4.3rem;
  }

  body.landing-page .landing-demo-experience {
    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
    padding: 1.05rem 0.68rem 0.74rem;
    border-radius: 1.02rem;
  }

  .landing-demo-experience__layout {
    gap: 0.88rem;
  }

  .landing-demo-experience__header {
    gap: 0.5rem;
    padding-inline: 0.4rem;
  }

  .landing-demo-experience__eyebrow {
    font-size: var(--demo-eyebrow-size);
    letter-spacing: 0.2em;
  }

  .landing-demo-experience__header h2 {
    font-size: var(--demo-heading-size);
    line-height: 1.01;
  }

  .landing-demo-experience__header > p {
    max-width: 22rem;
    font-size: var(--demo-copy-size);
    line-height: 1.38;
  }

  .landing-demo-experience__rule {
    width: 6.1rem;
    margin-top: 0.18rem;
  }

  .landing-demo-media--overview {
    border-radius: 0.76rem;
  }

  .landing-demo-video {
    pointer-events: none;
  }
}

@media (max-width: 390px) {
  .landing-story-flow__person-card {
    grid-template-columns: 3.88rem max-content;
    width: fit-content;
    max-width: min(100%, 13.52rem);
    padding-inline: 0.576rem;
  }

  .landing-story-flow__person-copy {
    min-width: 6.6rem;
  }

  .landing-story-flow__person-copy h3 {
    font-size: 0.976rem;
  }

  .landing-story-flow__feature-field {
    --story-mobile-card-width: 46%;
    --story-mobile-card-offset: -0.34rem;
    --story-mobile-card-height: 6.25rem;
  }

  .landing-story-flow__feature-link {
    padding-inline: 0.28rem;
  }

  .landing-story-flow__feature-title {
    font-size: 0.92rem;
  }

  .landing-story-flow__micrograph {
    height: 4.25rem;
  }
}

@keyframes landing-story-trunk-reveal {
  to { transform: scaleY(1); }
}

@keyframes landing-story-mobile-pulse {
  0% { top: -1.7rem; opacity: 0; transform: translateX(-50%) scale(0.72); }
  7% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: var(--story-mobile-pulse-end); opacity: 0; transform: translateX(-50%) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-story-flow__person-card,
  .landing-story-flow__person-portrait img,
  .landing-story-flow__person-copy h3,
  .landing-story-flow__person-rule,
  .landing-story-flow__person-years,
  .landing-story-flow__person-location svg,
  .landing-story-flow__person-location span,
  .landing-story-flow__feature,
  .landing-story-flow__feature-link,
  .landing-story-flow__feature-link::after,
  .landing-story-flow__hub,
  .landing-story-flow__hub::before,
  .landing-story-flow__feature-field::before,
  .landing-story-flow__feature-field::after,
  .landing-story-flow__data-path,
  .landing-story-flow__data-pulse,
  .landing-story-flow__data-arrival,
  .landing-story-flow__micrograph-line,
  .landing-story-flow__micrograph-ghost,
  .landing-story-flow__micrograph-node,
  .landing-story-flow__micrograph-label,
  .landing-demo-speed-control {
    animation: none !important;
    transition: none !important;
  }

  .landing-story-flow__person-card,
  .landing-story-flow__person-portrait img,
  .landing-story-flow__feature {
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-story-flow__person-copy h3,
  .landing-story-flow__person-years,
  .landing-story-flow__person-location span {
    width: auto !important;
    max-width: none !important;
    clip-path: none !important;
    border-right-color: transparent !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-story-flow__person-rule,
  .landing-story-flow__person-location svg {
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-story-flow__feature-field::before {
    transform: none !important;
  }

  .landing-story-flow__feature-field::after,
  .landing-story-flow__feature-link::after,
  .landing-story-flow__data-pulse {
    opacity: 0 !important;
  }

  .landing-story-flow__data-path {
    stroke-dashoffset: 0 !important;
    opacity: var(--story-path-rest-opacity) !important;
  }

  .landing-story-flow__data-arrival {
    opacity: 0.62 !important;
    transform: none !important;
  }

  .landing-story-flow__micrograph-line {
    stroke-dashoffset: 0 !important;
  }

  .landing-story-flow__micrograph-ghost,
  .landing-story-flow__micrograph-node,
  .landing-story-flow__micrograph-label {
    opacity: 1 !important;
  }
}
