/* ==========================================================================
   MURTY TECHNOLOGY — CORE STYLESHEET (DARK THEME)
   Design tokens are derived from the Murty Technology mark: three ascending
   blue bars, now rendered as a dark, futuristic "control room" with a
   glowing line-art robot watermark behind the hero.
   -------------------------------------------------------------------------
   Token system:
     --ink        : near-white text colour for dark surfaces
     --primary-deep / --primary / --accent-cyan : the logo's blue gradient,
       used as the single accent family across the whole site
     --glass-*    : shared frosted-dark-glass recipe reused by every panel/card
   ========================================================================== */

:root {
  /* Surface — dark theme */
      --off-white: rgba(11, 18, 32, 0.4);  /* was solid #05070d, now translucent navy */
  --mist: rgba(11, 18, 32, 0.4);

  /* Ink (light-on-dark) */
  --ink: #e9edf6;
  --ink-soft: #a7b1c4;
  --ink-faint: #6b7690;

  /* Brand blues — lifted directly from the Murty mark's gradient */
  --primary-deep: #0b2e8a;
  --primary: #2f6bff;
  --primary-bright: #4d84ff;
  --accent-cyan: #38bdf8;
  --accent-cyan-soft: #38bdf8;

  /* Glass recipe — frosted dark glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(13, 20, 38, 0.72);
  --glass-border: rgba(56, 189, 248, 0.18);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(18px);

  /* Type scale */
  --font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-med: 480ms;
  --dur-slow: 900ms;

  /* Depth */
  --persp: 1600px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
.mobile-nav {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background grid — subtle, fixed, low-opacity technical texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(250, 254, 255) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 243, 245, 0.736) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #f2eeee7c 40%, transparent 100%);
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: blob-float 18s ease-in-out infinite;
}
.bg-blob.b1 { width: 520px; height: 520px; top: -140px; left: -140px; background: radial-gradient(circle, var(--accent-cyan-soft), transparent 70%); opacity: 0.16; }
.bg-blob.b2 { width: 620px; height: 620px; bottom: -220px; right: -160px; background: radial-gradient(circle, var(--primary-bright), transparent 70%); animation-delay: -6s; opacity: 0.12; }

@keyframes blob-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

section, header, footer, main { position: relative; z-index: 1; }

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.text-grad {
  background: linear-gradient(100deg, var(--primary-bright) 0%, var(--primary) 45%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ==========================================================================
   SITE-WIDE ROTATING ROBOT BACKGROUND
   Fixed behind the entire page (not just the hero). Every section scrolls
   over it as translucent glass, so the robot stays visible throughout.
   ========================================================================== */
.site-robot-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #52525335;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

/* Option A: video loop (preferred — swap in your own footage) */
.site-robot-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: saturate(1.05) brightness(1);   /* was 0.55 — raise toward 1 (or higher, e.g. 1.15, for even brighter) */
  opacity: 1;                              /* was 0.6 — full opacity so it's not faded out */
}

/* Option B: CSS/SVG fallback robot, continuously rotating */
.site-robot-bg .robot-rotator {
  width: 60vw;
  max-width: 720px;
  transform-style: preserve-3d;
  animation: robot-spin 18s linear infinite;
  filter: drop-shadow(0 0 60px rgba(56, 189, 248, 0.3));
  opacity: 0.5;
}
.site-robot-bg .robot-rotator svg { width: 100%; height: auto; display: block; }

@keyframes robot-spin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Darkening + vignette overlay so text stays readable over every section */
.site-robot-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(5,7,13,0.35) 0%, rgba(5,7,13,0.85) 70%, #05070d 100%);
}

/* Every section needs to be transparent so the fixed robot shows through */
.section, .hero, #site-header, #site-footer {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .site-robot-bg .robot-rotator { animation: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-murty {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-premium);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.btn-murty svg, .btn-murty i { transition: transform var(--dur-fast) var(--ease-premium); }
.btn-murty:hover svg, .btn-murty:hover i { transform: translateX(4px); }

.btn-primary-murty {
  color: #fff;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary) 55%, var(--accent-cyan));
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35);
}
.btn-primary-murty:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(47, 107, 255, 0.5);
  color: #fff;
}

.btn-ghost-murty {
  color: var(--ink);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-ghost-murty:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}

/* Magnetic button wrapper (JS adds translate via inline transform) */
.magnetic { will-change: transform; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
#site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 92vw);
  z-index: 999;
  border-radius: 100px;
  padding: 0.55rem 0.6rem 0.55rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--dur-med) var(--ease-premium), box-shadow var(--dur-med) var(--ease-premium), border-color var(--dur-med) var(--ease-premium), padding var(--dur-med) var(--ease-premium);
}
#site-header.scrolled {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  transition: color var(--dur-fast) var(--ease-premium);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width var(--dur-fast) var(--ease-premium);
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  position: relative;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--ink);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--dur-fast) var(--ease-premium);
}
.nav-toggle span::before { transform: translate(-50%, -7px); top:0; left:0; width:16px;}
.nav-toggle span::after { transform: translate(-50%, 7px); top:0; left:0; width:16px;}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  perspective: var(--persp);
  overflow: hidden;
}

/* NOTE: the old per-hero .hero-bg video layer and .hero-robot watermark have
   been removed — .site-robot-bg (defined earlier in this file) now covers
   the entire site, hero included, so these are no longer needed. */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-copy .headline {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.04;
  margin: 1.1rem 0 1.4rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 3rem;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}
.hero-stats div span {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* --- The Murty Core: the 3D signature centerpiece, built from the logo's
   three-bar mark instead of a generic robot/AI-brain cliché --- */
.core-stage {
  position: relative;
  height: 560px;
  transform-style: preserve-3d;
}

.core-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.28);
  transform-style: preserve-3d;
  animation: orbit-spin 26s linear infinite;
}
.core-orbit.o2 {
  width: 540px; height: 540px;
  margin: -270px 0 0 -270px;
  border-color: rgba(56, 189, 248, 0.18);
  animation-duration: 38s;
  animation-direction: reverse;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.core-wrap {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 300px;
  margin: -150px 0 0 -130px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
  transition: transform 0.4s var(--ease-premium);
  animation: core-float 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}
@keyframes core-float {
  0%, 100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0px); }
  50% { transform: rotateY(-12deg) rotateX(5deg) translateY(-16px); }
}

.core-bar {
  position: absolute;
  bottom: 0;
  border-radius: 22px;
  background: linear-gradient(200deg, var(--accent-cyan) 0%, var(--primary) 55%, var(--primary-deep) 100%);
  box-shadow: inset 0 2px 12px rgba(255,255,255,0.25), 0 20px 40px rgba(0,0,0,0.5);
}
.core-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), transparent 40%);
}
.core-bar.b1 { left: 0; width: 62px; height: 68%; transform: translateZ(10px) rotate(-4deg); }
.core-bar.b2 { left: 92px; width: 62px; height: 100%; transform: translateZ(40px); }
.core-bar.b3 { left: 184px; width: 62px; height: 58%; transform: translateZ(70px) rotate(3deg); }

.core-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  margin: -150px 0 0 -150px;
  background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 68%);
  filter: blur(20px);
  z-index: -1;
}

.float-panel {
  position: absolute;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: panel-float 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
}
.float-panel i { color: var(--accent-cyan); font-size: 0.85rem; }
.float-panel.p1 { top: 4%; left: -4%; animation-delay: 0s; }
.float-panel.p2 { top: 18%; right: -8%; animation-delay: -1.2s; }
.float-panel.p3 { bottom: 22%; left: -10%; animation-delay: -2.4s; }
.float-panel.p4 { bottom: 6%; right: -4%; animation-delay: -3.6s; }
.float-panel.p5 { top: 48%; left: 42%; animation-delay: -4.6s; z-index: 3;}

@keyframes panel-float {
  0%, 100% { transform: translateY(0px) translateZ(60px); }
  50% { transform: translateY(-14px) translateZ(60px); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--primary), transparent);
  animation: cue-run 2s ease-in-out infinite;
}
@keyframes cue-run { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* ==========================================================================
   SHARED SECTION LAYOUT
   ========================================================================== */
.section { padding: 7.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 0.9rem; }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   ABOUT PREVIEW
   ========================================================================== */
.about-visual {
  position: relative;
  height: 420px;
  border-radius: 28px;
  background: linear-gradient(160deg, #0d1730, #05070d 60%);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transform-style: preserve-3d;
}
.about-visual .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(56,189,248,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}
.about-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.28);
}
.about-visual .ring.r1 { width: 260px; height: 260px; top: 30%; left: 20%; }
.about-visual .ring.r2 { width: 160px; height: 160px; top: 45%; left: 40%; border-color: rgba(56,189,248,0.45); }
.about-visual .mini-bars { position: absolute; bottom: 18%; right: 22%; display: flex; align-items: flex-end; gap: 10px; }
.about-visual .mini-bars i { display:block; width: 16px; border-radius: 6px; background: linear-gradient(200deg, var(--accent-cyan), var(--primary-deep)); }
/* ==========================================================================
   SERVICES MEGA MENU
   ========================================================================== */
.has-mega { position: relative; }

.has-mega > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mega-caret {
  font-size: 0.6rem;
  color: var(--ink-faint);
  transition: transform var(--dur-fast) var(--ease-premium), color var(--dur-fast) var(--ease-premium);
}
.has-mega:hover .mega-caret,
.has-mega.mega-open .mega-caret {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1180px, 90vw);
  border-radius: 22px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.2rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-premium),
              transform var(--dur-fast) var(--ease-premium),
              visibility var(--dur-fast) var(--ease-premium);
  z-index: 998;
}

.has-mega:hover .mega-menu,
.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mega-col {
  padding: 0 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.mega-col:last-child { border-right: none; }

.mega-col-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, rgba(56,189,248,0.18), rgba(47,107,255,0.12));
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.mega-col-head h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mega-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  cursor: default;
  user-select: none;
}
.mega-list li i {
  font-size: 0.34rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .mega-menu { display: none; } /* mobile flyout uses its own simple links */
}
/* ==========================================================================
   SERVICES — "Systems Console"
   A channel-rail on the left, one live readout stage on the right. Selecting
   a channel updates the stage's accent, waveform and copy — an interaction,
   not a grid of identical cards.
   ========================================================================== */
.services-console {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
@media (max-width: 860px) {
  .services-console { grid-template-columns: 1fr; }
}

.console-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.18);
}
@media (max-width: 860px) {
  .console-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--dur-fast) var(--ease-premium);
}
@media (max-width: 860px) {
  .rail-item { flex: 0 0 auto; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); }
}

.rail-item:hover { background: rgba(255,255,255,0.03); }

.rail-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-premium);
}
.rail-item.active .rail-bar { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
@media (max-width: 860px) {
  .rail-bar { left: 0; right: 0; top: auto; bottom: 0; height: 3px; width: auto; }
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  min-width: 22px;
}
.rail-item.active .rail-idx { color: var(--accent-cyan); }

.rail-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-premium);
}
.rail-item.active .rail-name { color: var(--ink); }

/* Stage — the live readout panel */
.console-stage {
  position: relative;
  padding: 3rem 3rem 2.6rem;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.console-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--stage-accent) 16%, transparent), transparent 55%);
  transition: background 0.5s var(--ease-premium);
  pointer-events: none;
}

.stage-scan {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 14%, transparent), transparent);
  animation: scan-sweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%   { top: -120px; }
  100% { top: 100%; }
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
.stage-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--stage-accent);
  transition: color 0.5s var(--ease-premium);
}
.stage-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.stage-live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 6px #34d399;
  animation: status-blink 1.6s ease-in-out infinite;
}
@keyframes status-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Waveform — the brand's three-bar mark, extended into a live readout */
.stage-wave {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  margin-bottom: 1.6rem;
}
.stage-wave i {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: var(--stage-accent);
  transition: background 0.5s var(--ease-premium);
  animation: wave-pulse 1.4s ease-in-out infinite;
}
.stage-wave i:nth-child(1) { height: 30%; animation-delay: 0s; }
.stage-wave i:nth-child(2) { height: 65%; animation-delay: 0.1s; }
.stage-wave i:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.stage-wave i:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.stage-wave i:nth-child(5) { height: 80%; animation-delay: 0.4s; }
.stage-wave i:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.stage-wave i:nth-child(7) { height: 60%; animation-delay: 0.6s; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(1.25); opacity: 1; }
}

.console-stage h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.console-stage p { color: var(--ink-soft); font-size: 1rem; max-width: 480px; line-height: 1.7; margin-bottom: 1.8rem; }

.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stage-accent);
  text-decoration: none;
  transition: color 0.5s var(--ease-premium);
}
.stage-link i { transition: transform var(--dur-fast) var(--ease-premium); }
.stage-link:hover i { transform: translateX(4px); }
  /* ==========================================================================
     SERVICE DIRECTORY — styled as a continuation of the "Systems Console"
     language: mono channel codes, accent rail, glass surface. Pure SEO
     content block, no JS dependency.
     ========================================================================== */
  .service-directory {
    margin-top: 2rem;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
  }
 
  .directory-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.18);
  }
  .directory-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
  }
  .directory-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
  }
 
  .directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
 
  .directory-channel {
    padding: 1.75rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
  }
  .directory-channel::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--ch-accent);
    opacity: 0.85;
  }
 
  .directory-channel-head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 1rem;
  }
  .directory-idx {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ch-accent);
  }
  .directory-channel-head h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
  }
 
  .directory-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .directory-links a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-fast) var(--ease-premium), border-color var(--dur-fast) var(--ease-premium);
  }
  .directory-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--ch-accent);
  }
 
  @media (max-width: 860px) {
    .directory-channel:nth-child(odd) { border-right: none; }
  }
 

/* ==========================================================================
   INDUSTRIES WE SERVE
   ========================================================================== */
.industries-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.industries-console {
  position: relative;
  z-index: 2; /* lift above fixed decorative background layers */
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.industries-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.industries-tabs::-webkit-scrollbar { display: none; }

.ind-tab {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-premium);
}
.ind-tab i {
  font-size: 0.85rem;
  color: var(--ink-faint);
  transition: color var(--dur-fast) var(--ease-premium);
}
.ind-tab:hover { color: var(--ink-soft); background: rgba(255,255,255,0.06); }
.ind-tab.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  box-shadow: 0 8px 20px rgba(47,107,255,0.35);
}
.ind-tab.active i { color: #fff; }

.industries-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
}
@media (max-width: 991.98px) {
  .industries-body { grid-template-columns: 1fr; padding: 2.5rem 1.6rem; }
}

.industries-content h3 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.industries-content > p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.ind-points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ind-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.ind-points li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 0.15em;
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* --- 3D Stage: enlarged brand mark as rotating centerpiece --- */
.industries-stage {
  position: relative;
  height: 420px;
  transform-style: preserve-3d;
  perspective: 1400px;
}

.ind-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(56,189,248,0.25);
  transform-style: preserve-3d;
}
.ind-orbit.o1 {
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  animation: orbit-spin 24s linear infinite;
}
.ind-orbit.o2 {
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-color: rgba(56,189,248,0.14);
  animation: orbit-spin 34s linear infinite reverse;
}

.ind-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  background: radial-gradient(circle, rgba(56,189,248,0.35), transparent 68%);
  filter: blur(30px);
  z-index: -1;
}

/* Replaces .ind-mark-wrap: a tilted glass-framed photo that crossfades per tab */
.ind-photo-frame {
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform 0.4s var(--ease-premium);
  animation: core-float 6s ease-in-out infinite;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 60px rgba(56, 189, 248, 0.25);
}

.ind-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.4s var(--ease-premium);
}
.ind-photo-frame img.fading {
  opacity: 0;
}

/* legibility gradient so any future overlay text/icons stay readable */
.ind-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0) 45%, rgba(5,7,13,0.85) 100%);
  pointer-events: none;
}

.industries-stage .float-panel.p2 { top: 12%; right: 2%; }
.industries-stage .float-panel.p3 { bottom: 14%; left: 0%; }

@media (max-width: 767.98px) {
  .industries-stage { height: 340px; }
  .ind-mark-wrap { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
  .ind-card {
    transform: translate(-50%, -50%) translateZ(60px) translateY(-110px);
    padding: 1.1rem 1.4rem;
  }
}
/* Tech stack */
/* ==========================================================================
   TECH CHIPS
   ========================================================================== */
.tech-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2rem 0;
  width: 100%;
  text-align: center;
}

.tech-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.tech-group-label {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
  padding-bottom: 0.6rem;
  text-align: center;
  width: 100%;
}
.tech-group-label::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.tech-chip {
  position: relative;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: default;
  opacity: 0;
  transition: color var(--dur-fast) var(--ease-premium),
              border-color var(--dur-fast) var(--ease-premium),
              box-shadow var(--dur-fast) var(--ease-premium),
              background var(--dur-fast) var(--ease-premium);
}

.tech-chip i { font-size: 3rem; transition: transform var(--dur-fast) var(--ease-premium); }
.tech-chip .fa-html5 { color: #e34c26; }
.tech-chip .fa-css3-alt { color: #2965f1; }
.tech-chip .fa-js { color: #f7df1e; }
.tech-chip .fa-react { color: #61dafb; }
.tech-chip .fa-mobile-screen { color: #38bdf8; }
.tech-chip .fa-php { color: #8993be; }
.tech-chip .fa-layer-group { color: #ff2d20; }
.tech-chip .fa-node-js { color: #68a063; }
.tech-chip .fa-python { color: #ffd43b; }
.tech-chip .fa-brain { color: #a78bfa; }
.tech-chip .fa-cloud { color: #38bdf8; }
.tech-chip .fa-infinity { color: #4d84ff; }

.tech-chip:hover {
  transform: translateY(-5px);
  color: var(--ink);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 34px rgba(47, 107, 255, 0.28), 0 0 0 1px rgba(56,189,248,0.12) inset;
  background: linear-gradient(180deg, rgba(56,189,248,0.1), rgba(11,18,32,0.4));
}
.tech-chip:hover i { transform: scale(1.15) rotate(-4deg); }

/* --- Flowing entrance: alternating left/right settle-in --- */
.tech-field:not(.in-view) .tech-row .tech-chip {
  opacity: 0;
  animation: none;
}

.tech-row .tech-chip:nth-child(odd) {
  animation: flow-in-left 0.9s var(--ease-premium) forwards;
  animation-play-state: paused;
}
.tech-row .tech-chip:nth-child(even) {
  animation: flow-in-right 0.9s var(--ease-premium) forwards;
  animation-play-state: paused;
}
.tech-field.in-view .tech-row .tech-chip {
  animation-play-state: running;
}

.tech-row .tech-chip:nth-child(1) { animation-delay: 0.05s; }
.tech-row .tech-chip:nth-child(2) { animation-delay: 0.18s; }
.tech-row .tech-chip:nth-child(3) { animation-delay: 0.31s; }
.tech-row .tech-chip:nth-child(4) { animation-delay: 0.44s; }
.tech-row .tech-chip:nth-child(5) { animation-delay: 0.57s; }

@keyframes flow-in-left {
  0%   { opacity: 0; transform: translateX(-140px) scale(0.9); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes flow-in-right {
  0%   { opacity: 0; transform: translateX(140px) scale(0.9); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-chip { opacity: 1; animation: none !important; transform: none !important; }
}

@media (max-width: 767.98px) {
  .tech-field { gap: 1.6rem; }
  .tech-row { gap: 0.5rem; }
  .tech-chip { font-size: 1rem; padding: 0.5rem 0.9rem; }
}
/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio-grid { perspective: 1400px; }
.port-card {
  border-radius: 20px;
  overflow: hidden;
  background: #0b1424;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform-style: preserve-3d;
  transition: transform var(--dur-med) var(--ease-premium), box-shadow var(--dur-med) var(--ease-premium);
}
.port-card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.015);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.port-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--glass-border);
}
.port-chrome span { width: 8px; height: 8px; border-radius: 50%; background: #223151; }
.port-thumb {
  height: 210px;
  background: linear-gradient(135deg, #101d38, #0b1424 60%, #05070d);
  position: relative;
  overflow: hidden;
}
.port-thumb .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  color: rgba(56,189,248,0.35);
}
.port-body { padding: 1.3rem 1.4rem 1.5rem; }
.port-body .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.port-body h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.port-body p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
/* ==========================================================================
   TESTIMONIALS — vertical auto-scrolling marquee columns
   ========================================================================== */
.testi-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 991.98px) {
  .testi-layout { grid-template-columns: 1fr; }
}

.testi-intro h2 { margin-top: 0.9rem; }

.testi-marquee-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  height: 560px;
  overflow: hidden;
  border-radius: 24px;
}
@media (max-width: 575.98px) {
  .testi-marquee-wrap { grid-template-columns: 1fr; height: 480px; }
  .testi-col.scroll-down { display: none; } /* single column on very small screens */
}

.testi-fade {
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  z-index: 3;
  pointer-events: none;
}
.testi-fade.top {
  top: 0;
  background: linear-gradient(180deg, var(--off-white) 0%, transparent 100%);
}
.testi-fade.bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--off-white) 0%, transparent 100%);
}

.testi-col {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.testi-track-v {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}

.testi-col.scroll-up .testi-track-v {
  animation: marquee-up 26s linear infinite;
}
.testi-col.scroll-down .testi-track-v {
  animation: marquee-down 30s linear infinite;
}

/* Pause on hover so people can actually read one */
.testi-col:hover .testi-track-v {
  animation-play-state: paused;
}

@keyframes marquee-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes marquee-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.testi-mcard {
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.testi-mcard.accent {
  background: linear-gradient(160deg, var(--primary-deep), var(--primary) 120%);
  border-color: transparent;
}
.testi-mcard i.fa-quote-left {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  opacity: 0.7;
}
.testi-mcard.accent i.fa-quote-left { color: rgba(255,255,255,0.7); }

.testi-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin: 0.6rem 0 0.8rem;
}

.testi-mcard p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.testi-mcard.accent p { color: rgba(255,255,255,0.92); }

.testi-mfoot { display: flex; align-items: center; gap: 0.7rem; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--primary-deep), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.testi-mcard.accent .testi-avatar { background: rgba(255,255,255,0.25); }
.testi-name { font-weight: 600; font-size: 0.86rem; color: var(--ink); }
.testi-mcard.accent .testi-name { color: #fff; }
.testi-role { font-size: 0.74rem; color: var(--ink-faint); }
.testi-mcard.accent .testi-role { color: rgba(255,255,255,0.7); }

@media (prefers-reduced-motion: reduce) {
  .testi-col.scroll-up .testi-track-v,
  .testi-col.scroll-down .testi-track-v {
    animation: none;
  }
}
/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  position: relative;
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #05070d 0%, var(--primary-deep) 60%, var(--primary) 130%);
  color: #fff;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 34px;
  padding: 2px;
  background: linear-gradient(120deg, var(--accent-cyan), transparent 30%, var(--accent-cyan) 70%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 6s linear infinite;
  opacity: 0.7;
}
@keyframes border-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.75); }
.cta-section .btn-ghost-murty { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#site-footer {
  margin-top: 4rem;
  padding: 4.5rem 0 2rem;
  background: var(--glass-bg-strong);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}
#site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), var(--primary), transparent);
  background-size: 200% 100%;
  animation: shimmer-line 5s linear infinite;
}
@keyframes shimmer-line { to { background-position: -200% 0; } }

.footer-brand p { color: var(--ink-soft); max-width: 320px; font-size: 0.92rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; transition: color var(--dur-fast) var(--ease-premium); }
.footer-col a:hover { color: var(--accent-cyan); }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  transition: all var(--dur-fast) var(--ease-premium);
  animation: chip-bob 4s ease-in-out infinite;
}
.social-row a:hover { background: var(--primary); color: #fff; transform: translateY(-4px); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

#back-to-top {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-deep), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur-fast) var(--ease-premium);
  z-index: 900;
  cursor: pointer;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   CURSOR GLOW
   ========================================================================== */
#cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56,189,248,0.14), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity var(--dur-med) var(--ease-premium);
}

/* Utility */
.container-narrow { max-width: 1319px; margin: 0 auto; padding: 0 1.5rem; }
/* ---- Mega menu fixes ---- */

/* Anchor the menu to the fixed header instead of the Services <li> */
.has-mega { position: static; }

.mega-menu {
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: auto;                       /* same width as the header pill */
  transform: translateY(8px);
  background: rgba(9, 14, 28, 0.97); /* near-solid: nested blur doesn't work */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Invisible bridge so the hover doesn't drop in the gap */
.mega-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -40px;
  height: 40px;
}

/* Open on hover, keyboard focus, or the .mega-open class from main.js */
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- Mega menu links ---- */
.mega-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
}
.mega-list a:hover { color: var(--ink); }
.mega-list a::after { display: none; }   /* no nav underline inside the menu */

/* ---- Mobile Services list ---- */
.mobile-nav .m-label { display: block; color: var(--ink-faint); font-size: 0.8rem; margin: 0.6rem 0 0.3rem; }
.mobile-nav .m-sub { list-style: none; margin: 0 0 0.4rem; padding-left: 0.9rem; border-left: 1px solid var(--glass-border); }
.mobile-nav .m-sub a { font-size: 0.92rem; }
/* ---- Footer address column ---- */
.footer-address address {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-style: normal;
}
.footer-address address a {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color var(--dur-fast) var(--ease-premium);
}
.footer-address address a:hover { color: var(--accent-cyan); }
.footer-address address i {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* keep the long email from overflowing its column */
.footer-col a { overflow-wrap: anywhere; }