/* ================================================================
   SCANASIS — FUTURISTIC INTERFACE
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; cursor: none; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #020b18;
  color: #c8dff0;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

a, button { cursor: none; }

:root {
  --bg:          #020b18;
  --bg-deep:     #010810;
  --surface:     rgba(6, 20, 40, 0.85);
  --surface-2:   rgba(8, 28, 55, 0.7);
  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0, 212, 255, 0.12);
  --cyan-glow:   rgba(0, 212, 255, 0.4);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59, 130, 246, 0.15);
  --purple:      #a855f7;
  --text:        #e2f0fb;
  --text-soft:   #8fafc8;
  --muted:       #4a6a82;
  --line:        rgba(0, 212, 255, 0.1);
  --line-glow:   rgba(0, 212, 255, 0.3);
  --accent:      #00d4ff;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --nav-h:       72px;
  --section-v:   120px;
  --container:   1280px;
  --duration:    0.6s;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan), 0 0 20px var(--cyan-glow);
  transition: width 0.2s, height 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-spring), height 0.35s var(--ease-spring), border-color 0.3s, background 0.3s;
}

body.cursor-hover #cursor-dot { width: 10px; height: 10px; }
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--cyan);
  background: rgba(0,212,255,0.04);
}
body.cursor-click #cursor-ring { width: 24px; height: 24px; border-color: var(--cyan); }

/* ─── SCANLINES ─────────────────────────────────────────────── */
#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  opacity: 0.6;
}

/* ─── GLOBAL BG CANVAS ──────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 600px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  padding: 12px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s;
  will-change: transform;
}

.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #020b18;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0,212,255,0.3), 0 4px 15px rgba(59,130,246,0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.5), 0 8px 30px rgba(59,130,246,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 20px rgba(0,212,255,0.05);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}
.btn:hover .btn-icon { transform: translateX(4px); }

/* ─── SECTION BASE ──────────────────────────────────────────── */
.section { padding-block: var(--section-v); position: relative; }

/* ─── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(2, 11, 24, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 0 30px rgba(0,212,255,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
  padding-inline: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 132px; height: 60px; object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { left: 14px; right: 14px; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}

.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  background: rgba(2,11,24,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 20px 32px;
}

.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile-link:hover { color: var(--cyan); background: var(--cyan-dim); }
.nav-mobile-cta { width: 100%; justify-content: center; margin-top: 12px; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('assets/bim-hero.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,212,255,0.05) 0%, transparent 70%),
    linear-gradient(160deg, rgba(2,11,24,0.8) 0%, rgba(2,11,24,0.55) 40%, rgba(2,11,24,0.88) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 40%, transparent 100%);
  animation: gridPulse 5s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-block: 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  background: rgba(0,212,255,0.05);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: flex; gap: 40px; align-items: center; }

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--line-glow), transparent);
}

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }

.scroll-line {
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services-section { background: var(--bg); }

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

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

/* ── Image Tile Card ── */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 300px;
  border: 1px solid rgba(0,212,255,0.1);
  transition: border-color 0.4s, box-shadow 0.4s;
  cursor: none;
}

.service-card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 40px rgba(0,212,255,0.12), 0 16px 48px rgba(0,0,0,0.5);
}

/* Photo background layer */
.tile-img-bg {
  position: absolute;
  inset: 0;
  background-image: var(--tile-img);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out), filter 0.6s;
  filter: brightness(0.45) saturate(0.6) hue-rotate(170deg);
}

.service-card:hover .tile-img-bg {
  transform: scale(1.07);
  filter: brightness(0.6) saturate(0.85) hue-rotate(170deg);
}

/* Gradient overlay — deep at bottom, fades to transparent at top */
.tile-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(2,11,24,0.98) 0%,
      rgba(2,11,24,0.75) 38%,
      rgba(2,11,24,0.25) 68%,
      rgba(2,11,24,0.05) 100%);
  z-index: 1;
}

/* Cyan edge glow on hover */
.tile-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,255,0.1), transparent 60%);
  transition: opacity 0.4s;
}

.service-card:hover .tile-overlay::after { opacity: 1; }

/* Card content sits above overlay */
.service-card-inner {
  position: relative;
  z-index: 2;
  padding: 28px 28px 28px;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Icon at the top */
.service-tile-top { display: flex; align-items: flex-start; }

/* Title + reveal at the bottom */
.service-tile-bottom { display: flex; flex-direction: column; gap: 10px; }

.service-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(2,11,24,0.6);
  border: 1px solid rgba(0,212,255,0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.service-card:hover .service-icon-wrap {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.service-icon {
  width: 24px; height: 24px;
  color: var(--cyan);
  transition: transform 0.4s var(--ease-spring);
}

.service-card:hover .service-icon { transform: scale(1.15) rotate(5deg); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  transition: color 0.3s;
  line-height: 1.25;
}

.service-card:hover .service-title { color: var(--cyan); }

/* Description + tags slide up on hover */
.service-tile-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:hover .service-tile-reveal {
  max-height: 180px;
  opacity: 1;
}

.service-desc {
  font-size: 0.84rem;
  color: rgba(200,224,240,0.88);
  line-height: 1.65;
}

.service-tags { display: flex; gap: 7px; flex-wrap: wrap; }

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  backdrop-filter: blur(4px);
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover .tag {
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.15);
}

/* Wide VDC card spans full width */
.service-card-wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.service-card-wide .service-card-inner {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  min-height: 220px;
}

.service-card-wide .service-tile-bottom {
  flex: 1;
}

.service-card-wide .service-tile-reveal {
  max-height: none;
  opacity: 1;
}

.service-card-wide .service-title {
  font-size: 1.3rem;
}

.service-vdc-content { flex: 1; }

/* ─── PROCESS ───────────────────────────────────────────────── */
.process-section { position: relative; overflow: hidden; }

.process-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('assets/about-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.12) saturate(0.3) hue-rotate(185deg);
}

.process-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(0,212,255,0.07) 0%, transparent 60%),
    linear-gradient(160deg, rgba(2,11,24,0.94) 0%, rgba(2,11,24,0.82) 50%, rgba(2,11,24,0.96) 100%);
}

.process-container { position: relative; z-index: 1; }

.section-tag-light { color: var(--cyan); }
.section-title-light { color: var(--text); }
.section-desc-light { color: var(--text-soft); }

.process-steps { display: flex; flex-direction: column; gap: 0; max-width: 800px; }

.process-step {
  display: grid;
  grid-template-columns: 64px 2px 1fr;
  gap: 0 28px;
  position: relative;
}

.step-number-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 4px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--cyan-glow);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,255,0.06);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.process-step:hover .step-number {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.35);
}

.step-connector {
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,212,255,0.3), rgba(0,212,255,0.04));
  min-height: 100%;
}

.process-step-last .step-connector { background: none; }

.step-content { padding-bottom: 48px; padding-top: 4px; }

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.process-step:hover .step-title { color: var(--cyan); }

.step-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.step-formats { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.step-formats li {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  position: relative;
  padding-left: 14px;
}

.step-formats li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); }

/* ─── INDUSTRIES ────────────────────────────────────────────── */
.industries-section { background: var(--bg-deep); position: relative; }

.industries-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,212,255,0.04), transparent 70%);
  pointer-events: none;
}

.industries-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0,212,255,0.04);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.industries-feature:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 0 60px rgba(0,212,255,0.1);
}

.industries-img {
  width: 100%;
  aspect-ratio: 21/6;
  object-fit: cover;
  display: block;
  filter: saturate(0.4) brightness(0.65) hue-rotate(185deg);
  transition: filter 0.5s, transform 0.6s;
}

.industries-feature:hover .industries-img {
  filter: saturate(0.6) brightness(0.8) hue-rotate(185deg);
  transform: scale(1.025);
}

.industries-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(2,11,24,0.5) 0%, transparent 25%, transparent 75%, rgba(2,11,24,0.5) 100%);
  pointer-events: none;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Industry Image Tile ── */
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 230px;
  border: 1px solid rgba(0,212,255,0.1);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.35s var(--ease-out);
  cursor: none;
}

.industry-card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 36px rgba(0,212,255,0.12), 0 14px 40px rgba(0,0,0,0.55);
  transform: translateY(-5px);
}

/* Trigger shared tile-img-bg zoom on hover */
.industry-card:hover .tile-img-bg {
  transform: scale(1.08);
  filter: brightness(0.6) saturate(0.85) hue-rotate(170deg);
}

.industry-card:hover .tile-overlay::after { opacity: 1; }

/* Inner layout identical to service tiles */
.industry-card .service-card-inner {
  min-height: 230px;
}

.industry-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(2,11,24,0.6);
  border: 1px solid rgba(0,212,255,0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: all 0.3s;
  flex-shrink: 0;
}

.industry-card:hover .industry-icon {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

.industry-icon svg { width: 20px; height: 20px; }

.industry-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  transition: color 0.3s;
  line-height: 1.25;
}

.industry-card:hover .industry-name { color: var(--cyan); }

.industry-desc {
  font-size: 0.8rem;
  color: rgba(200,224,240,0.85);
  line-height: 1.6;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-section { background: var(--bg); position: relative; }

.about-section::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(59,130,246,0.04), transparent 70%);
  pointer-events: none;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-primary-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 0 40px rgba(0,212,255,0.05);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.about-img-primary-wrap:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 0 60px rgba(0,212,255,0.1);
}

.about-img-primary {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: saturate(0.55) brightness(0.8) hue-rotate(185deg);
  transition: filter 0.5s, transform 0.5s;
}

.about-img-primary-wrap:hover .about-img-primary {
  filter: saturate(0.75) brightness(0.95) hue-rotate(185deg);
  transform: scale(1.03);
}

.about-img-secondary-wrap {
  position: absolute;
  bottom: -32px; right: -32px;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 30px rgba(0,212,255,0.1), 0 16px 40px rgba(0,0,0,0.4);
  transition: all 0.4s;
}

.about-img-secondary-wrap:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 50px rgba(0,212,255,0.2), 0 16px 60px rgba(0,0,0,0.5);
  transform: scale(1.03);
}

.about-img-secondary {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: saturate(0.45) brightness(0.75) hue-rotate(185deg);
}

.about-stat-badge {
  position: absolute;
  top: -20px; left: -20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.14), rgba(59,130,246,0.08));
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.about-stat-txt {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.about-content { display: flex; flex-direction: column; gap: 20px; }

.about-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }

.about-lead { font-size: 1.05rem; color: var(--text); line-height: 1.7; }

.about-body { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.why-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.3s;
}

.why-card:hover {
  border-color: rgba(0,212,255,0.28);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 20px rgba(0,212,255,0.06);
  transform: translateY(-3px);
}

.why-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: all 0.3s;
}

.why-card:hover .why-icon {
  background: rgba(0,212,255,0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}

.why-icon svg { width: 18px; height: 18px; }

.why-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  transition: color 0.3s;
}

.why-card:hover .why-title { color: var(--cyan); }
.why-desc { font-size: 0.8rem; color: var(--text-soft); line-height: 1.55; }

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact-section { background: var(--bg-deep); position: relative; overflow: hidden; }

.contact-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.05), transparent 70%);
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-copy { padding-top: 0; }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-trust { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.trust-badge svg { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }

.contact-direct { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

.contact-email-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow 0.3s;
}

.contact-email-link:hover { text-shadow: 0 0 10px var(--cyan-glow); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.contact-form-wrap:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 0 40px rgba(0,212,255,0.06);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-required { color: var(--cyan); margin-left: 2px; }

.form-input {
  width: 100%;
  background: rgba(0,212,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--muted); opacity: 0.6; }

.form-input:hover {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.05);
}

.form-input:focus {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300d4ff'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-select option { background: #061428; color: var(--text); }

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-error { font-size: 0.78rem; color: #f87171; min-height: 16px; display: block; }

.form-submit { width: 100%; justify-content: center; margin-top: 4px; }

.form-spinner {
  width: 18px; height: 18px;
  display: none;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.form-submit.submitting .form-submit-label { opacity: 0.5; }
.form-submit.submitting .form-submit-icon { display: none; }
.form-submit.submitting .form-spinner { display: block; }
.form-submit:disabled { opacity: 0.7; transform: none !important; }

.form-status[hidden] { display: none; }

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.form-status-success {
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  color: #6ee7b7;
}

.form-status-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: #fca5a5;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 60px 32px; }

.footer-container { display: flex; flex-direction: column; gap: 48px; }

.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }

.footer-logo-img {
  width: 156px; height: 78px; object-fit: contain;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.footer-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); }

.footer-tagline { font-size: 0.88rem; color: var(--muted); line-height: 1.65; max-width: 280px; }

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }

.footer-link {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover { color: var(--cyan); padding-left: 6px; }

.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--muted); }

.footer-contact-list svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--cyan); opacity: 0.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy, .footer-legal { font-size: 0.82rem; color: var(--muted); opacity: 0.7; }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
[class*="reveal-"] {
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.reveal-fade  { transform: translateY(10px); }
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-card  { transform: translateY(30px); }
.reveal-step  { transform: translateX(-20px); }

.in-view { opacity: 1 !important; transform: none !important; }

/* ─── GLITCH ────────────────────────────────────────────────── */
@keyframes glitch1 {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; transform: translateX(-3px); }
  40%  { opacity: 0; transform: translateX(3px); }
  60%  { opacity: 1; transform: translateX(-1px); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes glitch2 {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; transform: translateX(3px); }
  40%  { opacity: 0; transform: translateX(-3px); }
  60%  { opacity: 1; transform: translateX(1px); }
  100% { opacity: 0; transform: translateX(0); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-v: 96px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .about-container { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 600px; margin-inline: auto; }
  .about-img-secondary-wrap { right: 0; }
  .contact-container { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-v: 80px; --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .service-card-wide { grid-column: span 1; }
  .service-card-wide .service-card-inner { flex-direction: column; }
  .process-step { grid-template-columns: 48px 32px 1fr; gap: 0 16px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .about-img-secondary-wrap { right: 0; width: 50%; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cursor-dot, #cursor-ring, #scanlines { display: none; }
  body, a, button { cursor: auto; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .about-img-secondary-wrap { display: none; }
  .about-stat-badge { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-bg { transform: none !important; }
  #scanlines, #bg-canvas { display: none; }
}

/* ─── LAYOUT FIXES ──────────────────────────────────────────── */
.industry-card-center { grid-column: auto; }
.service-card-wide { grid-column: auto; }
.service-card-wide .service-card-inner { flex-direction: column; align-items: stretch; gap: 14px; }
.service-vdc-content { flex: initial; }

/* ================================================================
   ENHANCEMENT PACK — v4
   ================================================================ */

/* ─── LIDAR SWEEP (hero) ────────────────────────────────────── */
.lidar-sweep {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.lidar-sweep::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.0) 20%, rgba(0,212,255,0.7) 50%, rgba(0,212,255,0.0) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 60px rgba(0,212,255,0.2);
  animation: lidarH 5s ease-in-out infinite 2s;
}
@keyframes lidarH {
  0%   { top:  8%; left: -100%; opacity:0; }
  5%   { opacity:1; }
  95%  { opacity:1; }
  100% { top: 85%;  left:  100%; opacity:0; }
}

/* ─── POINT CLOUD CANVAS ────────────────────────────────────── */
#pc-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
}

/* ─── HERO HUD CHIPS ────────────────────────────────────────── */
.hero-hud-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.hud-chip {
  position: absolute;
  background: rgba(2,11,24,0.72);
  border: 1px solid rgba(0,212,255,0.28);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: chipIn 0.6s var(--ease-out) var(--chip-del, 0.5s) forwards;
  animation-play-state: paused;
}
.hero.booted .hud-chip { animation-play-state: running; }
@keyframes chipIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
.hud-chip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
}
.hud-chip-corner {
  position: absolute;
  width: 6px; height: 6px;
  top: -1px; right: -1px;
  border-top: 1.5px solid var(--cyan);
  border-right: 1.5px solid var(--cyan);
  border-radius: 0 4px 0 0;
}
.hud-chip-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.hud-chip-lbl {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hud-chip-tl { top: 18%; left: 4%;  animation-name: chipInLeft;  }
.hud-chip-tr { top: 22%; right: 4%; animation-name: chipInRight; }
.hud-chip-bl { bottom: 22%; left: 4%;  animation-name: chipInLeft;  }
.hud-chip-br { bottom: 18%; right: 4%; animation-name: chipInRight; }
@keyframes chipInLeft  { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:none; } }
@keyframes chipInRight { from { opacity:0; transform:translateX(12px);  } to { opacity:1; transform:none; } }

/* Hide chips on mobile */
@media (max-width: 1024px) { .hero-hud-chips { display: none; } }

/* ─── SCAN BEAM (cards) ─────────────────────────────────────── */
.service-card::after,
.industry-card::after,
.pf-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80px;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.35), transparent);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
}
.service-card.in-view::after  { animation: scanBeam 0.9s ease-out forwards; animation-delay: calc(var(--delay, 0) * 1ms + 0.2s); }
.industry-card.in-view::after { animation: scanBeam 0.9s ease-out forwards; animation-delay: calc(var(--delay, 0) * 1ms + 0.2s); }
.pf-card.in-view::after       { animation: scanBeam 0.9s ease-out forwards; animation-delay: calc(var(--delay, 0) * 1ms + 0.2s); }
@keyframes scanBeam {
  0%   { left: -80px; opacity: 1; }
  100% { left: 110%;  opacity: 0; }
}

/* ─── PORTFOLIO ─────────────────────────────────────────────── */
.portfolio-section { background: var(--bg-deep); }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.pf-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: rgba(6,20,40,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: none;
  transition: all 0.25s;
}
.pf-btn:hover  { border-color: rgba(0,212,255,0.35); color: var(--text); }
.pf-btn.active { background: var(--cyan); border-color: var(--cyan); color: #020b18; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pf-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 240px;
  border: 1px solid rgba(0,212,255,0.1);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.35s var(--ease-out), opacity 0.4s;
  cursor: none;
}
.pf-card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 36px rgba(0,212,255,0.12), 0 14px 40px rgba(0,0,0,0.55);
  transform: translateY(-5px);
}
.pf-card:hover .tile-img-bg { transform: scale(1.08); filter: brightness(0.55) saturate(0.8) hue-rotate(170deg); }
.pf-card.pf-hidden { display: none; }

.pf-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  z-index: 3;
}
.pf-sector-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(8px);
}
.pf-card-body { }
.pf-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1.25;
  margin-bottom: 4px;
}
.pf-meta {
  font-size: 0.72rem;
  color: rgba(200,224,240,0.75);
}

@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .portfolio-grid { grid-template-columns: 1fr; } }

/* ─── BEFORE / AFTER ────────────────────────────────────────── */
.ba-section { background: var(--bg); overflow: hidden; }

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.15);
  user-select: none;
  height: 520px;
  cursor: col-resize;
  box-shadow: 0 0 60px rgba(0,212,255,0.06), 0 24px 80px rgba(0,0,0,0.5);
}
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
}
.ba-before img, .ba-after img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) saturate(0.9) hue-rotate(170deg);
  pointer-events: none;
}
.ba-before { z-index: 1; }
.ba-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.0s;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: col-resize;
}
.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.6), 0 0 30px rgba(0,212,255,0.2);
}
.ba-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020b18;
  box-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2);
  transition: transform 0.2s var(--ease-spring);
}
.ba-knob:hover, .ba-slider:active .ba-knob { transform: translate(-50%, -50%) scale(1.15); }
.ba-knob svg { width: 18px; height: 18px; }
.ba-label {
  position: absolute;
  bottom: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(2,11,24,0.7);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  color: var(--text);
  z-index: 15;
  pointer-events: none;
}
.ba-label-l { left: 20px; z-index: 3; }
.ba-label-r { right: 20px; z-index: 15; color: var(--cyan); }

@media (max-width: 768px) { .ba-slider { height: 340px; } }

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-section { background: var(--bg-deep); }

.testimonials-wrap {
  margin-bottom: 72px;
}
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out), opacity 0.5s;
}
.tcard.tcard-hidden { opacity: 0.25; transform: scale(0.98); }
.tcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.tcard:hover::before { opacity: 1; }
.tcard:hover { border-color: rgba(0,212,255,0.25); box-shadow: 0 8px 40px rgba(0,212,255,0.07); }
.tcard-quote {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--cyan);
  opacity: 0.18;
  margin-bottom: 20px;
  user-select: none;
}
.tcard-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tcard-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(59,130,246,0.2));
  border: 1px solid rgba(0,212,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.tcard-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}
.tcard-role {
  font-size: 0.72rem;
  color: var(--muted);
}
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.tcard-prev, .tcard-next {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.25s;
}
.tcard-prev:hover, .tcard-next:hover { border-color: var(--cyan); color: var(--cyan); }
.tcard-prev svg, .tcard-next svg { width: 18px; height: 18px; }
.testimonials-dots { display: flex; gap: 8px; }
.tdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: none;
  transition: all 0.3s;
}
.tdot.active { background: var(--cyan); width: 24px; border-radius: 4px; box-shadow: 0 0 8px rgba(0,212,255,0.5); }

/* hide dot nav on large screens — show all 3 tcard at once */
@media (min-width: 769px) { .testimonials-nav { display: none; } }
@media (max-width: 768px) {
  .testimonials-track { grid-template-columns: 1fr; }
  .tcard { display: none; }
  .tcard.tcard-active { display: block; }
}

/* ─── LOGO TICKER ───────────────────────────────────────────── */
.logo-ticker-wrap {
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.logo-ticker-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.logo-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.logo-ticker-inner {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: logoScroll 28s linear infinite;
}
.logo-item {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-item:hover { color: var(--text-soft); }
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   MULTIPAGE — page hero, CTA section, active nav, home featured
   ================================================================ */

/* Active nav link for current page */
.nav-link[aria-current="page"] { color: var(--cyan); }

/* ─── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 64px;
  background: var(--bg-deep);
  position: relative;
  border-bottom: 1px solid rgba(0,212,255,.07);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(59,130,246,.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
}
.page-breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity .2s;
}
.page-breadcrumb a:hover { opacity: .75; }
.page-breadcrumb-sep { opacity: .35; }
.page-hero-tag {
  font: 600 .72rem/1 'Space Grotesk', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  position: relative;
}
.page-hero-tag::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}
.page-hero-title {
  font: 700 clamp(1.9rem, 5vw, 3.2rem)/1.1 'Space Grotesk', sans-serif;
  color: var(--white);
  margin-bottom: .75rem;
  position: relative;
}
.page-hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.65;
  position: relative;
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(59,130,246,.07) 0%, rgba(168,85,247,.05) 100%);
  border-top: 1px solid rgba(0,212,255,.07);
  border-bottom: 1px solid rgba(0,212,255,.07);
  text-align: center;
}
.cta-content { max-width: 640px; margin: 0 auto; }
.cta-headline {
  font: 700 clamp(1.6rem, 3.5vw, 2.4rem)/1.15 'Space Grotesk', sans-serif;
  color: var(--white);
  margin-bottom: .75rem;
}
.cta-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── HOME FEATURED SERVICES STRIP ─────────────────────────── */
.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.home-services-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .home-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-featured-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 44px; }
  .cta-actions { flex-direction: column; align-items: center; }
}
