/* ═══════════════════════════════════════════════════════
   STELLAR SYSTEMS — Deep Space Glass Design System
   Shared across index.html / offer.html / contact.html
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --bg:          #060614;
  --bg-mid:      #0a0a1e;
  --bg-elevated: #0e0e28;
  --surface:     rgba(0,196,196,0.04);
  --surface-2:   rgba(255,255,255,0.03);
  --border:      rgba(0,196,196,0.15);
  --border-hi:   rgba(0,196,196,0.38);
  --teal:        #00C4C4;
  --teal-dark:   #009999;
  --teal-glow:   rgba(0,196,196,0.18);
  --text:        #F0F2FF;
  --muted:       #7a7aaa;
  --muted-2:     #4a4a6a;
  --font-display:'Barlow Condensed', sans-serif;
  --font-body:   'Inter', sans-serif;
  --nav-h:       68px;
  --bar-h:       36px;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Custom Cursor ───────────────────────────────────── */
#cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(0,196,196,0.6);
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, border-color .2s, opacity .2s;
}
#cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 8px var(--teal);
}
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: var(--teal); background: rgba(0,196,196,0.06); }
body.cursor-click #cursor-ring { width: 28px; height: 28px; }
@media (pointer:coarse) { #cursor-ring, #cursor-dot { display: none; } }

/* ─── Scroll Progress ─────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal), #7fffff);
  z-index: 10000;
  box-shadow: 0 0 8px rgba(0,196,196,0.5);
}

/* ─── Page Intro Logo Animation ───────────────────────── */
#page-intro {
  position: fixed; inset: 0; z-index: 9998;
  background: #060614;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.76,0,0.24,1) 0.1s,
              transform 0.5s cubic-bezier(0.76,0,0.24,1) 0.1s;
}
#page-intro.done {
  opacity: 0;
  transform: scale(1.04);
}
.intro-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: intro-logo-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.intro-logo-wrap img {
  width: clamp(80px, 16vw, 140px);
  height: auto;
  border-radius: 16px;
  position: relative; z-index: 2;
}
.intro-logo-glow {
  position: absolute;
  width: 200%; height: 200%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,196,0.25) 0%, transparent 65%);
  animation: intro-glow-pulse 1.2s ease-in-out infinite;
  pointer-events: none;
}
.intro-logo-ring {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(0,196,196,0.2);
  animation: intro-ring-spin 3s linear infinite;
}
.intro-logo-ring:nth-child(3) {
  width: 220px; height: 220px;
  border-color: rgba(0,196,196,0.1);
  animation-direction: reverse;
  animation-duration: 4s;
}
/* old slab kept as noop for backwards compat */
.intro-slab { display: none; }

@keyframes intro-logo-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes intro-glow-pulse {
  0%,100% { opacity: 0.6; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}
@keyframes intro-ring-spin {
  to { transform: rotate(360deg); }
}

/* ─── Top Info Bar ────────────────────────────────────── */
#top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: rgba(6,6,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,196,196,0.08);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.top-bar-inner {
  display: flex; align-items: center; gap: 24px;
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.04em;
}
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item svg { color: var(--teal); flex-shrink: 0; }
.top-bar-sep { width: 1px; height: 14px; background: var(--border); }
@media (max-width: 600px) { .top-bar-inner { gap: 12px; font-size: 0.65rem; } .top-bar-sep:last-of-type { display: none; } }

/* ─── Navbar ──────────────────────────────────────────── */
#nav {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  height: var(--nav-h);
  z-index: 800;
  display: flex; align-items: center;
  background: rgba(6,6,20,0.5);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
#nav::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}
#nav.scrolled {
  background: rgba(6,6,20,0.88);
  border-color: rgba(0,196,196,0.25);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,196,196,0.06);
}
.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(0,196,196,0.06); }
.nav-link svg { transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-cta {
  padding: 9px 22px; border-radius: 100px;
  background: var(--teal); color: #000;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 20px rgba(0,196,196,0.3);
}
.nav-cta:hover { background: var(--teal-dark); box-shadow: 0 0 32px rgba(0,196,196,0.5); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 10px;
  background: rgba(8,8,28,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,196,196,0.05);
  z-index: 100;
}
.nav-dropdown::before {
  content: '';
  position: absolute; top: 5px; left: 24px;
  width: 8px; height: 8px;
  background: rgba(8,8,28,0.97);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
.nav-dropdown-item {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.8rem; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-item:hover { color: var(--text); background: rgba(0,196,196,0.08); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 8px; }

/* Mobile nav */
#nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 4px; border-radius: 8px;
  transition: background 0.2s;
}
#nav-hamburger:hover { background: var(--surface); }
#nav-hamburger span {
  display: block; height: 1.5px; border-radius: 1px;
  background: var(--text); transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
#nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
#nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
#mobile-menu {
  display: none; position: fixed;
  top: calc(var(--bar-h) + var(--nav-h)); left: 0; right: 0; bottom: 0;
  background: rgba(6,6,20,0.97); backdrop-filter: blur(24px);
  z-index: 790;
  flex-direction: column; padding: 32px; gap: 4px; overflow-y: auto;
}
#mobile-menu.open { display: flex; }
.mob-link {
  display: block; padding: 14px 16px; border-radius: 10px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.mob-link:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.mob-cta {
  margin-top: 20px; padding: 16px; border-radius: 100px;
  background: var(--teal); color: #000;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  letter-spacing: 0.06em; text-align: center;
}
@media (max-width: 900px) { .nav-links { display: none; } #nav-hamburger { display: flex; } }

/* ─── Layout ──────────────────────────────────────────── */
.container { max-width: clamp(1200px, 72vw, 1800px); margin: 0 auto; padding: 0 32px; }
@media (min-width: 2560px) { .container { max-width: 1920px; } }
@media (max-width: 768px) { .container { padding: 0 20px; } }
section { position: relative; overflow: hidden; }

/* ─── Section headings ────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.7;
  max-width: 540px;
}

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  height: 75vh; min-height: 560px;
  display: flex; align-items: center;
  padding-bottom: 40px;
  padding-top: calc(var(--bar-h) + var(--nav-h) + 20px);
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
#particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,196,0.12) 0%, transparent 70%);
  top: -100px; left: -100px; pointer-events: none;
  animation: float-1 8s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,80,200,0.1) 0%, transparent 70%);
  bottom: -50px; left: -50px; pointer-events: none;
  animation: float-2 10s ease-in-out infinite;
}
.hero-sphere {
  position: absolute;
  right: 6%; top: 50%; transform: translateY(-50%);
  width: clamp(180px, 26vw, 360px);
  height: clamp(180px, 26vw, 360px);
  pointer-events: none;
}
.hero-sphere-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(0,196,196,0.2);
  animation: sphere-spin 22s linear infinite;
}
.hero-sphere-ring:nth-child(2) {
  inset: 14%; border-color: rgba(0,196,196,0.14);
  animation-duration: 15s; animation-direction: reverse;
}
.hero-sphere-ring:nth-child(3) {
  inset: 28%; border-color: rgba(0,196,196,0.22);
  animation-duration: 9s;
}
.hero-sphere-ring:nth-child(4) {
  inset: 42%; border: 1px solid rgba(0,196,196,0.35);
  animation-duration: 6s; animation-direction: reverse;
}
.hero-sphere-dot {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 20px var(--teal), 0 0 60px rgba(0,196,196,0.5);
  animation: pulse-dot 3s ease-in-out infinite;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 0; width: 100%;
  pointer-events: none;
}
.hero-btns a { pointer-events: auto; }
.hero-scroll  { pointer-events: auto; }
#hero .container { padding-left: 16px; padding-right: 0; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; padding-right: 16px; }
#hero .hero-sphere,
.page-header .hero-sphere,
.ind-hero .hero-sphere,
.proj-hero .hero-sphere { display: none; }
.hero-spline {
  position: absolute;
  left: 10%;
  right: -15%;
  top: -10%;
  bottom: -10%;
  width: auto;
  height: auto;
  z-index: 1;
  pointer-events: auto;
}
.hero-spline spline-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-spline-loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.5s;
}
.hero-spline-loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(0,196,196,0.12); border-top-color: var(--teal);
  animation: sp-spin 0.8s linear infinite;
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { padding-right: 0; align-items: center; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-spline { display: none; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px;
  opacity: 0; animation: hero-up 0.7s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 5.5rem);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  opacity: 0; animation: hero-up 0.8s 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-title-teal { color: var(--teal); display: block; }
.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--muted); line-height: 1.75; max-width: 460px;
  margin-bottom: 36px;
  opacity: 0; animation: hero-up 0.8s 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: hero-up 0.8s 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: hero-up 0.8s 1s cubic-bezier(0.22,1,0.36,1) forwards;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--teal), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,196,196,0.12), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none; z-index: 1;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  background: var(--teal); color: #000;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 24px rgba(0,196,196,0.35);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 0 40px rgba(0,196,196,0.55); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  border: 1px solid var(--border-hi); color: var(--teal);
  font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: rgba(0,196,196,0.08); border-color: var(--teal); transform: translateY(-2px); }

/* Ripple */
.ripple-host { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: scale(0); animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ─── Stats Bar ───────────────────────────────────────── */
#stats { padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-cell {
  padding: 64px 32px; text-align: center;
}
.stat-cell:nth-child(1) { background: var(--teal); }
.stat-cell:nth-child(2) { background: #cceaea; }
.stat-cell:nth-child(3) { background: var(--bg-mid); }
.stat-cell:nth-child(4) { background: var(--teal); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1;
  margin-bottom: 10px; display: block;
}
.stat-cell:nth-child(1) .stat-num,
.stat-cell:nth-child(4) .stat-num { color: #fff; }
.stat-cell:nth-child(2) .stat-num { color: #0a2a2a; }
.stat-cell:nth-child(3) .stat-num { color: #fff; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.stat-cell:nth-child(1) .stat-label,
.stat-cell:nth-child(4) .stat-label { color: rgba(255,255,255,0.85); }
.stat-cell:nth-child(2) .stat-label { color: rgba(10,42,42,0.7); }
.stat-cell:nth-child(3) .stat-label { color: var(--muted); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ─── Glass Card ──────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,196,196,0.4), transparent);
}
.glass-card:hover { border-color: var(--border-hi); box-shadow: 0 8px 40px rgba(0,196,196,0.1), 0 0 0 1px rgba(0,196,196,0.08); }

/* ─── Services ────────────────────────────────────────── */
#services { padding: 100px 0; background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; margin-top: 52px;
}
.svc-img-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.3s;
}
.svc-img-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,196,196,0.1);
}
.svc-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: #fff;
}
.svc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-img-body { padding: 20px 20px 24px; }
.svc-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 10px; color: var(--teal); }
.svc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

/* ─── Industries ──────────────────────────────────────── */
#industries { padding: 100px 0; background: var(--bg-mid); }
.industries-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 52px;
}
.sector-tile {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
  --gx: 50%; --gy: 50%;
}
.sector-tile:hover { border-color: var(--border-hi); transform: scale(1.02); }
.sector-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(0.55) saturate(0.6); }
.sector-tile:hover img { transform: scale(1.06); filter: brightness(0.75) saturate(1); }
.sector-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,20,0.92) 0%, rgba(6,6,20,0.55) 45%, rgba(6,6,20,0.25) 100%); }
.sector-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--gx) var(--gy), rgba(0,196,196,0.15) 0%, transparent 60%); transition: opacity 0.3s; }
.sector-tile:hover .sector-glow { opacity: 1; }
.sector-label { position: absolute; bottom: 18px; left: 18px; right: 18px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.05em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9); line-height: 1.25; }
.sector-tag { position: absolute; top: 14px; left: 14px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); background: rgba(6,6,20,0.75); border: 1px solid rgba(0,196,196,0.45); padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(6px); }
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .industries-grid { grid-template-columns: 1fr; } }

/* ─── Why Choose Us ───────────────────────────────────── */
#why { padding: 100px 0; background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.why-icon { color: var(--teal); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(0,196,196,0.08); border: 1px solid rgba(0,196,196,0.18); }
.why-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 10px; color: var(--teal); }
.why-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

/* ─── Projects ────────────────────────────────────────── */
#projects { padding: 100px 0; background: var(--bg-mid); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.project-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-elevated);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: 0 12px 50px rgba(0,196,196,0.12); }
.project-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.65) saturate(0.7); transition: transform 0.5s, filter 0.4s; }
.project-card:hover .project-img img { transform: scale(1.06); filter: brightness(0.85) saturate(1.1); }
.project-img-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,20,0.8) 0%, transparent 60%); }
.project-body { padding: 22px; }
.project-tag { display: inline-block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); background: rgba(0,196,196,0.1); border: 1px solid rgba(0,196,196,0.25); padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.project-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 7px; }
.project-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .projects-grid { grid-template-columns: 1fr; } }

/* ─── Testimonials ────────────────────────────────────── */
#testimonials { padding: 100px 0; background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 52px; }
.testi-card { }
.testi-quote { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; color: rgba(0,196,196,0.15); margin-bottom: 16px; }
.testi-text { font-size: 0.93rem; line-height: 1.75; color: var(--muted); margin-bottom: 20px; font-style: italic; }
.testi-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.testi-company { font-size: 0.75rem; color: var(--teal); margin-top: 2px; }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }

/* ─── CTA Banner ──────────────────────────────────────── */
#cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #005555 0%, var(--teal-dark) 50%, #007777 100%);
  text-align: center; position: relative; overflow: hidden;
}
#cta-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(0,0,0,0.15)'/%3E%3C/svg%3E"); opacity: 0.4; }
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.01em; color: #000; margin-bottom: 12px; position: relative; }
.cta-sub { color: rgba(0,0,0,0.6); margin-bottom: 32px; position: relative; font-size: 1rem; }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 100px; background: #000; color: var(--teal); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; position: relative; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

/* ─── Contact ─────────────────────────────────────────── */
#contact { padding: 100px 0; background: var(--bg-mid); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; margin-top: 52px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 14px; transition: border-color 0.2s; }
.contact-info-item:hover { border-color: var(--border-hi); }
.contact-info-icon { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: rgba(0,196,196,0.1); border: 1px solid rgba(0,196,196,0.2); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.contact-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 3px; }
.contact-info-val { font-size: 0.88rem; color: var(--text); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; position: relative; }
.contact-form-wrap::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,196,196,0.4), transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-input, .form-textarea { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px 16px; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,196,0.1); background: rgba(0,196,196,0.04); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-input option { background: #0e0e28; color: var(--text); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Map Strip ───────────────────────────────────────── */
#map-strip { position: relative; height: 320px; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#map-strip iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg) saturate(0.6) brightness(0.8); }
.map-overlay-badge { position: absolute; bottom: 20px; left: 24px; background: rgba(6,6,20,0.9); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.map-badge-icon { color: var(--teal); }
.map-badge-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }
.map-badge-addr { font-size: 0.82rem; color: var(--text); }
.map-directions { position: absolute; bottom: 20px; right: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; background: var(--teal); color: #000; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; transition: background 0.2s; }
.map-directions:hover { background: var(--teal-dark); }

/* ─── Spline 3D Showcase ──────────────────────────────── */
#spline-showcase { padding: 80px 0; background: var(--bg); }
.spline-card {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--border); background: rgba(6,6,20,0.98);
  display: flex; align-items: stretch; min-height: 520px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.spline-card:hover { border-color: var(--border-hi); box-shadow: 0 16px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,196,196,0.06); }
.spline-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle 520px at var(--mx,50%) var(--my,50%), rgba(0,196,196,0.10) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.spline-card.sp-hovered .spline-spotlight { opacity: 1; }
.spline-content {
  flex: 1; padding: 64px 56px; position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.spline-desc { font-size: 0.93rem; color: var(--muted); line-height: 1.8; margin: 20px 0 36px; max-width: 380px; }
.spline-viewer-wrap { flex: 1; position: relative; min-height: 460px; }
.spline-viewer-wrap spline-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.spline-loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 2; transition: opacity 0.4s;
}
.spline-loader-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(0,196,196,0.15); border-top-color: var(--teal);
  animation: sp-spin 0.8s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .spline-card { flex-direction: column; }
  .spline-content { padding: 44px 32px 28px; }
  .spline-viewer-wrap { min-height: 360px; width: 100%; }
}

/* ─── Page Header Grid (contact-style hero) ───────────── */
.page-header-grid-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cg-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-base  { opacity: 0.06; color: var(--teal); }
.cg-reveal {
  opacity: 0.5; color: var(--teal);
  -webkit-mask-image: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), black 0%, transparent 100%);
  mask-image:         radial-gradient(320px circle at var(--mx,50%) var(--my,50%), black 0%, transparent 100%);
  transition: -webkit-mask-image 0.05s, mask-image 0.05s;
}
@media (max-width: 768px) {
  .cg-base   { opacity: 0.03; }
  .cg-reveal { opacity: 0.12; }
}
.cg-glow-a { position: absolute; right: -8%; top: -30%; width: 42%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(0,196,196,0.18) 0%, transparent 70%); filter: blur(80px); pointer-events: none; }
.cg-glow-b { position: absolute; left: -8%; bottom: -30%; width: 38%; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(0,80,200,0.14) 0%, transparent 70%); filter: blur(100px); pointer-events: none; }
.page-header .container,
.ind-hero .container,
.proj-hero .container { position: relative; z-index: 2; }

/* ─── Page Header ─────────────────────────────────────── */
.page-header { padding: calc(var(--bar-h) + var(--nav-h) + 60px) 0 80px; background: var(--bg); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-header-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,196,196,0.12) 0%, transparent 70%); }
.ghost-headline { position: absolute; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 14rem); font-weight: 800; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(0,196,196,0.12); bottom: -0.15em; right: 0; white-space: nowrap; user-select: none; pointer-events: none; line-height: 1; }
.page-header-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; position: relative; z-index: 1; margin-bottom: 16px; }
.page-header-sub { font-size: 1rem; color: var(--muted); max-width: 480px; line-height: 1.7; position: relative; z-index: 1; }

/* ─── Footer ──────────────────────────────────────────── */
#footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 40px; margin-bottom: 14px; }
.footer-tagline { font-size: 0.8rem; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links li, .footer-links a { font-size: 0.82rem; color: var(--muted); line-height: 1.55; font-family: var(--font-body); font-weight: 400; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.75rem; color: var(--muted-2); }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.footer-social:hover { color: var(--teal); border-color: var(--border-hi); background: rgba(0,196,196,0.06); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:nth-child(2) { text-align: right; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* ─── Reveal ──────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.93); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ─── Glitch ──────────────────────────────────────────── */
.glitch-wrap { position: relative; display: inline-block; }
.glitch-active .glitch-wrap::before,
.glitch-active .glitch-wrap::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; }
.glitch-active .glitch-wrap::before { color: #0ff; clip-path: polygon(0 20%,100% 20%,100% 40%,0 40%); transform: translateX(-3px); animation: glitch-1 0.3s steps(2) forwards; }
.glitch-active .glitch-wrap::after  { color: #f0f; clip-path: polygon(0 60%,100% 60%,100% 80%,0 80%); transform: translateX(3px);  animation: glitch-2 0.3s steps(2) forwards; }

/* ─── Shimmer ─────────────────────────────────────────── */
.shimmer-text { background: linear-gradient(90deg, var(--teal) 0%, #7fffff 40%, var(--teal) 80%); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }

/* ═══════════════════════════════════════════════════════
   MOBILE — Comprehensive responsive improvements
═══════════════════════════════════════════════════════ */

/* ── Prevent horizontal overflow globally ── */
html, body { overflow-x: hidden; }

/* ── Section padding ── */
@media (max-width: 768px) {
  #about, #why, #testimonials { padding: 64px 0 !important; }
  #services { padding: 64px 0; }
  #industries { padding: 64px 0; }
  #projects { padding: 64px 0; }
  #contact { padding: 64px 0; }
  #cta-banner { padding: 52px 0; }
  #footer { padding: 48px 0 28px; }
}

/* ── About: stack 2-col inline grid ── */
@media (max-width: 768px) {
  #about .container > div {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  #about .container > div > div:first-child img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }
}

/* ── Page Header ── */
@media (max-width: 768px) {
  .page-header {
    padding: calc(var(--bar-h) + var(--nav-h) + 32px) 0 48px;
  }
  .page-header-title { font-size: clamp(2rem, 9vw, 3.2rem); }
  .page-header-sub { font-size: 0.88rem; }
  .ghost-headline { font-size: clamp(3.5rem, 18vw, 7rem); }
}

/* ── Hero ── */
@media (max-width: 900px) {
  .hero-scroll { display: none; }
  #hero {
    height: auto;
    min-height: auto;
    align-items: center;
    padding-top: calc(var(--bar-h) + var(--nav-h) + 48px);
    padding-bottom: 60px;
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-sub { font-size: 0.88rem; }
  .hero-btns { gap: 10px; }
  .btn-primary, .btn-outline { padding: 11px 22px; font-size: 0.84rem; }
}

/* ── Stats ── */
@media (max-width: 480px) {
  .stat-cell { padding: 36px 16px; }
}

/* ── Section heading ── */
@media (max-width: 600px) {
  .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .cta-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ── Contact form ── */
@media (max-width: 600px) {
  .contact-form-wrap { padding: 24px 18px; }
}

/* ── Map strip ── */
@media (max-width: 600px) {
  #map-strip { height: 300px; }
  .map-overlay-badge {
    left: 12px;
    right: 12px;
    bottom: 60px;
    gap: 8px;
  }
  .map-badge-addr { display: none; }
  .map-directions { bottom: 12px; right: 12px; left: auto; }
}

/* ── Why section ── */
@media (max-width: 768px) {
  /* collapse the inline 2-col bottom row to match the 3-col top row */
  #why .container > div:last-child {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* compact glass-cards in why section — vertical: title then content */
  #why .glass-card {
    padding: 18px 16px;
  }
  #why .why-icon { display: none; }
  #why .why-title { font-size: 1rem; margin-bottom: 6px; }
  #why .why-desc { font-size: 0.8rem; line-height: 1.6; }
}

/* ── Top bar: hide hours on mobile, keep email + phone ── */
@media (max-width: 600px) {
  #top-bar .top-bar-item:nth-child(3),
  #top-bar .top-bar-sep:nth-child(4) { display: none; }
  #top-bar .top-bar-inner { justify-content: center; }
}

/* ── Offer page ── */
@media (max-width: 600px) {
  .offer-section { padding: 64px 0 52px; }
  .offer-head { flex-direction: column; gap: 16px; }
  .offer-head-icon { width: 52px; height: 52px; }
  .offer-ghost { font-size: clamp(4rem, 18vw, 7rem); }
  .offer-cards { grid-template-columns: 1fr !important; }
  .offer-feats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .offer-cards.wide { grid-template-columns: 1fr; }
}

/* ── Top bar ── */
@media (max-width: 400px) {
  .top-bar-inner { font-size: 0.6rem; gap: 8px; }
  .top-bar-sep { display: none; }
}

/* ── Footer ── */
@media (max-width: 500px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Tilt reset on touch ── */
@media (pointer: coarse) {
  .tilt-card, .wcus-card, .svc-card, .project-card, .goal-card, .feat-card,
  .offer-card { transform: none !important; }
  .btn-primary, .btn-outline, .btn-dark, .nav-cta { transform: none !important; }
}

/* ── Reveal animation: reduce translate on mobile ── */
@media (max-width: 600px) {
  .reveal       { transform: translateY(20px); }
  .reveal-left  { transform: translateX(-20px); }
  .reveal-right { transform: translateX(20px); }
}

/* ─── Keyframes ───────────────────────────────────────── */
@keyframes hero-up { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: none; } }
@keyframes float-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes float-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
@keyframes sphere-spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100%{opacity:.7} 50%{opacity:1;box-shadow:0 0 20px var(--teal),0 0 40px rgba(0,196,196,.4)} }
@keyframes scan { 0%{top:-2px;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{top:100%;opacity:0} }
@keyframes scroll-line { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes glitch-1 { 0%{transform:translateX(-3px)} 100%{transform:translateX(3px)} }
@keyframes glitch-2 { 0%{transform:translateX(3px)} 100%{transform:translateX(-3px)} }
