.engine-mobile {
  display: none;
}

/* Premium cinematic motion layer */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

/* Page transition */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--navy);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-transition__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.page-transition.is-active .page-transition__line {
  animation: scanLine 0.5s var(--ease) forwards;
}

.page-transition__status {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

@keyframes scanLine {
  0% { transform: scaleX(0); top: 35%; }
  50% { transform: scaleX(1); top: 50%; }
  100% { transform: scaleX(0); transform-origin: right; top: 65%; }
}

/* Custom cursor */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor.is-ready { opacity: 1; }

.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}

.cursor__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.cursor.is-hover .cursor__ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  width: 56px;
  height: 56px;
}

.cursor__label {
  position: absolute;
  left: 0;
  top: 28px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
}

.cursor.is-hover .cursor__label { opacity: 1; }

.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

/* Hero computational layer */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
  pointer-events: none;
}

.hero__inner,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-boot {
  opacity: 0;
  transform: translateY(18px);
}

.hero.is-booted .hero-boot {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero.is-booted .hero-boot[data-boot="1"] { transition-delay: 0.15s; }
.hero.is-booted .hero-boot[data-boot="2"] { transition-delay: 0.35s; }
.hero.is-booted .hero-boot[data-boot="3"] { transition-delay: 0.5s; }
.hero.is-booted .hero-boot[data-boot="4"] { transition-delay: 0.65s; }
.hero.is-booted .hero-boot[data-boot="5"] { transition-delay: 0.8s; }
.hero.is-booted .hero-boot[data-boot="6"] { transition-delay: 0.95s; }

.tech-meta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.hero-meta {
  position: absolute;
  left: max(4%, calc((100% - var(--container)) / 2));
  bottom: 1.25rem;
}

/* Cinematic intro */
.cinematic-intro {
  position: relative;
  min-height: 120vh;
  padding: 6rem 0;
  overflow: hidden;
}

.cinematic-intro__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 28s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

.sys-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sys-labels span {
  position: absolute;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sys-labels span:nth-child(1) { top: 12%; left: 8%; }
.sys-labels span:nth-child(2) { top: 28%; right: 10%; }
.sys-labels span:nth-child(3) { bottom: 30%; left: 12%; }
.sys-labels span:nth-child(4) { bottom: 14%; right: 14%; }

.cinematic-intro__inner {
  position: relative;
  width: min(92%, var(--container));
  margin: 0 auto;
  z-index: 1;
}

.statement-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.45em;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 1.2rem 0 2.5rem;
  max-width: 16ch;
}

.statement-word {
  display: inline-block;
  opacity: 0.18;
  transform: translateY(40px) rotate(-2deg);
  filter: blur(2px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s ease;
}

.statement-word.is-aligned {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro-body {
  max-width: 38rem;
}

.intro-body p {
  margin-bottom: 1rem;
}

/* Partners & Clients */
.partners-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 165, 233, 0.08), transparent 55%),
    var(--navy);
}

.partners-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

.partners-shell {
  position: relative;
  z-index: 1;
  width: min(92%, var(--container));
  margin: 0 auto;
}

.partners-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.partners-header .sectionHeader {
  margin-inline: auto;
}

.partners-support {
  color: var(--muted-strong);
  margin-top: 0.75rem;
}

.partners-rail {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.partners-track {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
  width: max-content;
  animation: partnersMarquee 32s linear infinite;
}

.partners-rail:hover .partners-track {
  animation-play-state: paused;
}

.partner-card {
  margin: 0;
  flex: 0 0 auto;
  width: min(78vw, 280px);
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 50%),
    rgba(13, 19, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.partner-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.partner-card--light {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
}

.partner-card img {
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  display: block;
}

.partner-card:nth-child(3) img,
.partner-card:nth-child(4) img,
.partner-card:nth-child(7) img,
.partner-card:nth-child(8) img {
  max-height: 108px;
}

@keyframes partnersMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .partners-rail {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .partner-card[aria-hidden="true"] {
    display: none;
  }
}

/* Engine / services */
.engine-section {
  position: relative;
  height: 500vh;
  isolation: isolate;
}

.engine-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 35% at 15% 20%, rgba(14, 165, 233, 0.1), transparent 60%),
    radial-gradient(ellipse 45% 30% at 85% 60%, rgba(34, 211, 238, 0.06), transparent 55%);
  z-index: 0;
}

.engine-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: min(92%, var(--container));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
  z-index: 1;
}

.engine-header .sectionHeader {
  margin-bottom: 0.35rem;
}

.engine-lede,
.pipeline-lede {
  color: var(--muted-strong);
  max-width: 34rem;
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

.engine-stage {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .engine-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.engine-copy {
  position: relative;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(13, 19, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.engine-num {
  display: block;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34, 211, 238, 0.65);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.engine-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.engine-subtitle {
  color: var(--accent-strong);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.engine-desc {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 34rem;
}

.engine-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.16), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.08), transparent 40%),
    linear-gradient(165deg, rgba(18, 28, 46, 0.95), rgba(7, 11, 20, 0.98));
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(0, 0, 0, 0.35);
}

.engine-visual__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34, 211, 238, 0.06) 48%,
    transparent 52%
  );
  background-size: 100% 220%;
  animation: engineScan 4.5s linear infinite;
  mix-blend-mode: screen;
}

.engine-visual__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

.engine-visual__frame::before,
.engine-visual__frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(34, 211, 238, 0.65);
  border-style: solid;
}

.engine-visual__frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.engine-visual__frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

@keyframes engineScan {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}

.viz {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
  pointer-events: none;
}

.viz.is-active {
  opacity: 1;
  transform: none;
}

.arch-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.05), 0 10px 28px rgba(0, 0, 0, 0.25);
  animation: archPulse 3.6s ease-in-out infinite;
}

.arch-node:nth-child(2) { animation-delay: 0.35s; }
.arch-node:nth-child(3) { animation-delay: 0.7s; }
.arch-node:nth-child(4) { animation-delay: 1.05s; }
.arch-node:nth-child(5) { animation-delay: 1.4s; }

@keyframes archPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.05), 0 10px 28px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 0 22px rgba(34, 211, 238, 0.18); }
}

.arch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(34, 211, 238, 0.35);
  stroke-width: 0.4;
  fill: none;
}

.device-frame {
  width: min(70%, 220px);
  aspect-ratio: 10 / 16;
  margin: 8% auto 0;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 18px;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
}

.device-screen {
  height: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.2), rgba(7, 11, 20, 0.9));
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
}

.device-labels {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.viz-agents {
  display: grid;
  place-items: center;
}

.mini-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.mini-agent {
  position: absolute;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted-strong);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.8);
  opacity: 0.35;
  transition: opacity 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.mini-agent.is-on {
  opacity: 1;
  color: var(--white);
  border-color: rgba(34, 211, 238, 0.5);
}

.mini-agent[data-a="0"] { top: 14%; left: 50%; transform: translateX(-50%); }
.mini-agent[data-a="1"] { top: 38%; right: 10%; }
.mini-agent[data-a="2"] { bottom: 18%; right: 22%; }
.mini-agent[data-a="3"] { bottom: 18%; left: 22%; }
.mini-agent[data-a="4"] { top: 38%; left: 10%; }

.intel-flow {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--white);
}

.intel-arrow { color: var(--accent); }

.aisys-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--muted-strong);
}

.aisys-eq {
  text-align: center;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.engine-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.engine-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.35;
  transition: width 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.engine-dots button.is-active {
  width: 24px;
  opacity: 1;
  background: var(--accent);
}

/* Pipeline */
.pipeline-section {
  height: 280vh;
  position: relative;
  isolation: isolate;
}

.pipeline-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(14, 165, 233, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(34, 211, 238, 0.05), transparent 55%);
  z-index: 0;
}

.pipeline-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(92%, var(--container));
  margin: 0 auto;
  gap: 2rem;
  overflow: hidden;
  z-index: 1;
}

.pipeline-viewport {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 0.5rem;
}

.pipeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.pipeline-signal {
  position: absolute;
  top: -4px;
  left: 0;
  width: 14px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #67e8f9, #22d3ee);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.85), 0 0 40px rgba(14, 165, 233, 0.35);
  will-change: transform;
}

.pipeline-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.pipeline-stage {
  position: relative;
  width: min(72vw, 280px);
  padding: 1.45rem 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(13, 19, 32, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.42;
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease,
    transform 0.45s var(--ease),
    box-shadow 0.45s ease;
}

.pipeline-stage__glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pipeline-stage.is-active {
  opacity: 1;
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.pipeline-stage.is-active .pipeline-stage__glow {
  opacity: 1;
}

.pipeline-stage__index,
.pipeline-stage span {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pipeline-stage h3 {
  color: var(--white);
  margin: 0.55rem 0 0.45rem;
  font-size: 1.25rem;
}

.pipeline-stage p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Orbit workforce */
.orbit-section {
  width: min(92%, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.orbit-system {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 2.5rem auto 1.5rem;
}

.orbit-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(7, 11, 20, 0.85);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.18);
  z-index: 2;
}

.orbit-core span {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  color: var(--white);
  padding: 0.4rem;
}

.orbit-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 0.3;
}

.orbit-agent {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--navy-border);
  background: rgba(13, 19, 32, 0.92);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.45s ease, transform 0.45s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 3;
}

.orbit-agent.is-connected {
  opacity: 1;
}

.orbit-agent.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.orbit-agent__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.orbit-agent__role {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.3;
}

.agent-panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  background: var(--navy-elevated);
}

.agent-panel.has-portrait {
  max-width: 440px;
  padding-top: 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    var(--navy-elevated);
}

.agent-panel__portrait {
  position: relative;
  margin: -0.15rem -0.25rem 1rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(14, 165, 233, 0.2), transparent 65%),
    linear-gradient(180deg, rgba(13, 19, 32, 0.2), rgba(7, 11, 20, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.2);
  aspect-ratio: 5 / 4;
  animation: agent-portrait-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.agent-panel__portrait[hidden] {
  display: none;
}

.agent-panel__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(14, 165, 233, 0.22));
}

.agent-panel__portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(13, 19, 32, 0.55));
  pointer-events: none;
}

@keyframes agent-portrait-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.agent-panel[hidden] { display: none; }

.workforce-moment {
  text-align: center;
  margin-top: 2rem;
  min-height: 2rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-strong);
}

.workforce-moment span {
  display: none;
}

.workforce-moment span.is-on {
  display: inline;
}

/* Collaboration — superseded by hxai.css */
.collab-section { display: none; }


/* Gallery */
.gallery-section {
  padding: 4rem 0 2rem;
}

.gallery-intro {
  width: min(92%, var(--container));
  margin: 0 auto 1.5rem;
}

.gallery-pin {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 1rem max(4%, calc((100% - var(--container)) / 2));
  will-change: transform;
}

.gallery-panel {
  width: min(82vw, 720px);
  min-height: 420px;
  padding: 2rem;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.1), transparent 40%),
    var(--navy-elevated);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.gallery-panel:hover {
  transform: scale(1.015);
  border-color: rgba(34, 211, 238, 0.35);
}

.gallery-panel h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin: 0.5rem 0 0.75rem;
}

.gallery-cta {
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-panel:hover .gallery-cta {
  opacity: 1;
  transform: none;
}

/* Research lab */
.lab-section {
  width: min(92%, var(--container));
  margin: 0 auto;
  padding: 4rem 0;
}

.lab-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(14, 165, 233, 0.12), transparent 55%),
    var(--navy-elevated);
}

.lab-fragments {
  position: relative;
  min-height: 120px;
  margin: 1.5rem 0;
}

.lab-fragments span {
  position: absolute;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.55);
  transition: transform 0.8s var(--ease), opacity 0.8s ease, color 0.8s ease;
}

.lab-fragments span:nth-child(1) { left: 8%; top: 20%; }
.lab-fragments span:nth-child(2) { left: 35%; top: 5%; }
.lab-fragments span:nth-child(3) { left: 62%; top: 30%; }
.lab-fragments span:nth-child(4) { left: 18%; top: 65%; }
.lab-fragments span:nth-child(5) { left: 48%; top: 70%; }
.lab-fragments span:nth-child(6) { left: 75%; top: 55%; }

.lab-panel.is-converged .lab-fragments span {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.lab-insight {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: scale(0.9);
  margin-bottom: 1.5rem;
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.lab-panel.is-converged .lab-insight {
  opacity: 1;
  transform: none;
}

/* Artisans preview softens tech */
.artisans-preview {
  width: min(92%, var(--container));
  margin: 0 auto;
  padding: 5rem 0;
}

/* System ready CTA */
.system-ready {
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(14, 165, 233, 0.1), transparent 70%),
    var(--navy);
}

.system-status {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.system-status strong {
  color: var(--accent);
  margin-left: 0.5rem;
}

.system-ready__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.system-ready__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--accent-strong);
  margin-bottom: 2rem;
}

.btn-cta-ready {
  min-width: 220px;
}

.footerCopyright--tech {
  flex-direction: column;
  gap: 0.35rem;
}

.footer-license {
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  color: var(--muted) !important;
}

.footer-license strong {
  color: var(--accent);
  font-weight: 700;
}

.license-block {
  width: min(92%, var(--container));
  margin: 0 auto 4rem;
}

.license-block__inner {
  padding: 1.5rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(13, 19, 32, 0.65);
}

.license-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

@media (min-width: 700px) {
  .license-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

.license-grid dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.license-grid dd {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.sys-online {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 600;
}

.sys-online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.45rem;
  box-shadow: 0 0 8px var(--accent);
}

/* Micro interactions */
.text-link {
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.text-link:hover::after {
  width: 100%;
}

/* Mobile / reduced motion */
@media (max-width: 899px) {
  .cursor { display: none !important; }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button { cursor: auto; }

  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-brand {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.08;
  }

  .hero .btnContainer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-visual {
    max-width: min(88vw, 360px);
    margin-inline: auto;
    width: 100%;
  }

  .hero-visual img,
  .hero-visual__img {
    max-width: 100%;
  }

  .hero-canvas {
    opacity: 0.35 !important;
  }

  .engine-section,
  .pipeline-section {
    height: auto !important;
  }

  .engine-sticky,
  .pipeline-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: 3.5rem 0;
    overflow: visible;
  }

  .engine-stage,
  .engine-dots,
  .engine-header + .engine-stage {
    display: none !important;
  }

  .engine-header {
    margin-bottom: 1.5rem;
  }

  .engine-mobile {
    display: grid;
    gap: 1rem;
  }

  .engine-mobile-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 1.35rem 1.2rem;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 45%),
      rgba(13, 19, 32, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
  }

  .engine-mobile-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% -30%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.14), transparent 70%);
    pointer-events: none;
  }

  .engine-mobile-card .engine-num {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
  }

  .engine-mobile-card .engine-title {
    font-size: 1.55rem;
  }

  .pipeline-viewport {
    overflow: visible;
    padding-top: 0;
  }

  .pipeline-track {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100% !important;
    transform: none !important;
    gap: 0;
    position: relative;
    padding-left: 1.4rem;
  }

  .pipeline-track::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), rgba(148, 163, 184, 0.2));
  }

  .pipeline-stage {
    width: 100%;
    opacity: 1;
    margin-bottom: 0.85rem;
    position: relative;
    transform: none !important;
  }

  .pipeline-stage::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 1.5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
  }

  .pipeline-line { display: none; }

  .gallery-pin {
    overflow: visible;
  }

  .gallery-track {
    display: grid !important;
    grid-template-columns: 1fr;
    width: min(92%, var(--container)) !important;
    margin: 0 auto;
    padding: 0;
    gap: 1rem;
    transform: none !important;
  }

  .gallery-panel {
    width: 100%;
    min-height: 260px;
  }

  .gallery-cta {
    opacity: 1;
    transform: none;
  }

  .orbit-system {
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0.5rem;
  }

  .orbit-core {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .orbit-rings {
    display: none;
  }

  .orbit-agent {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 56px;
    transform: none !important;
    opacity: 0;
    margin: 0 0 0.65rem 1.1rem;
    text-align: left;
  }

  .orbit-agent.is-connected {
    opacity: 1;
  }

  .orbit-agent::before {
    content: '';
    position: absolute;
    left: -1.1rem;
    top: -0.65rem;
    bottom: -0.65rem;
    width: 1px;
    background: rgba(34, 211, 238, 0.35);
  }

  .orbit-agent::after {
    content: '';
    position: absolute;
    left: calc(-1.1rem - 3px);
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
  }

  .lab-fragments span {
    position: static;
    display: inline-block;
    margin: 0.25rem;
  }

  .lab-fragments {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
  }

  .lab-panel.is-converged .lab-fragments span {
    opacity: 0.25;
    transform: none;
    left: auto;
    top: auto;
  }

  .nav-link a {
    min-height: 48px;
  }

  .nav-cta .btn-nav {
    min-height: 52px;
  }

  .project-form .contactInput,
  .project-form select.contactInput,
  .btn,
  #barContainer,
  .menu-toggle {
    min-height: 48px;
  }

  .sociallink {
    width: 44px;
    height: 44px;
  }

  .project-form label {
    margin-bottom: 0.5rem;
  }

  .project-form .contactInput,
  .project-form select.contactInput {
    font-size: 16px;
    padding: 0.95rem 1rem;
  }

  .project-init__copy .sectionHeader {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .engine-mobile {
    display: grid;
  }
}

@media (min-width: 900px) {
  .engine-mobile {
    display: none !important;
  }
}

@media (max-width: 374px) {
  .hero-brand {
    font-size: 1.85rem;
  }

  .statement-line {
    font-size: 1.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Content visibility for below-fold sections */
.partners-section,
.pipeline-section,
.office-section,
.gallery-section,
.lab-section,
.system-ready {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-intro__grid,
  .hero-canvas,
  .cursor,
  .page-transition__line,
  .engine-visual__scan,
  .partners-track,
  .meet-bay::after {
    animation: none !important;
  }

  .hero-boot,
  .statement-word,
  .viz,
  .orbit-agent {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .engine-section,
  .pipeline-section {
    height: auto !important;
  }

  .engine-sticky,
  .pipeline-sticky {
    position: relative !important;
    height: auto !important;
  }
}
