/* ============================================================================
   Coastal I.T & Network Solutions — site stylesheet
   Merged and deduplicated from references/index.html (CSS lines 16-645)
   and references/blog.html (CSS lines 13-196).

   Template contract (for page templates):
   - Home hero:        <section id="hero"> ... (100vh hero, .hero-text/.hero-visual)
   - Blog/article hero: <section id="hero" class="hero-subpage"> ... (.hero-inner)
   - Mobile menu open:  JS toggles .open on .nav-links and .nav-cta
   - Nav scrolled:      JS toggles .scrolled on #navbar after 60px scroll
   - Article pages:     wrap article body in <div class="article-page">
   Modal-reader styles from the reference blog are dropped: article pages
   render as real pages instead.
   ========================================================================== */

/* ── TOKENS ── */
:root {
  --navy: #020b18;
  --navy2: #041225;
  --blue: #0d6efd;
  --cyan: #00d4ff;
  --cyan2: #00ffe5;
  --red: #e63946;
  --white: #f0f8ff;
  --gray: #8bafc8;
  --card-bg: rgba(4,30,60,0.7);
  --border: rgba(0,212,255,0.18);
  --border2: rgba(0,212,255,0.08);
  --glow: 0 0 24px rgba(0,212,255,0.35);
}

/* ── RESET/BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* custom cursor dot + lerped ring (JS-driven; disabled on coarse pointers) */
#cursor {
  width: 12px; height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  transition: transform 0.1s, border-color 0.2s;
  mix-blend-mode: screen;
}
#cursor-trail {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transition: transform 0.25s ease, opacity 0.3s;
}

/* full-page particle canvas (JS-driven) */
#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* scanline overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
}

/* every anchor is styled by its own class; strip the browser defaults */
a { color: inherit; text-decoration: none; }

/* ── PHONE-BAR + NAV ── */
.phone-bar {
  position: fixed; top: 88px; right: 0; z-index: 999;
  display: flex; align-items: center;
  background: rgba(2,11,24,0.94); border-left: 1px solid rgba(0,212,255,0.22);
  border-bottom: 1px solid rgba(0,212,255,0.22); border-bottom-left-radius: 6px;
  backdrop-filter: blur(14px); overflow: hidden;
}
.phone-bar a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem;
  letter-spacing: .1em; text-decoration: none; transition: background .2s; white-space: nowrap;
}
.pb-phone { color: var(--cyan); border-right: 1px solid rgba(0,212,255,0.15); }
.pb-phone:hover { background: rgba(0,212,255,0.08); }
.pb-wa { color: #25D366; }
.pb-wa:hover { background: rgba(37,211,102,0.1); }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 88px;
  background: rgba(2,11,24,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(2,11,24,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: navScan 4s ease-in-out infinite;
}
@keyframes navScan {
  0%,100% { opacity:0.3; transform: scaleX(0.5); }
  50% { opacity:1; transform: scaleX(1); }
}
.nav-logo img { height: 74px; width: auto; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,212,255,0.55)); mix-blend-mode: screen; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Orbitron', monospace; font-weight: 600; font-size: 0.68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gray);
  text-decoration: none; transition: color .2s, text-shadow .2s;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--cyan); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.65rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  background: var(--cyan); padding: 10px 24px; text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.nav-cta:hover { background: var(--cyan2); box-shadow: 0 0 35px rgba(0,255,229,0.6); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer;
  /* the reference hamburger is a bare div; reset the button's UA chrome */
  background: none; border: 0; border-radius: 0; padding: 6px 2px;
  appearance: none; -webkit-appearance: none; }
.hamburger span { width: 24px; height: 2px; background: var(--cyan); }

/* mobile menu open state (JS toggles .open; replaces reference inline styles) */
.nav-links.open {
  display: flex; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0;
  background: rgba(2,11,24,0.97); padding: 22px 5vw; gap: 22px;
  border-bottom: 1px solid rgba(0,212,255,0.15);
}
.nav-cta.open { display: block; margin: 0 5vw 14px; text-align: center; }
/* the reference styles the Blog link cyan on every page */
.nav-links a.nav-blog { color: var(--cyan2) !important; }

/* ── BUTTONS ── */
.btn-cyber {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.65rem;
  letter-spacing: .18em; text-transform: uppercase; padding: 14px 32px;
  text-decoration: none; position: relative; overflow: hidden;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: box-shadow .3s;
}
.btn-cyber-fill {
  background: var(--cyan); color: var(--navy);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.btn-cyber-fill:hover { box-shadow: 0 0 40px rgba(0,212,255,0.7); }
.btn-cyber-outline {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0,212,255,0.15), inset 0 0 10px rgba(0,212,255,0.05);
}
.btn-cyber-outline:hover { box-shadow: 0 0 25px rgba(0,212,255,0.4), inset 0 0 20px rgba(0,212,255,0.1); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.6rem;
  letter-spacing: .15em; text-transform: uppercase; padding: 11px 20px;
  text-decoration: none; clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  transition: box-shadow .3s, filter .3s; border: none; cursor: pointer;
}
.btn-wa-green { background: #25D366; color: #fff; box-shadow: 0 0 16px rgba(37,211,102,0.4); }
.btn-wa-green:hover { box-shadow: 0 0 32px rgba(37,211,102,0.7); filter: brightness(1.08); }
.btn-wa-cyan { background: var(--cyan); color: var(--navy); box-shadow: 0 0 16px rgba(0,212,255,0.4); }
.btn-wa-cyan:hover { box-shadow: 0 0 32px rgba(0,212,255,0.7); }
.btn-wa-outline { background: transparent; color: var(--cyan); border: 1px solid rgba(0,212,255,0.5); box-shadow: none; }
.btn-wa-outline:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,212,255,0.25); color: #fff; }
.btn-wa-phone { background: transparent; color: var(--gray); border: 1px solid rgba(255,255,255,0.14); }
.btn-wa-phone:hover { border-color: rgba(0,212,255,0.4); color: var(--cyan); }

/* blog-only button variants */
.btn-green {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.6rem;
  letter-spacing: .15em; text-transform: uppercase; padding: 12px 20px;
  text-decoration: none; clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  background: #25D366; color: #06301a; box-shadow: 0 0 16px rgba(37,211,102,0.4);
  transition: box-shadow .3s;
}
.btn-green:hover { box-shadow: 0 0 32px rgba(37,211,102,0.7); }
.btn-cyan {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.6rem;
  letter-spacing: .15em; text-transform: uppercase; padding: 12px 20px;
  text-decoration: none; clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  background: var(--cyan); color: var(--navy); box-shadow: 0 0 16px rgba(0,212,255,0.4);
  transition: box-shadow .3s;
}
.btn-cyan:hover { box-shadow: 0 0 32px rgba(0,212,255,0.7); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.6rem;
  letter-spacing: .15em; text-transform: uppercase; padding: 12px 20px;
  text-decoration: none; clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  background: transparent; color: var(--cyan); border: 1px solid rgba(0,212,255,0.5);
  transition: box-shadow .3s;
}
.btn-outline:hover { box-shadow: 0 0 18px rgba(0,212,255,0.3); color: #fff; }

/* ── HERO ── */
/* home hero */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 110px 5vw 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,212,255,0.08); border: 1px solid var(--border);
  color: var(--cyan); font-family: 'Share Tech Mono', monospace; font-size: 0.72rem;
  letter-spacing: .15em; padding: 7px 18px; margin-bottom: 28px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  animation: tagPulse 3s ease-in-out infinite;
}
.hero-subpage .hero-tag { margin-bottom: 22px; font-size: 0.7rem; }
@keyframes tagPulse { 0%,100%{box-shadow:0 0 0 rgba(0,212,255,0);} 50%{box-shadow:0 0 20px rgba(0,212,255,0.3);} }
.tag-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.hero-text h1 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--cyan2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-text h1 .red { -webkit-text-fill-color: var(--red); }
.hero-sub {
  font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--cyan);
  letter-spacing: .12em; margin-bottom: 20px; opacity: 0.8;
}
.hero-text p {
  font-size: 1.05rem; line-height: 1.8; color: rgba(240,248,255,0.7);
  margin-bottom: 40px; max-width: 520px; font-weight: 400;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 52px;
  background: var(--border);
  border: 1px solid var(--border);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.stat { background: var(--card-bg); padding: 20px 10px; text-align: center; }
.stat-num {
  font-family: 'Orbitron', monospace; font-weight: 900; font-size: 2rem;
  color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.5);
}
.stat-label { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }

/* home hero visual panel */
.hero-visual { position: relative; perspective: 1200px; }
.holo-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,0.1), inset 0 0 60px rgba(0,212,255,0.04);
  animation: holoPulse 4s ease-in-out infinite;
}
@keyframes holoPulse { 0%,100%{box-shadow:0 0 40px rgba(0,212,255,0.1),inset 0 0 60px rgba(0,212,255,0.04);} 50%{box-shadow:0 0 60px rgba(0,212,255,0.2),inset 0 0 60px rgba(0,212,255,0.08);} }
.holo-panel::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.05), transparent);
  animation: holoSweep 3s ease-in-out infinite;
}
@keyframes holoSweep { 0%{left:-100%;} 100%{left:200%;} }
.panel-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); opacity: 0.5;
  animation: dotAnim 1.5s ease-in-out infinite;
}
.panel-dots span:nth-child(2){animation-delay:.3s; background:var(--cyan2);}
.panel-dots span:nth-child(3){animation-delay:.6s; background:var(--red);}
@keyframes dotAnim { 0%,100%{opacity:.3;} 50%{opacity:1;} }
.panel-title { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--cyan); letter-spacing: .15em; }
.service-rows { display: flex; flex-direction: column; gap: 10px; }
.svc-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid rgba(0,212,255,0.1);
  border-radius: 2px; background: rgba(0,212,255,0.03);
  transition: background .3s, border-color .3s, transform .3s;
  animation: slideInRight 0.6s ease both;
}
.svc-row:nth-child(1){animation-delay:.1s;}
.svc-row:nth-child(2){animation-delay:.2s;}
.svc-row:nth-child(3){animation-delay:.3s;}
.svc-row:nth-child(4){animation-delay:.4s;}
.svc-row:nth-child(5){animation-delay:.5s;}
@keyframes slideInRight { from{opacity:0;transform:translateX(30px);} to{opacity:1;transform:translateX(0);} }
.svc-row:hover { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3); transform: translateX(-4px); }
.svc-bar { width: 3px; height: 32px; background: var(--cyan); border-radius: 2px; flex-shrink:0; box-shadow: 0 0 8px var(--cyan); }
.svc-row:nth-child(2) .svc-bar { background: var(--cyan2); box-shadow: 0 0 8px var(--cyan2); }
.svc-row:nth-child(3) .svc-bar { background: #5b8def; box-shadow: 0 0 8px #5b8def; }
.svc-row:nth-child(4) .svc-bar { background: #f5a623; box-shadow: 0 0 8px #f5a623; }
.svc-row:nth-child(5) .svc-bar { background: var(--red); box-shadow: 0 0 8px var(--red); }
.svc-row-icon { font-size: 1.1rem; flex-shrink: 0; }
.svc-row-text { font-size: 0.85rem; color: rgba(240,248,255,0.85); font-weight: 500; }
.svc-row-pct { margin-left: auto; font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--cyan); }

/* blog/article hero: add class hero-subpage to #hero.
   ID+class selector: the plain .hero-subpage rules lose to #hero's
   min-height:100vh and padding above, which are meant for the home page only. */
#hero.hero-subpage {
  min-height: 50vh; padding: 120px 5vw 70px; z-index: 2;
}
.hero-subpage::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,100,200,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-subpage h1 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.1; color: #fff;
  letter-spacing: -.01em; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--cyan2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subpage p {
  font-size: 0.98rem; line-height: 1.8; color: var(--gray);
  max-width: 560px; margin-bottom: 28px;
}

/* ── SECTIONS ── */
section { padding: 100px 5vw; position: relative; z-index: 2; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
  color: var(--cyan); letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; opacity: 0.85;
}
.section-tag::before { content: '//'; opacity: 0.6; }
h2 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15;
  letter-spacing: -.01em; margin-bottom: 20px;
}
.section-desc { font-size: 1rem; line-height: 1.8; color: var(--gray); max-width: 560px; margin-bottom: 60px; font-weight: 400; }

/* generic mono tag + 404 panel (used by the notFound template) */
.mono-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
  color: var(--cyan); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 14px; opacity: 0.85;
}
.notfound { text-align: center; }
.notfound h1 { font-family: 'Orbitron', monospace; font-weight: 900; margin-bottom: 14px; }
.notfound p { color: var(--gray); }
.notfound a { color: var(--cyan); }

/* about */
#about { background: var(--navy2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; perspective: 1200px; }
.holo-box {
  border: 1px solid var(--border); border-radius: 4px; padding: 48px;
  background: var(--card-bg); position: relative; overflow: hidden;
  box-shadow: 0 0 50px rgba(0,212,255,0.08);
}
.holo-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan2), transparent);
  animation: scanLine 3s ease-in-out infinite;
}
@keyframes scanLine { 0%,100%{opacity:.4;} 50%{opacity:1;} }
.about-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.about-num-cell { background: var(--navy2); padding: 30px 20px; text-align: center; transition: background .3s; }
.about-num-cell:hover { background: rgba(0,212,255,0.06); }
.anc-num { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 2.4rem; color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.4); }
.anc-label { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.about-corner {
  position: absolute; top: -1px; right: -1px;
  width: 0; height: 0;
  border-style: solid; border-width: 0 40px 40px 0;
  border-color: transparent var(--cyan) transparent transparent;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { font-size: 1rem; line-height: 1.8; color: var(--gray); margin-bottom: 18px; font-weight: 400; }
.pillars { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid rgba(0,212,255,0.12);
  background: rgba(0,212,255,0.03); position: relative; overflow: hidden;
  transition: border-color .3s, background .3s, transform .3s;
}
.pillar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.pillar:hover { border-color: rgba(0,212,255,0.35); background: rgba(0,212,255,0.07); transform: translateX(6px); }
.pillar-icon { font-size: 1.3rem; flex-shrink: 0; }
.pillar-title { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.72rem; letter-spacing: .1em; color: var(--cyan); margin-bottom: 5px; }
.pillar-desc { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* services */
#services { background: var(--navy); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-tag { justify-content: center; }
.services-header h2, .services-header .section-desc { text-align: center; margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  border: 1px solid rgba(0,212,255,0.12); background: var(--card-bg);
  padding: 36px 28px; position: relative; overflow: hidden;
  transition: border-color .35s, transform .35s, box-shadow .35s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.svc-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 20px 20px 0;
  border-color: transparent var(--cyan) transparent transparent;
  transition: border-color .3s;
}
.svc-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.svc-card:hover { border-color: rgba(0,212,255,0.45); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,212,255,0.12), 0 0 30px rgba(0,212,255,0.08); }
.svc-card:hover::after { opacity: 1; }
.svc-card:hover::before { border-color: transparent var(--cyan2) transparent transparent; }
.svc-card-num {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: rgba(0,212,255,0.4); letter-spacing: .15em; margin-bottom: 16px;
}
.svc-card-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.svc-card-title {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.82rem;
  letter-spacing: .08em; color: var(--white); margin-bottom: 14px;
}
.svc-card-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.75; font-weight: 400; }
.svc-card-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.svc-card:hover .svc-card-line { transform: scaleX(1); }

/* why us */
#why { background: var(--navy2); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-cards { display: flex; flex-direction: column; gap: 16px; }
.why-card {
  border: 1px solid rgba(0,212,255,0.1); background: rgba(0,20,40,0.6);
  padding: 24px 28px; position: relative; overflow: hidden;
  transition: border-color .3s, background .3s, transform .3s;
}
.why-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); opacity: 0; transition: opacity .3s;
}
.why-card:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); transform: translateX(6px); }
.why-card:hover::before { opacity: 1; }
.wc-title { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.75rem; letter-spacing: .1em; color: var(--cyan); margin-bottom: 10px; }
.wc-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; font-weight: 400; }
.why-panel { display: flex; flex-direction: column; gap: 20px; }
.big-stat-box {
  background: linear-gradient(135deg, rgba(0,100,200,0.3), rgba(0,212,255,0.15));
  border: 1px solid var(--border); padding: 40px; text-align: center;
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.bsb-num { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 4.5rem; color: var(--cyan); text-shadow: 0 0 40px rgba(0,212,255,0.5); line-height: 1; }
.bsb-label { font-size: 0.85rem; color: rgba(240,248,255,0.7); margin-top: 10px; letter-spacing: .05em; }
.tag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tag-chip {
  border: 1px solid rgba(0,212,255,0.2); background: rgba(0,212,255,0.05);
  padding: 10px 14px; font-size: 0.75rem; color: rgba(240,248,255,0.8); font-weight: 500;
  text-align: center; transition: border-color .2s, background .2s;
}
.tag-chip:hover { border-color: var(--cyan); background: rgba(0,212,255,0.12); color: var(--cyan); }
.countries-box { border: 1px solid var(--border); background: var(--card-bg); padding: 24px 28px; }
.box-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; opacity: .8; }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { font-size: 0.78rem; color: var(--gray); padding: 5px 12px; border: 1px solid rgba(0,212,255,0.15); }

/* locations */
#locations { background: var(--navy); }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.loc-card {
  border: 1px solid rgba(0,212,255,0.15); background: var(--card-bg);
  padding: 36px 28px; text-align: center; position: relative; overflow: hidden;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.loc-card:hover { border-color: rgba(0,212,255,0.45); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,212,255,0.1); }
.loc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform .4s;
}
.loc-card:hover::before { transform: scaleX(1); }
.loc-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.loc-city { font-family: 'Orbitron', monospace; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.loc-region { font-size: 0.8rem; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-family: 'Share Tech Mono', monospace; }
.loc-desc { font-size: 0.85rem; color: var(--gray); line-height: 1.65; }

/* partners */
#partners { background: var(--navy2); }
.partners-intro { text-align: center; margin-bottom: 60px; }
.partners-intro .section-tag { justify-content: center; }
.partners-intro h2 { text-align: center; }
.partners-intro p { text-align: center; margin: 0 auto; }
.partners-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.partner-card {
  border: 1px solid rgba(0,212,255,0.12); background: rgba(4,18,37,0.8);
  padding: 22px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  min-height: 100px;
}
.partner-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,212,255,0.15); }
.partner-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent);
  opacity: 0; transition: opacity .3s;
}
.partner-card:hover::before { opacity: 1; }
.partner-logo-text {
  font-family: 'Orbitron', monospace; font-weight: 800;
  font-size: 0.82rem; letter-spacing: .08em; color: var(--white);
  text-shadow: 0 0 10px rgba(0,212,255,0.2);
}
.partner-icon { font-size: 1.6rem; }
.partner-name { font-size: 0.62rem; color: var(--gray); text-transform: uppercase; letter-spacing: .12em; font-family: 'Share Tech Mono', monospace; }
/* special brand colors on hover */
.pc-dell:hover .partner-logo-text { color: #007db8; text-shadow: 0 0 10px rgba(0,125,184,0.4); }
.pc-hp:hover .partner-logo-text { color: #0096d6; text-shadow: 0 0 10px rgba(0,150,214,0.4); }
.pc-sophos:hover .partner-logo-text { color: #00aadc; text-shadow: 0 0 10px rgba(0,170,220,0.4); }
.pc-lenovo:hover .partner-logo-text { color: #e2231a; text-shadow: 0 0 10px rgba(226,35,26,0.4); }
.pc-eset:hover .partner-logo-text { color: #379c37; text-shadow: 0 0 10px rgba(55,156,55,0.4); }
.pc-samsung:hover .partner-logo-text { color: #1428a0; text-shadow: 0 0 10px rgba(20,40,160,0.4); }
.pc-hisense:hover .partner-logo-text { color: #e4032e; text-shadow: 0 0 10px rgba(228,3,46,0.4); }
.pc-lg:hover .partner-logo-text { color: #a50034; text-shadow: 0 0 10px rgba(165,0,52,0.4); }
.pc-asus:hover .partner-logo-text { color: #00539b; text-shadow: 0 0 10px rgba(0,83,155,0.4); }
.pc-tplink:hover .partner-logo-text { color: #4caf50; text-shadow: 0 0 10px rgba(76,175,80,0.4); }
.pc-aruba:hover .partner-logo-text { color: #ff6900; text-shadow: 0 0 10px rgba(255,105,0,0.4); }
.pc-hikvision:hover .partner-logo-text { color: #e8001a; text-shadow: 0 0 10px rgba(232,0,26,0.4); }
.pc-cambium:hover .partner-logo-text { color: #00a0e3; text-shadow: 0 0 10px rgba(0,160,227,0.4); }

/* contact */
#contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text h2 { margin-bottom: 16px; }
.contact-text p { color: var(--gray); line-height: 1.8; margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.ci {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid rgba(0,212,255,0.1); padding: 16px 20px;
  background: rgba(0,212,255,0.03); transition: border-color .2s, background .2s;
}
.ci:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.ci-icon { font-size: 1.2rem; flex-shrink: 0; }
.ci-label { font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; color: var(--cyan); letter-spacing: .15em; text-transform: uppercase; }
.ci-val { font-size: 0.9rem; color: var(--white); font-weight: 500; margin-top: 2px; }

/* CTA banner (interleaved between home sections) */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,80,180,0.22), rgba(0,212,255,0.07));
  /* the 3px cyan left edge is .cta-banner-line, so the motion layer can draw it */
  border: 1px solid rgba(0,212,255,0.22); border-left: 0;
  padding: 26px 32px 26px 35px; margin-top: 48px; margin-bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.cta-banner-text h3 {
  font-family: 'Orbitron', monospace; font-weight: 800; font-size: 0.82rem;
  color: #fff; margin-bottom: 5px; letter-spacing: .04em;
}
.cta-banner-text p { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }
.cta-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cta-banner-line {
  position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px;
  background: var(--cyan); box-shadow: 0 0 10px rgba(0,212,255,0.55);
  transform-origin: 50% 0; pointer-events: none;
}

/* ── FOOTER ── */
footer {
  background: #010810; border-top: 1px solid var(--border);
  padding: 60px 5vw 30px; position: relative; z-index: 2;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 54px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,212,255,0.3)); }
.footer-brand p { font-size: 0.88rem; color: var(--gray); line-height: 1.75; margin-top: 16px; max-width: 280px; }
.footer-brand .footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-social a { color: var(--gray); text-decoration: none; transition: color .2s; }
.footer-social a:hover { color: var(--cyan); }
.footer-col h2 { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.62rem; line-height: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(0,212,255,0.1);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: #5d7b90;
}
/* blog footer variant (two columns) */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 38px; }
.footer-grid .footer-brand img { height: 74px; width: auto; filter: drop-shadow(0 0 8px rgba(0,212,255,0.35)); mix-blend-mode: screen; }
.footer-grid .footer-brand p { font-size: 0.82rem; margin-top: 12px; max-width: 270px; }
.fc h2 { font-family: 'Orbitron', monospace; font-weight: 600; font-size: 0.56rem; line-height: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.fc ul { list-style: none; }
.fc li { margin-bottom: 8px; }
.fc a { color: var(--gray); text-decoration: none; font-size: 0.83rem; transition: color .2s; }
.fc a:hover { color: var(--cyan2); }

/* ── WA-FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: waPulse 2.5s ease-in-out infinite; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.12); }
.wa-float-label {
  position: absolute; right: 66px;
  background: rgba(2,11,24,0.95); border: 1px solid rgba(37,211,102,0.4);
  color: #25D366; font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  letter-spacing: .1em; padding: 7px 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
.wa-float:hover .wa-float-label { opacity: 1; }
@keyframes waPulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ── BLOG ── */
/* filter bar */
#filter-bar {
  background: rgba(4,18,37,0.95);
  border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2);
  padding: 16px 5vw; position: relative; z-index: 2;
}
.filter-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-label { font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; color: var(--cyan); letter-spacing: .18em; opacity: 0.7; margin-right: 4px; white-space: nowrap; }
.filter-pill {
  font-family: 'Orbitron', monospace; font-size: 0.52rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--border2);
  background: transparent; color: var(--gray); cursor: pointer; transition: all .2s;
  clip-path: polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%);
}
.filter-pill:hover, .filter-pill.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.08); }

/* articles grid */
#articles { padding: 60px 5vw 90px; position: relative; z-index: 2; }
.articles-inner { max-width: 1280px; margin: 0 auto; }
.articles-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.articles-title { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; color: var(--cyan); letter-spacing: .2em; opacity: 0.75; }
.articles-title::before { content: '// '; }
.articles-count { font-family: 'Share Tech Mono', monospace; font-size: 0.58rem; color: var(--gray); opacity: 0.55; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
  cursor: pointer;
  /* no opacity:0 — cards are always visible */
  transition: border-color .35s, transform .3s, box-shadow .35s;
}
.card:hover { border-color: rgba(0,212,255,0.4); transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,100,200,0.1); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan2), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover::before { transform: scaleX(1); }
.card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 280px; }

/* card image */
.card-img { width: 100%; height: 168px; overflow: hidden; flex-shrink: 0; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,18,37,0.8)); }
.card-img-featured { height: 100%; min-height: 280px; }
.card-img-featured .card-overlay { background: linear-gradient(90deg, transparent 30%, rgba(4,18,37,0.65)); }
.card-featured-body { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; background: var(--card-bg); }

/* card content */
.card-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.cat { font-family: 'Share Tech Mono', monospace; font-size: 0.56rem; letter-spacing: .13em; text-transform: uppercase; padding: 3px 9px; border: 1px solid; border-radius: 1px; }
.cat-net { color: #29B6F6; border-color: rgba(41,182,246,0.4); background: rgba(41,182,246,0.07); }
.cat-sec { color: #ef5350; border-color: rgba(239,83,80,0.4); background: rgba(239,83,80,0.07); }
.cat-dig { color: #66bb6a; border-color: rgba(102,187,106,0.4); background: rgba(102,187,106,0.07); }
.cat-cctv { color: #ff7043; border-color: rgba(255,112,67,0.4); background: rgba(255,112,67,0.07); }
.cat-nrg { color: #ffca28; border-color: rgba(255,202,40,0.4); background: rgba(255,202,40,0.07); }
.cat-hw { color: #ab47bc; border-color: rgba(171,71,188,0.4); background: rgba(171,71,188,0.07); }
.card-date, .card-read { font-family: 'Share Tech Mono', monospace; font-size: 0.55rem; color: var(--gray); opacity: 0.65; }
.card-read { margin-left: auto; }
.card-title { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.78rem; color: #fff; line-height: 1.35; margin-bottom: 10px; letter-spacing: -.01em; }
.card-featured-body .card-title { font-size: 1rem; margin-bottom: 14px; }
.card-excerpt { font-size: 0.83rem; color: var(--gray); line-height: 1.72; flex: 1; }
.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 22px 0; }
.tag { font-family: 'Share Tech Mono', monospace; font-size: 0.5rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--border2); color: var(--gray); padding: 2px 7px; }
.card-footer { padding: 14px 22px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border2); margin-top: 14px; }
.card-author { font-family: 'Share Tech Mono', monospace; font-size: 0.55rem; color: var(--gray); opacity: 0.65; }
.card-link { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.card:hover .card-link { color: var(--cyan2); text-shadow: 0 0 10px rgba(0,212,255,0.4); }
.card-cta-row { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.62rem; letter-spacing: .12em; color: var(--cyan); margin-top: 18px; }
.card-cta-row .arrow { display: inline-block; transition: transform .2s; }
.card:hover .card-cta-row .arrow { transform: translateX(4px); }

/* mid CTA banner (interleaved in the article grid) */
.mid-cta {
  background: linear-gradient(135deg, rgba(0,80,180,0.22), rgba(0,212,255,0.07));
  border: 1px solid rgba(0,212,255,0.22); border-left: 3px solid var(--cyan);
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.mid-cta-title { font-family: 'Orbitron', monospace; font-weight: 800; font-size: 0.78rem; color: #fff; margin-bottom: 5px; }
.mid-cta-sub { font-size: 0.78rem; color: var(--gray); }
.cta-btns { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* article page body (replaces the dropped modal reader) */
.article-page { max-width: 840px; margin: 0 auto; }
.article-page h2 {
  font-family: 'Orbitron', monospace; font-weight: 800; font-size: 1.1rem;
  color: #fff; margin: 36px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}
.article-page h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; color: var(--cyan2); margin: 20px 0 8px; }
.article-page p { font-size: 0.94rem; line-height: 1.88; color: var(--gray); margin-bottom: 16px; }
.article-page ul, .article-page ol { padding-left: 20px; margin-bottom: 16px; }
.article-page li { font-size: 0.94rem; line-height: 1.72; color: var(--gray); margin-bottom: 7px; }
.article-page strong { color: #fff; font-weight: 600; }
.article-page code, .article-page kbd, .article-page samp, .article-page pre {
  font-family: 'Share Tech Mono', monospace; font-size: 0.85em;
  background: rgba(0,212,255,0.06); border: 1px solid var(--border2);
  padding: 1px 6px; border-radius: 2px; color: var(--cyan);
}
.article-page pre { display: block; padding: 14px 16px; overflow-x: auto; margin-bottom: 16px; white-space: pre; }
.callout {
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.2);
  border-left: 3px solid var(--cyan); padding: 16px 18px; margin: 22px 0;
}
.callout p { margin-bottom: 0; }

/* article page header and footer pieces (replaces the dropped modal reader) */
.article-breadcrumb {
  font-family: 'Share Tech Mono', monospace; font-size: 0.6rem;
  color: var(--cyan); letter-spacing: .2em; opacity: 0.7; margin-bottom: 18px;
  text-transform: uppercase;
  /* the breadcrumb is a <nav>: undo the global site-header nav rule */
  position: static; z-index: auto; display: block; height: auto; padding: 0;
  background: none; backdrop-filter: none; border-bottom: 0;
}
.article-breadcrumb::after { content: none; }
.article-breadcrumb a { color: inherit; text-decoration: none; }
.article-breadcrumb a:hover, .article-breadcrumb a:focus-visible { text-decoration: underline; }
.article-meta {
  font-family: 'Share Tech Mono', monospace; font-size: 0.6rem;
  color: var(--gray); opacity: 0.7; margin-top: 10px;
}
/* The blog SVGs carry a baked-in caption near their bottom edge (and the UPS
   art a stray label above it); shown full-height those lines crowd each other.
   Crop the bottom band like the reference cards do, anchored to the top so the
   crop holds at every width; the chip and title above carry the same text. */
.article-hero-img { margin: 8px 0 28px; border: 1px solid var(--border2); }
.article-hero-img img {
  width: 100%; height: auto; aspect-ratio: 600 / 248; object-fit: cover; object-position: top; display: block;
}
.article-tags { padding: 0; margin: 28px 0 10px; }
.article-author { margin-bottom: 8px; }
.article-cta-box {
  border: 1px solid var(--border); border-left: 3px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0,80,180,0.22), rgba(0,212,255,0.07));
  padding: 30px 32px; margin-top: 36px;
}
.article-cta-box h3 {
  font-family: 'Orbitron', monospace; font-weight: 800; font-size: 0.95rem;
  color: #fff; margin-bottom: 10px;
}
.article-cta-box p { font-size: 0.88rem; color: var(--gray); margin-bottom: 18px; }

/* service and location pages: body links stand out from the copy */
.page-copy a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page-copy a:hover, .page-copy a:focus-visible { color: var(--cyan2); }

/* stretched link: the card title link covers the whole card */
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: -4px; }

/* services hub cards */
.hub-grid { list-style: none; }
.hub-grid .svc-card { display: flex; flex-direction: column; }
.hub-grid .svc-card-desc { flex: 1; }
.hub-card-more {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.62rem;
  letter-spacing: .12em; color: var(--cyan); margin-top: 20px;
}
#services-hub .article-cta-box { margin-top: 48px; }

/* ── FORM ── */
.contact-form-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  padding: 44px; position: relative; overflow: hidden;
}
.contact-form-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan2), transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fg { margin-bottom: 16px; }
.fg label {
  display: block; font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  color: var(--cyan); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; opacity: .8;
}
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 13px 16px;
  background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.2);
  color: var(--white); font-family: 'Rajdhani', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color .2s, background .2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(240,248,255,0.3); }
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--cyan); background: rgba(0,212,255,0.07);
  box-shadow: 0 0 12px rgba(0,212,255,0.1);
}
.fg select option { background: var(--navy2); }
.fg textarea { resize: vertical; min-height: 120px; }
.form-btn {
  width: 100%; padding: 15px; cursor: pointer; border: none;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  background: linear-gradient(90deg, var(--cyan), var(--cyan2));
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: box-shadow .3s, filter .3s;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}
.form-btn:hover { box-shadow: 0 0 40px rgba(0,212,255,0.6); filter: brightness(1.1); }
/* field error line under a .fg control (server-side validation) */
.fg-error {
  display: block; margin-top: 6px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  color: var(--red); letter-spacing: .08em;
}
/* success panel that replaces the form after a valid submit */
.form-success { text-align: center; padding: 12px 0 4px; }
.form-success p { font-size: 0.95rem; color: var(--gray); margin-bottom: 12px; }
.form-success strong { color: var(--cyan); font-family: 'Orbitron', monospace; letter-spacing: .08em; }
.form-success .btn-wa { margin-top: 6px; }

/* ── HOME: SIGNAL SPINE ──
   home/spine.js fills the container with an SVG circuit trace in the left
   gutter. It sits above the opaque section backgrounds, never takes clicks,
   and shows only where the gutter is wide enough. */
.signal-spine {
  position: absolute; top: 0; left: 0; z-index: 3;
  pointer-events: none;
}
.signal-spine svg { display: block; overflow: visible; }
.spine-ghost { fill: none; stroke: rgba(0,212,255,0.1); stroke-width: 1.5; }
.spine-trace {
  fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.7));
}
/* unlit node state; the spine timeline lights each node when the head arrives */
.spine-node-ring {
  fill: none; stroke: var(--cyan); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  opacity: 0.15; transform: scale(0.5);
  filter: drop-shadow(0 0 4px var(--cyan));
}
.spine-node-core {
  fill: var(--navy); stroke: var(--cyan); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  opacity: 0.45; transform: scale(0.7);
}
.spine-pad { fill: var(--cyan); opacity: 0.5; }
.spine-packet { fill: #fff; filter: drop-shadow(0 0 5px var(--cyan2)) drop-shadow(0 0 10px var(--cyan)); }
@media (max-width: 1099px) {
  .signal-spine { display: none; }
}

/* ── HOME: STACKED SERVICES (desktop, motion on) ──
   Each card sticks a little lower than the one before, so the cards pile up
   like panels; home/services.js scales and dims the covered cards.
   Without motion (or on mobile) the cards keep the plain grid/list. */
@media (min-width: 769px) {
  html.has-motion .svc-stack {
    --stack-top: 116px; --stack-step: 18px;
    grid-template-columns: 1fr; gap: 12vh;
    max-width: 820px; margin: 0 auto;
  }
  html.has-motion .svc-stack > .svc-card {
    position: sticky; top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
    display: grid; grid-template-columns: 112px 1fr;
    grid-template-areas: "num title" "icon desc";
    column-gap: 28px; row-gap: 10px; align-items: start;
    min-height: 260px; padding: 44px 52px;
    /* opaque, so a covered card never shows through */
    background: linear-gradient(150deg, #072441 0%, #041629 55%, #030f1d 100%);
    border-color: rgba(0,212,255,0.26);
    transform-origin: 50% 0;
  }
  html.has-motion .svc-stack > .svc-card:hover { transform: none; }
  html.has-motion .svc-stack .svc-card-num { grid-area: num; align-self: center; margin: 0; font-size: 0.75rem; color: rgba(0,212,255,0.6); }
  html.has-motion .svc-stack .svc-card-icon { grid-area: icon; margin: 4px 0 0; font-size: 3rem; }
  html.has-motion .svc-stack .svc-card-title { grid-area: title; align-self: center; margin: 0; font-size: 1.1rem; }
  html.has-motion .svc-stack .svc-card-desc { grid-area: desc; font-size: 1rem; }
}

/* ── HOME: KZN ROUTE MAP ── */
.loc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.loc-layout .locations-grid { grid-template-columns: 1fr; gap: 16px; }
.loc-layout .loc-card {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 18px;
  text-align: left; padding: 24px 28px;
}
.loc-layout .loc-icon { grid-row: 1 / span 3; margin: 0; font-size: 2rem; }
.loc-layout .loc-region { margin-bottom: 10px; }
.kzn-map {
  margin: 0; padding: 16px 16px 12px; position: relative;
  width: 100%; max-width: 540px; justify-self: center;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(0,100,200,0.14), transparent 70%), rgba(4,18,37,0.75);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.kzn-map-svg { display: block; width: 100%; height: auto; }
.kzn-map-caption {
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: .18em;
  color: var(--cyan); opacity: 0.7; margin-top: 8px;
}
.kzn-land { fill: url(#kzn-land-dots); }
.kzn-land-fill { fill: rgba(0,70,130,0.16); }
.kzn-land-dot { fill: rgba(0,212,255,0.22); }
.kzn-graticule path { fill: none; stroke: rgba(0,212,255,0.07); stroke-dasharray: 2 6; }
.kzn-coast {
  fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.6));
}
.kzn-contour { fill: none; stroke: rgba(0,212,255,0.22); stroke-width: 1; stroke-dasharray: 3 5; }
.kzn-contour-far { stroke: rgba(0,212,255,0.11); }
.kzn-map text { font-family: 'Share Tech Mono', monospace; }
.kzn-ocean { font-size: 13px; letter-spacing: .45em; fill: rgba(0,212,255,0.4); text-anchor: middle; }
.kzn-compass path { fill: var(--cyan); }
.kzn-compass text { font-size: 12px; fill: var(--cyan); text-anchor: middle; }
.kzn-scale path { fill: none; stroke: var(--gray); stroke-width: 1; }
.kzn-scale text { font-size: 10px; fill: var(--gray); text-anchor: middle; letter-spacing: .12em; }
.kzn-route-ghost { fill: none; stroke: rgba(230,57,70,0.3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.kzn-route {
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(230,57,70,0.7));
}
.kzn-distance { font-size: 11px; fill: rgba(240,248,255,0.65); letter-spacing: .12em; }
.kzn-node { transform-box: view-box; }
.kzn-node-core { fill: var(--navy); stroke: var(--cyan); stroke-width: 2.5; }
.kzn-node.is-hq .kzn-node-core { fill: var(--red); stroke: #fff; }
.kzn-node-ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: 0.5; transform-box: fill-box; transform-origin: center; }
.kzn-node.is-hq .kzn-node-ring { stroke: var(--red); }
.kzn-map .kzn-label { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 13px; letter-spacing: .08em; fill: var(--white); }
.kzn-coord { font-size: 9.5px; fill: var(--gray); letter-spacing: .06em; }
.kzn-hq-badge { fill: var(--red); }
.kzn-map .kzn-hq-text { font-family: 'Orbitron', monospace; font-weight: 800; font-size: 9.5px; fill: #fff; text-anchor: middle; letter-spacing: .1em; }

/* ── HOME: PARTNER MARQUEE ──
   Default (no JS or reduced motion): the wrappers vanish from layout, the
   duplicates hide, and the 17 original cards wrap in the .partners-grid.
   With motion: two rows of cards that home/partners.js loops sideways. */
.partners-marquee :is(.marquee-row, .marquee-push, .marquee-track) { display: contents; }
.partners-marquee .is-dup { display: none; }
html.has-motion .partners-marquee { display: flex; flex-direction: column; gap: 8px; }
html.has-motion .partners-marquee .marquee-row {
  display: block; overflow-x: clip; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
/* the negative margin keeps the scroll push (±60px) from opening a gap at the left edge */
html.has-motion .partners-marquee .marquee-push { display: block; margin-left: -60px; }
html.has-motion .partners-marquee .marquee-track { display: flex; width: max-content; }
/* margin, not gap: two equal halves make the -50% loop seamless */
html.has-motion .partners-marquee .partner-card { flex: 0 0 auto; width: 180px; margin-right: 16px; }
html.has-motion .partners-marquee .is-dup { display: flex; }

/* ── EFFECTS ── */
/* custom cursor: disabled on coarse pointers */
@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-trail { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .partners-grid { grid-template-columns: repeat(4,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width:1024px) {
  .loc-layout { grid-template-columns: 1fr; }
  .loc-layout .locations-grid { grid-template-columns: repeat(3, 1fr); }
  .loc-layout .loc-card { grid-template-columns: 1fr; text-align: center; }
  .loc-layout .loc-icon { grid-row: auto; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: auto; display: flex; flex-direction: column; }
  .card-img-featured { height: 200px; min-height: 200px; }
}
@media (max-width:768px) {
  nav { padding: 0 4vw; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-content, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .services-grid, .locations-grid, .loc-layout .locations-grid { grid-template-columns: 1fr; }
  .loc-layout .loc-card { grid-template-columns: 52px 1fr; text-align: left; }
  .loc-layout .loc-icon { grid-row: 1 / span 3; margin: 0; }
  html.has-motion .partners-marquee .partner-card { width: 150px; margin-right: 12px; }
  .partners-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 70px 4vw; }
  .grid { grid-template-columns: 1fr; }
  #articles { padding: 50px 4vw 70px; }
  .hero-btns { flex-direction: column; }
  .cta-banner { flex-direction: column; }
  .mid-cta { flex-direction: column; }
  .phone-bar { top: auto; bottom: 96px; right: 0; border-radius: 6px 0 0 6px; }
}
