/* =============================================================
   ZenithXO — Design System
   Tokens, motif animations and component classes.
   Tailwind handles layout/spacing utilities in the markup;
   this file owns brand tokens, motion and signature elements.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #05060b;
  --navy:       #0a0e1a;
  --charcoal:   #12172a;
  --panel:      rgba(255, 255, 255, 0.035);
  --panel-hi:   rgba(255, 255, 255, 0.06);
  --hairline:   rgba(255, 255, 255, 0.09);
  --hairline-hi:rgba(255, 255, 255, 0.16);

  /* Accents */
  --blue:       #2e6bff;
  --violet:     #7c4dff;
  --cyan:       #22e3e0;

  /* Text */
  --text:       #eaeef7;
  --text-soft:  #a8b1c7;
  --text-mute:  #737e99;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.7s;

  /* Rhythm */
  --radius:     22px;
  --radius-sm:  14px;
}

/* ---------- 2. Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky navbar */
  scroll-padding-top: 88px;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Guards against any single element forcing a horizontal scrollbar */
img, svg, canvas, video { max-width: 100%; }

.font-display {
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.028em;
  line-height: 0.98;
}
.font-mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace; }

::selection { background: rgba(46, 107, 255, 0.35); color: #fff; }

/* Scrollbar — quiet, on-brand */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #04050a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #23304f, #171d31);
  border-radius: 99px;
  border: 2px solid #04050a;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #2e6bff, #7c4dff); }

/* Accessibility: always-visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  translate: -50% -140%;
  padding: 0.75rem 1.25rem;
  background: var(--cyan);
  color: #04050a;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  transition: translate 0.25s var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }

/* ---------- 3. Background system ---------- */
.bg-shell {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%,  rgba(124, 77, 255, 0.20), transparent 62%),
    radial-gradient(900px  560px at 10% 4%,   rgba(46, 107, 255, 0.20), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(34, 227, 224, 0.10), transparent 62%),
    linear-gradient(180deg, #05060b 0%, #070a14 45%, #05060b 100%);
}

/* Very subtle engineering grid, faded at the edges */
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
}

/* Film grain — SVG turbulence, no image request */
.grain-veil {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 3%); }
  40%  { transform: translate(3%, -2%); }
  60%  { transform: translate(-3%, -3%); }
  80%  { transform: translate(2%, 2%); }
  100% { transform: translate(0, 0); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* Section-level ambient glow */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  pointer-events: none;
  will-change: transform;
}
.orb-blue   { background: rgba(46, 107, 255, 0.26); }
.orb-violet { background: rgba(124, 77, 255, 0.24); }
.orb-cyan   { background: rgba(34, 227, 224, 0.16); }
.orb-drift  { animation: orb-drift 22s var(--ease-soft) infinite; }
@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4%, -6%, 0) scale(1.12); }
}

/* Hairline section divider that fades from the accent */
.rule-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 107, 255, 0.5), rgba(124, 77, 255, 0.5), transparent);
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.grad-text {
  background: linear-gradient(100deg, #ffffff 0%, #bcd0ff 34%, #22e3e0 68%, #a98cff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 9s var(--ease-soft) infinite;
}
@keyframes grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* ---------- 5. Surfaces ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Gradient hairline border via mask — crisp at any radius */
.edge-grad {
  position: relative;
}
.edge-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(46, 107, 255, 0.55), rgba(124, 77, 255, 0.28) 45%, rgba(34, 227, 224, 0.45));
  -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;
  transition: opacity 0.45s var(--ease-soft);
  pointer-events: none;
}
.edge-grad:hover::before,
.edge-grad:focus-within::before { opacity: 1; }

/* Pointer-tracked spotlight. --mx/--my are written by JS. */
.spot {
  position: relative;
  overflow: hidden;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%),
              rgba(46, 107, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  pointer-events: none;
}
.spot:hover::after,
.spot:focus-within::after { opacity: 1; }

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft),
              background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), color 0.3s;
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--violet) 55%, #4d8bff);
  background-size: 190% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -12px rgba(46, 107, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft), background-position 0.6s var(--ease-soft);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 18px 46px -12px rgba(80, 92, 255, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline-hi);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 227, 224, 0.55);
  background: rgba(34, 227, 224, 0.07);
  box-shadow: 0 14px 36px -18px rgba(34, 227, 224, 0.6);
}

/* Arrow micro-interaction, shared by buttons and links */
.arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arrow,
.link-arrow:hover .arrow,
.group:hover .arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--cyan);
  transition: color 0.3s;
}
.link-arrow:hover { color: #7cf3f1; }

/* ---------- 7. Navigation ---------- */
.navbar {
  transition: background-color 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft),
              border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(6, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

.nav-link {
  position: relative;
  padding: 0.4rem 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s var(--ease-soft);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover,
.nav-link.is-active { color: #fff; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Scroll progress meter, pinned under the navbar */
#scroll-meter {
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan));
}

/* Hamburger → X */
.burger-line {
  display: block;
  width: 22px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease-soft), width 0.4s var(--ease-out);
}
.burger.is-open .burger-line:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger.is-open .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open .burger-line:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Full-screen mobile sheet */
.mobile-nav {
  visibility: hidden;
  opacity: 0;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.62s var(--ease-out), opacity 0.35s var(--ease-soft), visibility 0.62s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at calc(100% - 44px) 44px);
}
.mobile-nav a,
.mobile-nav .m-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-nav.is-open a,
.mobile-nav.is-open .m-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.14s + var(--i, 0) * 0.055s);
}
body.nav-locked { overflow: hidden; }

/* ---------- 8. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.075s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.955); }
[data-reveal="blur"]  { filter: blur(10px); transform: translateY(20px); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Hero load choreography */
.hero-cue {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 1s var(--ease-out) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.11s);
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 9. Float / glow motif ---------- */
.float      { animation: float-y 7s var(--ease-soft) infinite; }
.float-slow { animation: float-y 11s var(--ease-soft) infinite; }
.float-alt  { animation: float-y 9s var(--ease-soft) infinite reverse; }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.6deg); }
}

.pulse-ring { animation: pulse-ring 3.4s var(--ease-soft) infinite; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(34, 227, 224, 0.4); }
  70%  { box-shadow: 0 0 0 16px rgba(34, 227, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 224, 0); }
}

.spin-slow { animation: spin-slow 26s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* The signature: hairline routes with flowing energy */
.signal-path {
  stroke-dasharray: 7 11;
  animation: signal-flow 2.6s linear infinite;
}
@keyframes signal-flow { to { stroke-dashoffset: -36; } }

.signal-path-slow {
  stroke-dasharray: 4 14;
  animation: signal-flow 5.2s linear infinite;
}

.node-glow { animation: node-glow 3.6s var(--ease-soft) infinite; }
@keyframes node-glow {
  0%, 100% { opacity: 0.35; r: 15; }
  50%      { opacity: 0.9;  r: 20; }
}

/* Live terminal caret */
.caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- 10. Service cards ---------- */
.svc {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: transform 0.5s var(--ease-out), border-color 0.45s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.svc:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 107, 255, 0.4);
  box-shadow: 0 30px 60px -32px rgba(46, 107, 255, 0.55);
}
.svc-wash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 15% 0%, rgba(46, 107, 255, 0.16), transparent 58%),
              radial-gradient(90% 80% at 100% 100%, rgba(124, 77, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  pointer-events: none;
}
.svc:hover .svc-wash { opacity: 1; }

.svc-icon {
  transition: transform 0.55s var(--ease-out), color 0.4s, background-color 0.4s, border-color 0.4s;
}
.svc:hover .svc-icon {
  transform: translateY(-3px) rotate(-7deg) scale(1.07);
  color: var(--cyan);
  border-color: rgba(34, 227, 224, 0.4);
  background-color: rgba(34, 227, 224, 0.09);
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--text-soft);
  transition: border-color 0.35s, color 0.35s, background-color 0.35s;
}
.svc:hover .chip,
.work-card:hover .chip { border-color: rgba(124, 77, 255, 0.35); color: #d6def3; }

/* ---------- 11. Solutions / tech / why ---------- */
.sol {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--hairline);
  transition: transform 0.55s var(--ease-out), border-color 0.45s;
}
.sol:hover { transform: translateY(-6px); border-color: var(--hairline-hi); }
.sol-mesh {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(46, 107, 255, 0.30), rgba(124, 77, 255, 0.22), rgba(34, 227, 224, 0.24), rgba(46, 107, 255, 0.30));
  filter: blur(46px);
  opacity: 0.5;
  animation: spin-slow 34s linear infinite;
}
.sol:hover .sol-mesh { opacity: 0.85; }

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.035);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-soft);
  animation: float-drift 8s var(--ease-soft) infinite;
  animation-delay: calc(var(--i, 0) * -0.55s);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, color 0.35s, background-color 0.35s, box-shadow 0.35s;
}
@keyframes float-drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}
.tech-badge:hover {
  transform: scale(1.06);
  border-color: rgba(34, 227, 224, 0.5);
  background: rgba(34, 227, 224, 0.08);
  color: #fff;
  box-shadow: 0 12px 30px -16px rgba(34, 227, 224, 0.7);
}
.tech-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.why-item { transition: transform 0.5s var(--ease-out); }
.why-item:hover { transform: translateY(-5px); }
.why-icon {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-soft);
}
.why-item:hover .why-icon {
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 0 34px -8px rgba(46, 107, 255, 0.8);
}

/* ---------- 12. Work / portfolio ---------- */
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.35s var(--ease-soft);
}
.filter-btn:hover { color: #fff; border-color: var(--hairline-hi); }
.filter-btn[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  box-shadow: 0 10px 26px -14px rgba(80, 92, 255, 0.9);
}

.work-card {
  transition: opacity 0.45s var(--ease-soft), transform 0.5s var(--ease-out), border-color 0.45s;
}
.work-card.is-hidden {
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  pointer-events: none;
}
.work-card:hover { border-color: rgba(124, 77, 255, 0.42); }
.work-shot {
  transition: transform 0.75s var(--ease-out);
}
.work-card:hover .work-shot { transform: scale(1.07); }
.work-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 11, 0) 30%, rgba(5, 6, 11, 0.55) 70%, rgba(5, 6, 11, 0.9) 100%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease-soft);
}
.work-card:hover .work-veil { opacity: 1; }

/* ---------- 13. Process timeline ---------- */
.proc-track { background: rgba(255, 255, 255, 0.08); }
#proc-fill {
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--blue), var(--violet) 55%, var(--cyan));
  transition: transform 0.15s linear;
}
.proc-node {
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), transform 0.5s var(--ease-out);
}
.proc-step.is-in .proc-node {
  background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 5px rgba(46, 107, 255, 0.14), 0 0 26px -4px rgba(34, 227, 224, 0.8);
  transform: scale(1.12);
}

/* ---------- 14. Growth ladder ---------- */
.stage {
  position: relative;
  transition: transform 0.55s var(--ease-out), border-color 0.45s;
}
.stage:hover { transform: translateY(-6px); border-color: var(--hairline-hi); }
.stage-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color 0.5s;
}
.stage:hover .stage-num { -webkit-text-stroke-color: rgba(34, 227, 224, 0.5); }

.connector-dot { animation: connector-run 2.6s var(--ease-soft) infinite; }
@keyframes connector-run {
  0%   { transform: translateY(-6px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(28px); opacity: 0; }
}

/* ---------- 15. Testimonials ---------- */
.quote-card {
  transition: transform 0.55s var(--ease-out), border-color 0.45s, box-shadow 0.55s var(--ease-soft);
}
.quote-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 227, 224, 0.34);
  box-shadow: 0 34px 70px -40px rgba(34, 227, 224, 0.5);
}
.quote-mark {
  font-family: "Bricolage Grotesque", serif;
  font-size: 5rem;
  line-height: 0.6;
  color: rgba(46, 107, 255, 0.35);
  transition: color 0.5s;
}
.quote-card:hover .quote-mark { color: rgba(34, 227, 224, 0.55); }

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--hairline-hi);
}

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--hairline-hi);
  background: linear-gradient(150deg, rgba(46, 107, 255, 0.14), rgba(124, 77, 255, 0.10) 50%, rgba(34, 227, 224, 0.10));
}
.cta-aurora {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 90deg at 50% 50%,
    rgba(46, 107, 255, 0.55), rgba(124, 77, 255, 0.35), rgba(34, 227, 224, 0.45),
    rgba(46, 107, 255, 0.55));
  filter: blur(74px);
  opacity: 0.42;
  animation: spin-slow 28s linear infinite;
}

/* ---------- 17. Form ---------- */
.field {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease-soft), background-color 0.3s, box-shadow 0.3s var(--ease-soft);
}
.field::placeholder { color: #5d6884; }
.field:hover { border-color: var(--hairline-hi); }
.field:focus {
  outline: none;
  border-color: rgba(46, 107, 255, 0.75);
  background: rgba(46, 107, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.13);
}
.field[aria-invalid="true"] {
  border-color: #ff6b81;
  box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.12);
}
select.field { appearance: none; cursor: pointer; }
select.field option { background: #0a0e1a; color: var(--text); }

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #ff8b9c;
}
.field-error.is-shown { display: block; animation: shake 0.4s var(--ease-soft); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ---------- 18. Footer ---------- */
.foot-link {
  color: var(--text-mute);
  font-size: 0.9rem;
  transition: color 0.3s, transform 0.3s var(--ease-out);
  display: inline-block;
}
.foot-link:hover { color: var(--cyan); transform: translateX(3px); }

.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.35s var(--ease-soft);
}
.social:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(46, 107, 255, 0.55);
  background: rgba(46, 107, 255, 0.14);
  box-shadow: 0 12px 28px -14px rgba(46, 107, 255, 0.85);
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  box-shadow: 0 0 22px -6px rgba(46, 107, 255, 0.85);
}

/* ---------- 19. Reduced motion ----------
   Strip ambient/looping motion; keep only opacity so content
   never depends on an animation to become visible.            */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .grain-veil, #particles { animation: none; }
  #particles { display: none; }

  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-cue { opacity: 1; transform: none; animation: none; }
  .mobile-nav.is-open a, .mobile-nav.is-open .m-item { opacity: 1; transform: none; }
  .svc:hover, .sol:hover, .quote-card:hover, .work-card:hover,
  .stage:hover, .why-item:hover, .btn:hover { transform: none; }
  .orb-drift, .spin-slow, .float, .float-slow, .float-alt,
  .signal-path, .signal-path-slow, .connector-dot, .tech-badge { animation: none; }
  .caret::after { animation: none; }
}

/* ---------- 20. Print ---------- */
@media print {
  .bg-shell, .grid-veil, .grain-veil, #particles, .navbar, .mobile-nav, .orb { display: none !important; }
  body { background: #fff; color: #000; }
}
