/* =========================================================
   Neuro: Our Approach
   ========================================================= */

.ap {
  --ap-ink: #1a1a1c;
  --ap-muted: rgba(26, 26, 28, 0.62);
  --ap-faint: rgba(26, 26, 28, 0.44);
  --ap-line: rgba(26, 26, 28, 0.1);
  --ap-blue: #3c5294;
  --ap-lime: #c6f56f;
  --ap-lime-ink: #4a6b10;
  --ap-dark: #131417;
  --ap-dark-2: #1b1e24;
  --ap-dark-ink: #f4f7fb;
  --ap-dark-muted: rgba(222, 230, 241, 0.72);
  --ap-dark-faint: rgba(222, 230, 241, 0.46);
  --ap-dark-line: rgba(255, 255, 255, 0.09);
  --ap-soft: var(--color-background-3, #f4f5f8);
  --ap-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ap :where(p, h3, dl, dd, ol, ul, figure) {
  margin: 0;
}

:where(.ap-hero, .ap-card, .ap-ready, .ap-source, .ap-brief, .ap-step, .ap-value-tile) p {
  color: inherit;
}

.ap-band {
  padding-inline: 20px;
}

.ap-band + .ap-band,
.ap-band + section,
section + .ap-band {
  margin-top: 0;
}

.ap-shell {
  max-width: 1880px;
  margin-inline: auto;
  border-radius: 24px;
}

@media (min-width: 1280px) {
  .ap-shell {
    border-radius: 32px;
  }
}

/* Survey crosshair: the page's marker */
.ap-eyebrow,
.ap-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-blue);
}

.ap-eyebrow::before,
.ap-hero__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.ap-eyebrow--dark,
.ap-hero__eyebrow {
  color: var(--ap-lime);
}

.ap-h2 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ap-ink);
  text-wrap: balance;
}

.ap-h2--dark {
  color: var(--ap-dark-ink);
}

.ap-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ap-muted);
  text-wrap: pretty;
}

.ap-lede--dark {
  color: var(--ap-dark-muted);
}

.ap-kicker {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-blue);
}

/* =========================================================
   Hero
   ========================================================= */
.ap-hero-section {
  padding: 0 20px;
}

@media (max-width: 767px) {
  .ap-hero-section {
    padding-inline: 0;
  }
}

.ap-hero {
  position: relative;
  max-width: 1880px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  padding: 124px 0 44px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(55% 45% at 80% 42%, rgba(60, 82, 148, 0.34), rgba(60, 82, 148, 0)),
    radial-gradient(40% 40% at 6% 100%, rgba(198, 245, 111, 0.07), rgba(198, 245, 111, 0)),
    var(--ap-dark);
  color: var(--ap-dark-ink);
}

.ap-hero :where(p) {
  font-size: inherit;
  line-height: inherit;
}

.ap-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 60% at 72% 45%, #000, transparent 78%);
  mask-image: radial-gradient(70% 60% at 72% 45%, #000, transparent 78%);
}

.ap-hero__inner {
  display: grid;
  gap: 48px;
}

.ap-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ap-hero__eyebrow {
  margin-bottom: 0;
}

.ap-hero__h1 {
  margin: 0;
  font-size: clamp(2.5rem, 0.9rem + 3.2vw, 4.25rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ap-dark-ink);
  text-wrap: balance;
}

.ap-hero__h1 span {
  display: block;
}

.ap-hero__h1 span + span {
  margin-top: 0.12em;
  color: rgba(244, 247, 251, 0.56);
}

.ap-hero__lead {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ap-dark-muted);
  text-wrap: pretty;
}

.ap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
}

.ap-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ap-dark-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.3s ease, gap 0.3s var(--ap-ease);
}

.ap-hero__ghost::after {
  content: "↓";
}

.ap-hero__ghost:hover {
  gap: 12px;
  color: var(--ap-dark-ink);
  border-color: var(--ap-lime);
}

/* The survey frame */
.ap-survey {
  width: 100%;
  max-width: 520px;
}

.ap-survey__frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 4.6;
  background: #0f141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

.ap-survey__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 13, 17, 0.35), rgba(10, 13, 17, 0)) top / 100% 30% no-repeat,
    linear-gradient(0deg, rgba(10, 13, 17, 0.55), rgba(10, 13, 17, 0)) bottom / 100% 36% no-repeat;
}

.ap-survey__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: saturate(0.9) brightness(0.9) contrast(1.05);
  transform-origin: 55% 45%;
  animation: ap-drift 26s ease-in-out infinite alternate;
}

@keyframes ap-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.ap-survey__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(198, 245, 111, 0), rgba(198, 245, 111, 0.13));
  border-bottom: 1px solid rgba(198, 245, 111, 0.55);
  transform: translateY(-100%);
  animation: ap-scan 7.5s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite;
}

@keyframes ap-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  8% { opacity: 1; }
  62% { transform: translateY(300%); opacity: 1; }
  70%, 100% { transform: translateY(300%); opacity: 0; }
}

.ap-survey__corners i {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0 solid var(--ap-lime);
  animation: ap-lock 1.3s var(--ap-ease) 0.7s both;
}

.ap-survey__corners i:nth-child(1) { left: var(--c, 7%); top: var(--c, 7%); border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.ap-survey__corners i:nth-child(2) { right: var(--c, 7%); top: var(--c, 7%); border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.ap-survey__corners i:nth-child(3) { left: var(--c, 7%); bottom: var(--c, 7%); border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.ap-survey__corners i:nth-child(4) { right: var(--c, 7%); bottom: var(--c, 7%); border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

@keyframes ap-lock {
  from { --c: 2%; opacity: 0; }
  to { --c: 7%; opacity: 1; }
}

@property --c {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 7%;
}

.ap-survey__ruler {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.ap-survey__ruler--x {
  left: 14%;
  right: 14%;
  bottom: 3.2%;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 14px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px 70px) bottom / 100% 8px no-repeat;
}

.ap-survey__ruler--y {
  top: 14%;
  bottom: 14%;
  left: 3.2%;
  width: 8px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 14px) left / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px 70px) left / 8px 100% no-repeat;
}

.ap-survey__tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  list-style: none;
}

.ap-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.ap-tag i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ap-lime);
  box-shadow: 0 0 0 4px rgba(198, 245, 111, 0.22);
}

.ap-tag span {
  position: absolute;
  top: -21px;
  display: grid;
  gap: 2px;
  padding: 7px 11px 8px;
  border-radius: 10px;
  background: rgba(10, 13, 17, 0.76);
  border: 1px solid rgba(198, 245, 111, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ap-dark-ink);
}

.ap-tag span::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(198, 245, 111, 0.6);
}

.ap-tag--right span { left: 22px; }
.ap-tag--right span::before { right: 100%; }
.ap-tag--left span { right: 22px; }
.ap-tag--left span::before { left: 100%; }

.ap-tag em {
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-lime);
}

.ap-hero.is-auto .ap-tag i,
.ap-hero.is-auto .ap-tag span {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s var(--ap-ease);
}

.ap-hero.is-auto .ap-tag i { transform: scale(0.4); }
.ap-hero.is-auto .ap-tag--right span { transform: translateX(-6px); }
.ap-hero.is-auto .ap-tag--left span { transform: translateX(6px); }

.ap-hero.is-auto .ap-tag.is-on i,
.ap-hero.is-auto .ap-tag.is-on span {
  opacity: 1;
  transform: none;
}

.ap-hero.is-auto .ap-tag.is-current i::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-lime);
  animation: ap-ping 1.6s ease-out infinite;
}

@keyframes ap-ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.9); opacity: 0; }
}

.ap-survey__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ap-dark-faint);
}

.ap-survey__status b {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ap-dark-muted);
}

.ap-survey__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-lime);
  box-shadow: 0 0 0 3px rgba(198, 245, 111, 0.18);
}

@media (max-width: 639px) {
  .ap-tag span {
    padding: 5px 9px 6px;
    font-size: 11.5px;
  }

  .ap-tag em {
    font-size: 8.5px;
  }
}

@media (min-width: 640px) {
  .ap-survey {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .ap-hero {
    display: flex;
    align-items: center;
    min-height: clamp(720px, calc(100svh - 12px), 960px);
    padding: 132px 0 64px;
  }

  .ap-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: 64px;
    width: 100%;
  }

  .ap-survey {
    justify-self: end;
  }

  .ap-survey__frame {
    aspect-ratio: 800 / 1000;
  }
}

/* =========================================================
   Why the machine comes first
   ========================================================= */
.ap-why {
  padding-block: 104px 100px;
}

.ap-why__head {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .ap-why__head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 72px;
  }

  .ap-why__head .ap-lede {
    padding-bottom: 6px;
  }
}

.ap-compare {
  margin-top: 56px;
}

.ap-compare__cols {
  display: none;
}

.ap-compare__rows {
  display: grid;
  gap: 12px;
}

.ap-compare__row {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: var(--ap-soft);
}

.ap-compare__row dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-faint);
}

.ap-compare__old,
.ap-compare__new {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
}

.ap-compare__old {
  color: var(--ap-faint);
}

.ap-compare__old::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 1.5px;
  margin-top: 11px;
  background: rgba(26, 26, 28, 0.25);
}

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

.ap-compare__new i {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ap-lime);
}

.ap-compare__new i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--ap-dark);
  border-bottom: 2px solid var(--ap-dark);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .ap-compare__cols {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .ap-compare__col {
    padding: 22px 28px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-faint);
  }

  .ap-compare__col--neuro {
    border-radius: 22px 22px 0 0;
    background: var(--ap-dark);
    color: var(--ap-lime);
  }

  .ap-compare__rows {
    gap: 0;
  }

  .ap-compare__row {
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .ap-compare__row > * {
    padding: 22px 28px;
    border-top: 1px solid var(--ap-line);
  }

  .ap-compare__row dt {
    padding-left: 0;
    align-self: stretch;
    padding-top: 26px;
  }

  .ap-compare__new {
    background: var(--ap-dark);
    border-top-color: var(--ap-dark-line);
    color: var(--ap-dark-ink);
  }

  .ap-compare__row:last-child .ap-compare__new {
    border-radius: 0 0 22px 22px;
    padding-bottom: 28px;
  }

  .ap-compare__row:last-child > :not(.ap-compare__new) {
    border-bottom: 1px solid var(--ap-line);
  }

  .ap-compare__old,
  .ap-compare__new {
    font-size: 16.5px;
  }
}

@media (max-width: 767px) {
  .ap-compare__old::after,
  .ap-compare__new::after {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .ap-compare__old::after {
    content: "Typical";
    color: var(--ap-faint);
  }

  .ap-compare__new::after {
    content: "Neuro";
    color: var(--ap-lime);
  }

  .ap-compare__new {
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--ap-dark);
    color: var(--ap-dark-ink);
  }
}

/* =========================================================
   The process
   ========================================================= */
.ap-process {
  position: relative;
  padding-block: 104px 112px;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(60, 82, 148, 0.3), rgba(60, 82, 148, 0)),
    var(--ap-dark);
  color: var(--ap-dark-ink);
}

.ap-process__head {
  max-width: 760px;
}

.ap-process__head .ap-lede {
  margin-top: 20px;
  max-width: 600px;
}

.ap-process__grid {
  display: grid;
  margin-top: 72px;
}

/* On small screens the stage itself becomes the sticky grid item */
.ap-stage-wrap {
  display: contents;
}

.ap-stage {
  position: sticky;
  top: 72px;
  z-index: 2;
  padding: 10px 0 14px;
  background: var(--ap-dark);
  box-shadow:
    0 -72px 0 var(--ap-dark),
    0 18px 24px -6px var(--ap-dark);
}

.ap-stage__chain {
  display: none;
}

.ap-stage__screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: var(--ap-dark-2);
  border: 1px solid var(--ap-dark-line);
  container-type: inline-size;
}

.ap-stage__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ap-dark-faint);
}

.ap-stage__count b {
  font-weight: 600;
  color: var(--ap-dark-ink);
  font-variant-numeric: tabular-nums;
}

.ap-stage__bar {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ap-stage__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ap-progress, 20%);
  background: var(--ap-lime);
  transition: width 0.8s var(--ap-ease);
}

.ap-stage__note {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Layers */
.ap-layer {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  filter: blur(6px);
  transition:
    opacity 0.7s ease,
    transform 1s var(--ap-ease),
    filter 0.7s ease,
    visibility 0s linear 0.7s;
}

.ap-layer.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0s;
}

.ap-layer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared overlay card, sized to the stage */
.ap-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.5em;
  padding: 1.15em 1.3em;
  border-radius: 1em;
  background: rgba(13, 18, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  font-size: clamp(10.5px, 1.75cqw, 14.5px);
  line-height: 1.4;
  color: var(--ap-dark-ink);
}

.ap-card .ap-kicker,
.ap-ready .ap-kicker {
  font-size: 0.78em;
  color: var(--ap-lime);
}

.ap-card b {
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.3;
}

.ap-card__foot {
  padding-top: 0.6em;
  border-top: 1px solid var(--ap-dark-line);
  font-size: 0.82em;
  color: var(--ap-dark-faint);
}

/* Machine layer: steps 1 and 2 */
.ap-layer--machine > img {
  object-position: 55% 50%;
  transform-origin: 36% 30%;
  filter: saturate(0.92) brightness(0.95);
  transition: transform 1.4s var(--ap-ease), filter 1s ease;
}

.ap-layer--machine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 13, 17, 0), rgba(10, 13, 17, 0.75));
  opacity: 0;
  transition: opacity 1s ease;
}

.ap-parts {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  list-style: none;
  transition: opacity 0.5s ease;
}

.ap-parts li {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.ap-parts i {
  position: absolute;
  left: -0.4em;
  top: -0.4em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--ap-lime);
  box-shadow: 0 0 0 0.3em rgba(198, 245, 111, 0.25);
  font-size: clamp(9px, 1.6cqw, 14px);
}

.ap-parts span {
  position: absolute;
  left: 1.1em;
  top: -1.05em;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: rgba(10, 13, 17, 0.78);
  border: 1px solid rgba(198, 245, 111, 0.3);
  font-size: clamp(9.5px, 1.45cqw, 12.5px);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ap-dark-ink);
}

.ap-parts li:nth-child(5) span {
  left: auto;
  right: 1.1em;
}

.ap-card--id {
  left: 3.5%;
  bottom: 5%;
  max-width: 44%;
  transition: opacity 0.5s ease, transform 0.6s var(--ap-ease);
}

.ap-card--id > span:last-child {
  font-size: 0.86em;
  color: var(--ap-dark-muted);
}

.ap-card--targets {
  top: 50%;
  right: 4%;
  width: 46%;
  opacity: 0;
  transform: translate(8%, -50%);
  transition: opacity 0.6s ease 0.2s, transform 0.9s var(--ap-ease) 0.2s;
}

.ap-card--targets dl {
  display: grid;
  gap: 0;
}

.ap-card--targets dl div {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr);
  gap: 0.8em;
  padding: 0.55em 0;
  border-top: 1px solid var(--ap-dark-line);
}

.ap-card--targets dt {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-dark-faint);
  padding-top: 0.15em;
}

.ap-card--targets dd {
  font-weight: 500;
}

/* Step 2: zoom to the controls and set the target */
.ap-process[data-step="1"] .ap-layer--machine > img {
  transform: scale(1.32);
  filter: saturate(0.8) brightness(0.75);
}

.ap-process[data-step="1"] .ap-layer--machine::after {
  opacity: 1;
}

.ap-process[data-step="1"] .ap-parts,
.ap-process[data-step="1"] .ap-card--id {
  opacity: 0;
}

.ap-process[data-step="1"] .ap-card--id {
  transform: translateY(8px);
}

.ap-process[data-step="1"] .ap-card--targets {
  opacity: 1;
  transform: translate(0, -50%);
}

.ap-process.is-live .ap-layer--machine.is-active .ap-parts li {
  animation: ap-pop 0.55s var(--ap-ease) both;
  animation-delay: calc(0.25s + var(--i) * 0.14s);
}

.ap-process.is-live[data-step="1"] .ap-card--targets dl div {
  animation: ap-rise 0.5s var(--ap-ease) both;
  animation-delay: calc(0.45s + var(--i) * 0.12s);
}

@keyframes ap-pop {
  from { opacity: 0; transform: scale(0.85); }
}

@keyframes ap-rise {
  from { opacity: 0; transform: translateY(6px); }
}

/* Capture layer */
.ap-layer--capture > img {
  object-position: 40% 40%;
  filter: saturate(0.9) brightness(0.85);
}

.ap-layer--capture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 13, 17, 0), rgba(10, 13, 17, 0.6));
}

.ap-rec {
  position: absolute;
  left: 3.5%;
  top: 5%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: rgba(10, 13, 17, 0.72);
  font-size: clamp(9.5px, 1.45cqw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ap-dark-ink);
}

.ap-rec b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ap-dark-muted);
}

.ap-rec__dot {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: #ef4444;
  animation: ap-blink 1.4s steps(2, jump-none) infinite;
}

@keyframes ap-blink {
  50% { opacity: 0.25; }
}

.ap-card--capture {
  right: 3.5%;
  bottom: 5%;
  width: 52%;
}

.ap-capture__quote {
  font-size: 1.06em;
  line-height: 1.45;
  color: var(--ap-dark-ink);
}

.ap-capture__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.ap-capture__tags span {
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--ap-dark-muted);
}

.ap-capture__tags .is-new {
  background: rgba(198, 245, 111, 0.16);
  color: var(--ap-lime);
}

.ap-process.is-live .ap-layer--capture.is-active .ap-capture__quote {
  animation: ap-type 1.4s steps(28, end) 0.35s both;
}

.ap-process.is-live .ap-layer--capture.is-active .ap-capture__tags span {
  animation: ap-pop 0.45s var(--ap-ease) both;
}

.ap-process.is-live .ap-layer--capture.is-active .ap-capture__tags span:nth-child(1) { animation-delay: 1.5s; }
.ap-process.is-live .ap-layer--capture.is-active .ap-capture__tags span:nth-child(2) { animation-delay: 1.65s; }
.ap-process.is-live .ap-layer--capture.is-active .ap-capture__tags span:nth-child(3) { animation-delay: 1.85s; }

@keyframes ap-type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Training layer: the real lesson screen */
.ap-layer--train {
  background:
    radial-gradient(60% 70% at 30% 50%, rgba(60, 82, 148, 0.4), rgba(60, 82, 148, 0)),
    var(--ap-dark-2);
}

.ap-device {
  position: absolute;
  left: 5%;
  top: 50%;
  width: 60%;
  overflow: hidden;
  border-radius: 1.6cqw;
  border: 0.6cqw solid #1d242e;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  transform: translateY(-50%);
}

.ap-device img {
  display: block;
  width: 100%;
  height: auto;
}

.ap-process.is-live .ap-layer--train.is-active .ap-device {
  animation: ap-device-in 1s var(--ap-ease) 0.1s both;
}

@keyframes ap-device-in {
  from { opacity: 0; transform: translateY(-44%); }
}

.ap-card--built {
  top: 50%;
  right: 4%;
  width: 36%;
  transform: translateY(-50%);
}

.ap-card--built ul {
  display: grid;
  gap: 0.5em;
  margin: 0.2em 0 0;
  padding: 0;
  list-style: none;
}

.ap-card--built li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  color: var(--ap-dark-muted);
}

.ap-card--built li::before {
  content: "";
  flex-shrink: 0;
  width: 0.95em;
  height: 0.95em;
  margin-top: 0.2em;
  border-radius: 50%;
  background:
    linear-gradient(var(--ap-dark), var(--ap-dark)) 35% 60% / 0.15em 0.35em no-repeat,
    var(--ap-lime);
}

.ap-process.is-live .ap-layer--train.is-active .ap-card--built li {
  animation: ap-rise 0.5s var(--ap-ease) both;
}

.ap-process.is-live .ap-layer--train.is-active .ap-card--built li:nth-child(1) { animation-delay: 0.7s; }
.ap-process.is-live .ap-layer--train.is-active .ap-card--built li:nth-child(2) { animation-delay: 0.85s; }
.ap-process.is-live .ap-layer--train.is-active .ap-card--built li:nth-child(3) { animation-delay: 1s; }

/* Readiness layer */
.ap-layer--ready {
  background:
    linear-gradient(rgba(10, 13, 17, 0.84), rgba(10, 13, 17, 0.84)),
    url(/images/mfg-extruder.jpg) 55% 50% / cover no-repeat;
}

.ap-ready {
  position: absolute;
  inset: 7% 6%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1.6em 1.4em;
  font-size: clamp(10.5px, 1.7cqw, 14.5px);
  line-height: 1.4;
  color: var(--ap-dark-ink);
}

.ap-ready__goal {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--ap-dark-line);
}

.ap-ready__goal b {
  font-size: 1.5em;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ap-ready__crews {
  display: grid;
  align-content: start;
  gap: 1.3em;
  padding: 0;
  list-style: none;
}

.ap-ready__crews li {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.35em 0.9em;
  align-items: center;
}

.ap-ready__crews span {
  grid-row: 1 / 3;
  font-weight: 600;
}

.ap-ready__crews i {
  position: relative;
  height: 0.5em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ap-ready__crews i b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--ap-lime);
}

.ap-ready__crews em {
  font-size: 0.85em;
  font-style: normal;
  color: var(--ap-dark-faint);
}

.ap-process.is-live .ap-layer--ready.is-active .ap-ready__crews i b {
  animation: ap-fill 1.1s var(--ap-ease) both;
  animation-delay: calc(0.4s + var(--i) * 0.15s);
}

@keyframes ap-fill {
  from { width: 0; }
}

.ap-ready__loop {
  align-self: start;
  display: grid;
  align-content: start;
  gap: 0.55em;
  padding: 1em 1.1em;
  border-radius: 0.9em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ap-dark-line);
}

.ap-ready__loop p {
  font-size: 1em;
  line-height: 1.4;
  color: var(--ap-dark-muted);
}

.ap-ready__update {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(198, 245, 111, 0.16);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ap-lime);
}

.ap-ready__update::before {
  content: "↻";
}

.ap-process.is-live .ap-layer--ready.is-active .ap-ready__update {
  animation: ap-pop 0.5s var(--ap-ease) 1.2s both;
}

@container (max-width: 520px) {
  .ap-card--id > span:last-child,
  .ap-card__foot,
  .ap-capture__tags span:not(.is-new),
  .ap-card--targets dl div:nth-child(2),
  .ap-card--targets dl div:nth-child(4),
  .ap-card--built li:nth-child(3) {
    display: none;
  }

  .ap-card {
    padding: 0.9em 1em;
  }

  .ap-card--targets {
    width: 66%;
  }

  .ap-card--targets dl div {
    grid-template-columns: 5.6em minmax(0, 1fr);
  }

  .ap-card--capture {
    width: 62%;
  }

  .ap-card--built {
    width: 40%;
  }

  .ap-device {
    left: 4%;
    width: 54%;
  }

  .ap-ready {
    inset: 6% 5%;
  }

  .ap-ready__goal b {
    font-size: 1.3em;
  }

  .ap-ready__loop p {
    display: none;
  }
}

/* Steps */
.ap-steps {
  display: grid;
  padding: 0;
  list-style: none;
}

.ap-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 62svh;
  padding-block: 40px;
  transition: opacity 0.5s ease;
}

.ap-process.is-live .ap-step:not(.is-active) {
  opacity: 0.32;
}

.ap-step__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ap-lime);
  font-variant-numeric: tabular-nums;
}

.ap-step__title {
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ap-dark-ink);
}

.ap-step__body {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ap-dark-muted);
}

.ap-step__do {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.ap-step__do li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ap-dark-ink);
}

.ap-step__do li::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 1.5px;
  margin-top: 10px;
  background: var(--ap-lime);
}

.ap-step__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ap-dark-ink);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ap-step__link span {
  color: var(--ap-dark-faint);
}

.ap-step__link::after {
  content: "→";
  transition: transform 0.3s var(--ap-ease);
}

.ap-step__link:hover {
  color: var(--ap-dark-ink);
  border-color: var(--ap-lime);
  background: rgba(198, 245, 111, 0.06);
}

.ap-step__link:hover::after {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .ap-stage__chain {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .ap-stage__chain li {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 6px;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-dark-faint);
    transition: color 0.4s ease;
  }

  .ap-stage__chain li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ap-stage__chain li::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    transition: background 0.4s ease, border-color 0.4s ease;
  }

  .ap-stage__chain li:not(:last-child)::after {
    content: "";
    flex: 1;
    min-width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .ap-stage__chain li.is-done {
    color: var(--ap-dark-muted);
  }

  .ap-stage__chain li.is-done::before {
    background: var(--ap-dark-muted);
    border-color: var(--ap-dark-muted);
  }

  .ap-stage__chain li.is-current {
    color: var(--ap-lime);
  }

  .ap-stage__chain li.is-current::before {
    background: var(--ap-lime);
    border-color: var(--ap-lime);
    box-shadow: 0 0 0 3px rgba(198, 245, 111, 0.2);
  }
}

@media (max-width: 1023px) {
  .ap-step {
    min-height: 58svh;
    padding-block: 28px;
  }

  .ap-step:last-child {
    min-height: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .ap-process__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    margin-top: 24px;
  }

  .ap-stage-wrap {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .ap-steps {
    grid-column: 1;
    grid-row: 1;
  }

  .ap-stage {
    top: clamp(96px, calc(50vh - 290px), 220px);
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .ap-step {
    min-height: 74vh;
    padding-block: 64px;
  }
}

/* =========================================================
   Captured once, used everywhere
   ========================================================= */
.ap-reuse {
  padding-block: 112px 104px;
}

.ap-reuse__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.ap-reuse__head .ap-eyebrow {
  justify-content: center;
}

.ap-reuse__head .ap-lede {
  margin: 20px auto 0;
  max-width: 600px;
}

.ap-reuse__map {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

.ap-source {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.35);
}

.ap-source__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ap-source__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.ap-source__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ap-source__play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ap-ink);
}

.ap-source__time {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(10, 13, 17, 0.72);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ap-source figcaption {
  display: grid;
  gap: 6px;
  padding: 22px 24px 24px;
}

.ap-source figcaption b {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ap-ink);
}

.ap-source figcaption > span:not(.ap-kicker) {
  font-size: 14.5px;
  color: var(--ap-muted);
}

.ap-source__chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  counter-reset: ap-ch;
}

.ap-source__chapters li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  background: var(--ap-soft);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ap-ink);
  counter-increment: ap-ch;
}

.ap-source__chapters li::before {
  content: counter(ap-ch);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ap-blue);
}

.ap-reuse__wires {
  display: none;
}

.ap-outputs {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0 0 0 26px;
  list-style: none;
}

.ap-outputs::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -18px;
  bottom: 40px;
  width: 1.5px;
  background: repeating-linear-gradient(180deg, rgba(60, 82, 148, 0.4) 0 6px, transparent 6px 12px);
}

.ap-output a {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ap-line);
  color: var(--ap-ink);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--ap-ease);
}

.ap-output a::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ap-blue);
  transition: background 0.35s ease;
}

.ap-output a:hover,
.ap-output.is-lit a {
  border-color: rgba(60, 82, 148, 0.45);
  box-shadow: 0 20px 44px -28px rgba(60, 82, 148, 0.55);
  color: var(--ap-ink);
}

.ap-output a:hover {
  transform: translateX(4px);
}

.ap-output a:hover::before,
.ap-output.is-lit a::before {
  background: var(--ap-blue);
}

.ap-output__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-blue);
}

.ap-output__kind::after {
  content: " →";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ap-output a:hover .ap-output__kind::after {
  opacity: 1;
}

.ap-output__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.ap-output__body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ap-muted);
}

.ap-output__ui {
  margin-top: 8px;
}

.ap-ui-lesson,
.ap-ui-path,
.ap-ui-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ap-soft);
  font-size: 12.5px;
  color: var(--ap-muted);
}

.ap-ui-lesson i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--ap-blue);
}

.ap-ui-lesson i:nth-child(3) {
  background: rgba(60, 82, 148, 0.2);
}

.ap-ui-lesson b,
.ap-ui-path b {
  font-weight: 600;
  color: var(--ap-ink);
}

.ap-ui-lesson b {
  margin-left: auto;
}

.ap-ui-path i {
  font-style: normal;
  color: var(--ap-faint);
}

.ap-ui-ask b {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(60, 82, 148, 0.1);
  font-size: 11px;
  font-weight: 600;
  color: var(--ap-blue);
}

@media (min-width: 1024px) {
  .ap-reuse__map {
    grid-template-columns: minmax(0, 5fr) 110px minmax(0, 5.4fr);
    align-items: center;
    gap: 0;
  }

  .ap-reuse__wires {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .ap-reuse__wires path {
    fill: none;
    stroke: rgba(60, 82, 148, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
    vector-effect: non-scaling-stroke;
    transition: stroke 0.4s ease;
  }

  .ap-reuse__map.is-auto .ap-reuse__wires path {
    animation: ap-flow 1.2s linear infinite;
  }

  .ap-reuse__wires path.is-lit {
    stroke: var(--ap-blue);
  }

  .ap-outputs {
    padding: 0;
  }

  .ap-outputs::before,
  .ap-output a::before {
    display: none;
  }
}

@keyframes ap-flow {
  to { stroke-dashoffset: -22; }
}

/* =========================================================
   Business value
   ========================================================= */
.ap-value {
  padding-block: 104px 112px;
  background: var(--ap-soft);
}

.ap-value__head {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .ap-value__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 72px;
  }

  .ap-value__head .ap-lede {
    padding-bottom: 6px;
  }
}

.ap-values {
  display: grid;
  gap: 14px;
  margin-top: 52px;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .ap-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ap-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.ap-value-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 30px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(26, 26, 28, 0.06);
}

.ap-value-tile h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ap-ink);
}

.ap-value-tile p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ap-muted);
}

/* Glyphs: each shows the end state by default; JS plays them in from the start state */
.ap-glyph {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 96px;
  height: 56px;
}

.ap-glyph i,
.ap-glyph b {
  display: block;
}

.ap-value-tile--consistency .ap-glyph i {
  width: 9px;
  height: 58%;
  border-radius: 3px;
  background: var(--ap-blue);
}

.ap-value-tile--consistency .ap-glyph::after {
  content: "";
  position: absolute;
  left: -4px;
  right: 2px;
  bottom: 58%;
  border-top: 1.5px dashed rgba(60, 82, 148, 0.45);
}

@keyframes ap-g-even {
  from { height: var(--h); background: rgba(60, 82, 148, 0.25); }
}

.ap-value-tile--reliance .ap-glyph b {
  position: absolute;
  left: 41px;
  top: 21px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ap-blue);
}

.ap-value-tile--reliance .ap-glyph i {
  position: absolute;
  left: 44px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-blue);
  transform: rotate(var(--a)) translateX(24px);
}

.ap-value-tile--reliance .ap-glyph i::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 3.25px;
  width: 17px;
  height: 1.5px;
  background: rgba(60, 82, 148, 0.35);
}

@keyframes ap-g-spread {
  from { transform: rotate(var(--a)) translateX(0); opacity: 0; }
}

.ap-value-tile--readiness .ap-glyph i {
  width: 14px;
  height: calc(20% + var(--n) * 20%);
  border-radius: 3px;
  background: var(--ap-blue);
  transform-origin: bottom;
}

.ap-value-tile--readiness .ap-glyph i:last-child {
  background: var(--ap-lime-ink);
}

@keyframes ap-g-step {
  from { transform: scaleY(0); }
}

.ap-value-tile--preserve .ap-glyph {
  align-items: center;
  gap: 4px;
  padding-inline: 8px;
}

.ap-value-tile--preserve .ap-glyph i {
  width: 5px;
  height: var(--h);
  border-radius: 3px;
  background: var(--ap-blue);
}

.ap-value-tile--preserve .ap-glyph b {
  position: absolute;
  inset: 4px 0;
  border-radius: 10px;
  border: 1.5px solid var(--ap-blue);
}

@keyframes ap-g-wave {
  0%, 100% { transform: scaleY(1); }
  25% { transform: scaleY(0.35); }
  50% { transform: scaleY(1.15); }
  75% { transform: scaleY(0.6); }
}

@keyframes ap-g-frame {
  from { opacity: 0; transform: scale(1.12); }
}

.ap-value-tile--mistakes .ap-glyph {
  align-items: center;
}

.ap-value-tile--mistakes .ap-glyph i {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(60, 82, 148, 0.18);
}

.ap-value-tile--mistakes .ap-glyph i.is-fix {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ap-lime);
}

.ap-value-tile--mistakes .ap-glyph i.is-fix::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 4px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--ap-dark);
  border-bottom: 2px solid var(--ap-dark);
  transform: rotate(45deg);
}

.ap-value-tile--mistakes .ap-glyph i.is-fix::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%) center / 12px 12px no-repeat,
    linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%) center / 12px 12px no-repeat,
    #dc2626;
  opacity: 0;
}

@keyframes ap-g-fix {
  0%, 45% { opacity: 1; }
  100% { opacity: 0; }
}

.ap-value-tile--reuse .ap-glyph b {
  position: absolute;
  left: 2px;
  top: 21px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ap-blue);
}

.ap-value-tile--reuse .ap-glyph i {
  position: absolute;
  left: 62px;
  top: calc(2px + var(--n) * 19px);
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--ap-blue);
  background: rgba(60, 82, 148, 0.12);
}

.ap-value-tile--reuse .ap-glyph i::before {
  content: "";
  position: absolute;
  right: calc(100% + 1.5px);
  top: 5px;
  width: 44px;
  height: 1.5px;
  background: rgba(60, 82, 148, 0.35);
  transform-origin: right;
  transform: rotate(calc((1 - var(--n)) * 22deg));
}

@keyframes ap-g-copy {
  from { opacity: 0; transform: translateX(-36px) scale(0.6); }
}

.ap-values.is-armed .ap-value-tile .ap-glyph :is(i, b) {
  animation-duration: 0.9s;
  animation-timing-function: var(--ap-ease);
  animation-fill-mode: both;
  animation-play-state: paused;
}

.ap-values.is-armed .ap-value-tile.is-in .ap-glyph :is(i, b) {
  animation-play-state: running;
}

.ap-values.is-armed .ap-value-tile--consistency .ap-glyph i { animation-name: ap-g-even; animation-duration: 1.4s; animation-delay: 0.3s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i { animation-name: ap-g-spread; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(1) { animation-delay: 0.3s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(2) { animation-delay: 0.4s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(3) { animation-delay: 0.5s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(4) { animation-delay: 0.6s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(5) { animation-delay: 0.7s; }
.ap-values.is-armed .ap-value-tile--reliance .ap-glyph i:nth-of-type(6) { animation-delay: 0.8s; }
.ap-values.is-armed .ap-value-tile--readiness .ap-glyph i { animation-name: ap-g-step; animation-delay: calc(0.3s + var(--n) * 0.12s); }
.ap-values.is-armed .ap-value-tile--preserve .ap-glyph i { animation-name: ap-g-wave; animation-duration: 0.7s; animation-iteration-count: 2; animation-timing-function: ease-in-out; }
.ap-values.is-armed .ap-value-tile--preserve .ap-glyph i:nth-child(odd) { animation-delay: 0.3s; }
.ap-values.is-armed .ap-value-tile--preserve .ap-glyph i:nth-child(even) { animation-delay: 0.45s; }
.ap-values.is-armed .ap-value-tile--preserve .ap-glyph b { animation-name: ap-g-frame; animation-delay: 1.6s; }
.ap-values.is-armed .ap-value-tile--mistakes .ap-glyph i.is-fix::before { animation: ap-g-fix 1.6s ease 0.3s both paused; }
.ap-values.is-armed .ap-value-tile--mistakes.is-in .ap-glyph i.is-fix::before { animation-play-state: running; }
.ap-values.is-armed .ap-value-tile--mistakes .ap-glyph i { animation: none; }
.ap-values.is-armed .ap-value-tile--reuse .ap-glyph i { animation-name: ap-g-copy; animation-delay: calc(0.35s + var(--n) * 0.15s); }
.ap-values.is-armed .ap-value-tile--reuse .ap-glyph b { animation: none; }

/* =========================================================
   Start with one machine
   ========================================================= */
.ap-start {
  padding-block: 112px 120px;
}

.ap-start__grid {
  display: grid;
  gap: 48px;
}

.ap-start__copy .ap-lede {
  margin-top: 20px;
  max-width: 560px;
}

.ap-start__photo {
  overflow: hidden;
  margin-top: 36px;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
}

.ap-start__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 40%;
}

.ap-brief {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: 0 40px 80px -50px rgba(15, 23, 42, 0.4);
}

.ap-brief::before,
.ap-brief::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border: 0 solid var(--ap-blue);
}

.ap-brief::before {
  left: 10px;
  top: 10px;
  border-width: 1.5px 0 0 1.5px;
  border-top-left-radius: 5px;
}

.ap-brief::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1.5px 1.5px 0;
  border-bottom-right-radius: 5px;
}

.ap-brief__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-bottom: 18px;
}

.ap-brief__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ap-soft);
}

.ap-brief__tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ap-muted);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 420px) {
  .ap-brief__tabs button {
    padding: 8px 11px;
    font-size: 12.5px;
  }
}

.ap-brief__tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ap-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.ap-brief__tabs button:focus-visible {
  outline: 2px solid var(--ap-blue);
  outline-offset: 2px;
}

.ap-brief__panel div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--ap-line);
}

.ap-brief__panel dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-faint);
}

.ap-brief__panel dd {
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ap-ink);
}

.ap-brief__panel.is-in div {
  animation: ap-rise 0.45s var(--ap-ease) both;
  animation-delay: calc(var(--i) * 0.06s);
}

.ap-brief__foot {
  padding-top: 18px;
  border-top: 1px dashed rgba(26, 26, 28, 0.18);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ap-muted);
}

@media (min-width: 640px) {
  .ap-brief {
    padding: 34px 34px 30px;
  }

  .ap-brief__panel div {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
  }

  .ap-brief__panel dt {
    padding-top: 4px;
  }
}

@media (min-width: 1024px) {
  .ap-start__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 80px;
  }

  .ap-brief {
    position: sticky;
    top: 110px;
  }
}

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

@media (max-width: 767px) {
  .ap-hero {
    border-radius: 0;
  }
}
