/* ═══════════════════════════════════════════════════════
   FLOWSLABS — Ultra Premium Design System v5.0
   Three.js · Lenis · GSAP · Anime.js · CSS Houdini
   ═══════════════════════════════════════════════════════ */

/* ── CSS HOUDINI: Register custom property for conic-gradient animation ── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --shimmer-x {
  syntax: '<percentage>';
  initial-value: -30%;
  inherits: false;
}

/* ── SCROLL-DRIVEN ANIMATION (CSS native, Chrome 115+) ── */
@keyframes navShrink {
  from { --nav-h: 70px; backdrop-filter: blur(0px); background: transparent; }
  to   { --nav-h: 56px; backdrop-filter: blur(20px); background: rgba(10,10,10,0.92); }
}

/* ── Service card Houdini border laser effect ── */
@keyframes rotateBorderLaser {
  to { --border-angle: 360deg; }
}
.svc-item::after {
  content: '';
  position: absolute; inset: -1px; border-radius: 13px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    rgba(249,115,22,0) 60deg,
    rgba(249,115,22,0.9) 90deg,
    rgba(255,202,128,1) 100deg,
    rgba(249,115,22,0.9) 110deg,
    rgba(249,115,22,0) 150deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  animation: rotateBorderLaser 2.5s linear infinite;
  pointer-events: none;
  transition: opacity .4s ease;
}
.svc-item:hover::after { opacity: 1; }

/* ── Shimmer sweep on CLI logo items ── */
@keyframes shimmerSweep {
  from { --shimmer-x: -30%; }
  to   { --shimmer-x: 130%; }
}
.cli-img-wrap::after {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 65%,
    transparent 100%
  );
  background-position: var(--shimmer-x) 0;
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  animation: shimmerSweep 1.2s ease forwards;
  animation-play-state: paused;
}
.cli-logo-item:hover .cli-img-wrap { position: relative; }
.cli-logo-item:hover .cli-img-wrap::after {
  opacity: 1;
  animation-play-state: running;
}

/* ── SKILL: CSS native scroll-driven animation (Chrome 115+) ──
   Navbar background fades in as user scrolls — zero JS needed */
@supports (animation-timeline: scroll()) {
  @keyframes navScrollFade {
    from { background: rgba(10,10,10,0);     backdrop-filter: blur(0px); }
    to   { background: rgba(10,10,10,0.92);  backdrop-filter: blur(18px); }
  }
  #navbar {
    animation: navScrollFade linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 120px;
  }
}

/* ── SKILL: CSS scroll-driven — Hero tagline parallax ── */
@supports (animation-timeline: scroll()) {
  @keyframes heroParallax {
    from { transform: translateY(0px); }
    to   { transform: translateY(60px); }
  }
  .hero-tagline {
    animation: heroParallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 600px;
  }
}

/* ── Text scramble base ── */
.scramble-char {
  display: inline;
  color: rgba(249,115,22,0.65);
}

/* ── GSAP counter target ── */
.mn[data-count] { font-variant-numeric: tabular-nums; }

/* ── Anime.js letter split ── */
.anime-split .letter {
  display: inline-block; will-change: transform, opacity;
}

@font-face {
  font-family: 'Hanca';
  src: url('fonts/Hanca/Hanca_Regular.otf') format('opentype');
  font-weight: 400 900;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --orange:  #F97316;
  --orange2: #E06010;
  --teal:    #1A6478;
  --teal2:   #0D4B5A;
  --black:   #0A0A0A;
  --black2:  #101010;
  --black3:  #161616;
  --dark:    #1A1A1A;
  --white:   #FFFFFF;
  --grey:    #999999;
  --grey2:   #555555;
  --display: 'Hanca', 'Bebas Neue', sans-serif;
  --body:    'Montserrat', sans-serif;
  --mono:    'DM Mono', monospace;
  --nav-h:   70px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  background: var(--black); color: var(--white);
  font-family: var(--body); line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── GRAIN ─── */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022; mix-blend-mode: overlay;
}

/* ─── PAGE LOADER ─── */
#loader {
  position: fixed; inset: 0; z-index: 99999; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ldr-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: min(320px,80vw); }
.ldr-logo { width: 180px; animation: ldrPulse 1.5s ease-in-out infinite; }
@keyframes ldrPulse {
  0%,100% { opacity: .6; filter: brightness(.8); }
  50%      { opacity: 1;  filter: brightness(1.2) drop-shadow(0 0 20px rgba(249,115,22,.5)); }
}
.ldr-bar { width: 100%; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
#ldrFill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--orange)); border-radius: 2px; transition: width .1s linear; }
#ldrPct  { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; color: var(--grey); }

/* ─── CUSTOM CURSOR + TRAIL ─── */
#cursorDot {
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%); transition: width .15s, height .15s, opacity .2s; mix-blend-mode: screen;
}
#cursorRing {
  width: 38px; height: 38px; border: 1.5px solid rgba(249,115,22,.5); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); transition: width .35s var(--ease), height .35s var(--ease), border-color .3s;
}
#cursorDot.hovered  { width: 12px; height: 12px; }
#cursorRing.hovered { width: 60px; height: 60px; border-color: var(--orange); }
#cursorDot.clicked  { width: 18px; height: 18px; opacity: .8; }
.trail-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); opacity: 0;
}
@media (hover: none) { #cursorDot, #cursorRing, .trail-dot { display: none; } }

/* ─── NEURAL SPHERE (Nuestro Enfoque) ─── */
.neural-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 780px;
  background: radial-gradient(ellipse at 50% 50%, rgba(249,115,22,0.06) 0%, rgba(26,100,120,0.12) 45%, rgba(8,8,8,0) 80%);
  border-radius: 4px;
  overflow: hidden;
}
.neural-canvas {
  width: 100%; height: 520px; display: block;
  filter: drop-shadow(0 0 40px rgba(249,115,22,0.15)) drop-shadow(0 0 80px rgba(26,100,120,0.1));
}
/* Floating data tags */
.neural-data-tags { position: absolute; inset: 0; pointer-events: none; }
.ndt {
  position: absolute; font-family: var(--mono); font-size: .5rem; letter-spacing: .12em;
  color: var(--orange); background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.25);
  padding: 3px 8px; border-radius: 3px; animation: hudBlink 3s ease-in-out infinite;
}
.ndt-1 { top: 18%; left: 6%; animation-delay: 0s; }
.ndt-2 { bottom: 30%; right: 5%; animation-delay: 0.8s; }
.ndt-3 { top: 62%; left: 4%; animation-delay: 1.6s; color: #1A6478; border-color: rgba(26,100,120,.3); background: rgba(26,100,120,.08); }

/* Client logos — use actual images on dark bg */
@keyframes androidFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}

/* HUD corner decorations */
.and-corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--orange); border-style: solid;
}
.and-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.and-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.and-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.and-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.and-hud-badge {
  position: absolute; font-family: var(--mono); font-size: .55rem;
  letter-spacing: .14em; color: var(--orange);
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.3);
  padding: 3px 9px; border-radius: 3px;
  animation: hudBlink 3.2s ease-in-out infinite;
}
.and-top { top: 12px; left: 50%; transform: translateX(-50%); }
.and-bot { bottom: 12px; left: 50%; transform: translateX(-50%); }

/* Scan line over android */
.and-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.6), transparent);
  animation: andScan 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes andScan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: .8; }
  95%  { opacity: .8; }
  100% { top: 100%; opacity: 0; }
}

/* Android SVG animations */
@keyframes coreGlow {
  0%,100% { opacity: .9; }
  50%      { opacity: .3; }
}
@keyframes coreInner {
  0%,100% { opacity: 1; r: 11px; }
  50%      { opacity: .5; r: 7px; }
}
@keyframes kneeGlow {
  0%,100% { opacity: .85; }
  50%      { opacity: .3; }
}
@keyframes visorPulse {
  0%,100% { opacity: .55; }
  50%      { opacity: .25; }
}
@keyframes visorInner {
  0%,100% { opacity: .95; }
  60%      { opacity: .75; }
}
@keyframes eyeScan {
  0%   { transform: translateX(0); opacity: .7; }
  75%  { transform: translateX(74px); opacity: .7; }
  76%  { opacity: 0; }
  77%  { transform: translateX(0); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes sensorBlink {
  0%,88%,100% { opacity: 1; }
  90% { opacity: 0; }
  93% { opacity: 1; }
  96% { opacity: 0; }
}

.and-core-glow   { animation: coreGlow 2s ease-in-out infinite; }
.and-core-inner  { animation: coreGlow 1.6s ease-in-out infinite; }
.and-core-center { animation: coreGlow 1.2s ease-in-out infinite; }
.and-knee-glow   { animation: kneeGlow 2.4s ease-in-out infinite; }
.and-visor-glow  { animation: visorPulse 2.8s ease-in-out infinite; }
.and-visor-inner { animation: visorInner 2.8s ease-in-out infinite; }
.and-eye-scan    { animation: eyeScan 3.5s ease-in-out infinite; }
.and-sensor      { animation: sensorBlink 4s ease-in-out infinite; }

/* ─── SHARED ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.dh2 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-weight: 900; line-height: .93; letter-spacing: .01em; text-transform: uppercase;
  overflow-wrap: break-word; word-break: break-word;
}
.orange { color: var(--orange); }
.teal   { color: var(--teal); }
.hlm { background: var(--orange); color: #000; padding: 2px 10px; font-style: normal; }
.orange-star { color: var(--orange); }
.teal-star   { color: var(--teal); }
.star { font-size: 1.6rem; line-height: 1; }

/* ─── REVEAL ANIMATIONS (IntersectionObserver-driven) ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}

/* ─── BUTTONS ─── */
.btn-orange {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #000; font-family: var(--body);
  font-weight: 700; font-size: .9rem; padding: 14px 34px; border-radius: 100px;
  transition: transform .2s, box-shadow .2s;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(249,115,22,.45); }
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,.25); color: var(--white);
  font-weight: 600; font-size: .9rem; padding: 14px 30px; border-radius: 100px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--orange); background: rgba(249,115,22,.08); }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--orange); color: #000;
  font-weight: 700; font-size: .95rem; padding: 16px;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(249,115,22,.45); }
.btn-cta {
  padding: 10px 26px; background: var(--orange); color: #000;
  font-weight: 700; font-size: .8rem; letter-spacing: .05em;
  border-radius: 100px; white-space: nowrap; transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,.4); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  transition: background .4s, backdrop-filter .4s, border-bottom .4s;
}
.navbar.scrolled {
  background: rgba(8,8,8,.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(249,115,22,.12);
}
.nav-wrap {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 2.5rem; display: flex; align-items: center; gap: 2.5rem;
}
.nav-logo img { height: 38px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; margin: 0 auto; }
.nav-links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--grey); position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--orange); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #0A0A0A;
}
#threeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Orbit rings */
.orbit-rings { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.left-orbit  { left: -100px; }
.right-orbit { right: -100px; }
.orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.15);
}
.left-orbit .orb  { animation: orbitSpin 20s linear infinite; }
.right-orbit .orb { animation: orbitSpin 20s linear infinite reverse; }
.orb.r1 { width: 200px; height: 200px; }
.orb.r2 { width: 320px; height: 320px; border-color: rgba(255,255,255,.08); animation-duration: 35s; }
.orb.r3 { width: 440px; height: 440px; border-color: rgba(255,255,255,.04); animation-duration: 50s; }
@keyframes orbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
.orb-cross { position: absolute; top: 50%; left: 50%; background: rgba(255,255,255,.12); }
.ov { width: 1.5px; height: 440px; transform: translate(-50%,-50%); }
.oh { width: 440px; height: 1.5px; transform: translate(-50%,-50%); }

/* Hero content */
.hero-center {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 5rem; max-width: 860px;
}
.hero-logo-wrap { margin-bottom: 2.5rem; }
.hero-main-logo {
  width: min(580px, 82vw);
  filter: drop-shadow(0 0 50px rgba(249,115,22,.4)) drop-shadow(0 0 100px rgba(249,115,22,.15));
  /* No float animation — static logo as requested */
}
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 2.1rem); font-weight: 400; letter-spacing: .05em;
  color: rgba(255,255,255,.9); margin-bottom: 2.2rem;
}
.hero-card {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  max-width: 560px;
  padding: 0;
}
.hero-card p { font-size: .93rem; color: rgba(255,255,255,.75); margin-bottom: 1.8rem; line-height: 1.7; }
.hero-card-btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .5;
}
.scroll-line { width: 1.5px; height: 50px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.scroll-dot { width: 100%; height: 35%; background: var(--orange); border-radius: 2px; animation: scrollFall 1.8s ease-in-out infinite; }
@keyframes scrollFall {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(180%); }
  100% { transform: translateY(180%); }
}
.scroll-cue span { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; }

/* ─── TECH IMAGE FRAME ─── */
.tech-img-frame { position: relative; border-radius: 4px; overflow: hidden; }
.tech-img-frame img { width: 100%; display: block; transition: transform .7s var(--ease); }
.tech-img-frame:hover img { transform: scale(1.04); }
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px; top: -4px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  animation: scanAnim 3.5s ease-in-out infinite;
}
@keyframes scanAnim {
  0%   { top: -4px; opacity: 0; }
  8%   { opacity: .8; }
  92%  { opacity: .8; }
  100% { top: 100%; opacity: 0; }
}
.corner { position: absolute; width: 20px; height: 20px; border-color: var(--orange); border-style: solid; }
.corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.hud-badge {
  position: absolute; font-family: var(--mono); font-size: .6rem; letter-spacing: .15em;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.4);
  padding: 4px 10px; border-radius: 3px; color: var(--orange); animation: hudBlink 3s ease-in-out infinite;
}
.top-right { top: 16px; right: 16px; }
.bot-left  { bottom: 16px; left: 16px; }
@keyframes hudBlink { 0%,80%,100% { opacity: 1; } 85% { opacity: .2; } }

/* ─── NUESTRO ENFOQUE ─── */
.s-enfoque { position: relative; background: var(--black); padding: 0 0 8rem; overflow: hidden; }
.accent-bars { display: flex; margin-bottom: 5rem; }
.ab { height: 5px; flex: 1; }
.orange-ab { background: var(--orange); }
.teal-ab   { background: var(--teal); }
.enfoque-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.enfoque-left .dh2 { margin-bottom: 2rem; }
.enfoque-left p { color: var(--grey); font-size: .92rem; margin-bottom: 1.2rem; text-align: justify; }
.vm-cards { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2.5rem; }
.vm-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.2rem 1.5rem; border: 1.5px solid var(--orange); border-radius: 4px;
  background: rgba(249,115,22,.04); transition: background .3s, box-shadow .3s;
}
.vm-card:hover { background: rgba(249,115,22,.08); box-shadow: 0 0 30px rgba(249,115,22,.1); }
.vmc-icon { flex-shrink: 0; width: 40px; height: 40px; color: var(--orange); }
.vmc-icon svg { width: 100%; height: 100%; }
.vm-card strong { display: block; font-size: .82rem; letter-spacing: .07em; color: var(--orange); margin-bottom: .4rem; }
.vm-card p { font-size: .83rem; color: var(--grey); line-height: 1.6; }
.vm-card em { font-style: normal; font-weight: 600; color: var(--white); }

/* ─── EXPERTOS ─── */
.s-expertos {
  position: relative; background: var(--black); padding: 7rem 0; overflow: hidden;
  border-top: 1px solid rgba(249,115,22,0.12);
  border-bottom: 1px solid rgba(26,100,120,0.12);
}
.expertos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}

/* Image col */
.tech-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 1.8rem 1.6rem;
  display: flex; gap: 2rem;
}
.tio-badge { display: flex; flex-direction: column; gap: .2rem; }
.tio-num { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--white); }
.tio-num.orange { color: var(--orange); }
.tio-lbl { font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; color: rgba(255,255,255,.55); line-height: 1.4; text-transform: uppercase; }

/* Text col */
.exp-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .25em; color: var(--orange);
  border: 1px solid rgba(249,115,22,.3); padding: 4px 12px; border-radius: 3px;
  margin-bottom: 1.6rem;
}
.exp-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .92; margin-bottom: 0; letter-spacing: .02em;
  color: var(--white); overflow-wrap: break-word;
}
.exp-mark {
  display: inline-block;
  background: var(--orange); color: #000;
  padding: 2px 10px; font-style: normal;
}
.exp-sep { width: 60px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--orange)); margin: 1.8rem 0; }
.exp-right p { color: var(--grey); font-size: .92rem; margin-bottom: 1rem; line-height: 1.75; }
.exp-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem;
}
.exp-tags span {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  transition: border-color .2s, color .2s;
}
.exp-tags span:hover { border-color: rgba(249,115,22,.4); color: var(--orange); }

/* ─── MÉTRICAS ─── */
.s-metrics { position: relative; background: #0D0D0D; padding: 8rem 0; overflow: hidden; }
#matrixCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; }
.s-metrics .container { position: relative; z-index: 1; }
.metrics-cap {
  display: block; text-align: center; font-size: 1.05rem;
  background: var(--teal2); padding: 10px 24px; margin-bottom: 3.5rem; color: var(--white);
}
.metrics-cap strong { font-weight: 700; }
.metrics-wrap {
  border: 1.5px solid var(--orange); border-radius: 6px;
  background: rgba(16,16,16,.85); padding: 3.5rem;
  display: flex; align-items: center; justify-content: space-around; gap: 2rem;
}
.metric-item { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.mn { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1; }
.mn.orange { color: var(--orange); text-shadow: 0 0 30px rgba(249,115,22,.5); }
.ml { font-family: var(--display); font-size: .88rem; font-weight: 600; letter-spacing: .1em; color: var(--teal); text-align: center; }
.ms { width: 1px; height: 72px; background: rgba(249,115,22,.25); }
.metrics-dec { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.dl { height: 3px; flex: 1; }
.orange-dl { background: var(--orange); }
.teal-dl   { background: var(--teal); }

/* Service card visualizations */
.svc-viz {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; height: 90px; pointer-events: none;
  opacity: 0.35; border-radius: 12px 12px 0 0;
  transition: opacity .4s;
}
.svc-item:hover .svc-viz { opacity: 0.65; }
.svc-item { padding-top: 6.5rem; } /* make room for viz canvas */

/* ─── SERVICIOS (GRID — max attention) ─── */
.s-services { background: var(--black); padding-bottom: 8rem; }

.svc-intro {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start;
  padding-top: 7rem; padding-bottom: 5rem;
}
.svc-intro-l .dh2 { margin-bottom: 1.5rem; }
.svc-ul { height: 3px; background: linear-gradient(90deg, var(--orange), transparent); width: 100%; }
.svc-intro-r p { color: var(--grey); font-size: .92rem; margin-bottom: 1.2rem; text-align: justify; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.svc-item {
  background: var(--black3);
  border: 1px solid rgba(255,255,255,.06);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  padding: 2.2rem 2rem 2rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s, border-top-color .3s;
}
.svc-item::before {
  content: '';
  position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: linear-gradient(135deg, rgba(249,115,22,.05), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.svc-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(249,115,22,.14);
  border-top-color: var(--orange);
}
.svc-item:hover::before { opacity: 1; }
.svc-featured     { border-top-color: var(--orange); }
.svc-featured-teal { border-top-color: var(--orange); background: rgba(26,100,120,.06); }

.svc-item-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.svc-num {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
  color: rgba(249,115,22,.6); padding-top: 3px;
}
.svc-icon { width: 42px; height: 42px; color: var(--orange); }
.svc-icon svg { width: 100%; height: 100%; }

.svc-item h3 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 900;
  line-height: 1; margin-bottom: .35rem; letter-spacing: .01em;
}
.svc-sub {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  color: var(--teal); margin-bottom: 1.2rem;
}
.svc-item ul { flex: 1; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.5rem; }
.svc-item li { font-size: .82rem; color: var(--grey); padding-left: 1rem; position: relative; }
.svc-item li::before { content: '—'; position: absolute; left: 0; color: var(--orange); }
/* Toggle button */
.svc-toggle {
  display: flex; align-items: center; gap: .5rem; margin-top: auto;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--orange); background: none; border: none; cursor: pointer;
  padding: 0; transition: letter-spacing .2s, color .2s;
}
.svc-toggle:hover { letter-spacing: .16em; }
.svc-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border: 1px solid rgba(249,115,22,.4);
  border-radius: 50%; font-size: .8rem; font-weight: 700;
  transition: transform .3s var(--ease), background .2s;
}
.svc-item--open .svc-toggle-icon {
  transform: rotate(45deg);
  background: rgba(249,115,22,.15);
}

/* Expandable panel — JS sets max-height via scrollHeight */
.svc-expand {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.22,1,.36,1), opacity .35s ease;
  opacity: 0; will-change: max-height, opacity;
}
.svc-item--open .svc-expand {
  opacity: 1;
}
.svc-expand p {
  font-size: .82rem; color: var(--grey); line-height: 1.7;
  margin: 1rem 0 .8rem; border-top: 1px solid rgba(255,255,255,.06); padding-top: 1rem;
}
.svc-expand ul { margin-bottom: 1.2rem; }
.svc-expand-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange); color: #000; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .1em; font-weight: 700;
  padding: .65rem 1.4rem; border-radius: 4px; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.svc-expand-cta:hover {
  background: #ff8c30; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}

/* ─── CLIENTES ─── */
.s-clients { background: var(--black); padding: 7rem 0 4rem; overflow: hidden; }
.clients-head { margin-bottom: 3.5rem; }
.clients-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .25em; color: var(--orange);
  border: 1px solid rgba(249,115,22,.3); padding: 4px 12px; border-radius: 3px;
  margin-bottom: 1.2rem;
}
.clients-sub { color: var(--grey); font-size: .9rem; margin-top: .8rem; }

.clients-grid-wrap { padding: 2rem 2.5rem 4rem; }
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.cli-logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2.2rem 1.8rem 1.6rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color .3s, background .3s, transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.cli-logo-item:hover {
  border-color: rgba(249,115,22,.4);
  background: rgba(249,115,22,.04);
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(249,115,22,.1), 0 0 0 1px rgba(249,115,22,.1);
}

/* White card for logo visibility */
.cli-img-wrap {
  width: 100%; background: #fff;
  border-radius: 12px; padding: 1.2rem 1.8rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; overflow: hidden;
  transition: box-shadow .3s;
}
.cli-logo-item:hover .cli-img-wrap { box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.cli-logo-item img {
  height: 90px; width: auto; max-width: 200px; object-fit: contain;
  display: block; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.cli-logo-item:hover img { transform: scale(1.14); }

.cli-logo-item span {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .16em;
  color: rgba(255,255,255,.38); text-align: center;
  transition: color .3s; text-decoration: none;
}
.cli-logo-item:hover span { color: rgba(255,255,255,.6); }

/* CTA que aparece en hover */
.cli-cta {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em;
  color: var(--orange); opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  text-align: center; margin-top: -.2rem;
}
.cli-logo-item:hover .cli-cta { opacity: 1; transform: translateY(0); }

/* Marquee */
.marquee-outer { overflow: hidden; border-top: 1px solid rgba(255,255,255,.04); padding: 2rem 0; }
.marquee-track {
  display: flex; align-items: center; gap: 0; white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 900; letter-spacing: .08em; padding: 0 2.5rem;
  color: rgba(255,255,255,.2); transition: color .3s;
}
.marquee-item:hover { color: var(--orange); }
.marquee-sep { color: var(--orange); font-size: 1rem; opacity: .4; flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CONTACTO ─── */
.s-contact { position: relative; background: var(--black2); padding: 8rem 0; overflow: hidden; }
#contactCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-eyebrow {
  display: block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .18em; color: var(--orange); margin-bottom: 1.5rem;
}
.contact-l .dh2 { margin-bottom: 1.5rem; }
.contact-l p { color: var(--grey); font-size: .92rem; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.cd-item { display: flex; flex-direction: column; gap: .2rem; }
.cd-item span  { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey2); }
.cd-item strong { font-size: .9rem; color: var(--white); }
.cd-item a { color: var(--white); transition: color .2s; }
.cd-item a:hover { color: var(--orange); }

/* Social links inside contact section */
.cd-social { display: flex; flex-direction: column; gap: .55rem; margin-top: .3rem; }
.cd-social-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: rgba(255,255,255,.75);
  text-decoration: none; padding: .45rem .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; background: rgba(255,255,255,.03);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  width: fit-content;
}
.cd-social-link svg { flex-shrink: 0; opacity: .7; transition: opacity .2s; }
.cd-social-link:hover { transform: translateX(4px); color: var(--white); }
.cd-social-link:hover svg { opacity: 1; }
.cd-social-link[aria-label="Instagram"]:hover { border-color: #E1306C55; color: #E1306C; }
.cd-social-link[aria-label="TikTok"]:hover    { border-color: rgba(255,255,255,.3); }
.cd-social-link[aria-label="LinkedIn"]:hover  { border-color: #0A66C2aa; color: #5BA4CF; }
.glass-form {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem;
  backdrop-filter: blur(10px);
}
.ff label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey2); margin-bottom: .5rem; }
.glass-form input, .glass-form textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 14px 18px; color: var(--white); font-family: var(--body);
  font-size: .9rem; outline: none; transition: border-color .3s, background .3s;
}
.glass-form input:focus, .glass-form textarea:focus { border-color: var(--orange); background: rgba(249,115,22,.05); }
.glass-form input::placeholder, .glass-form textarea::placeholder { color: var(--grey2); }
.glass-form textarea { resize: vertical; min-height: 110px; }
.glass-form select {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 14px 18px; color: var(--white); font-family: var(--body);
  font-size: .9rem; outline: none; transition: border-color .3s, background .3s;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.glass-form select:focus { border-color: var(--orange); background-color: rgba(249,115,22,.05); }
.glass-form select option { background: #1a1a1a; color: #fff; }

/* ─── FOOTER ─── */
.footer { background: var(--black); }
.footer-gradient {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #1A5F70 0%, #0C3D4F 30%, #B04A0C 68%, #8A3800 100%);
  padding: 7rem 2.5rem; display: flex; align-items: center; justify-content: center;
}
.fg-rings { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.fg-left  { left: -80px; }
.fg-right { right: -80px; }
.fgr {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2);
}
.fgr.r1 { width: 200px; height: 200px; }
.fgr.r2 { width: 320px; height: 320px; border-color: rgba(255,255,255,.1); }
.fgr-cross { position: absolute; top: 50%; left: 50%; background: rgba(255,255,255,.15); }
.fgv { width: 1.5px; height: 320px; transform: translate(-50%,-50%); }
.fgh { width: 320px; height: 1.5px; transform: translate(-50%,-50%); }
.fg-stars { position: absolute; inset: 0; pointer-events: none; }
.fgs { position: absolute; font-size: 1.6rem; line-height: 1; }
.fgs.s1 { top: 18%; left: 18%; animation: starPulse 3s ease-in-out infinite; }
.fgs.s2 { top: 22%; right: 20%; animation: starPulse 3s ease-in-out infinite .6s; }
.fgs.s3 { bottom: 20%; left: 32%; animation: starPulse 3s ease-in-out infinite 1.2s; }
.fgs.s4 { bottom: 18%; right: 16%; animation: starPulse 3s ease-in-out infinite 1.8s; }
@keyframes starPulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.footer-quote {
  position: relative; z-index: 1;
  font-size: clamp(.95rem, 2vw, 1.4rem); font-weight: 500;
  text-align: center; max-width: 680px; line-height: 1.7;
  color: rgba(255,255,255,.9); font-style: normal;
}
.footer-quote em     { font-style: normal; font-weight: 700; color: var(--white); }
.footer-quote strong { color: var(--orange); }
.footer-info {
  max-width: 1280px; margin: 0 auto; padding: 3.5rem 2.5rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem;
}
.fi-brand  { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; flex: 1; }
.fi-logo   { height: 46px; width: auto; align-self: flex-start; object-fit: contain; }
.fi-desc   { font-size: .8rem; color: var(--grey2); margin-top: -.3rem; }

/* ── Footer social strip ── */
.fi-social-row {
  display: flex; align-items: stretch;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.1rem;
  width: 100%; max-width: 380px;
}
.fi-soc {
  display: flex; flex-direction: column; align-items: center; gap: .28rem;
  flex: 1; padding: .6rem .4rem .7rem;
  text-decoration: none; color: rgba(255,255,255,.28);
  transition: color .22s;
  border-right: 1px solid rgba(255,255,255,.06);
}
.fi-soc:last-child { border-right: none; }
.fi-soc svg { transition: transform .22s; flex-shrink: 0; }
.fi-soc-label {
  font-family: var(--mono); font-size: .46rem;
  letter-spacing: .1em; text-transform: uppercase; color: inherit;
}
.fi-soc-handle {
  font-size: .56rem; font-weight: 500; color: rgba(255,255,255,.5);
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  text-align: center; line-height: 1.3; white-space: nowrap;
}
.fi-soc:hover { color: rgba(255,255,255,.75); }
.fi-soc:hover svg { transform: translateY(-2px) scale(1.12); }
.fi-soc:hover .fi-soc-handle { opacity: 1; transform: translateY(0); }
.fi-soc--ig:hover { color: #E1306C; }
.fi-soc--tt:hover { color: rgba(255,255,255,.9); }
.fi-soc--li:hover { color: #5BA4CF; }
.fi-soc--em:hover { color: var(--orange); }
.fi-legal { display: flex; flex-direction: column; gap: .8rem; align-items: flex-end; }
.fi-legal a { font-size: .82rem; color: var(--grey); transition: color .2s; }
.fi-legal a:hover { color: var(--orange); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.05); padding: 1.4rem 2.5rem;
  text-align: center; font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; color: var(--grey2);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .enfoque-grid { grid-template-columns: 1fr; gap: 3rem; }
  .enfoque-right { order: -1; }
  .expertos-grid { grid-template-columns: 1fr; gap: 3rem; }
  .exp-left { order: -1; }
  .svc-intro { grid-template-columns: 1fr; gap: 2rem; padding-top: 5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .clients-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 768px) {
  .nav-links, .btn-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    min-height: 100dvh;
    background-color: #080808; z-index: 998;
    list-style: none; margin: 0; overflow-y: auto;
    padding: calc(var(--nav-h) + 4rem) 2rem 3rem;
    gap: 2.5rem; align-items: center; justify-content: center;
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a {
    font-size: 1.6rem; letter-spacing: .08em; color: var(--white);
    transition: color .2s;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active { color: var(--orange); }
  /* nav-wrap must stack above the menu overlay within the navbar stacking context */
  .nav-wrap { position: relative; z-index: 999; }
  .orbit-rings { display: none; }
  .hero-main-logo { width: min(340px, 88vw); }
  .metrics-wrap { flex-direction: column; gap: 2.5rem; }
  .ms { width: 80px; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-info { flex-direction: column; }
  .fi-legal { align-items: flex-start; }
  .fi-social-row { max-width: 100%; }
  .fi-soc-handle { display: none; }
  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cli-logo-item img { height: 60px; }
  .cli-img-wrap { min-height: 90px; padding: 1rem 1.2rem; }
  /* Title sizing — prevent text from overflowing on narrow screens */
  .dh2 { font-size: clamp(1.6rem, 7.5vw, 3.5rem); line-height: 1; }
  .exp-title { font-size: clamp(1.8rem, 7.5vw, 3.5rem); line-height: 1; }
  /* Neural canvas — restore closer to original size */
  .neural-canvas { height: 450px; }
  .neural-wrap { min-height: 600px; }
  /* Enfoque section — top padding so heading is never flush against section edge */
  .s-enfoque { padding-top: 3rem; }
  /* Heading top spacing to absorb line-height (.93) glyph bleed above line box */
  .enfoque-left .dh2 { padding-top: 0.5rem; }
  .svc-intro-l .dh2 { padding-top: 0.5rem; }
  .clients-head .dh2 { padding-top: 0.5rem; }
  .contact-l .dh2 { padding-top: 0.5rem; }
}
@media (max-width: 480px) {
  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .container { padding: 0 1.2rem; }
  .dh2 { font-size: clamp(1.4rem, 7.5vw, 3rem); line-height: 1.05; }
  .exp-title { font-size: clamp(1.4rem, 7.5vw, 3rem); line-height: 1.05; }
  .neural-canvas { height: 380px; }
  .neural-wrap { min-height: 440px; }
}

/* Spline bot viewer */
.neural-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: sepia(0.25) saturate(5) hue-rotate(-18deg) brightness(1.15) drop-shadow(0 0 60px rgba(249,115,22,0.45));
}
/* Cover the "Built with Spline" badge at bottom-right */
.neural-spline-cover {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 56px;
  background: var(--black);
  z-index: 100;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   GOOEY TEXT MORPHING — Hero
══════════════════════════════════════════════════ */
.gooey-svg { position: absolute; height: 0; width: 0; overflow: hidden; }

.hero-gooey {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.5rem 0;
}
.gooey-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gooey-span {
  position: absolute;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.5vw, 3.6rem);
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 1px;
  text-shadow: 0 0 40px rgba(249,115,22,0.4);
}

/* ══════════════════════════════════════════════════
   ANIMATED TEXT CYCLE — CTA section
══════════════════════════════════════════════════ */
.s-text-cta {
  padding: 7rem 0 6rem;
  background: var(--black2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.s-text-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(249,115,22,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.text-cta-p {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.text-cycle-word {
  color: var(--orange);
  display: inline-block;
  text-shadow: 0 0 30px rgba(249,115,22,0.35);
}
@keyframes cycleIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(-18px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
@keyframes cycleOut {
  from { opacity: 1; filter: blur(0);   transform: translateY(0); }
  to   { opacity: 0; filter: blur(8px); transform: translateY(18px); }
}
.cycle-visible { animation: cycleIn  .4s cubic-bezier(0.16,1,0.3,1) forwards; }
.cycle-exit    { animation: cycleOut .28s ease-in forwards; }
.text-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   SHADER CANVAS — Hero background (WebGL plasma)
══════════════════════════════════════════════════ */
#shaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ══════════════════════════════════════════════════
   ORBITAL SERVICES SECTION
══════════════════════════════════════════════════ */
.s-orbital {
  padding: 6rem 0 2rem;
  background: var(--black2);
  overflow: hidden;
  position: relative;
}
.s-orbital::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(249,115,22,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.orb-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.orb-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  font-family: var(--mono);
  display: block;
  margin-bottom: 1rem;
}
.orb-header-l p {
  color: var(--grey);
  font-size: 15px;
  max-width: 420px;
  margin-top: 1rem;
}
.orb-stats {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}
.orb-stat {
  text-align: center;
}
.orb-stat-num {
  display: block;
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}
.orb-stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Stage */
.orbital-stage {
  position: relative;
  width: 100%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Orbit track ring */
.orb-track-ring {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.15);
  box-shadow: 0 0 40px rgba(249,115,22,0.04) inset;
  pointer-events: none;
}

/* Center element */
.orb-center {
  position: absolute;
  width: 90px;
  height: 90px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-center-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%);
  animation: orbPulse 2.4s ease-in-out infinite;
}
.orb-center-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.3);
  animation: orbRingPulse 3s ease-in-out infinite;
}
.orb-center-ring.r1 { inset: -12px; animation-delay: 0s; }
.orb-center-ring.r2 { inset: -26px; animation-delay: .8s; opacity: .5; }

.orb-center-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black3);
  border: 1.5px solid rgba(249,115,22,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(249,115,22,0.3);
  z-index: 1;
}
.orb-center-core img {
  width: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%       { transform: scale(1.3); opacity: 1; }
}
@keyframes orbRingPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* Orbital Nodes */
.orb-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  cursor: pointer;
  transition: opacity .4s ease;
}
.orb-node-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black3);
  border: 1.5px solid rgba(249,115,22,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(249,115,22,0.15);
}
.orb-node:hover .orb-node-dot,
.orb-node--active .orb-node-dot {
  border-color: var(--orange);
  background: rgba(249,115,22,0.12);
  box-shadow: 0 0 22px rgba(249,115,22,0.4);
  transform: translate(-50%, -50%) scale(1.15);
}
.orb-node-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
}
.orb-node-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 36px));
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  transition: opacity .3s;
}
.orb-node-label strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
}
.orb-node-label small {
  display: block;
  font-size: 9px;
  color: var(--orange);
  font-family: var(--mono);
  letter-spacing: 1px;
  margin-top: 1px;
}

/* Info Panel */
.orb-info-panel {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(480px, 90vw);
  background: rgba(16,16,16,0.92);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), transform .4s var(--ease), opacity .3s;
  opacity: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(249,115,22,0.1);
  z-index: 200;
}
.orb-info-panel.orb-info--show {
  max-height: 220px;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.orb-info-content {
  padding: 22px 28px;
}
.orb-info-tag {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}
.orb-info-title {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 6px 0 10px;
  line-height: 1.1;
}
.orb-info-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 14px;
}
.orb-info-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .5px;
  transition: gap .2s;
}
.orb-info-cta:hover { gap: 10px; }

.orb-hint {
  text-align: center;
  font-size: 11px;
  color: var(--grey2);
  font-family: var(--mono);
  letter-spacing: 1px;
  padding-bottom: 3rem;
}

/* Orbital mobile */
@media (max-width: 768px) {
  .orb-header { grid-template-columns: 1fr; }
  .orb-stats { justify-content: flex-start; }
  .orbital-stage { height: 440px; }
  .orb-track-ring { width: 280px; height: 280px; }
  .orb-node-label { display: none; }
}

/* ── Matrix Text Effect ────────────────────────────────── */
.mx-letter {
  display: inline-block;
  transition: color 0.07s ease, text-shadow 0.07s ease;
}
.mx-letter.mx-active {
  color: var(--orange) !important;
  text-shadow:
    0 0 5px  rgba(249,115,22,1),
    0 0 14px rgba(249,115,22,0.6),
    0 0 28px rgba(249,115,22,0.25);
}

/* ── Neural Network Canvas ─────────────────────────────── */
.tech-img-frame:has(.team-video) {
  min-height: 480px;
}
.team-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

