/* ==========================================================================
   TECHVETRON — Design System
   Dark canvas · Electric lime accent · Geist typography
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Surfaces */
  --bg:          #04000b;
  --bg-soft:     #080213;
  --bg-elev:     #0d0619;
  --surface:     rgba(255, 255, 255, 0.028);
  --surface-2:   rgba(255, 255, 255, 0.055);
  --surface-3:   rgba(255, 255, 255, 0.085);

  /* Lines */
  --border:        rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-lime:   rgba(201, 243, 29, 0.32);

  /* Type */
  --text:    #ffffff;
  --text-2:  #c6c0d4;
  --muted:   #8b8299;
  --dim:     #5d5670;

  /* Brand */
  --primary:      #c9f31d;
  --primary-2:    #add40c;
  --primary-deep: #8fb500;
  --primary-glow: rgba(201, 243, 29, 0.35);
  --primary-faint: rgba(201, 243, 29, 0.08);

  /* AI / secondary accents */
  --violet:      #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --cyan:        #22d3ee;
  --cyan-glow:   rgba(34, 211, 238, 0.3);

  /* Type scale */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --nav-h: 76px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }
body.nav-open   { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--primary); color: #04000b; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2a1f3d;
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3d2e57; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2b. CINEMATIC BACKGROUND VIDEO ---------- */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;                 /* above body bg, below all content */
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.bg-video-el {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(-50%, -50%, 0) scale(1.32);
  /* Source footage is very dark (~7/255). Brighten hard so the structure
     reads, and keep saturation moderate so the green supports the lime
     accent rather than turning the page monochrome.
     NOTE: the scale here is the parallax headroom — main.js drifts the video
     by +/-118px. Lowering it without lowering DRIFT will expose an edge. */
  filter: saturate(0.40) brightness(1.30) contrast(1.08);
  will-change: transform;
  backface-visibility: hidden;
}
.bg-video-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 66% at 50% 42%,
      rgba(4, 0, 11, 0.10) 0%,
      rgba(4, 0, 11, 0.44) 58%,
      rgba(4, 0, 11, 0.80) 100%),
    linear-gradient(180deg,
      rgba(4, 0, 11, 0.46) 0%,
      rgba(4, 0, 11, 0.18) 26%,
      rgba(4, 0, 11, 0.30) 62%,
      rgba(4, 0, 11, 0.76) 100%);
}
.bg-video-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg,
    rgba(34, 211, 238, 0.16) 0%,
    rgba(139, 92, 246, 0.15) 55%,
    rgba(34, 211, 238, 0.10) 100%);
  mix-blend-mode: screen;
}
.bg-video.is-off { display: none; }

/* Video is decorative — hide it entirely for reduced-motion users,
   who get the flat brand background instead. */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
}

/* ---------- 3. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1560px; }

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9.5rem);
  /* Decorative .glow-orb elements are deliberately positioned past the edges.
     Clip them here so they can never create horizontal page scroll.
     `clip` is listed second so it wins where supported (it does not create a
     scroll container, so it can't interfere with sticky descendants). */
  overflow: hidden;
  overflow: clip;
}
.section-sm { padding-block: clamp(3.5rem, 7vw, 6rem); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + *    { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- 4. TYPOGRAPHY ---------- */
.display {
  font-size: clamp(2.6rem, 8.2vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.038em; font-weight: 600; }
.h2 { font-size: clamp(1.85rem, 4.1vw, 3.4rem); line-height: 1.06; letter-spacing: -0.032em; font-weight: 600; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.18; letter-spacing: -0.024em; font-weight: 600; }
.h4 { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.3; letter-spacing: -0.018em; font-weight: 600; }

.lead {
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  line-height: 1.62;
  color: var(--text-2);
  letter-spacing: -0.014em;
}
.muted { color: var(--muted); }
.text-lime { color: var(--primary); }

p { color: var(--text-2); }

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--primary);
  opacity: 0.6;
}
.eyebrow-plain::before { display: none; }

/* Outlined display text */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

/* ---------- 4b. TEXT PROTECTION OVER THE MOVING BACKGROUND ----------
   The Earth loop passes bright cloud bands behind copy that sits on
   transparent sections. A wide, low-opacity halo keeps contrast stable
   without reading as a drop shadow. */
.display, .h1, .h2, .h3, .h4,
.lead, .eyebrow, .step p, .step h3,
.feat strong, .feat span,
.stat-cell .lbl, .hero-stat .lbl,
.marquee-item, .faq-q, .breadcrumb {
  text-shadow: 0 1px 22px rgba(4, 0, 11, 0.62), 0 1px 3px rgba(4, 0, 11, 0.4);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 99px;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--primary); color: #05010d; }
.btn-primary:hover { background: #dcff3f; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-faint);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--border-lime); transform: translateY(-2px); }

.btn-lg { padding: 1.15rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.83rem; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.arrow-link:hover svg { transform: translate(3px, -3px); }

/* Magnetic wrapper */
.magnetic { display: inline-block; will-change: transform; }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 0, 11, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.035em;
  flex: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px var(--primary-glow);
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo-mark svg { width: 18px; height: 18px; }
.logo-dot { color: var(--primary); }

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-2);
  border-radius: 99px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--primary); }
.nav-link .chev { width: 12px; height: 12px; opacity: 0.65; transition: transform 0.35s var(--ease); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .chev { transform: rotate(180deg); }
.nav-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 268px;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(13, 6, 25, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-drop a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  border-radius: 11px;
  transition: background-color 0.25s var(--ease);
}
.nav-drop a:hover { background: var(--surface-2); }
.nav-drop .nd-ico {
  width: 30px; height: 30px; flex: none;
  border-radius: 8px;
  background: var(--primary-faint);
  color: var(--primary);
  display: grid; place-items: center;
}
.nav-drop .nd-ico svg { width: 15px; height: 15px; }
.nav-drop strong { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.012em; }
.nav-drop span { display: block; font-size: 0.755rem; color: var(--muted); line-height: 1.4; margin-top: 1px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  place-items: center;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span + span { margin-top: 5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile panel */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 890;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  background: rgba(4, 0, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
body.nav-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel .mp-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.nav-panel .mp-sub { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.9rem 0 1.3rem; }
.nav-panel .mp-sub a {
  font-size: 0.8rem;
  padding: 0.42rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .nav-menu, .nav-right .btn { display: none; }
  .burger { display: grid; }
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-canvas canvas { width: 100% !important; height: 100% !important; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(4, 0, 11, 0.62) 0%, rgba(4, 0, 11, 0.30) 30%, transparent 56%),
    radial-gradient(ellipse 62% 52% at 68% 44%, transparent 24%, rgba(4, 0, 11, 0.44) 74%, rgba(4, 0, 11, 0.84) 100%),
    linear-gradient(to bottom, rgba(4,0,11,0.40) 0%, transparent 20%, transparent 62%, rgba(4,0,11,0.86) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-title { margin-bottom: 1.6rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(105%);
  animation: heroLine 1.15s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.26s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.37s; }
@keyframes heroLine { to { transform: translateY(0); } }

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: end;
  margin-top: 3.2rem;
}
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}
.hero-stat .num em { font-style: normal; color: var(--primary); font-size: 0.6em; }
.hero-stat .lbl {
  font-size: 0.735rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue i {
  display: block;
  width: 44px; height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--primary);
  animation: cueSlide 2.2s var(--ease-io) infinite;
}
@keyframes cueSlide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- 8. MARQUEE ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.6rem;
  border-block: 1px solid var(--border);
  background: rgba(8, 2, 19, 0.62);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.2rem;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.marquee-item:hover { color: var(--text); }
.marquee-item svg { width: 19px; height: 19px; color: var(--primary); opacity: 0.85; flex: none; }

/* ---------- 9. CARDS ---------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
              background-color 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--primary-faint), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-lime);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* Service card */
.svc-card { display: flex; flex-direction: column; min-height: 268px; }
.svc-ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--primary-faint);
  border: 1px solid var(--border-lime);
  color: var(--primary);
  margin-bottom: 1.4rem;
  transition: transform 0.55s var(--ease), background-color 0.4s var(--ease);
}
.svc-ico svg { width: 24px; height: 24px; }
.card:hover .svc-ico { transform: translateY(-3px) scale(1.06); background: rgba(201,243,29,0.14); }

.svc-card h3 { margin-bottom: 0.7rem; }
.svc-card p { font-size: 0.925rem; line-height: 1.58; color: var(--muted); }
.svc-card .arrow-link { margin-top: auto; padding-top: 1.4rem; }

.svc-num {
  position: absolute;
  top: 1.3rem; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  z-index: 1;
}

/* Variant: AI card (violet accent) */
.card-ai .svc-ico {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.32);
  color: #a78bfa;
}
.card-ai::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(139,92,246,0.11), transparent 62%); }
.card-ai:hover { border-color: rgba(139, 92, 246, 0.42); }
.card-ai:hover .svc-ico { background: rgba(139, 92, 246, 0.18); }
.card-ai .arrow-link { color: #a78bfa; }

/* Variant: cyan */
.card-cy .svc-ico {
  background: rgba(34, 211, 238, 0.09);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}
.card-cy::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(34,211,238,0.1), transparent 62%); }
.card-cy:hover { border-color: rgba(34, 211, 238, 0.4); }
.card-cy .arrow-link { color: var(--cyan); }

/* ---------- 10. SECTION HEAD ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}
.sec-head .h2 { margin-top: 1.1rem; }
.sec-head .lead { max-width: 46ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}

.sec-head-center { display: block; text-align: center; max-width: 780px; margin-inline: auto; }
.sec-head-center .lead { margin-inline: auto; margin-top: 1.2rem; }
.sec-head-center .eyebrow { justify-content: center; }

/* ---------- 11. STATS BAND ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  padding: clamp(1.8rem, 3.4vw, 2.8rem) clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background-color 0.5s var(--ease);
}
.stat-cell:last-child { border-right: 0; }
.stat-cell:hover { background: var(--surface); }
.stat-cell .num {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.stat-cell .num em { font-style: normal; color: var(--primary); font-size: 0.52em; margin-left: 0.06em; }
.stat-cell .lbl {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- 12. SPLIT (text + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split-rev .split-visual { order: -1; }
@media (max-width: 900px) {
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .split-rev .split-visual { order: 0; }
}

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(13, 6, 25, 0.62), rgba(8, 2, 19, 0.5));
  aspect-ratio: 4 / 3.1;
  min-height: 300px;
}
.split-visual canvas { width: 100% !important; height: 100% !important; }

.visual-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- 13. FEATURE LIST ---------- */
.feat-list { display: grid; gap: 1.15rem; }
.feat {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
.feat-ico {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: var(--primary-faint);
  color: var(--primary);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feat-ico svg { width: 14px; height: 14px; }
.feat strong { display: block; font-size: 0.97rem; font-weight: 500; letter-spacing: -0.015em; }
.feat span { display: block; font-size: 0.87rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.55; }

/* ---------- 14. PROCESS ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 2.4rem 1.6rem 0 0;
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.step::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 0; height: 5px;
  background: var(--primary);
  border-radius: 99px;
  transition: width 1.1s var(--ease);
}
.step.is-in::after { width: 52px; }
.step h3 { margin-bottom: 0.65rem; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.58; }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding-right: 1.2rem; }
}
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } .step { padding-bottom: 1.6rem; } }

/* ---------- 15. TESTIMONIALS ---------- */
.quote-card {
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.quote-card blockquote {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--text-2);
  letter-spacing: -0.014em;
}
.quote-card blockquote::before { content: "“"; }
.quote-card blockquote::after  { content: "”"; }
.quote-who { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #05010d;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  letter-spacing: -0.02em;
}
.avatar-v { background: linear-gradient(140deg, #a78bfa, #6d28d9); color: #fff; }
.avatar-c { background: linear-gradient(140deg, #67e8f9, #0891b2); color: #04222a; }
.quote-who strong { display: block; font-size: 0.9rem; font-weight: 500; }
.quote-who span { display: block; font-size: 0.78rem; color: var(--muted); }

.stars { display: flex; gap: 0.15rem; color: var(--primary); }
.stars svg { width: 15px; height: 15px; }

/* ---------- 16. ACCORDION / FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-q i {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq-q i svg { width: 13px; height: 13px; }
.faq-item.is-open .faq-q i { transform: rotate(45deg); background: var(--primary); border-color: var(--primary); color: #05010d; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.6rem; font-size: 0.95rem; color: var(--muted); line-height: 1.68; max-width: 78ch; }

/* ---------- 17. CTA BAND ---------- */
.cta-band {
  position: relative;
  border-radius: clamp(20px, 3vw, 36px);
  overflow: hidden;
  padding: clamp(2.8rem, 7vw, 6rem) clamp(1.6rem, 5vw, 4.5rem);
  background: linear-gradient(140deg, #12061f 0%, #07010f 55%, #0d0a02 100%);
  border: 1px solid var(--border);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 780px; height: 780px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary-glow), transparent 62%);
  opacity: 0.3;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h2 { margin-bottom: 1.2rem; }
.cta-band .lead { max-width: 56ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem; }

/* ---------- 18. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 2, 19, 0.78);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.footer h4 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.footer-links { display: grid; gap: 0.7rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
  display: inline-block;
}
.footer-links a:hover { color: var(--primary); transform: translateX(3px); }
.footer-about p { font-size: 0.92rem; color: var(--muted); max-width: 38ch; margin-top: 1.2rem; line-height: 1.62; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover { color: var(--primary); border-color: var(--border-lime); background: var(--primary-faint); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--dim);
}
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 19. PAGE HEADER (inner pages) ---------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.page-head-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.85; }
.page-head-canvas canvas { width: 100% !important; height: 100% !important; }
.page-head::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(4,0,11,0.90) 0%,
      rgba(4,0,11,0.66) 26%,
      rgba(4,0,11,0.14) 54%,
      transparent 74%),
    linear-gradient(to bottom,
      rgba(4,0,11,0.30) 0%,
      rgba(4,0,11,0.72) 62%,
      rgba(4,0,11,0.86) 100%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head .h1 { margin-top: 1.3rem; max-width: 20ch; }
.page-head .lead { margin-top: 1.5rem; max-width: 62ch; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.4; }

/* ---------- 20. PILLS / TAGS ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.775rem;
  color: var(--text-2);
  letter-spacing: -0.008em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pill:hover { border-color: var(--border-lime); color: var(--primary); background: var(--primary-faint); }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}
.pill-v { border-color: rgba(139,92,246,0.3); }
.pill-v .pill-dot { background: var(--violet); box-shadow: 0 0 8px var(--violet-glow); }
.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Status badge */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.55rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.badge-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  position: relative;
}
.badge-live i::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulseRing 2s var(--ease-io) infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- 21. FORMS ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 13px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--border-lime);
  background: rgba(201,243,29,0.035);
  box-shadow: 0 0 0 4px rgba(201,243,29,0.07);
}
.field select option { background: var(--bg-elev); color: var(--text); }

.form-note { font-size: 0.8rem; color: var(--dim); }
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  border: 1px solid var(--border-lime);
  background: var(--primary-faint);
  color: var(--primary);
  display: none;
}
.form-status.is-shown { display: block; }

/* ---------- 22. CONTACT INFO ---------- */
.info-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.info-card:hover { border-color: var(--border-lime); background: var(--surface-2); }
.info-card .svc-ico { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1.1rem; }
.info-card .svc-ico svg { width: 19px; height: 19px; }
.info-card h4 { margin-bottom: 0.5rem; }
.info-card p, .info-card a { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.info-card a:hover { color: var(--primary); }

/* ---------- 23. REVEAL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="blur"]  { filter: blur(9px); transform: translateY(18px); }
[data-reveal="blur"].is-in { filter: blur(0); }

/* Word-by-word heading reveal */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.split-words.is-in .w > span { transform: translateY(0); }

/* Parallax */
[data-parallax] { will-change: transform; }

/* ---------- 24. CURSOR ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid #fff;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background-color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-hover { width: 62px; height: 62px; background: rgba(255,255,255,0.14); }
body.cursor-on .cursor, body.cursor-on .cursor-dot { opacity: 1; }
@media (hover: none), (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- 25. PRELOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; width: min(320px, 74vw); }
.loader-mark {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}
.loader-bar {
  height: 2px;
  background: var(--border-strong);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.28s linear;
}
.loader-pct {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
}

/* ---------- 26. PAGE TRANSITION ---------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-veil.is-out {
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.55s var(--ease-io);
}

/* ---------- 27. SCROLL PROGRESS ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--primary-deep), var(--primary));
  z-index: 950;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ---------- 28. MISC UTILITY ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.relative { position: relative; }
.z-1 { position: relative; z-index: 1; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; }
.mt-5 { margin-top: 3.4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.6rem; }
.mb-4 { margin-bottom: 2.4rem; }
.max-56 { max-width: 56ch; }
.max-64 { max-width: 64ch; }
.max-72 { max-width: 72ch; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.6rem; }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }

.ticker-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Code-ish block */
.term {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(7, 1, 15, 0.82);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3050; }
.term-bar i:first-child { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim); }
.term pre {
  margin: 0;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.85;
  color: var(--text-2);
  overflow-x: auto;
}
.term .k { color: #a78bfa; }
.term .s { color: var(--primary); }
.term .c { color: var(--dim); }
.term .f { color: var(--cyan); }

/* ---------- 29. CHAT WIDGET ---------- */
.chat-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 880;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #05010d;
  display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5), 0 0 0 0 var(--primary-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: fabPulse 3.4s var(--ease-io) infinite;
}
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 24px; height: 24px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(0,0,0,0.5), 0 0 0 0 rgba(201,243,29,0.4); }
  50%      { box-shadow: 0 12px 34px rgba(0,0,0,0.5), 0 0 0 14px rgba(201,243,29,0); }
}

.chat-panel {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: calc(clamp(1rem, 2.5vw, 2rem) + 70px);
  z-index: 881;
  width: min(370px, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  background: rgba(13, 6, 25, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,0.65);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease), visibility 0.38s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-head .avatar { width: 36px; height: 36px; font-size: 0.8rem; }
.chat-head strong { display: block; font-size: 0.9rem; font-weight: 500; }
.chat-head span { display: block; font-size: 0.72rem; color: var(--primary); }
.chat-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chat-close:hover { color: var(--primary); border-color: var(--border-lime); }
.chat-close svg { width: 14px; height: 14px; }

.chat-body {
  height: 268px;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.msg {
  max-width: 84%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.855rem;
  line-height: 1.5;
}
.msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-2);
}
.msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #05010d;
  border-bottom-right-radius: 4px;
  font-weight: 450;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.86rem;
}
.chat-input:focus { outline: none; border-color: var(--border-lime); }
.chat-form button {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #05010d;
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.chat-form button:hover { transform: scale(1.08); }
.chat-form button svg { width: 17px; height: 17px; }

@media (max-width: 520px) {
  .chat-body { height: 220px; }
}

/* ---------- 29b. SERVICE DETAIL ROWS ---------- */
.svc-rows { border-top: 1px solid var(--border); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding: clamp(2.2rem, 4.4vw, 3.4rem) 0;
  border-bottom: 1px solid var(--border);
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.svc-row:hover::before { opacity: 1; }
.svc-row > * { position: relative; z-index: 1; }
.svc-row-idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  padding-top: 0.55rem;
}
.svc-row-main .svc-ico { margin-bottom: 1.1rem; }
.svc-row-main h3 { margin-bottom: 0.7rem; }
.svc-row-main p { font-size: 0.94rem; color: var(--muted); line-height: 1.62; }
.svc-row-side { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.35rem; }
.svc-row-side .side-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.svc-cap { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.svc-cap span {
  font-size: 0.765rem;
  padding: 0.34rem 0.72rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.svc-row:hover .svc-cap span { border-color: var(--border-lime); color: var(--primary); }
@media (max-width: 980px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .svc-row-idx { padding-top: 0; }
}

/* ---------- 29c. STICKY JUMP NAV ---------- */
.jump-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 500;
  background: rgba(4, 0, 11, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.jump-nav-inner {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jump-nav-inner::-webkit-scrollbar { display: none; }
.jump-nav a {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.44rem 0.9rem;
  border-radius: 99px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.jump-nav a:hover { color: var(--primary); border-color: var(--border-lime); background: var(--primary-faint); }

/* ---------- 29d. PRICING TIERS ---------- */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.tier:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.tier.is-featured {
  border-color: var(--border-lime);
  background: linear-gradient(180deg, rgba(201,243,29,0.055), var(--surface) 60%);
}
.tier-tag {
  position: absolute;
  top: -11px; left: 1.6rem;
  padding: 0.22rem 0.75rem;
  border-radius: 99px;
  background: var(--primary);
  color: #05010d;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tier-name { font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.tier h3 { margin-top: 0.35rem; }
.tier .tier-price {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tier .tier-price small { font-size: 0.4em; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tier ul { display: grid; gap: 0.65rem; margin-top: 0.3rem; }
.tier li { display: flex; gap: 0.6rem; font-size: 0.885rem; color: var(--text-2); line-height: 1.5; }
.tier li svg { width: 15px; height: 15px; flex: none; color: var(--primary); margin-top: 3px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- 29e. PHOTOGRAPHY (duotone-treated) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  isolation: isolate;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.12) brightness(0.55);
  transform: scale(1.03);
  transition: filter 1s var(--ease), transform 1.6s var(--ease);
}
/* lime→violet duotone tint over the desaturated photo */
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg,
    rgba(201, 243, 29, 0.34) 0%,
    rgba(139, 92, 246, 0.26) 50%,
    rgba(4, 0, 11, 0.62) 100%);
  mix-blend-mode: color;
  transition: opacity 1s var(--ease);
}
/* readability scrim */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(4, 0, 11, 0.94) 0%,
    rgba(4, 0, 11, 0.42) 46%,
    rgba(4, 0, 11, 0.05) 80%);
}
.media:hover img { filter: grayscale(0.4) contrast(1.06) brightness(0.72); transform: scale(1.07); }
.media:hover::before { opacity: 0.5; }

.media-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
}
.media-kicker {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.media-body h4 { margin-top: 0.45rem; }
.media-body p { font-size: 0.84rem; color: var(--text-2); margin-top: 0.35rem; line-height: 1.55; }

/* aspect helpers */
.media-4-3   { aspect-ratio: 4 / 3; }
.media-3-2   { aspect-ratio: 3 / 2; }
.media-16-10 { aspect-ratio: 16 / 10; }
.media-1-1   { aspect-ratio: 1 / 1; }
.media-wide  { aspect-ratio: 21 / 9; }
.media-tall  { aspect-ratio: 3 / 4; }
.media-short { aspect-ratio: 16 / 6; }

/* photo bands */
.photo-band { display: grid; gap: 1.25rem; }
.photo-band-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-band-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .photo-band-3, .photo-band-2 { grid-template-columns: minmax(0, 1fr); }
}

/* inline thumb used inside service rows */
.media-thumb { border-radius: var(--radius); aspect-ratio: 16 / 10; margin-bottom: 1.1rem; }

/* credits line */
.img-credit {
  font-size: 0.72rem;
  color: var(--dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.img-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.img-credit a:hover { color: var(--primary); }

/* ---------- 30. REDUCED MOTION ---------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-title .line > span { transform: none !important; animation: none !important; }
  .split-words .w > span { transform: none !important; }
}
