/* ==========================================================================
   Zembe Tech — shared stylesheet
   ========================================================================== */

:root {
  --black: #0a1f3d;
  --near-black: #071630;
  --navy: #123566;
  --navy-light: #1f4a86;
  --red: #fe8309;
  --red-dark: #d96f00;
  --blue-bright: #0298fd;
  --teal: #14ccc4;
  --violet: #8b6cf6;
  --white: #ffffff;
  --gray-50: #f5f6f8;
  --gray-100: #e9eaee;
  --gray-200: #d7dae0;
  --gray-400: #9aa3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #333a45;


  /* Tech theme: blue-violet to teal gradient with circuit-trace corners */
  --tech-1: #3a1f9e;
  --tech-2: #1f56c9;
  --tech-3: #12b9ad;
  --tech-deep-1: #1d1170;
  --tech-deep-2: #2a3db0;
  --tech-deep-3: #0f8fa3;
  --tech-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320' fill='none' stroke='white' stroke-opacity='0.4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg%3E%3Cpath d='M0 30H80L120 70V150L150 180V240'/%3E%3Cpath d='M0 70H40L70 100V200'/%3E%3Cpath d='M0 120H20L40 140V260'/%3E%3Cpath d='M120 0V40L160 80H260'/%3E%3Cpath d='M180 0V20L200 40H300'/%3E%3Cg fill='white' fill-opacity='0.3'%3E%3Ccircle cx='150' cy='240' r='5'/%3E%3Ccircle cx='70' cy='200' r='4'/%3E%3Ccircle cx='40' cy='260' r='4'/%3E%3Ccircle cx='260' cy='80' r='5'/%3E%3Ccircle cx='300' cy='40' r='4'/%3E%3C/g%3E%3Ccircle cx='80' cy='30' r='4'/%3E%3Ccircle cx='120' cy='150' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --tech-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320' fill='none' stroke='white' stroke-opacity='0.4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(180 160 160)'%3E%3Cpath d='M0 30H80L120 70V150L150 180V240'/%3E%3Cpath d='M0 70H40L70 100V200'/%3E%3Cpath d='M0 120H20L40 140V260'/%3E%3Cpath d='M120 0V40L160 80H260'/%3E%3Cpath d='M180 0V20L200 40H300'/%3E%3Cg fill='white' fill-opacity='0.3'%3E%3Ccircle cx='150' cy='240' r='5'/%3E%3Ccircle cx='70' cy='200' r='4'/%3E%3Ccircle cx='40' cy='260' r='4'/%3E%3Ccircle cx='260' cy='80' r='5'/%3E%3Ccircle cx='300' cy='40' r='4'/%3E%3C/g%3E%3Ccircle cx='80' cy='30' r='4'/%3E%3Ccircle cx='120' cy='150' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --tech-diamonds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-opacity='0.3' stroke-width='1.4'%3E%3Crect x='95' y='20' width='60' height='60' transform='rotate(45 125 50)'/%3E%3Crect x='120' y='45' width='60' height='60' transform='rotate(45 150 75)'/%3E%3C/svg%3E");
  --tech-layers:
    var(--tech-corner-tl) left top / min(320px, 46vw) auto no-repeat,
    var(--tech-corner-br) right bottom / min(320px, 46vw) auto no-repeat,
    var(--tech-diamonds) right top / min(200px, 30vw) auto no-repeat;
  --tech-bg: var(--tech-layers), linear-gradient(120deg, var(--tech-1) 0%, var(--tech-2) 48%, var(--tech-3) 100%);
  --tech-bg-deep: var(--tech-layers), linear-gradient(120deg, var(--tech-deep-1) 0%, var(--tech-deep-2) 50%, var(--tech-deep-3) 100%);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(5, 5, 6, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--gray-600); }

.lede {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 620px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }
.section--dark { background: var(--tech-bg-deep); color: rgba(255, 255, 255, 0.88); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.82); }
.section--navy { background: var(--tech-bg); color: rgba(255, 255, 255, 0.9); }
.section--tight.section--dark {
  background:
    var(--tech-corner-tl) left top / 110px auto no-repeat,
    var(--tech-corner-br) right bottom / 110px auto no-repeat,
    linear-gradient(120deg, var(--tech-deep-1) 0%, var(--tech-deep-2) 50%, var(--tech-deep-3) 100%);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.85); }
.section--gray { background: var(--gray-50); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* ---------------------------------- Buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); transition-duration: 0.05s; }

.btn--red {
  background: linear-gradient(180deg, #ff9c3d 0%, var(--red) 55%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 6px 16px rgba(254, 131, 9, 0.32);
}
.btn--red:hover {
  background: linear-gradient(180deg, #ffab57 0%, var(--red-dark) 55%, #b85e00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 10px 26px rgba(254, 131, 9, 0.42);
}
.btn--red:active {
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(254, 131, 9, 0.3);
}

.btn--outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.22);
}
.btn--outline:hover {
  border-color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.3);
}
.btn--outline:active {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn--outline-dark {
  background: linear-gradient(180deg, #ffffff, var(--gray-50));
  border-color: var(--gray-200);
  color: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(10, 31, 61, 0.1);
}
.btn--outline-dark:hover {
  border-color: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px rgba(10, 31, 61, 0.16);
}
.btn--outline-dark:active {
  box-shadow: inset 0 2px 5px rgba(10, 31, 61, 0.15);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------- Header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(100deg, var(--tech-deep-1) 0%, var(--tech-deep-2) 55%, var(--tech-deep-3) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .nav { padding: 10px 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  position: relative;
}
.brand img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-light) 0%, var(--black) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.brand span { color: var(--red); }

/* A blinking indicator light beneath the logo icon, like a power LED. */
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 8px 2px rgba(254, 131, 9, 0.85);
  animation: brand-blink 1.6s steps(1, end) infinite;
}

@keyframes brand-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
  .brand::after { animation: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  position: relative;
  color: var(--gray-200);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta .btn--red { display: none; }
  .nav-toggle { display: flex; }
}

/* ----------------------------------- Hero -------------------------------- */

.hero {
  background: var(--tech-bg);
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 640px 480px at 88% -10%, rgba(94, 234, 226, 0.28), transparent 60%),
    radial-gradient(ellipse 560px 420px at 6% 18%, rgba(139, 108, 246, 0.3), transparent 60%),
    radial-gradient(ellipse 520px 420px at 40% 105%, rgba(2, 152, 253, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 { color: var(--white); margin: 0 auto 20px; }
.hero .lede { color: rgba(255, 255, 255, 0.88); margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; }

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}
.hero-tagline span { color: var(--red); }

.page-hero {
  background: var(--tech-bg);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { }
.page-hero h1 { color: var(--white); }
.page-hero .lede { margin: 0 auto; color: rgba(255, 255, 255, 0.88); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 560px 400px at 90% 0%, rgba(94, 234, 226, 0.26), transparent 60%),
    radial-gradient(ellipse 520px 400px at 4% 10%, rgba(139, 108, 246, 0.28), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ------------------------------ Decorative blobs -------------------------- */

.section--blobs { position: relative; overflow: hidden; }
.section--blobs .container { position: relative; z-index: 1; }
.section--blobs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 520px 420px at 90% -8%, rgba(2, 152, 253, 0.14), transparent 60%),
    radial-gradient(ellipse 480px 400px at 6% 12%, rgba(254, 131, 9, 0.12), transparent 60%),
    radial-gradient(ellipse 500px 420px at 50% 108%, rgba(20, 204, 196, 0.12), transparent 60%),
    radial-gradient(ellipse 420px 360px at 100% 100%, rgba(139, 108, 246, 0.1), transparent 60%);
}

/* Sea waves along the floor of light (non-dark) decorated sections. */
.section--blobs:not(.section--navy):not(.section--dark)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C50,15 100,75 150,45 C200,15 250,75 300,45 C350,15 400,75 400,45 L400,90 L0,90 Z' fill='%23123566' fill-opacity='0.08'/%3E%3Cpath d='M0,62 C50,35 100,85 150,62 C200,35 250,85 300,62 C350,35 400,85 400,62 L400,90 L0,90 Z' fill='%230298fd' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: 400px 90px;
  animation: sea-wave-flow 14s linear infinite;
}

@keyframes sea-wave-flow {
  from { background-position-x: 0; }
  to { background-position-x: -400px; }
}

/* ---------------------------------- Sparkles ------------------------------ */

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  top: var(--top, 50%);
  left: var(--left, 50%);
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.9), 0 0 18px 5px var(--glow, rgba(2, 152, 253, 0.7));
  opacity: 0;
  animation: sparkle-twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ----------------------------- Connectivity background --------------------- */

.circuit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.8;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 88%, transparent),
    linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.circuit-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.circuit-edges path {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.circuit-edges path.circuit-edge--led {
  stroke: rgba(74, 222, 128, 0.3);
}

.circuit-nodes circle {
  fill: rgba(255, 255, 255, 0.35);
}

.circuit-led {
  fill: #4ade80;
  animation: circuit-led-breathe 2.6s ease-in-out infinite;
}

@keyframes circuit-led-breathe {
  0%, 100% { opacity: 0.5; r: 5; }
  50% { opacity: 1; r: 7.5; }
}

.circuit-pulse {
  filter: drop-shadow(0 0 2px currentColor);
}
.circuit-pulse--blue { fill: var(--blue-bright); color: var(--blue-bright); }
.circuit-pulse--orange { fill: var(--red); color: var(--red); }
.circuit-pulse--teal { fill: var(--teal); color: var(--teal); }
.circuit-pulse--violet { fill: var(--violet); color: var(--violet); }

/* --------------------------------- Reveal-on-scroll ----------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

/* ---------------------------------- Grids -------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ----------------------------------- Cards ------------------------------- */

.card {
  position: relative;
  background:
    radial-gradient(circle at 25% 20%, rgba(18, 53, 102, 0.16), transparent 55%),
    radial-gradient(circle at 78% 82%, rgba(2, 152, 253, 0.1), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: card-fluid 16s ease-in-out infinite;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(10, 31, 61, 0.16);
  border-radius: 16px;
  padding: 30px 26px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(10, 31, 61, 0.05),
    0 10px 28px rgba(10, 31, 61, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.card:hover::before {
  transform: translateX(120%);
  transition: transform 0.9s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(10, 31, 61, 0.08),
    0 20px 45px rgba(10, 31, 61, 0.16);
  border-color: rgba(10, 31, 61, 0.3);
}

@keyframes card-fluid {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 100% 50%, 0% 30%, 0 0; }
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
  animation: icon-blob 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79, 179, 255, 0.55), rgba(6, 112, 184, 0.75));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(2, 152, 253, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0) 55%
  );
  pointer-events: none;
}

@keyframes icon-blob {
  0%, 100% { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
  25% { border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%; }
  50% { border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%; }
  75% { border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%; }
}

/* Offset each icon's blob phase so a row of them doesn't morph in lockstep. */
.grid .card:nth-child(2) .card-icon { animation-delay: -2s; }
.grid .card:nth-child(3) .card-icon { animation-delay: -4s; }
.grid .card:nth-child(4) .card-icon { animation-delay: -6s; }
.grid .card:nth-child(5) .card-icon { animation-delay: -1s; }
.grid .card:nth-child(6) .card-icon { animation-delay: -3s; }
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }

.card-icon--blue {
  background: linear-gradient(135deg, rgba(79, 179, 255, 0.55), rgba(2, 152, 253, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(2, 152, 253, 0.35);
}
.card-icon--orange {
  background: linear-gradient(135deg, rgba(255, 171, 87, 0.55), rgba(254, 131, 9, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(254, 131, 9, 0.35);
}
.card-icon--teal {
  background: linear-gradient(135deg, rgba(94, 234, 226, 0.55), rgba(20, 204, 196, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(20, 204, 196, 0.35);
}
.card-icon--violet {
  background: linear-gradient(135deg, rgba(179, 157, 251, 0.55), rgba(139, 108, 246, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(139, 108, 246, 0.35);
}

.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.95rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
}

.card--dark {
  background:
    radial-gradient(circle at 25% 20%, rgba(2, 152, 253, 0.16), transparent 55%),
    radial-gradient(circle at 78% 82%, rgba(139, 108, 246, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: card-fluid 16s ease-in-out infinite;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.25);
}
.card--dark::before { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 66%); }
.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.2),
    0 20px 45px rgba(0, 0, 0, 0.32);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--gray-400); }

/* --------------------------------- Tag chips ----------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  padding: 8px 16px;
  border-radius: 100px;
  background: linear-gradient(180deg, #ffffff, var(--gray-100));
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(10, 31, 61, 0.08);
}
.section--dark .tag,
.section--navy .tag {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  color: var(--gray-200);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

/* -------------------------------- Service block -------------------------- */

.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 36px;
  margin-bottom: 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 20%, rgba(18, 53, 102, 0.14), transparent 55%),
    radial-gradient(circle at 78% 85%, rgba(2, 152, 253, 0.08), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.48));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: card-fluid 16s ease-in-out infinite;
  border: 1px solid rgba(10, 31, 61, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(10, 31, 61, 0.05),
    0 10px 26px rgba(10, 31, 61, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-block:last-child { margin-bottom: 0; }
.service-block:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 31, 61, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(10, 31, 61, 0.08),
    0 18px 36px rgba(10, 31, 61, 0.12);
}
.service-block .card-icon { margin-bottom: 16px; }
.service-block .service-index {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.service-block h3 { font-size: 1.4rem; }

@media (max-width: 760px) {
  .service-block { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
}

/* ---------------------------------- Process ------------------------------ */

.process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.process-step {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.process-step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9c3d 0%, var(--red) 55%, var(--red-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 4px rgba(0, 0, 0, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  z-index: 1;
}
.process-step span.label {
  font-weight: 700;
  color: var(--white);
  font-size: 0.92rem;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 0;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--red);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
  transition-delay: calc(var(--step-index, 0) * 120ms);
}
.process-step:last-child::after,
.process-step:last-child::before { display: none; }
.process.in-view .process-step::before { transform: scaleX(1); }

/* Traveling current: a glowing pulse repeatedly chases along each connector,
   staggered by --step-index so it reads as one signal running the full chain. */
.process-spark {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--red) 70%, transparent 100%);
  box-shadow: 0 0 6px 2px rgba(254, 131, 9, 0.9), 0 0 14px 4px rgba(254, 131, 9, 0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.process.in-view .process-spark {
  animation: process-spark-travel 6.3s linear infinite;
  animation-delay: calc(var(--step-index, 0) * 0.9s);
}
.process-step:last-child .process-spark { display: none; }

@keyframes process-spark-travel {
  0% { left: 50%; opacity: 0; }
  2% { opacity: 1; }
  14% { left: 150%; opacity: 1; }
  16%, 100% { opacity: 0; }
}

.process-step .num {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
  transition-delay: calc(var(--step-index, 0) * 120ms);
}
.process:not(.in-view) .process-step .num {
  transform: scale(0.6);
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
}

@media (max-width: 760px) {
  .process { flex-direction: column; align-items: flex-start; gap: 28px; }
  .process-step { flex-direction: row; text-align: left; padding: 0; }
  .process-step .num { margin-bottom: 0; margin-right: 16px; }
  .process-step::after { display: none; }
  .process-spark { display: none; }
}

/* --------------------------------- Stat strip ---------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
}
.stat-strip .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------- CTA banner ------------------------------ */

.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-banner .btn--outline { border-color: rgba(255,255,255,0.6); }
.cta-banner .btn--outline:hover { background: var(--white); color: var(--red); }

/* ---------------------------------- Footer ------------------------------- */

.site-footer {
  background:
    var(--tech-corner-br) right bottom / 150px auto no-repeat,
    var(--tech-diamonds) right top / 110px auto no-repeat,
    linear-gradient(120deg, var(--tech-deep-1) 0%, var(--tech-deep-2) 50%, var(--tech-deep-3) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(125, 245, 255, 0.55);
  display: inline-block;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); }
.footer-grid ul li a { color: rgba(255, 255, 255, 0.92); transition: color 0.15s ease; }
.footer-grid ul li a:hover { color: #ffc27a; text-decoration: underline; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 300px; color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------- Contact page -------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-card p { margin: 0; }

.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--black);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--gray-50);
  box-shadow:
    inset 0 2px 4px rgba(10, 31, 61, 0.08),
    inset 0 1px 0 rgba(10, 31, 61, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow:
    inset 0 2px 4px rgba(10, 31, 61, 0.06),
    0 0 0 3px rgba(254, 131, 9, 0.15);
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--red);
}
.form-error {
  display: block;
  min-height: 1.2em;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-alert--success {
  background: rgba(39, 201, 63, 0.08);
  color: #1a7a34;
  border: 1px solid rgba(39, 201, 63, 0.25);
}
.form-alert--error {
  background: rgba(237, 27, 36, 0.08);
  color: var(--red-dark);
  border: 1px solid rgba(237, 27, 36, 0.2);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  margin-top: 32px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ------------------------------ Bubbling water overlay --------------------- */

.bubbles-bg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -40px;
  left: var(--left, 50%);
  width: var(--size, 14px);
  height: var(--size, 14px);
  border-radius: 50%;
  opacity: 0;
  animation: bubble-rise var(--duration, 12s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}

.bubble--blue {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(2, 152, 253, 0.55) 45%, rgba(2, 152, 253, 0.12) 75%);
  border: 1px solid rgba(2, 152, 253, 0.6);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), 0 0 9px rgba(2, 152, 253, 0.5);
}
.bubble--orange {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(254, 131, 9, 0.55) 45%, rgba(254, 131, 9, 0.12) 75%);
  border: 1px solid rgba(254, 131, 9, 0.6);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), 0 0 9px rgba(254, 131, 9, 0.5);
}
.bubble--teal {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(20, 204, 196, 0.55) 45%, rgba(20, 204, 196, 0.12) 75%);
  border: 1px solid rgba(20, 204, 196, 0.6);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), 0 0 9px rgba(20, 204, 196, 0.5);
}
.bubble--violet {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(139, 108, 246, 0.55) 45%, rgba(139, 108, 246, 0.12) 75%);
  border: 1px solid rgba(139, 108, 246, 0.6);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), 0 0 9px rgba(139, 108, 246, 0.5);
}

@keyframes bubble-rise {
  0% { transform: translate(0, 0) scale(0.85); opacity: 0; }
  8% { opacity: 0.75; }
  50% { transform: translate(var(--drift, 20px), -55vh) scale(1); }
  92% { opacity: 0.6; }
  100% { transform: translate(calc(var(--drift, 20px) * 2), -110vh) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles-bg { display: none; }
}

/* ------------------------- Isometric illustrations ------------------------- */

.illus {
  width: 100%;
  height: auto;
  display: block;
}

/* Home hero: copy left, illustration right */
.hero .hero-grid {
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  text-align: left;
}
.hero .hero-grid h1 { margin-left: 0; margin-right: 0; }
.hero .hero-grid .lede { margin-left: 0; margin-right: 0; }
.hero .hero-grid .btn-row { justify-content: flex-start; }
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  background: url("/static/illustrations/hero-panel.svg") right center / 100% 100% no-repeat;
}
.hero-art .illus {
  position: absolute;
  top: 50%;
  right: 3%;
  height: 94%;
  width: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 28px rgba(5, 15, 61, 0.5));
}

/* Copy + illustration sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse { grid-template-columns: 1.1fr 1fr; }
.split-copy h2 { margin-bottom: 14px; }
.split-copy .btn { margin-top: 8px; }
.split-art .illus { filter: drop-shadow(0 14px 26px rgba(10, 31, 61, 0.25)); }

.check-list { margin: 18px 0 20px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    linear-gradient(135deg, var(--blue-bright), var(--teal));
}

/* Service blocks: copy on one side, illustration on the other (alternating) */
.service-block {
  grid-template-columns: 1fr 380px;
  grid-template-areas: "head art" "text art";
  grid-template-rows: auto 1fr;
  column-gap: 44px;
  row-gap: 14px;
  align-items: start;
}
.service-block > div:nth-child(1) { grid-area: head; }
.service-block > div:nth-child(2) { grid-area: text; }
.service-block:nth-of-type(even) {
  grid-template-columns: 380px 1fr;
  grid-template-areas: "art head" "art text";
}
.service-art {
  grid-area: art;
  align-self: center;
  margin: -10px 0;
  filter: drop-shadow(0 12px 22px rgba(10, 31, 61, 0.25));
}
.contact-art { margin: 40px 0 0; border-radius: 20px; filter: drop-shadow(0 12px 22px rgba(10, 31, 61, 0.25)); }

@media (max-width: 960px) {
  .hero .hero-grid,
  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 20px; }
  .hero .hero-grid { text-align: center; }
  .hero .hero-grid .btn-row { justify-content: center; }
  .hero .hero-grid .lede { margin-left: auto; margin-right: auto; }
  .hero { display: flex; flex-direction: column; }
  .hero .hero-grid { order: 1; width: 100%; }
  .hero-art { order: 2; position: relative; width: auto; aspect-ratio: 4 / 3; margin: 32px 0 -88px; background-size: cover; }
  .hero-art .illus { right: 50%; transform: translate(50%, -50%); height: 96%; }
  .split--reverse .split-art { order: 2; }
  .service-block,
  .service-block:nth-of-type(even) { grid-template-columns: 1fr; grid-template-areas: "head" "art" "text"; grid-template-rows: auto; }
  .service-art { max-width: 460px; margin: 0 auto; }
}

/* Click-to-load map placeholder */
.map-consent {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(160deg, #eef3ff, #f7f9fc);
}
.map-consent p { margin: 0; font-size: 0.92rem; }
.map-consent .map-alt a { color: var(--blue-bright); font-weight: 600; text-decoration: underline; }

/* Long-form text pages (privacy notice) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gray-700); }
.prose ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-bright); text-decoration: underline; }
.form-note { margin: 14px 0 0; font-size: 0.84rem; color: var(--gray-500); }
.form-note a { color: var(--blue-bright); text-decoration: underline; }
