/* ═══════════════════════════════════════════════════════════════
   Neon mission story (enterprise.html)
   A pinned section: the 3D scene in canvas/hero-scene-neon.js plays four
   steps (Fly → Map → Analyse → Act) while the visitor scrolls through it.
   Same markup classes as the homepage hero (.innovation-hero, .ih-*).
   ═══════════════════════════════════════════════════════════════ */

/* ── Innovation Hero (full-bleed dark canvas section) ──────── */
.innovation-hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  /* neon-terrain fallback while the 3D scene loads (or if WebGL is unavailable) */
  background: #060B18 linear-gradient(180deg, #020109 0%, #0B0520 38%, #3B0E48 50%, #14062A 58%, #050310 100%);
  border-bottom: 1px solid var(--line);
}

#hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  transform-origin: right center;
  transform: scale(1.5);
}

#asciiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
}

.ih-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 5;
  pointer-events: none;
}

@media(min-width:1024px) {
  .ih-corner {
    width: 44px;
    height: 44px
  }
}

.ih-corner-tl {
  top: 20px;
  left: 20px;
  border-top: 2px solid rgba(255, 255, 255, .2);
  border-left: 2px solid rgba(255, 255, 255, .2)
}

.ih-corner-tr {
  top: 20px;
  right: 20px;
  border-top: 2px solid rgba(255, 255, 255, .2);
  border-right: 2px solid rgba(255, 255, 255, .2)
}

.ih-corner-bl {
  left: 20px;
  bottom: 48px;
  border-bottom: 2px solid rgba(255, 255, 255, .2);
  border-left: 2px solid rgba(255, 255, 255, .2)
}

.ih-corner-br {
  right: 20px;
  bottom: 48px;
  border-bottom: 2px solid rgba(255, 255, 255, .2);
  border-right: 2px solid rgba(255, 255, 255, .2)
}

.ih-inner {
  position: relative;
  z-index: 10;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 24px;
}

@media(min-width:1024px) {
  .ih-inner {
    padding: 48px 64px
  }
}

.ih-cta {
  max-width: 34rem;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  padding: 28px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
}

@media(min-width:1024px) {
  .ih-cta {
    margin-left: auto
  }
}

.ih-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  opacity: .8
}

.ih-topline .bar {
  width: 32px;
  height: 1px;
  background: #fff
}

.ih-topline .bar.flex {
  flex: 1;
  width: auto
}

.ih-topline .infinity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff
}

.ih-headline {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}

@media(min-width:1024px) {
  .ih-headline {
    font-size: 48px
  }
}

.ih-lede {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
  margin: 0 0 26px;
  max-width: 44ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

@media(min-width:1024px) {
  .ih-lede {
    font-size: 15px
  }
}

.ih-btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px
}

@media(min-width:1024px) {
  .ih-btn-row {
    flex-direction: row
  }
}

.tech-btn {
  position: relative;
  padding: 11px 22px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1.5px solid rgba(255, 255, 255, .7);
  text-decoration: none;
  text-align: center;
  transition: background .2s, color .2s;
  backdrop-filter: blur(4px);
}

.tech-btn:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff
}

.tech-btn.filled {
  background: var(--gradient);
  border-color: transparent
}

.tech-btn.filled:hover {
  filter: brightness(1.08)
}

.ih-bottom-note {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  opacity: .7;
}

@media(min-width:1024px) {
  .ih-bottom-note {
    display: flex
  }
}

.ih-bottom-note .bar {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .3)
}

.ih-bottom-note span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(255, 255, 255, .7)
}

.ih-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
}

.ih-status-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .65);
}

@media(min-width:1024px) {
  .ih-status-inner {
    padding: 12px 32px;
    font-size: 10px
  }
}

.ih-bars {
  display: none;
  gap: 3px
}

@media(min-width:1024px) {
  .ih-bars {
    display: flex
  }
}

.ih-bars i {
  width: 3px;
  background: rgba(255, 255, 255, .5);
  opacity: .5;
  display: block
}

.ih-pulse {
  display: flex;
  gap: 3px
}

.ih-pulse i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
  animation: ihPulse 1.4s ease-in-out infinite;
  background: var(--c3);
}

.ih-pulse i:nth-child(2) {
  animation-delay: .2s;
  opacity: .7
}

.ih-pulse i:nth-child(3) {
  animation-delay: .4s;
  opacity: .4
}

@keyframes ihPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ── Scroll story ───────────────────────────────────────────────
   canvas/hero-scene-neon.js adds .is-story: the hero pins while the visitor scrolls
   through four steps (data-step 0–4). Without it, the hero is a normal hero. */
.innovation-hero.is-story {
  height: calc(100vh - var(--ih-top, 0px) + 320vh);
  height: calc(100svh - var(--ih-top, 0px) + 320svh);
  min-height: 0;
  padding: 0;
  overflow: visible;
}
.is-story .ih-sticky {
  position: sticky;
  top: var(--ih-top, 0px);
  height: calc(100vh - var(--ih-top, 0px));
  height: calc(100svh - var(--ih-top, 0px));
  overflow: hidden;
}
.is-story .ih-inner { position: absolute; inset: 0; min-height: 0; }
.is-story .ih-cta { transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1), visibility 0s; }
.is-story:not([data-step="0"]) .ih-cta {
  opacity: 0; transform: translateY(-18px); visibility: hidden;
  transition: opacity .4s ease, transform .5s ease, visibility 0s .5s;
}

.ih-steps, .ih-rail { display: none; }
.is-story .ih-steps {
  display: block; position: absolute; z-index: 11; top: 50%; right: 24px;
  width: min(30rem, calc(100% - 48px)); margin: 0; padding: 0; list-style: none; pointer-events: none;
}
@media(min-width:1024px) { .is-story .ih-steps { right: 64px } }
.ih-step {
  position: absolute; left: 0; right: 0; top: 0; opacity: 0;
  transform: translateY(calc(-50% + 26px));
  padding: 26px 28px 24px; border-radius: 6px; color: #fff;
  background: rgba(6, 4, 18, .52); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.ih-step::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #FF6A00, #E63B56, #B31BBE, #6A1BFF);
}
.is-story[data-step="1"] .ih-step:nth-child(1),
.is-story[data-step="2"] .ih-step:nth-child(2),
.is-story[data-step="3"] .ih-step:nth-child(3),
.is-story[data-step="4"] .ih-step:nth-child(4) { opacity: 1; transform: translateY(-50%); }
.ih-step-num { font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: #4FE3FF; }
.ih-step h2 {
  font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12;
  letter-spacing: .01em; margin: 12px 0 10px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.ih-step p { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .82); margin: 0; }
.ih-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.ih-chips li {
  font: 500 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(79, 227, 255, .35); color: #CFF7FF; background: rgba(79, 227, 255, .07);
}

.is-story .ih-rail {
  display: flex; position: absolute; z-index: 11; left: 50%; bottom: 56px; transform: translateX(-50%);
  align-items: center; gap: 22px; padding-bottom: 10px; white-space: nowrap;
  font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.ih-rail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, #4FE3FF calc(var(--story, 0) * 100%), rgba(255, 255, 255, .14) 0);
}
.ih-rail ol { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ih-rail ol li { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.ih-rail ol li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .4s, box-shadow .4s; }
.is-story[data-step="1"] .ih-rail ol li:nth-child(1),
.is-story[data-step="2"] .ih-rail ol li:nth-child(2),
.is-story[data-step="3"] .ih-rail ol li:nth-child(3),
.is-story[data-step="4"] .ih-rail ol li:nth-child(4) { color: #4FE3FF; }
.is-story[data-step="1"] .ih-rail ol li:nth-child(1)::before,
.is-story[data-step="2"] .ih-rail ol li:nth-child(2)::before,
.is-story[data-step="3"] .ih-rail ol li:nth-child(3)::before,
.is-story[data-step="4"] .ih-rail ol li:nth-child(4)::before { background: #4FE3FF; box-shadow: 0 0 10px #4FE3FF; }
.ih-hint { color: rgba(255, 255, 255, .78); transition: opacity .4s; }
.is-story:not([data-step="0"]) .ih-hint { opacity: 0; }
.ih-skip { color: rgba(255, 255, 255, .7); text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 18px; }
.ih-skip:hover, .ih-skip:focus-visible { color: #fff; }

@media(max-width:767px) {
  .is-story .ih-steps { top: auto; bottom: 62px; left: 16px; right: 16px; width: auto; }
  .ih-step { top: auto; bottom: 0; transform: translateY(26px); padding: 20px 20px 18px; }
  .is-story[data-step="1"] .ih-step:nth-child(1),
  .is-story[data-step="2"] .ih-step:nth-child(2),
  .is-story[data-step="3"] .ih-step:nth-child(3),
  .is-story[data-step="4"] .ih-step:nth-child(4) { transform: none; }
  .is-story .ih-rail { left: auto; right: 16px; top: 16px; bottom: auto; transform: none; padding: 0; }
  .ih-rail::after, .ih-rail ol, .ih-hint { display: none; }
  .ih-skip { border: 0; padding: 7px 12px; border-radius: 99px; background: rgba(0, 0, 0, .4); }
}
@media (prefers-reduced-motion: reduce) {
  .ih-step, .is-story .ih-cta { transition-duration: .01s !important; }
}
