#hb-ai-sections {
  --ai-blue: #075eff;
  --ai-cyan: #48d9ff;
  --ai-ice: #c7edff;
  --ai-x: 68%;
  --ai-y: 32%;
  overflow: hidden;
  background: #03070f;
}

#hb-ai-sections > section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 5rem;
  min-height: 112vh;
  overflow: hidden;
  padding: clamp(6rem, 14vh, 10rem) clamp(2rem, 8vw, 9rem);
  border-bottom: 1px solid rgba(109, 190, 255, .14);
  background:
    radial-gradient(circle at var(--ai-x) var(--ai-y), rgba(7, 94, 255, .16), transparent 27%),
    linear-gradient(115deg, #03070f 0%, #07101f 55%, #03070f 100%);
}

#hb-ai-sections > section:nth-child(even) {
  background:
    radial-gradient(circle at var(--ai-x) var(--ai-y), rgba(72, 217, 255, .11), transparent 25%),
    linear-gradient(115deg, #07101d, #0b1526 55%, #050912);
}

#hb-ai-sections > section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .43;
  background-image:
    linear-gradient(rgba(95, 175, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 175, 255, .08) 1px, transparent 1px);
  background-size: clamp(3.5rem, 7vw, 7rem) clamp(3.5rem, 7vw, 7rem);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  transform: perspective(700px) rotateX(calc(var(--ai-progress, 0) * 1.5deg)) scale(1.04);
}

#hb-ai-sections > section::after {
  content: attr(data-ai-number);
  position: absolute;
  z-index: -1;
  right: -.05em;
  top: -.18em;
  color: transparent;
  font-size: clamp(14rem, 34vw, 38rem);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(94, 176, 255, .075);
  transform: translateY(calc(var(--ai-progress, 0) * -3rem));
}

#hb-ai-sections .ai-signal {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 17%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ai-cyan), transparent);
  opacity: .24;
  animation: ai-scan 6s linear infinite;
}

@keyframes ai-scan {
  0% { transform: translateY(-8vh); opacity: 0; }
  16%, 80% { opacity: .28; }
  100% { transform: translateY(72vh); opacity: 0; }
}

.ai-motion-ready #hb-ai-sections [data-ai-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.75,.2,1);
  transition-delay: var(--ai-delay, 0ms);
}

.ai-motion-ready #hb-ai-sections .ai-inview [data-ai-reveal] {
  opacity: 1;
  transform: none;
}

#hb-ai-sections .eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ai-cyan);
}

#hb-ai-sections .eyebrow::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 1.2rem var(--ai-cyan);
  animation: ai-blink 1.7s ease-in-out infinite;
}

@keyframes ai-blink { 50% { opacity: .28; transform: scale(.7); } }

#hb-ai-sections h2 {
  max-width: 12ch;
  font-size: clamp(3.3rem, 7.4vw, 8.5rem);
  line-height: .91;
}

#hb-ai-sections .blue {
  background: linear-gradient(90deg, #48d9ff, #075eff 68%);
  -webkit-background-clip: text;
  color: transparent;
}

/* 01 — opening signal */
#hb-ai-sections > .intro {
  min-height: 128vh;
  padding-bottom: 28vh;
  background:
    radial-gradient(circle at 82% 26%, rgba(7, 94, 255, .3), transparent 24%),
    radial-gradient(circle at 71% 63%, rgba(72, 217, 255, .08), transparent 22%),
    #030711;
}

#hb-ai-sections > .intro h2 { max-width: 10ch; }
#hb-ai-sections > .intro p {
  width: min(34rem, 44%);
  margin-left: 56%;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(72, 217, 255, .3);
}

/* 02 — capability switchboard */
#hb-ai-sections .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(3rem, 8vh, 6rem) 0 2rem;
  border: 1px solid rgba(105, 183, 255, .22);
  background: rgba(2, 8, 18, .55);
}

#hb-ai-sections .tabs button {
  position: relative;
  min-height: 7rem;
  padding: 1.5rem;
  border: 0;
  border-right: 1px solid rgba(105, 183, 255, .2);
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  text-align: left;
  transition: color .3s ease, background .3s ease;
}

#hb-ai-sections .tabs button:last-child { border-right: 0; }
#hb-ai-sections .tabs button::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ai-cyan), var(--ai-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
#hb-ai-sections .tabs button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(72,217,255,.1), rgba(7,94,255,.18));
}
#hb-ai-sections .tabs button[aria-pressed="true"]::after { transform: scaleX(1); }

#hb-ai-sections .split {
  gap: clamp(2rem, 7vw, 8rem);
  min-height: 30rem;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(105, 183, 255, .2);
  background: rgba(2, 8, 18, .62);
  backdrop-filter: blur(12px);
}

#hb-ai-sections .split.is-switching > * { animation: ai-content-in .55s ease; }
@keyframes ai-content-in {
  from { opacity: 0; transform: translateY(1rem); filter: blur(5px); }
}

#hb-ai-sections .network {
  position: relative;
  min-height: 21rem;
  display: grid;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(72,217,255,.32);
  border-radius: 0;
  background:
    radial-gradient(circle, rgba(7,94,255,.22), transparent 65%),
    rgba(3,9,20,.78);
}

#hb-ai-sections .network::before,
#hb-ai-sections .network::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(72,217,255,.16);
  border-radius: 50%;
  animation: ai-orbit 9s linear infinite;
}
#hb-ai-sections .network::after { inset: 25%; animation-direction: reverse; animation-duration: 6s; }
@keyframes ai-orbit { to { transform: rotate(360deg); } }
#hb-ai-sections .nodes,
#hb-ai-sections .connector { position: relative; z-index: 2; }
#hb-ai-sections .node {
  border-color: rgba(99,187,255,.42);
  background: rgba(8,24,48,.9);
  box-shadow: 0 0 1.5rem rgba(7,94,255,.12);
}
#hb-ai-sections .person {
  border-color: var(--ai-cyan);
  background: var(--ai-blue);
  box-shadow: 0 0 2rem rgba(7,94,255,.4);
}
#hb-ai-sections .connector { color: var(--ai-cyan); animation: ai-flow 1.4s ease-in-out infinite; }
@keyframes ai-flow { 50% { opacity: .3; transform: translateY(.25rem); } }

/* 03 — Axele proof wall */
#hb-ai-sections > .ai-scene:nth-child(3) {
  background:
    radial-gradient(circle at 84% 34%, rgba(7,94,255,.22), transparent 26%),
    linear-gradient(120deg, #02050b, #07152b 68%, #02050b);
}
#hb-ai-sections .stats {
  gap: 0;
  margin: clamp(3rem, 7vh, 6rem) 0;
  padding: 0;
  border: 1px solid rgba(105,183,255,.24);
  background: rgba(4,13,28,.7);
}
#hb-ai-sections .stats > div {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid rgba(105,183,255,.2);
}
#hb-ai-sections .stats > div:last-child { border-right: 0; }
#hb-ai-sections .stats strong {
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 8rem);
  text-shadow: 0 0 2.2rem rgba(72,217,255,.18);
}
#hb-ai-sections .stats span { color: var(--ai-ice); }
#hb-project-axele {
  margin-top: clamp(3rem, 7vh, 6rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(105,183,255,.25);
  background: rgba(2,8,18,.72);
}
#hb-ai-sections .principles { gap: 0; margin-top: clamp(3rem, 7vh, 6rem); }
#hb-ai-sections .principles > div {
  min-height: 18rem;
  padding: 2rem;
  border: 1px solid rgba(105,183,255,.2);
  border-right: 0;
  background: rgba(5,16,32,.62);
}
#hb-ai-sections .principles > div:last-child { border-right: 1px solid rgba(105,183,255,.2); }

/* 04 — implementation route */
#hb-ai-sections > .ai-scene:nth-child(4) .tabs { grid-template-columns: repeat(4, 1fr); }
#hb-ai-sections > .ai-scene:nth-child(4) h3 {
  width: min(15ch, 100%);
  margin-top: clamp(4rem, 10vh, 8rem);
  font-size: clamp(2.5rem, 5vw, 6rem);
}
#hb-ai-sections > .ai-scene:nth-child(4) > p:last-child {
  margin-left: min(42vw, 36rem);
  padding: 2rem;
  border-left: 1px solid var(--ai-cyan);
  background: rgba(6,21,42,.5);
}

/* 05 — governance console */
#hb-ai-sections details {
  max-width: 62rem;
  margin-left: auto;
  padding: 0;
  border-top-color: rgba(105,183,255,.28);
  transition: background .35s ease;
}
#hb-ai-sections details:last-of-type { border-bottom: 1px solid rgba(105,183,255,.28); }
#hb-ai-sections summary {
  padding: 1.5rem 1rem;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  list-style: none;
}
#hb-ai-sections summary::after {
  content: "+";
  float: right;
  color: var(--ai-cyan);
}
#hb-ai-sections details[open] {
  padding-bottom: 1.25rem;
  background: linear-gradient(90deg, rgba(7,94,255,.18), transparent);
}
#hb-ai-sections details[open] summary::after { content: "−"; }
#hb-ai-sections details p { padding-inline: 1rem; }

/* 06 — mission */
#hb-ai-sections > .cta {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(72,217,255,.16), transparent 23%),
    radial-gradient(circle at 50% 50%, rgba(7,94,255,.32), transparent 44%),
    #020711;
}
#hb-ai-sections > .cta h2,
#hb-ai-sections > .cta p { margin-inline: auto; }
#hb-ai-sections > .cta .ai-cta {
  --cta-x: 50%;
  --cta-y: 50%;
  display: grid;
  place-items: center;
  width: clamp(12rem, 19vw, 17rem);
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border: 1px solid var(--ai-cyan);
  border-radius: 50%;
  background: rgba(3,12,26,.62);
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 0 4rem rgba(7,94,255,.25);
  transition: transform .25s ease, background .3s ease, color .3s ease;
}
#hb-ai-sections > .cta .ai-cta:hover {
  background:
    radial-gradient(circle at var(--cta-x) var(--cta-y), rgba(255,255,255,.3), rgba(72,217,255,.18) 32%, rgba(7,94,255,.16) 64%, rgba(3,12,26,.5) 82%);
  color: #fff;
}

.ai-progress {
  position: fixed;
  z-index: 35;
  right: 1rem;
  top: 50%;
  display: grid;
  gap: .75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .3s ease;
}
.shell[data-world="ai"] .ai-progress.is-active { opacity: 1; pointer-events: auto; }
.ai-progress button {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: .65rem;
  border: 0;
  background: none;
  color: rgba(255,255,255,.35);
  font: 600 .68rem/1 Helvetica Neue, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ai-progress button::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.ai-progress button span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .3s ease, opacity .3s ease;
}
.ai-progress button:hover span,
.ai-progress button[aria-current="true"] span { max-width: 10rem; opacity: 1; }
.ai-progress button[aria-current="true"] { color: var(--ai-cyan); }
.ai-progress button[aria-current="true"]::before { background: var(--ai-cyan); box-shadow: 0 0 1rem var(--ai-cyan); }

@media (max-width: 800px) {
  #hb-ai-sections > section { min-height: auto; padding: 6rem 6vw; }
  #hb-ai-sections > .intro { min-height: 105vh; }
  #hb-ai-sections > .intro p { width: 100%; margin-left: 0; }
  #hb-ai-sections .tabs,
  #hb-ai-sections > .ai-scene:nth-child(4) .tabs { grid-template-columns: 1fr; }
  #hb-ai-sections .tabs button { min-height: 4.25rem; border-right: 0; border-bottom: 1px solid rgba(105,183,255,.2); }
  #hb-ai-sections .stats { grid-template-columns: 1fr; }
  #hb-ai-sections .stats > div { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(105,183,255,.2); }
  #hb-ai-sections .principles { grid-template-columns: 1fr; }
  #hb-ai-sections .principles > div { min-height: auto; border-right: 1px solid rgba(105,183,255,.2); border-bottom: 0; }
  #hb-ai-sections > .ai-scene:nth-child(4) > p:last-child { margin-left: 0; }
  .ai-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #hb-ai-sections .ai-signal,
  #hb-ai-sections .network::before,
  #hb-ai-sections .network::after,
  #hb-ai-sections .connector,
  #hb-ai-sections .eyebrow::before { animation: none; }
  .ai-motion-ready #hb-ai-sections [data-ai-reveal] { opacity: 1; transform: none; }
}
