/* ===========================================================================
   AI AUTOMATIONS (Specialisation / AI) — prefix "aa-"
   Visual language: "the automation control room" — deep navy plates with
   chamfered corners, hairline cyan circuits, dot-grid fields and live run
   feeds. Deliberately different from its siblings:
     · AI Integrations owns violet/magenta glass consoles
     · AI Solutions owns warm paper + machined metal and dial hardware
     · THIS page owns dark chamfered plates + cyan circuit hairlines
   Theme tokens (same family as the site):
     navy #080A2B · violet #7B2FF7 · magenta #B217BA · blue #2A7BFF
     · cyan #43D2E0 · gold #F0A400 · Afacad.

   Structure (8 interactive sections):
     1 .aa-hero      hero + live run board (canvas pipeline, toasts)
     2 .aa-ops       the week board (scrubber simulation)
     3 .aa-menu      automation menu (filter chips + expanding cards)
     4 .aa-loop      human-in-the-loop orbit (rotating checkpoints)
     5 .aa-ladder    maturity ladder (scroll-lit rungs)
     6 .aa-chart-sec the cost of waiting (interactive chart)
     7 .aa-myths     myth plates (flip)
     8 .aa-cta       outcome marquee + next steps

   All artwork is CSS/SVG/canvas only (the project ships no images here).
   =========================================================================== */

.aa {
  --aa-navy: #070920;
  --aa-navy-2: #0b0f2e;
  --aa-navy-3: #141a4d;
  --aa-ink: #ffffff;
  --aa-mute: rgba(255, 255, 255, 0.62);
  --aa-faint: rgba(255, 255, 255, 0.38);
  --aa-violet: #7b2ff7;
  --aa-magenta: #b217ba;
  --aa-blue: #2a7bff;
  --aa-cyan: #43d2e0;
  --aa-gold: #f0a400;
  --aa-pink: #ff5c8a;
  --aa-grad: linear-gradient(92deg, var(--aa-cyan), var(--aa-violet));
  --aa-grad-hot: linear-gradient(90deg, var(--aa-violet), var(--aa-magenta));
  --aa-shell: min(88%, 1320px);
  --aa-chamfer: 16px;
  --aa-hair: 1px solid rgba(67, 210, 224, 0.16);
  --aa-hair-soft: 1px solid rgba(255, 255, 255, 0.08);

  font-family: "Afacad", sans-serif;
  overflow-x: clip;
  color: var(--aa-ink);
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(123, 47, 247, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(42, 123, 255, 0.12), transparent 55%),
    var(--aa-navy);
}

.aa-shell {
  width: var(--aa-shell);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ---------- chamfered plate: the page's core surface ------------------- */
.aa-plate {
  position: relative;
  background:
    linear-gradient(158deg, rgba(25, 33, 84, 0.72), rgba(10, 14, 44, 0.92));
  border: var(--aa-hair);
  clip-path: polygon(
    var(--aa-chamfer) 0, 100% 0,
    100% calc(100% - var(--aa-chamfer)),
    calc(100% - var(--aa-chamfer)) 100%,
    0 100%, 0 var(--aa-chamfer)
  );
}

/* ---------- shared type ------------------------------------------------ */
.aa-h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.3em 0 0;
  color: var(--aa-ink);
  font-style: normal;
}

.aa-h2 em, .aa-h2 i { font-style: normal; }

.aa-sub {
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.5;
  color: var(--aa-mute);
  max-width: 62ch;
}

.aa-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aa-gold);
}

.aa-grad {
  background: var(--aa-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.aa-micro {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aa-cyan);
}

.aa-micro--gold { color: var(--aa-gold); }
.aa-micro--mute { color: var(--aa-faint); }

.aa-head {
  margin: 0 0 clamp(26px, 4vw, 52px);
  max-width: 780px;
}

.aa-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.aa :focus-visible {
  outline: 2px solid var(--aa-cyan);
  outline-offset: 3px;
}

/* section rhythm — every body section breathes the same */
.aa-ops, .aa-menu, .aa-loop, .aa-ladder, .aa-chart-sec, .aa-myths {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}

/* dot-grid field texture (unique to this page) */
.aa-menu::before, .aa-ladder::before, .aa-myths::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(67, 210, 224, 0.13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.aa-menu { background: radial-gradient(900px 460px at 88% 20%, rgba(67, 210, 224, 0.1), transparent 60%); }
.aa-loop { background: radial-gradient(1000px 560px at 24% 52%, rgba(123, 47, 247, 0.14), transparent 62%); }
.aa-ladder { background: radial-gradient(900px 500px at 86% 88%, rgba(240, 164, 0, 0.08), transparent 60%); }
.aa-chart-sec { background: radial-gradient(1000px 520px at 12% 20%, rgba(42, 123, 255, 0.12), transparent 62%); }
.aa-myths { background: radial-gradient(900px 520px at 84% 80%, rgba(178, 23, 186, 0.12), transparent 60%); }

/* ===========================================================================
   1 · HERO — the unified hero spec (hu-*) + this page's live run board
   =========================================================================== */
.aa-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 78% 22%, rgba(123, 47, 247, 0.22), transparent 62%),
    radial-gradient(900px 520px at 8% 90%, rgba(42, 123, 255, 0.16), transparent 58%),
    linear-gradient(180deg, #0a0d2c 0%, var(--aa-navy) 100%);
}

.aa-hero__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.aa-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 72% 40%, rgba(67, 210, 224, 0.12), transparent 70%);
  pointer-events: none;
}

.aa-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(720px 520px at 78% 46%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 520px at 78% 46%, #000 0%, transparent 72%);
  pointer-events: none;
}

.aa-hero__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  flex: 1 1 auto;
  padding-block: clamp(132px, 17vh, 190px) clamp(28px, 4vh, 56px);
}

.aa-hero__copy { min-width: 0; }

.aa-h1 { margin: 0 0 20px; }

.aa-crumb { margin-bottom: 12px; }

.aa-eyebrow { margin: 0 0 14px; }

.aa-lead { margin: 0 0 28px; }

.aa-actions { position: relative; z-index: 3; }

.aa-btn { position: relative; z-index: 3; }

/* ---- live run board (right of hero copy) ---- */
.aa-hero__stage {
  position: relative;
  min-width: 0;
  padding: 18px 10px 30px 34px;
}

.aa-run {
  padding: 18px 20px 14px;
  box-shadow: 0 30px 80px rgba(4, 6, 24, 0.55);
}

.aa-run__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: var(--aa-hair-soft);
}

.aa-run__head .aa-micro--mute { margin-left: auto; }

.aa-run__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aa-cyan);
  box-shadow: 0 0 12px var(--aa-cyan);
  animation: aaPulse 1.8s ease-in-out infinite;
}

@keyframes aaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.aa-run__rows {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: grid;
  gap: 8px;
}

.aa-run__rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: var(--aa-hair-soft);
  font-size: 0.92rem;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.aa-run__task { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aa-run__state {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aa-run__rows li[data-state="done"] .aa-run__state { color: var(--aa-cyan); }
.aa-run__rows li[data-state="run"] .aa-run__state { color: var(--aa-gold); }
.aa-run__rows li[data-state="run"] { border-color: rgba(240, 164, 0, 0.35); }
.aa-run__rows li[data-state="queue"] .aa-run__state { color: var(--aa-faint); }
.aa-run__rows li[data-state="queue"] { opacity: 0.66; }

.aa-run__foot {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 12px;
  border-top: var(--aa-hair-soft);
}

/* floating automation toasts */
.aa-toasts {
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: min(300px, 82%);
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.aa-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--aa-ink);
  background: linear-gradient(150deg, rgba(30, 40, 100, 0.92), rgba(12, 17, 52, 0.96));
  border: var(--aa-hair);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  animation: aaToastIn 0.5s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  box-shadow: 0 18px 40px rgba(4, 6, 24, 0.5);
}

.aa-toast.is-out { animation: aaToastOut 0.45s ease both; }

.aa-toast::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--aa-cyan);
  box-shadow: 0 0 10px var(--aa-cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@keyframes aaToastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes aaToastOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ---- hero stat strip ---- */
.aa-hero__stats {
  position: relative;
  z-index: 2;
  width: var(--aa-shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 34px);
  padding-block: clamp(18px, 2.6vw, 30px);
  border-top: var(--aa-hair-soft);
}

.aa-hstat {
  display: grid;
  gap: 6px;
  padding-left: 16px;
  border-left: 2px solid rgba(67, 210, 224, 0.35);
}

.aa-hstat strong {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  background: var(--aa-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.aa-hstat span {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--aa-mute);
}

/* ===========================================================================
   2 · THE WEEK BOARD
   =========================================================================== */
.aa-ops__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}

.aa-ops__board { padding: clamp(18px, 2.4vw, 28px); }

.aa-ops__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.aa-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--aa-ink);
  background: var(--aa-grad-hot);
  border: 0;
  cursor: pointer;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.aa-play:hover { filter: brightness(1.1); transform: translateY(-1px); }

.aa-play__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.aa-play[aria-pressed="true"] .aa-play__icon {
  width: 10px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(#fff, #fff) 0 0 / 3.5px 100% no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 3.5px 100% no-repeat;
}

.aa-clock {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-cyan);
  font-variant-numeric: tabular-nums;
}

/* scrubber */
.aa-scrub {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  margin: 2px 0 18px;
}

.aa-scrub::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--aa-cyan), var(--aa-violet));
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.aa-scrub::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, var(--aa-cyan), var(--aa-violet));
}

.aa-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 22px;
  margin-top: -8px;
  background: var(--aa-ink);
  border: 0;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  box-shadow: 0 0 16px rgba(67, 210, 224, 0.8);
}

.aa-scrub::-moz-range-thumb {
  width: 18px;
  height: 22px;
  background: var(--aa-ink);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 16px rgba(67, 210, 224, 0.8);
}

/* task rows */
.aa-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.aa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 64px 22px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: var(--aa-hair-soft);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: opacity 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.aa-row__task { min-width: 0; transition: color 0.35s ease; }

.aa-row__team {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aa-faint);
}

.aa-row__saved {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--aa-gold);
  font-weight: 600;
}

.aa-row__tick {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.aa-row.is-active {
  border-color: rgba(240, 164, 0, 0.5);
  background: rgba(240, 164, 0, 0.08);
}

.aa-row.is-done { border-color: rgba(67, 210, 224, 0.4); }

.aa-row.is-done .aa-row__task {
  color: var(--aa-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(67, 210, 224, 0.6);
}

.aa-row.is-done .aa-row__tick {
  background: var(--aa-cyan);
  border-color: var(--aa-cyan);
  box-shadow: 0 0 12px rgba(67, 210, 224, 0.6);
}

/* side: counters + log */
.aa-ops__side {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.aa-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.aa-counter {
  padding: 16px 12px;
  text-align: center;
  border: var(--aa-hair-soft);
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.aa-counter strong {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--aa-cyan);
  font-variant-numeric: tabular-nums;
}

.aa-counter span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-faint);
}

.aa-log { padding: 14px 16px 10px; }

.aa-log__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: var(--aa-hair-soft);
}

.aa-log__list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(67, 210, 224, 0.4) transparent;
}

.aa-log__list li {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--aa-mute);
  animation: aaLogIn 0.35s ease both;
}

.aa-log__list li b {
  color: var(--aa-cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.aa-log__list li i {
  font-style: normal;
  color: var(--aa-gold);
}

@keyframes aaLogIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* ===========================================================================
   3 · AUTOMATION MENU — filter chips + expanding recipe cards
   =========================================================================== */
.aa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.aa-chip {
  padding: 9px 18px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--aa-mute);
  background: rgba(255, 255, 255, 0.04);
  border: var(--aa-hair-soft);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.aa-chip:hover { color: var(--aa-ink); transform: translateY(-1px); }

.aa-chip.is-on {
  color: var(--aa-ink);
  background: var(--aa-grad);
  border-color: transparent;
}

.aa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.aa-rcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.aa-rcard:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 210, 224, 0.38);
}

.aa-rcard.is-hidden { display: none; }

.aa-rcard h3 {
  margin: 2px 0 0;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.aa-rcard__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-cyan);
}

.aa-rcard__flow i { font-style: normal; color: var(--aa-faint); }

.aa-rcard__metric {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--aa-mute);
}

.aa-rcard__metric strong {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--aa-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-right: 6px;
}

.aa-more {
  margin-top: auto;
  padding: 10px 0 2px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aa-gold);
  background: none;
  border: 0;
  border-top: var(--aa-hair-soft);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.aa-more::after {
  content: "+";
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.aa-more:hover { color: var(--aa-ink); }

.aa-rcard.is-open .aa-more::after { transform: rotate(45deg); }

.aa-rcard__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease, opacity 0.35s ease;
  opacity: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--aa-mute);
}

.aa-rcard__more > * { overflow: hidden; min-height: 0; }

.aa-rcard.is-open .aa-rcard__more {
  grid-template-rows: 1fr;
  opacity: 1;
}

.aa-rcard__more p { margin: 0 0 10px; }
.aa-rcard__more p:first-child { padding-top: 4px; }

.aa-rcard__note {
  font-size: 0.86rem;
  color: var(--aa-faint);
}

.aa-rcard__note b { color: var(--aa-cyan); font-weight: 600; }

/* ===========================================================================
   4 · HUMAN-IN-THE-LOOP ORBIT
   =========================================================================== */
.aa-loop__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 3.4vw, 48px);
  align-items: center;
}

.aa-orbit {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  --aa-r: min(34vw, 218px);
}

.aa-orbit__ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(67, 210, 224, 0.32);
  border-radius: 50%;
}

.aa-orbit__ring--2 {
  inset: 24%;
  border-color: rgba(123, 47, 247, 0.28);
}

.aa-orbit__spin {
  position: absolute;
  inset: 8%;
  animation: aaSpin 26s linear infinite;
}

.aa-orbit:hover .aa-orbit__spin { animation-play-state: paused; }

.aa-orbit__pulse {
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: var(--aa-cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 18px var(--aa-cyan);
}

@keyframes aaSpin { to { transform: rotate(360deg); } }

.aa-orbit__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(123, 47, 247, 0.34), rgba(10, 14, 44, 0.9) 70%);
  border: var(--aa-hair);
  border-radius: 50%;
}

.aa-orbit__hub strong { font-size: clamp(1.05rem, 1.8vw, 1.45rem); letter-spacing: 0.01em; }

.aa-orbit__node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--a)) translate(var(--aa-r)) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
  transform-origin: 0 0;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--aa-mute);
  background: rgba(10, 14, 44, 0.92);
  border: var(--aa-hair-soft);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.aa-orbit__node.is-on {
  color: var(--aa-ink);
  border-color: var(--aa-cyan);
  background: linear-gradient(150deg, rgba(67, 210, 224, 0.22), rgba(20, 26, 77, 0.95));
  box-shadow: 0 0 26px rgba(67, 210, 224, 0.35);
}

.aa-loop__panel { display: grid; gap: 16px; }

.aa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa-tab {
  padding: 9px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--aa-mute);
  background: rgba(255, 255, 255, 0.04);
  border: var(--aa-hair-soft);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.aa-tab:hover { color: var(--aa-ink); }

.aa-tab.is-on {
  color: var(--aa-ink);
  background: var(--aa-grad);
  border-color: transparent;
}

.aa-loop__detail {
  padding: clamp(20px, 2.6vw, 30px);
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.aa-loop__detail h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aa-loop__detail p { margin: 0; line-height: 1.6; color: var(--aa-mute); }

.aa-loop__tag { margin-top: 6px; }

/* ===========================================================================
   5 · MATURITY LADDER
   =========================================================================== */
.aa-ladder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}

.aa-rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.aa-rung__bar {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(140px, 0.8fr) minmax(0, 1.6fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  font: inherit;
  text-align: left;
  color: var(--aa-ink);
  background: rgba(255, 255, 255, 0.03);
  border: var(--aa-hair-soft);
  cursor: pointer;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.aa-rung__bar:hover { border-color: rgba(67, 210, 224, 0.35); }

.aa-rung.is-on .aa-rung__bar {
  border-color: var(--aa-cyan);
  background: linear-gradient(150deg, rgba(67, 210, 224, 0.12), rgba(255, 255, 255, 0.03));
}

.aa-rung__no {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--aa-gold);
}

.aa-rung__name { font-size: 1.06rem; font-weight: 600; }

.aa-rung__fill {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.aa-rung__fill i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--aa-grad);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.aa-rungs.is-lit .aa-rung__fill i { width: var(--w); }

.aa-rung__pct {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--aa-cyan);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.aa-ladder__detail {
  padding: clamp(22px, 2.8vw, 32px);
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.aa-ladder__detail h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aa-ladder__detail p { margin: 0; line-height: 1.6; color: var(--aa-mute); }

.aa-ladder__start {
  margin-top: 8px !important;
  padding: 10px 14px;
  border-left: 2px solid var(--aa-gold);
  background: rgba(240, 164, 0, 0.08);
  display: none;
}

.aa-ladder__detail[data-start="true"] .aa-ladder__start { display: block; }

/* ===========================================================================
   6 · THE COST OF WAITING — interactive chart
   =========================================================================== */
.aa-chart-plate { padding: clamp(18px, 2.6vw, 30px); }

.aa-chart__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.aa-chart__wrap {
  position: relative;
}

.aa-chart {
  display: block;
  width: 100%;
  height: auto;
}

.aa-chart__tip {
  position: absolute;
  z-index: 4;
  min-width: 170px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  background: linear-gradient(150deg, rgba(30, 40, 100, 0.96), rgba(10, 14, 44, 0.98));
  border: var(--aa-hair);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 20px 50px rgba(4, 6, 24, 0.6);
}

.aa-chart__tip b { display: block; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; color: var(--aa-faint); margin-bottom: 4px; }
.aa-chart__tip .t-m { color: var(--aa-pink); }
.aa-chart__tip .t-a { color: var(--aa-cyan); }

.aa-chart__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--aa-hair-soft);
  font-size: 0.92rem;
}

.aa-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aa-mute);
}

.aa-lg::before {
  content: "";
  width: 22px;
  height: 3px;
  background: currentColor;
}

.aa-lg--manual { color: var(--aa-pink); }
.aa-lg--auto { color: var(--aa-cyan); }

.aa-chart__note {
  margin-left: auto;
  color: var(--aa-gold);
  font-weight: 600;
}

/* ===========================================================================
   7 · MYTH FLIP PLATES
   =========================================================================== */
.aa-flips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.aa-flip { perspective: 1400px; }

.aa-flip__plate {
  position: relative;
  width: 100%;
  height: 300px;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--aa-ink);
  background: none;
  border: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.aa-flip__plate.is-flipped { transform: rotateY(180deg); }

.aa-flip__face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: var(--aa-hair-soft);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.aa-flip__face--front {
  background: linear-gradient(160deg, rgba(25, 33, 84, 0.6), rgba(10, 14, 44, 0.9));
}

.aa-flip__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(67, 210, 224, 0.16), rgba(18, 24, 70, 0.96));
  border-color: rgba(67, 210, 224, 0.35);
}

.aa-flip__face strong {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.aa-flip__face span:not(.aa-micro):not(.aa-flip__hint) {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--aa-mute);
}

.aa-flip__hint {
  margin-top: auto;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aa-faint);
}

.aa-flip__plate:hover .aa-flip__face--front { border-color: rgba(67, 210, 224, 0.35); }

/* ===========================================================================
   8 · CTA — outcome marquee + next steps
   =========================================================================== */
.aa-cta {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(64px, 9vw, 110px);
  background:
    radial-gradient(900px 500px at 50% 118%, rgba(178, 23, 186, 0.28), transparent 65%),
    linear-gradient(180deg, var(--aa-navy) 0%, #171048 55%, #3a1163 100%);
  border-top: var(--aa-hair-soft);
}

.aa-marquee {
  overflow: hidden;
  padding-block: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: var(--aa-hair-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.aa-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  animation: aaMarquee 36s linear infinite;
  will-change: transform;
}

.aa-marquee__track span {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.aa-marquee__track i {
  font-style: normal;
  color: var(--aa-cyan);
  font-size: 0.9rem;
}

@keyframes aaMarquee {
  to { transform: translateX(-50%); }
}

.aa-cta__in {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.aa-cta__in .aa-sub { margin-inline: auto; }

.aa-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.aa-xbtn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 99px;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--aa-ink);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.aa-xbtn--fill {
  background: var(--aa-grad-hot);
  box-shadow: 0 12px 34px -10px var(--aa-magenta);
}

.aa-xbtn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.aa-xbtn--ghost:hover { border-color: #fff; }

.aa-xbtn:hover, .aa-xbtn:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }

.aa-steps {
  list-style: none;
  margin: clamp(34px, 5vw, 56px) 0 0;
  padding: 0;
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.aa-steps li {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--aa-hair-soft);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.aa-steps b { font-size: 1.35rem; letter-spacing: -0.01em; }

.aa-steps li > span:last-child {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1100px) {
  .aa-hero__in {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 128px 30px;
  }
  .aa-hero__stage { padding: 10px 0 26px; }
  .aa-toasts { left: 0; }
  .aa-ops__panel { grid-template-columns: minmax(0, 1fr); }
  .aa-loop__grid { grid-template-columns: minmax(0, 1fr); }
  .aa-ladder__grid { grid-template-columns: minmax(0, 1fr); }
  .aa-ladder__detail { position: static; }
  .aa-orbit { --aa-r: min(36vw, 200px); }
}

@media (max-width: 820px) {
  .aa-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-row { grid-template-columns: minmax(0, 1fr) 56px 22px; }
  .aa-row__team { display: none; }
  .aa-rung__bar { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .aa-rung__fill { display: none; }
  .aa-steps { grid-template-columns: minmax(0, 1fr); }
  .aa-chart__note { margin-left: 0; width: 100%; }
  .aa-orbit { --aa-r: min(34vw, 170px); }
  .aa-orbit__node { padding: 8px 12px; font-size: 0.82rem; }
  .aa-flip__plate { height: 280px; }
}

@media (max-width: 560px) {
  .aa-hero__stats { grid-template-columns: minmax(0, 1fr); }
  .aa-counters { grid-template-columns: minmax(0, 1fr); }
  .aa-orbit { --aa-r: min(33vw, 132px); }
  .aa-orbit__node { padding: 7px 10px; font-size: 0.75rem; }
  .aa-rcard__flow { font-size: 0.66rem; }
}

/* ===========================================================================
   REDUCED MOTION
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .aa-marquee__track,
  .aa-orbit__spin,
  .aa-run__dot { animation: none; }
  .aa-rcard__more,
  .aa-flip__plate,
  .aa-rung__fill i,
  .aa-toast { transition: none; animation: none; }
}
