/* ============================================================
   Tessivon — styles.css
   ------------------------------------------------------------
   THEME: dark, minimalist, contractor-grade professional.
   Colors are CSS variables in :root below — change them there
   once and they update everywhere.

   MOTION: all animations are subtle and respect the user's
   "reduced motion" OS setting (see the very bottom of this file).
   ============================================================ */

/* ---------- Theme variables (edit colors here) ---------- */
:root {
  /* Backgrounds — navy scale, derived from brand Navy #0B1F33 */
  --bg:            #0B1F33;   /* navy base */
  --bg-rgb:        11, 31, 51;   /* --bg as r,g,b — for rgba() overlays (header, mobile nav) */
  --bg-alt:        #0F2942;   /* slightly lighter alternating sections */
  --surface:       #133351;   /* cards */
  --surface-hi:    #183D60;   /* hovered / raised cards */

  /* Accent — brand Cyan (primary) + Blue (secondary/gradient partner) */
  --accent:        #38BDF8;
  --accent-2:      #1E88E5;   /* deeper blue, used for gradient pairings */
  --accent-soft:   rgba(56, 189, 248, 0.12);
  --accent-line:   rgba(56, 189, 248, 0.35);

  /* Text */
  --text:          #E5E7EB;   /* body copy (off-white) */
  --text-dim:      #9AA6B2;   /* secondary text */
  --text-faint:    #8F9BA8;   /* captions / fine print (passes 4.5:1 on --surface/--bg-alt) */
  --heading:       #FFFFFF;   /* headlines (brand White) */

  /* Lines & borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hi:     rgba(255, 255, 255, 0.16);

  /* Layout */
  --maxw:          1120px;
  --radius:        16px;
  --radius-sm:     10px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
  /* System mono stack for terminal-style accents — no extra font download */
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* Registered custom property so the flagship card's border
   highlight can rotate smoothly (falls back to static). */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keep anchored sections clear of the sticky header */
  scrollbar-color: #22303C var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--heading); }

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent-soft); color: var(--heading); }

/* Slim dark scrollbar (WebKit) — Firefox handled via scrollbar-color above */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #22303C;
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2D3F4E; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

/* Faint teal hairline along the top of alternating sections */
.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head-left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-bounce), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* Arrow / chevron icons inside buttons slide gently on hover */
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover .i-right { transform: translateX(4px); }
.btn:hover .i-down  { transform: translateY(3px); }

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px -8px rgba(56, 189, 248, 0.55);
}
.btn-accent:hover {
  color: var(--bg);
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 10px 28px -8px rgba(56, 189, 248, 0.7);
}
/* Soft light sweep across accent buttons on hover */
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn-accent:hover::after { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  color: var(--heading);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-3px) scale(1.035);
}
/* Quick "press" squish feedback, overrides the hover lift while clicking */
.btn:active { transform: scale(0.96) !important; transition-duration: 0.1s; }

/* ============================================================
   SCROLL PROGRESS BAR (thin teal line, very top of the page)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
/* Once the page is scrolled, the header gets slightly more solid
   and compact (class toggled from script.js) */
.site-header.scrolled {
  background: rgba(var(--bg-rgb), 0.88);
  border-bottom-color: var(--border-hi);
  box-shadow: 0 10px 32px -18px rgba(0, 0, 0, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s var(--ease);
}
.site-header.scrolled .header-inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--heading); }
.brand-mark { display: inline-flex; }
.brand-mark img { display: block; width: 54px; height: 54px; border-radius: 12px; }
.brand-footer .brand-mark img { width: 46px; height: 46px; border-radius: 11px; }
.brand-accent { color: var(--text-dim); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a {
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 400;
}
.nav > a:hover { color: var(--heading); }
/* Animated underline; also marks the section currently in view
   (class "active" toggled from script.js) */
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:not(.nav-cta):hover::after,
.nav > a.active::after { transform: scaleX(1); }
.nav > a.active { color: var(--heading); }
.nav-cta { color: var(--bg) !important; padding: 9px 16px; font-size: 0.88rem; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 56.25vw, 860px);
  padding: 76px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* Layer 1 — faint grid, fading out toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
/* Layer 2 — slow drifting navy/cyan/blue glow ("aurora"), two-tone
   to echo the logo's cyan + blue wave shapes */
.hero::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(42% 34% at 24% 16%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(38% 30% at 82% 48%, rgba(30, 136, 229, 0.12), transparent 70%);
  filter: blur(48px);
  animation: aurora 26s var(--ease) infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 5%, 0) scale(1.12); }
}

.hero-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.44;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr clamp(280px, 34vw, 400px);
  align-items: center;
  gap: 24px;
}
.hero-copy { max-width: 660px; }

/* Pill badge above the headline, with a gently pulsing dot */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pulse-dot {
  position: relative;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%        { transform: scale(1);   opacity: 0.7; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
/* Accent phrase: soft animated teal gradient, plus a cyber on-load
   reveal — a left-to-right mask wipe uncovers the text, then two quick
   chromatic flickers snap it into place. Pure CSS on the intact text,
   so the headline never reflows mid-animation. */
.hero-title .accent-text {
  background: linear-gradient(100deg, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%;
          mask-size: 250% 100%;
  animation:
    shimmer 7s ease-in-out 2s infinite,
    accent-reveal 0.9s var(--ease) 0.45s both,
    accent-glitch 0.55s steps(1) 1.4s;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
@keyframes accent-reveal {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
/* Transparent text fill lets the offset shadows read as brief
   chromatic-aberration ghosts — a glitch without moving anything */
@keyframes accent-glitch {
  0%, 100% { text-shadow: none; }
  10% { text-shadow: -4px 0 rgba(56, 189, 248, 0.55), 4px 0 rgba(30, 136, 229, 0.55); }
  20% { text-shadow: none; }
  35% { text-shadow: 3px 0 rgba(56, 189, 248, 0.45), -3px 0 rgba(30, 136, 229, 0.45); }
  45% { text-shadow: none; }
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 30px;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero visual (cyber radar graphic, desktop only) ----------
   Echoes the logo's hex shape; the network "boots up", then a HUD
   reticle with a rotating radar sweep takes the center while data
   packets race out to the nodes. Purely decorative — aria-hidden. */
.hero-visual {
  position: relative;
  display: none;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  perspective: 900px;
  transition: transform 0.2s var(--ease);
}
/* Thin scanline sweeping down the visual, like a monitor scan */
.hero-visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 8%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0;
  pointer-events: none;
  animation: hv-scan 5.5s ease-in-out 2.6s infinite;
}
@keyframes hv-scan {
  0%   { top: 8%;  opacity: 0; }
  10%  { opacity: 0.75; }
  85%  { opacity: 0.75; }
  100% { top: 90%; opacity: 0; }
}
.hv-svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: hv-float 6s ease-in-out infinite;
}
@keyframes hv-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hv-hex {
  stroke: var(--accent-line);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hv-draw 1.6s var(--ease) 0.9s forwards;
}
.hv-line {
  stroke: var(--accent-line);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hv-draw 0.7s var(--ease) forwards;
  animation-delay: calc(1.1s + var(--ld, 0) * 90ms);
}
@keyframes hv-draw { to { stroke-dashoffset: 0; } }
.hv-node {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hv-node-in 0.4s var(--ease) forwards, hv-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--pd, 0s), calc(var(--pd, 0s) + 1.6s);
}
@keyframes hv-node-in { to { opacity: 1; } }
@keyframes hv-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0)); }
  50%      { transform: scale(1.35); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65)); }
}
/* --- Cyber core: HUD reticle + radar sweep (boots in after the hex) --- */
.hv-core-bg {
  fill: var(--bg);
  opacity: 0;
  animation: hv-node-in 0.3s var(--ease) 1.35s forwards;
}
.hv-core {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: hv-core-in 0.8s var(--ease) 1.45s forwards;
}
@keyframes hv-core-in {
  from { opacity: 0; transform: scale(0.55) rotate(-40deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.hv-ring {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}
.hv-ring-outer {
  stroke-dasharray: 12 7;
  animation: hv-spin 16s linear infinite;
}
.hv-ring-inner {
  stroke-dasharray: 4 10;
  stroke-linecap: round;
  animation: hv-spin-rev 11s linear infinite;
}
@keyframes hv-spin     { to { transform: rotate(360deg); } }
@keyframes hv-spin-rev { to { transform: rotate(-360deg); } }
.hv-ticks line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
}
.hv-sweep {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: hv-spin 4.5s linear infinite;
}
.hv-sweep path { fill: rgba(56, 189, 248, 0.16); }
.hv-sweep line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}
.hv-core-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: hv-pulse 2.2s ease-in-out 2s infinite;
}
/* Data packets racing from the core out to each node. Each line is a
   100-unit path (pathLength) with a single 7-unit dash; animating the
   dashoffset from 100 to 7 slides that dash from center to node. */
.hv-flow {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.75));
  animation: hv-flow-run 2.7s linear infinite;
  animation-delay: calc(2.1s + var(--fd, 0s));
}
@keyframes hv-flow-run {
  0%        { stroke-dashoffset: 100; opacity: 0; }
  6%        { opacity: 0.95; }
  40%       { stroke-dashoffset: 7; opacity: 0.95; }
  46%, 100% { stroke-dashoffset: 7; opacity: 0; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-particle-canvas { opacity: 0.3; }
  .hero-visual { display: none; }
}

/* Staggered entrance for hero content on page load.
   Delay per element is set inline in index.html via --d. */
.anim {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none;             filter: none; }
}

/* ============================================================
   TRUST STRIP (compact credibility band, hero → services)
   ============================================================ */
.trust-strip {
  padding: 22px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
}
.trust-item {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  white-space: nowrap;
}
.trust-div {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-line);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .trust-item { white-space: normal; }
  .trust-div { display: none; }
}

/* ============================================================
   GRIDS & CARDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-hi);
  border-color: var(--accent-line);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.85);
}

/* Cursor spotlight — a faint teal glow that follows the mouse
   (coordinates --mx/--my set from script.js; desktop pointers only) */
@media (hover: hover) and (pointer: fine) {
  .card::after,
  .feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%),
                rgba(56, 189, 248, 0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
  }
  .card:hover::after,
  .feature:hover::after { opacity: 1; }
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.3s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-3px) scale(1.12) rotate(-8deg);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ---------- Services card icons — ambient motion ----------
   Each of the three service cards gets a quiet, always-on animation
   matching the hero's HUD language: shield breathes, gear spins,
   document "types" its own text lines. */
#services .grid-3 .card:nth-child(1) .card-icon svg {
  animation: svc-icon-breathe 3.6s ease-in-out infinite;
}
@keyframes svc-icon-breathe {
  0%, 100% { filter: none; transform: none; }
  50% {
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.85));
    transform: scale(1.06);
  }
}
#services .grid-3 .card:nth-child(2) .card-icon svg {
  animation: hv-spin 14s linear infinite;
}
/* Text lines of the document icon draw themselves in a loop
   (pathLength="1" is set on the path in index.html) */
.svc-write {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: svc-icon-write 5s var(--ease) infinite;
}
@keyframes svc-icon-write {
  0%       { stroke-dashoffset: 1; opacity: 1; }
  55%, 82% { stroke-dashoffset: 0; opacity: 1; }
  92%      { stroke-dashoffset: 0; opacity: 0; }
  93%      { stroke-dashoffset: 1; opacity: 0; }
  100%     { stroke-dashoffset: 1; opacity: 1; }
}

/* ---------- Services background gears (decorative) ----------
   Meshing line-drawn gears at the section edges + a circuit trace
   carrying a data pulse. Watermark opacity so text stays readable;
   cards paint above them via the .container z-index bump below. */
.svc-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.16;
}
#services > .container { position: relative; z-index: 1; }
.svc-deco svg { display: block; width: 100%; height: auto; }
.svc-deco-right { top: 44px; right: -70px; width: 330px; }
.svc-deco-left  { bottom: 40px; left: -60px; width: 190px; }

/* The lone gear periodically journeys up the left edge and across the
   top to dock and mesh with the cluster, then fades home and repeats.
   The real travel distance (--tx/--ty) is measured by script.js since
   it depends on the viewport; 0px fallbacks keep it harmless without JS. */
.svc-deco-left { animation: svc-journey 26s ease-in-out infinite; }
@keyframes svc-journey {
  0%, 15%  { transform: none; opacity: 0.16; }                                /* resting at home */
  45%      { transform: translate(0, var(--ty, 0px)); }                       /* climb the left edge */
  72%, 90% { transform: translate(var(--tx, 0px), var(--ty, 0px)); opacity: 0.16; } /* dock & mesh */
  94%      { transform: translate(var(--tx, 0px), var(--ty, 0px)); opacity: 0; }    /* fade out */
  94.1%    { transform: none; opacity: 0; }                                   /* teleport home hidden */
  100%     { transform: none; opacity: 0.16; }                                /* fade back in */
}

.svc-gear circle,
.svc-spokes line { stroke: currentColor; stroke-width: 2; }
.svc-teeth line  { stroke: currentColor; stroke-width: 8; }

.svc-gear      { animation: hv-spin 34s linear infinite; }
.svc-gear-rev  { animation: hv-spin-rev 22s linear infinite; }
.svc-gear-slow { animation: hv-spin-rev 46s linear infinite; }

.svc-trace {
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.55;
}
.svc-trace-flow {
  stroke-width: 2.5;
  stroke-dasharray: 12 88;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.8));
  animation: svc-trace-run 3.4s linear infinite;
  opacity: 1;
}
@keyframes svc-trace-run {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
.svc-trace-node {
  fill: currentColor;
  animation: svc-node-pulse 2.6s ease-in-out infinite;
}
@keyframes svc-node-pulse {
  0%, 100% { opacity: 0.45; filter: none; }
  50%      { opacity: 1; filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9)); }
}
@media (max-width: 900px) {
  .svc-deco { display: none; }
}
.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------- Pricing / tier cards ---------- */
.price-card { position: relative; }
.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 4px;
}
.price-note {
  color: var(--text-faint);
  font-size: 0.86rem;
  margin-bottom: 20px;
}
.price-card .card-list { margin-bottom: 24px; }
.price-gloss {
  color: var(--text-dim);
  font-size: 0.9rem;
  border-left: 2px solid var(--accent-line);
  padding-left: 12px;
  margin-bottom: 24px;
}

/* Highlighted flagship card */
.price-card-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), var(--surface) 42%);
  box-shadow: 0 24px 50px -30px rgba(56, 189, 248, 0.5);
}
/* HUD-style corner brackets framing the flagship card */
.price-card-featured::after {
  content: "";
  position: absolute;
  inset: 10px;
  background:
    linear-gradient(var(--accent), var(--accent)) left 0 top 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) left 0 top 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right 0 top 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) right 0 top 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) left 0 bottom 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) left 0 bottom 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / 2px 14px;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
}
.price-card-featured:hover {
  box-shadow: 0 26px 56px -28px rgba(56, 189, 248, 0.6);
}
/* Slowly rotating teal highlight tracing the flagship card's border.
   In browsers without @property support it degrades to a static line. */
.price-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle),
      transparent 0deg,
      var(--accent) 55deg,
      rgba(56, 189, 248, 0.2) 95deg,
      transparent 140deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  animation: border-spin 8s linear infinite;
  pointer-events: none;
}
@keyframes border-spin { to { --angle: 360deg; } }

.badge {
  position: absolute;
  top: -12px;
  right: 22px;
  z-index: 1;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.55);
}

/* ---------- Tier scanlines ----------
   A teal security-scan line sweeps a tier card top to bottom once when
   the pointer enters it. Lives in its own span because the flagship
   card's ::before/::after are already taken (rotating border + corner
   brackets). */
.tier-scan {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.tier-scan::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  opacity: 0;
}
.card:hover .tier-scan::before {
  animation: tier-scan-sweep 1.7s ease-in-out;
}
@keyframes tier-scan-sweep {
  0%   { top: 4%; opacity: 0; }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { top: 96%; opacity: 0; }
}

/* ---------- Tier progression rail ----------
   A circuit rail under the three tier cards: one node per tier, a data
   pulse traveling from Health Check toward the flagship, whose node
   flashes when the pulse arrives. Node positions are inline in the HTML
   (16.666% / 50% / 83.333% — the centers of the three grid columns). */
.tier-path {
  position: relative;
  height: 34px;
  margin-top: 38px;
}
.tier-path-line {
  position: absolute;
  top: 50%;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--accent-line);
  opacity: 0.55;
}
.tier-path-node {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent-line);
}
.tier-path-node-end {
  background: var(--accent);
  border-color: var(--accent);
}
/* One-shot glow when the pulse reaches a node (class set by script.js) */
.tier-path-node.flash { animation: tier-node-flash 0.9s ease-out; }
@keyframes tier-node-flash {
  0%   { box-shadow: 0 0 2px 1px rgba(56, 189, 248, 0.8); }
  60%  { box-shadow: 0 0 16px 5px rgba(56, 189, 248, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
/* The pulse hops between random nodes; script.js drives the travel
   (Web Animations API) and keeps it hidden between hops. */
.tier-path-pulse {
  position: absolute;
  top: 50%;
  left: 16.666%;
  width: 26px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  opacity: 0;
}
@media (max-width: 900px) {
  .tier-path { display: none; }
}

/* ---------- Why Us feature grid ----------
   Distinct from the flat Services/Packages sections: a faint two-tone
   glow (a quieter echo of the hero aurora) sits behind the content. */
#why-us { position: relative; overflow: hidden; }
#why-us::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(38% 32% at 88% 12%, rgba(56, 189, 248, 0.09), transparent 70%),
    radial-gradient(34% 28% at 6% 86%, rgba(30, 136, 229, 0.08), transparent 70%);
  pointer-events: none;
}
#why-us > .container { position: relative; z-index: 1; }

/* ---------- Why Us rocket → shield objective (decorative) ----------
   A technical line-drawn rocket parked at the bottom-left periodically
   crosses the section behind the feature cards toward a shield held in a
   slow-spinning targeting reticle at the top-right. It docks just outside
   the reticle — reaching its objective, never striking it — the target
   brightens in acknowledgement, and the rocket fades home. The flight
   vector and nose angle come from script.js (--rtx/--rty/--rang); the
   fallbacks keep it harmless without JS, like the Services gear journey. */
.why-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.15;
}
.why-deco svg { display: block; width: 100%; height: auto; overflow: visible; }
.why-deco path,
.why-deco line,
.why-deco circle {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The objective: shield in a targeting reticle, top-right */
.why-deco-shield {
  top: 54px;
  right: 44px;
  width: 170px;
  animation: why-lock 16s ease-in-out infinite;
}
.why-shield-inner { opacity: 0.55; }
.why-reticle { animation: hv-spin 90s linear infinite; }
.why-reticle circle { stroke-dasharray: 2.2 3.4; }
/* Synced with why-flight: brightens while the rocket is docked (62–76%) */
@keyframes why-lock {
  0%, 52%   { opacity: 0.15; }
  62%, 76%  { opacity: 0.32; }
  86%, 100% { opacity: 0.15; }
}

/* The rocket: parked bottom-left, nose aimed at the shield */
.why-deco-rocket {
  left: 3%;
  bottom: 34px;
  width: 96px;
  animation: why-flight 16s ease-in-out infinite;
}
.why-deco-rocket svg {
  transform: rotate(var(--rang, 58deg));
  transform-origin: 50% 52%;
}
/* Glide to the dock point beside the target, hold, fade, respawn home */
@keyframes why-flight {
  0%, 12%  { transform: none; opacity: 0.15; }
  62%, 76% { transform: translate(var(--rtx, 0px), var(--rty, 0px)); opacity: 0.15; }
  84%      { transform: translate(var(--rtx, 0px), var(--rty, 0px)); opacity: 0; }
  84.1%    { transform: none; opacity: 0; }
  92%      { transform: none; opacity: 0; }
  100%     { transform: none; opacity: 0.15; }
}

/* Exhaust dashes flow away from the nozzle. The dash period (50) divides
   the 100-unit offset sweep exactly, so the loop is seamless. */
.why-exhaust line {
  stroke-dasharray: 12 38;
  animation: why-exhaust-flow 1.7s linear infinite;
  opacity: 0.9;
}
@keyframes why-exhaust-flow {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Dotted flight line from launch pad to target, with a data pulse
   travelling toward the objective. Endpoints are set by script.js;
   with no JS the lines have zero length and stay invisible. */
.why-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.14;
}
.why-path-base,
.why-path-flow { stroke: currentColor; stroke-linecap: round; }
.why-path-base { stroke-width: 1.5; stroke-dasharray: 1.2 2.6; opacity: 0.55; }
.why-path-flow {
  stroke-width: 2.2;
  stroke-dasharray: 7 93;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.8));
  animation: svc-trace-run 5.2s linear infinite;
}
@media (max-width: 900px) {
  .why-deco, .why-path-svg { display: none; }
}

.feature-grid { gap: 22px 28px; }
.feature {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface-hi);
}
.feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.4s var(--ease-bounce);
}
.feature:hover .feature-icon { transform: scale(1.15) rotate(8deg); }
.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Capabilities snapshot ----------
   Background "digital workbench" watermark: line-drawn chart + network
   map (right) and a checklist ticking itself off (left). Same faint
   decorative language as the services gears; distinguishes this from
   the Packages section, which shares the same .section-alt background. */
#capabilities { position: relative; overflow: hidden; }
#capabilities > .container { position: relative; z-index: 1; }
.cap-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.14;
}
.cap-deco svg { display: block; width: 100%; height: auto; }
/* Fully inside the section — it has overflow:hidden, so any negative
   offset would clip the animated bits (ticks, sparkline end) */
.cap-deco-right { top: 44px; right: 28px; width: 300px; }
.cap-deco-left  { bottom: 40px; left: 28px; width: 180px; }
.cap-deco rect,
.cap-deco line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cap-deco-bars line { stroke-width: 10; opacity: 0.5; }
.cap-spark {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cap-spark-draw 9s ease-in-out infinite;
}
@keyframes cap-spark-draw {
  0%         { stroke-dashoffset: 1; }
  22%        { stroke-dashoffset: 0; }
  80%        { stroke-dashoffset: 0; opacity: 1; }
  90%        { stroke-dashoffset: 0; opacity: 0; }
  90.1%      { stroke-dashoffset: 1; opacity: 0; }
  91%, 100%  { stroke-dashoffset: 1; opacity: 1; }
}
.cap-deco-links line { stroke-dasharray: 3 6; stroke-width: 1.5; }
.cap-deco-flow {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: hv-flow-run 3.8s linear infinite;
}
.cap-deco-hub { stroke: currentColor; stroke-width: 2; }
.cap-deco-node {
  fill: currentColor;
  animation: svc-node-pulse 3s ease-in-out infinite;
  animation-delay: var(--pd, 0s);
}
.cap-tick {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cap-tick-draw 9s var(--ease) infinite;
  animation-delay: var(--td, 0s);
}
@keyframes cap-tick-draw {
  0%        { stroke-dashoffset: 1; }
  8%        { stroke-dashoffset: 0; }
  80%       { stroke-dashoffset: 0; opacity: 1; }
  88%       { stroke-dashoffset: 0; opacity: 0; }
  88.1%     { stroke-dashoffset: 1; opacity: 0; }
  89%, 100% { stroke-dashoffset: 1; opacity: 1; }
}
@media (max-width: 900px) {
  .cap-deco { display: none; }
}

/* Terminal-style window chrome (shared with examples.html) */
.cap-terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.cap-dots { display: inline-flex; gap: 6px; }
.cap-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cap-dots i:nth-child(1) { background: rgba(255, 95, 86, 0.7); }
.cap-dots i:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.cap-dots i:nth-child(3) { background: rgba(39, 201, 63, 0.7); }
.cap-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cap-terminal-title::after {
  content: "▊";
  margin-left: 6px;
  color: var(--accent);
  animation: caret-blink 1.1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Capabilities list ----------
   Numbered lines with a thin vertical rail linking the index chips;
   a soft pulse of light travels down the rail (same thin-line motif
   as the hero scanline). */
.capabilities-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.capabilities-wrap .section-head { margin: 0; }
.cap-list { position: relative; }
.cap-list::before {
  content: "";
  position: absolute;
  left: 17px;   /* runs through the center of the 34px index chips */
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent-line) 14%, var(--accent-line) 86%, transparent);
  pointer-events: none;
}
.cap-list::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 8%;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
  opacity: 0;
  pointer-events: none;
  animation: cap-rail-pulse 5.5s ease-in-out 1.4s infinite;
}
@keyframes cap-rail-pulse {
  0%   { top: 6%;  opacity: 0; }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { top: 84%; opacity: 0; }
}
.cap-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
  /* Each line slides in one after another when scrolled into view */
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.cap-list.is-visible li { opacity: 1; transform: none; }
.cap-list li:nth-child(2) { transition-delay: 0.09s; }
.cap-list li:nth-child(3) { transition-delay: 0.18s; }
.cap-list li:nth-child(4) { transition-delay: 0.27s; }
.cap-list li:nth-child(5) { transition-delay: 0.36s; }
.cap-list li:last-child { border-bottom: none; }
.cap-index {
  position: relative;   /* sits above the rail */
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  /* accent-soft over the section background, flattened so the rail
     behind the chip doesn't show through */
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg-alt);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */
.example-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 96px;
  border-bottom: 1px solid var(--border);
}
.example-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
  pointer-events: none;
}
.example-hero::after {
  content: "";
  position: absolute;
  inset: -25% -15%;
  background:
    radial-gradient(36% 32% at 18% 18%, rgba(56, 189, 248, 0.13), transparent 70%),
    radial-gradient(38% 30% at 88% 52%, rgba(30, 136, 229, 0.1), transparent 70%);
  filter: blur(46px);
  animation: aurora 26s var(--ease) infinite alternate;
  pointer-events: none;
}
.example-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 44px;
  align-items: center;
}
.example-hero-copy { max-width: 690px; }
.example-terminal {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 20, 34, 0.68);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.example-terminal::before {
  content: "";
  position: absolute;
  inset: 39px auto auto -35%;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
  animation: automation-sweep 4.6s var(--ease) infinite;
  pointer-events: none;
}
.example-terminal-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.automation-sequence {
  position: relative;
  overflow: hidden;
}
.automation-sequence::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 42px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent-line), transparent);
  opacity: 0.85;
}
.automation-sequence::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.12), transparent);
  transform: translateY(0);
  animation: automation-row-scan 8s var(--ease) infinite;
  pointer-events: none;
}
.example-terminal-body span {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px transparent;
  min-width: 0;
  overflow-wrap: anywhere;
  animation: automation-card 8s var(--ease) infinite;
}
.example-terminal-body span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: #071422;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
  transform: translateY(-50%);
  animation: automation-node 8s var(--ease) infinite;
}
.example-terminal-body span::after {
  content: attr(data-state);
  min-width: 70px;
  padding: 5px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.example-terminal-body span:nth-child(2),
.example-terminal-body span:nth-child(2)::before { animation-delay: 1.9s; }
.example-terminal-body span:nth-child(3),
.example-terminal-body span:nth-child(3)::before { animation-delay: 3.8s; }
.example-terminal-body span:nth-child(4),
.example-terminal-body span:nth-child(4)::before { animation-delay: 5.7s; }

@keyframes automation-sweep {
  0% { transform: translateX(0); opacity: 0; }
  12%, 72% { opacity: 0.85; }
  100% { transform: translateX(390%); opacity: 0; }
}
@keyframes automation-row-scan {
  0%, 12% { transform: translateY(0); opacity: 0.05; }
  20%, 28% { transform: translateY(58px); opacity: 0.7; }
  40%, 48% { transform: translateY(116px); opacity: 0.7; }
  60%, 68% { transform: translateY(174px); opacity: 0.7; }
  82%, 100% { transform: translateY(174px); opacity: 0; }
}
@keyframes automation-card {
  0%, 14%, 100% {
    border-color: var(--border);
    box-shadow: inset 0 0 0 1px transparent;
    background: rgba(255, 255, 255, 0.035);
  }
  8% {
    border-color: var(--accent-line);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.14), 0 0 22px -16px var(--accent);
    background: rgba(56, 189, 248, 0.08);
  }
}
@keyframes automation-node {
  0%, 14%, 100% {
    background: #071422;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
  }
  8% {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.14), 0 0 18px rgba(56, 189, 248, 0.55);
  }
}

.case-browser {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
/* Case index — sticky "ls" directory listing with scroll-spy
   (.is-current is toggled from script.js section 10) */
.case-index {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 20, 34, 0.74);
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.case-index-list { display: grid; padding: 8px; }
.case-index-list a {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.case-index-list a:hover {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.04);
}
.case-index-list a.is-current {
  color: var(--heading);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.case-index-list a.is-current::after {
  content: "●";
  content: "●" / "";
  margin-left: auto;
  padding-left: 10px;
  color: var(--accent);
  font-size: 0.55rem;
}
.case-stack {
  display: grid;
  gap: 28px;
}
/* ---------- Case reports ("scan report" panels) ----------
   One terminal-framed panel per case: window bar (reuses the
   .cap-terminal-bar pattern), visible phase rows instead of tabs,
   highlighted outcome block, and a right rail with the per-case
   animated motif + primary value list. */
.case-report {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 20, 34, 0.68);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.case-report:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 26px 56px -26px rgba(0, 0, 0, 0.9);
}
/* HUD corner brackets (same device as the flagship pricing card) */
.case-report::after {
  content: "";
  position: absolute;
  inset: 10px;
  background:
    linear-gradient(var(--accent), var(--accent)) left 0 top 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) left 0 top 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right 0 top 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) right 0 top 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) left 0 bottom 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) left 0 bottom 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / 2px 14px;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.case-report-status {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.case-report-status::before {
  content: "● ";
  content: "● " / "";
}
.case-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 28px;
  padding: 28px 32px 32px;
}
.case-report h3 {
  color: var(--heading);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.case-summary { color: var(--text-dim); }
.case-report .example-meta { margin-top: 18px; }

/* Phase rows — the former tab content, always visible */
.case-phases { margin-top: 24px; }
.case-phase {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.case-phase h4 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2;
  text-transform: uppercase;
}
.case-phase h4::before {
  content: "▸ ";
  content: "▸ " / "";
}
.case-phase p,
.case-phase li { color: var(--text-dim); font-size: 0.96rem; }
.case-phase ul { display: grid; gap: 8px; }
.case-phase li { position: relative; padding-left: 18px; }
.case-phase li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Outcome — highlighted terminal line */
.case-outcome {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.case-outcome h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-outcome p { color: var(--text); font-size: 0.98rem; }

/* Right rail — motif + primary value */
.case-report-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}
.case-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.case-viz svg { width: 128px; height: 128px; }
.case-viz-line { stroke: var(--accent-line); stroke-width: 1.5; fill: none; }
.case-viz-line-soft { stroke: rgba(56, 189, 248, 0.18); stroke-width: 1.5; fill: none; }
.case-viz-accent {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.case-viz-beam {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}
.case-viz-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: hv-pulse 2.6s ease-in-out infinite;
}
.case-viz-node { fill: var(--accent); }
.case-viz-teeth line {
  stroke: var(--accent-line);
  stroke-width: 5;
  stroke-linecap: round;
}
.case-viz-spin,
.case-viz-spin-slow {
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.case-viz-spin { animation: hv-spin 6s linear infinite; }
.case-viz-spin-slow { animation: hv-spin 22s linear infinite; }
.case-viz-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: hv-spin-rev 18s linear infinite;
}
.case-viz-breathe { animation: svc-icon-breathe 3.6s ease-in-out infinite; }
.case-value {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.case-value h4 {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-value li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.case-value li:last-child { margin-bottom: 0; }
.case-value li::before {
  content: "✓";
  content: "✓" / "";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.example-feature,
.example-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.example-feature:hover,
.example-cta:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface-hi);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.85);
}
.example-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.example-feature p { color: var(--text-dim); }
.example-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.example-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}
.example-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.example-feature {
  padding: 24px;
}
.example-feature-wide { grid-column: span 2; }
.example-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  transition: transform 0.4s var(--ease-bounce);
}
.example-feature:hover .example-feature-icon { transform: scale(1.12) rotate(-7deg); }
.example-feature h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: 1.12rem;
}
.example-feature p {
  font-size: 0.95rem;
  line-height: 1.58;
}
.example-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
}
.example-cta .eyebrow { margin-bottom: 12px; }
.example-cta .section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.example-cta .section-lead { max-width: 680px; }

/* ---------- Who We Serve (pill/chip row) ---------- */
.serve-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.serve-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.serve-row.is-visible .serve-chip { opacity: 1; transform: none; }
.serve-row.is-visible .serve-chip:nth-child(2) { transition-delay: 0.06s; }
.serve-row.is-visible .serve-chip:nth-child(3) { transition-delay: 0.12s; }
.serve-row.is-visible .serve-chip:nth-child(4) { transition-delay: 0.18s; }
.serve-row.is-visible .serve-chip:nth-child(5) { transition-delay: 0.24s; }
.serve-row.is-visible .serve-chip:nth-child(6) { transition-delay: 0.30s; }
.serve-chip:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-hi); }
.serve-chip-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
}

/* --- Orbit visual: Tessivon core, org types traveling the orbit line ---
   Same thin-line language as the hero reticle: 1px dashed rings in
   --accent-line, slow linear spins. Each satellite starts at --oa and
   the icon counter-rotates by the same amount so it stays upright. */
.serve-layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.serve-layout .serve-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.serve-orbit {
  /* --o-r must match the mid ring: r=150 in a 420 viewBox scaled to --o-size */
  --o-size: 420px;
  --o-r: 150px;
  position: relative;
  width: var(--o-size);
  height: var(--o-size);
  margin-inline: auto;
}
.serve-orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.serve-orbit-rings circle {
  fill: none;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}
.serve-ring-outer {
  stroke: var(--accent-line);
  stroke-dasharray: 2.2 5.2;
  animation: hv-spin 90s linear infinite;
}
.serve-ring-mid { stroke: var(--border-hi); }
.serve-ring-inner {
  stroke: var(--accent-line);
  stroke-dasharray: 4 9;
  stroke-linecap: round;
  animation: hv-spin-rev 60s linear infinite;
}
/* Radar sweep from the core. Timing is exact: satellites orbit in 56s
   (360/56 ≈ 6.43°/s) and the sweep spins in 16.8s (≈ 21.43°/s), so the
   relative speed is 15°/s — with satellites 60° apart, the sweep catches
   one every 4s and laps a given satellite every 24s. Each satellite's
   upgrade animation runs on that 24s cycle, offset by --sd (0/4/8/…s). */
.serve-orbit-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--o-r) * 2);
  height: calc(var(--o-r) * 2);
  border-radius: 50%;
  /* faint wedge trailing the sweep line (line sits at 0° = top) */
  background: conic-gradient(transparent 0deg, transparent 328deg, rgba(56, 189, 248, 0.13) 360deg);
  animation: serve-sweep-run 16.8s linear infinite;
}
.serve-orbit-sweep::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 50%;
  background: linear-gradient(to top, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.85));
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
}
@keyframes serve-sweep-run {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.serve-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(circle at 50% 32%, rgba(56, 189, 248, 0.12), transparent 70%),
    var(--surface);
  animation: serve-core-breathe 6s ease-in-out infinite;
}
.serve-orbit-center img {
  display: block;
  border-radius: 50%;
  /* small "energy sent" tick — peaks every 4s, in step with each touch */
  animation: serve-core-tick 4s ease-in-out infinite;
}
@keyframes serve-core-breathe {
  0%, 100% { box-shadow: 0 0 26px rgba(56, 189, 248, 0.10); }
  50%      { box-shadow: 0 0 44px rgba(56, 189, 248, 0.22); }
}
@keyframes serve-core-tick {
  0%, 100% { transform: scale(1.07); }
  50%      { transform: scale(1); }
}
.serve-orbit-sat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--oa));
  animation: serve-orbit-run 56s linear infinite;
}
@keyframes serve-orbit-run {
  from { transform: rotate(var(--oa)); }
  to   { transform: rotate(calc(var(--oa) + 360deg)); }
}
.serve-orbit-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--o-r))) rotate(calc(-1 * var(--oa)));
  animation: serve-orbit-counter 56s linear infinite,
             serve-up-chip 24s linear infinite;
  animation-delay: 0s, var(--sd, 0s);
}
@keyframes serve-orbit-counter {
  from { transform: translate(-50%, -50%) translateY(calc(-1 * var(--o-r))) rotate(calc(-1 * var(--oa))); }
  to   { transform: translate(-50%, -50%) translateY(calc(-1 * var(--o-r))) rotate(calc(-1 * var(--oa) - 360deg)); }
}
/* Upgrade cycle (24s = one sweep lap per satellite; touch lands at 0%):
   the chip lights up on touch, holds the upgraded state most of the
   cycle, and settles back to base just before the next pass. */
@keyframes serve-up-chip {
  0%, 1%    { border-color: var(--border-hi); background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
  4%, 70%   { border-color: var(--accent); background: var(--surface-hi); box-shadow: 0 0 20px rgba(56, 189, 248, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35); }
  82%, 100% { border-color: var(--border-hi); background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
}
/* Expanding ping ring at the moment of touch */
.serve-orbit-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: serve-up-ping 24s linear infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes serve-up-ping {
  0%        { opacity: 0.85; transform: scale(0.6); }
  6%        { opacity: 0;    transform: scale(2); }
  6.1%, 100% { opacity: 0;   transform: scale(0.6); }
}
/* The two stacked icons: outline base ↔ bolder upgraded version */
.soi { grid-area: 1 / 1; }
.soi-base { animation: serve-up-base 24s linear infinite; animation-delay: var(--sd, 0s); }
.soi-up {
  opacity: 0;
  color: #fff;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9));
  animation: serve-up-icon 24s linear infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes serve-up-base {
  0%, 2%    { opacity: 1; }
  5%, 72%   { opacity: 0; }
  82%, 100% { opacity: 1; }
}
@keyframes serve-up-icon {
  0%, 2%    { opacity: 0; transform: scale(0.7); }
  5%        { opacity: 1; transform: scale(1.18); }
  9%, 70%   { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(0.7); }
}
@media (max-width: 1100px) {
  .serve-orbit { --o-size: 360px; --o-r: 128.5px; }
  .serve-layout { grid-template-columns: 380px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 900px) {
  /* Match the hero visual: decorative orbit is desktop-only */
  .serve-layout { grid-template-columns: 1fr; }
  .serve-orbit { display: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
/* Background flight path (decorative): a pulse travels the dashed
   line and lands in the envelope with a soft ping. Both animations
   share one 6s clock — the flow arrives at ~40% (hv-flow-run) and
   the ping fires right then. */
#contact { position: relative; overflow: hidden; }
#contact > .container { position: relative; z-index: 1; }
.contact-deco {
  position: absolute;
  z-index: 0;
  left: 26px;
  bottom: 28px;
  width: 300px;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}
.contact-deco svg { display: block; width: 100%; height: auto; }
.contact-deco-origin {
  fill: currentColor;
  animation: svc-node-pulse 3s ease-in-out infinite;
}
.contact-deco-path {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 2.5 5.5;
}
.contact-deco-flow {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: hv-flow-run 6s linear infinite;
}
.contact-deco-env rect,
.contact-deco-env path { stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.contact-deco-ping {
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: contact-arrive 6s linear infinite;
}
@keyframes contact-arrive {
  0%, 39% { opacity: 0;   transform: scale(0.78); }
  42%     { opacity: 0.9; transform: scale(0.82); }
  62%     { opacity: 0;   transform: scale(1.22); }
  100%    { opacity: 0;   transform: scale(0.78); }
}
@media (max-width: 900px) {
  .contact-deco { display: none; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro .section-head { margin: 0; text-align: left; max-width: none; }
.contact-intro .section-title { text-align: left; }

.contact-direct { margin: 28px 0 14px; }
.contact-direct li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 1.02rem;
}
.contact-ic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  flex-shrink: 0;
}
/* Signal waves: a thin ring radiates from each contact icon — the
   "we're on the other end" beacon. Two rings per icon, phone offset
   from email so the pings alternate down the list. */
.contact-ic::before,
.contact-ic::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: contact-signal 3.6s ease-out infinite;
}
.contact-ic::after { animation-delay: 1.2s; }
.contact-direct li:nth-child(2) .contact-ic::before { animation-delay: 0.6s; }
.contact-direct li:nth-child(2) .contact-ic::after  { animation-delay: 1.8s; }
@keyframes contact-signal {
  0%        { transform: scale(1);    opacity: 0.5; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.contact-note { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Form ---------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Whole form lifts subtly while the visitor is filling it in */
.contact-form:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 24px 60px -34px rgba(56, 189, 248, 0.35);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.optional { color: var(--text-faint); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Style the native select dropdown arrow */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA6B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 1.2em;
}
.form-status.error { color: #FCA5A5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 28px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.45;
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.brand-footer { font-size: 1.05rem; margin-bottom: 12px; }
.footer-tag { color: var(--text-dim); font-size: 0.95rem; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--heading); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.footer-fine { color: var(--text-faint); }

/* ============================================================
   BACK-TO-TOP BUTTON (appears after scrolling down)
   ============================================================ */
.to-top img { display: block; width: 30px; height: 30px; border-radius: 50%; }
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-hi);
  color: var(--text);
  border: 1px solid var(--border-hi);
  cursor: pointer;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ============================================================
   SCROLL REVEAL (paired with script.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  filter: blur(5px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Stagger cards a touch within a grid */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.08s; }
.grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.grid .reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .capabilities-wrap { grid-template-columns: 1fr; gap: 32px; }
  .case-browser { grid-template-columns: 1fr; }
  .case-index { position: static; }
  .case-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-hero-inner,
  .case-report-body,
  .example-cta { grid-template-columns: 1fr; }
  .example-terminal { max-width: 560px; }
  .example-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  /* Mobile/tablet nav: slide-down panel. With 5 links + CTA, the
     desktop nav starts wrapping onto two lines below ~1080px, so
     the hamburger takes over here instead of at the 900px layout
     breakpoint above. */
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    background: rgba(var(--bg-rgb), 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.32s var(--ease);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav > a:last-child { border-bottom: none; }
  .nav > a::after { display: none; } /* underline is a desktop affordance */
  .nav > a.active { color: var(--accent); }
  .nav-cta { margin-top: 10px; text-align: center; padding: 13px 16px; }
  .nav-toggle { display: flex; }

  .header-inner { height: 64px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .hero { padding: 72px 0 84px; }
  .example-hero { padding: 96px 0 84px; }
  .hero::after { filter: blur(36px); } /* lighter GPU load on phones */
  .example-hero::after { filter: blur(36px); }

  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .example-feature-grid { grid-template-columns: 1fr; }
  .example-feature-wide { grid-column: auto; }
  .case-index-list { grid-template-columns: 1fr; }
  .example-cta { padding: 24px; }
  .case-report-body { padding: 22px 20px 24px; gap: 22px; }
  .case-phase { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .example-terminal-body span {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-left: 38px;
  }
  .example-terminal-body span::after {
    justify-self: start;
    min-width: auto;
  }
  .example-cta .btn { width: 100%; }
  .serve-chip { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.1em; }
  .contact-form { padding: 24px; }
  .container { padding: 0 20px; }
}

/* ============================================================
   LANGUAGE TOGGLE (Español ⇄ English) — see translate.js
   ============================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.lang-toggle:hover {
  color: var(--heading);
  border-color: var(--accent-line);
  box-shadow: 0 0 14px var(--accent-soft);
}
.lang-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
/* While the page is "decoding" into the other language */
.lang-toggle.is-casting {
  color: var(--accent);
  border-color: var(--accent-line);
}
.lang-toggle.is-casting .lang-toggle-dot {
  animation: langDotSpin 0.6s linear infinite;
}
@keyframes langDotSpin {
  0%   { transform: scale(1);    opacity: 1; }
  50%  { transform: scale(1.7);  opacity: 0.5; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Applied to each element as its text reforms — a soft cyan glow
   that fades away as the translation settles. */
.lang-glow {
  animation: langGlow 0.9s ease-out;
}
@keyframes langGlow {
  0%   { text-shadow: 0 0 14px rgba(56, 189, 248, 0.55); }
  100% { text-shadow: 0 0 0 rgba(56, 189, 248, 0); }
}

/* The wave of light that sweeps down the viewport during the
   language change (created and removed by translate.js). */
.lang-sweep {
  position: fixed;
  top: -14vh;
  left: 0;
  right: 0;
  height: 14vh;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.10) 40%,
    rgba(147, 217, 255, 0.25) 50%,
    rgba(56, 189, 248, 0.10) 60%,
    rgba(56, 189, 248, 0)
  );
  filter: blur(8px);
  animation: langSweep linear both;
}
@keyframes langSweep {
  from { transform: translateY(0); }
  to   { transform: translateY(114vh); }
}

/* Respect users who prefer reduced motion — every animation and
   transition above collapses to an instant state change. */
@media (prefers-reduced-motion: reduce) {
  .lang-glow, .lang-sweep, .lang-toggle.is-casting .lang-toggle-dot { animation: none; }
  .lang-sweep { opacity: 0; }
  html { scroll-behavior: auto; }
  .reveal, .cap-list li, .serve-chip { opacity: 1; transform: none; filter: none; transition: none; }
  .anim { animation: none; opacity: 1; }
  .hero::after,
  .pulse-dot::after,
  .price-card-featured::before,
  .hero-title .accent-text { animation: none; }
  .hv-svg, .hv-node { animation: none; }
  .hv-hex, .hv-line { stroke-dashoffset: 0; }
  .hv-node { opacity: 1; transform: none; filter: none; }
  /* Cyber core shows fully assembled and static; the moving parts
     (sweep, rings, packets, scanline) stay off entirely. */
  .hv-core, .hv-core-bg { animation: none; opacity: 1; }
  .hv-ring, .hv-sweep, .hv-core-dot { animation: none; }
  .hv-flow { animation: none; opacity: 0; }
  .hero-visual::after { animation: none; opacity: 0; }
  /* Services gears + icons: fully drawn and static; data pulse stays off */
  .svc-gear, .svc-trace-node, .svc-deco-left, #services .card-icon svg { animation: none; }
  .svc-write { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .svc-trace-flow { animation: none; opacity: 0; }
  /* Why Us rocket: parked and static; exhaust settles, path pulse off */
  .why-deco-rocket, .why-deco-shield, .why-reticle { animation: none; }
  .why-exhaust line { animation: none; opacity: 0.6; }
  .why-path-flow { animation: none; opacity: 0; }
  /* Tier rail + scanlines: nodes stay visible and static; moving parts off */
  .tier-path-node.flash { animation: none; }
  .tier-path-pulse, .tier-scan::before { animation: none; opacity: 0; }
  .cap-terminal-title::after { animation: none; }
  .cap-list::after { animation: none; opacity: 0; }
  /* Capabilities workbench watermark: drawn and static; packet stays off */
  .cap-spark, .cap-tick { animation: none; stroke-dashoffset: 0; }
  .cap-deco-node { animation: none; }
  .cap-deco-flow { animation: none; opacity: 0; }
  /* Contact signal rings stay off (base opacity is 0); flight path
     shows static, the traveling pulse and arrival ping stay off */
  .contact-ic::before, .contact-ic::after { animation: none; }
  .contact-deco-origin { animation: none; }
  .contact-deco-flow, .contact-deco-ping { animation: none; opacity: 0; }
  .example-terminal::before,
  .automation-sequence::after { animation: none; opacity: 0; }
  .example-terminal-body span,
  .example-terminal-body span::before { animation: none; }
  .case-viz-spin, .case-viz-spin-slow, .case-viz-orbit,
  .case-viz-breathe, .case-viz-dot { animation: none; }
  /* Who We Serve orbit: satellites hold their starting angles (via --oa),
     rings, core glow and upgrade cycle stay still; sweep stays off */
  .serve-ring-outer, .serve-ring-inner, .serve-orbit-center,
  .serve-orbit-center img, .serve-orbit-sat, .serve-orbit-icon,
  .serve-orbit-icon::after, .soi-base, .soi-up { animation: none; }
  .serve-orbit-sweep { animation: none; opacity: 0; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-delay: 0s !important;
  }
}
