/* ==========================================================================
   TRIVARTHA — Enterprise Software Studio
   Design system, layout and motion.
   Sections
   01 Tokens
   02 Reset & base
   03 Ambient layers
   04 Preloader
   05 Cursor / progress
   06 Header & navigation
   07 Buttons & primitives
   08 Hero
   09 Marquee
   10 Sections / headings
   11 Standard (about)
   12 Services
   13 Products gallery
   14 Timeline
   15 Security
   16 FAQ
   17 Contact & forms
   18 Footer
   19 Overlays / modal / toast
   20 Motion utilities
   21 Responsive
   22 Reduced motion / no-webgl
   ========================================================================== */

/* ==========================================================================
   01 TOKENS
   ========================================================================== */
:root {
  /* Surfaces */
  --void:        #04060D;
  --deep:        #070A13;
  --surface-1:   #0C111E;
  --surface-2:   #121A2B;
  --surface-3:   #182236;

  /* Brand */
  --brand:       #4C6FFF;
  --brand-soft:  #7A93FF;
  --brand-deep:  #2E45C9;
  --cyan:        #22D3EE;
  --violet:      #A855F7;
  --mint:        #34D399;
  --amber:       #FFB020;
  --pink:        #F472B6;
  --rose:        #FB7185;

  /* Text */
  --text:        #EEF2FB;
  --text-soft:   #B9C3D8;
  --text-dim:    #7E8AA5;
  --text-faint:  #5A6580;

  /* Lines & glass */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass:       rgba(255, 255, 255, 0.035);
  --glass-2:     rgba(255, 255, 255, 0.06);
  --glass-edge:  rgba(255, 255, 255, 0.10);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --shell:       1280px;
  --shell-narrow:880px;
  --r-sm:        10px;
  --r-md:        16px;
  --r-lg:        24px;
  --r-xl:        32px;
  --r-pill:      999px;

  /* Elevation */
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
  --sh-md: 0 18px 48px rgba(0, 0, 0, 0.42);
  --sh-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --glow-brand: 0 0 0 1px rgba(76, 111, 255, 0.35), 0 18px 60px rgba(76, 111, 255, 0.28);

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:       0.6s;

  --header-h: 78px;
}

/* ==========================================================================
   02 RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must win over component display rules, otherwise
   invisible overlays keep capturing pointer events. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  color: #fff;
}

p { margin: 0 0 1.1em; color: var(--text-soft); }

a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

::selection { background: rgba(76, 111, 255, 0.35); color: #fff; }

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

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; flex: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); font-weight: 600; transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}
.shell--narrow { width: min(100% - 40px, var(--shell-narrow)); }

.section {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  z-index: 2;
}
.section--alt {
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(76, 111, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--void));
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 0.7em;
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-soft);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.pulse::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulseRing 2.4s var(--ease-out) infinite;
}
.pulse--mint { background: var(--mint); }

.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--brand-soft) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   03 AMBIENT LAYERS
   ========================================================================== */
.grain {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.bg-aurora {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(90px);
  opacity: 0.55;
}
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(76,111,255,.55), transparent 68%); top: -12vw; left: -8vw; animation: drift1 24s var(--ease-io) infinite; }
.blob--2 { width: 38vw; height: 38vw; background: radial-gradient(circle, rgba(34,211,238,.38), transparent 68%); top: 32vh; right: -10vw; animation: drift2 28s var(--ease-io) infinite; }
.blob--3 { width: 34vw; height: 34vw; background: radial-gradient(circle, rgba(168,85,247,.32), transparent 68%); bottom: -8vw; left: 28vw; animation: drift3 32s var(--ease-io) infinite; }
.blob--4 { width: 26vw; height: 26vw; background: radial-gradient(circle, rgba(52,211,153,.22), transparent 70%); top: 12vh; left: 42vw; animation: drift1 36s var(--ease-io) infinite reverse; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 70% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000 20%, transparent 85%);
}

/* ==========================================================================
   04 PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { width: min(320px, 78vw); text-align: center; }
.preloader__mark { position: relative; width: 120px; height: 120px; margin: 0 auto 26px; }
.preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.preloader__arc { animation: arcFill 1.6s var(--ease-out) infinite; }
.preloader__glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: #fff;
  letter-spacing: -0.04em;
}
.preloader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.24em;
  color: var(--text-dim); margin-bottom: 12px;
}
.preloader__pct { color: var(--cyan); letter-spacing: 0.06em; }
.preloader__bar { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.preloader__bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--cyan), var(--violet));
  transition: width 0.3s var(--ease-out);
}

/* ==========================================================================
   05 CURSOR / PROGRESS / TO TOP
   ========================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.6);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .3s, background-color .3s;
}
.cursor.is-active .cursor__ring { width: 54px; height: 54px; border-color: #fff; background: rgba(255,255,255,.08); }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9996;
  background: rgba(255,255,255,.05);
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(76,111,255,.8);
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18, 26, 43, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  color: var(--text);
  transition: transform .3s var(--ease-back), background .3s, opacity .3s;
}
.to-top .icon { width: 18px; height: 18px; transform: rotate(-90deg); }
.to-top:hover { transform: translateY(-4px); background: var(--brand); }

/* ==========================================================================
   06 HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), backdrop-filter .4s, border-color .4s, height .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 66px;
  background: rgba(6, 9, 17, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(76, 111, 255, 0.34);
  transition: transform .4s var(--ease-back);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.32rem;
  letter-spacing: -0.03em; color: #fff;
}

.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-pill);
  transition: color .25s, background .25s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-soft);
  transition: color .25s;
}
.header-phone .icon { width: 16px; height: 16px; color: var(--cyan); }
.header-phone:hover { color: #fff; }

.burger {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 880;
  background: rgba(4, 6, 13, 0.96);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  padding: calc(var(--header-h) + 28px) 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: #fff;
}
.mobile-link__idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); }
.mobile-link .icon { width: 18px; height: 18px; margin-left: auto; color: var(--text-faint); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.mobile-mail { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }

/* ==========================================================================
   07 BUTTONS & PRIMITIVES
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 0.93rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, color .3s, border-color .3s;
  isolation: isolate;
}
.btn .icon { width: 17px; height: 17px; }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--lg { padding: 15px 28px; font-size: 0.99rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 55%, #5B34C7 100%);
  color: #fff;
  box-shadow: 0 14px 40px rgba(76, 111, 255, 0.32), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--cyan), var(--brand) 60%, var(--violet));
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 54px rgba(76, 111, 255, 0.42); }

.btn--ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: var(--glass-2);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-2px);
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text-soft);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--glass-2); color: #fff; transform: rotate(90deg); border-color: var(--glass-edge); }

/* ==========================================================================
   08 HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__fallback {
  display: none;
  background:
    radial-gradient(46% 46% at 68% 42%, rgba(76,111,255,.42), transparent 70%),
    radial-gradient(38% 38% at 80% 60%, rgba(34,211,238,.28), transparent 70%),
    radial-gradient(34% 34% at 58% 30%, rgba(168,85,247,.26), transparent 70%);
  filter: blur(10px);
}
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__canvas { display: none; }

.hero__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

/* Legibility scrim — keeps the headline readable over the WebGL core */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--void) 8%, rgba(4,6,13,.86) 30%, rgba(4,6,13,.25) 52%, transparent 68%),
    linear-gradient(0deg, var(--void) 0%, transparent 22%);
}
@media (max-width: 1100px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(4,6,13,.9) 0%, rgba(4,6,13,.62) 42%, rgba(4,6,13,.86) 100%),
      linear-gradient(100deg, rgba(4,6,13,.9) 0%, rgba(4,6,13,.4) 60%, transparent 100%);
  }
}

.hero__inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.5em;
}
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin: 0; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__proof div { margin: 0; }
.hero__proof dt {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px;
}
.hero__proof dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: #fff; letter-spacing: -0.03em;
}

.hero__hud { position: relative; height: 440px; }
.hud-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(12, 17, 30, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--sh-md);
  transition: transform .12s linear;
  will-change: transform;
}
.hud-card--a { top: 4%; left: 0; width: 240px; }
.hud-card--b { top: 42%; right: 0; width: 250px; }
.hud-card--c { bottom: 4%; left: 8%; width: 262px; }
.hud-row {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
}
.hud-row .icon { width: 15px; height: 15px; color: var(--cyan); }
.hud-row b { margin-left: auto; color: var(--mint); font-weight: 500; }
.hud-note { margin: 10px 0 0; font-size: 0.82rem; color: var(--text-soft); }
.hud-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 12px; }
.hud-bars i {
  flex: 1; height: var(--h); border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), rgba(76,111,255,.25));
  animation: barPulse 2.6s var(--ease-io) infinite;
}
.hud-bars i:nth-child(2n) { animation-delay: .3s; }
.hud-bars i:nth-child(3n) { animation-delay: .6s; }
.hud-bars i:nth-child(5n) { animation-delay: .9s; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text-faint);
}
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; top: -44px; left: 0; width: 1px; height: 44px;
  background: var(--cyan); animation: scrollCue 2.2s var(--ease-io) infinite;
}

/* ==========================================================================
   09 MARQUEE
   ========================================================================== */
.marquee {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 19, 0.55);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__label {
  flex: none; padding-left: 20px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-faint);
}
.marquee__viewport { flex: 1; overflow: hidden; }
.marquee__track {
  display: flex; align-items: center; gap: 46px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--text-faint); white-space: nowrap;
  transition: color .3s;
}
.marquee__track span:hover { color: var(--cyan); }

/* ==========================================================================
   10 SECTION HEADS
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px; align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.section-head--center .section-head__note { margin-inline: auto; }
.section-head__note { color: var(--text-soft); font-size: 1.02rem; margin: 0; max-width: 52ch; }

/* ==========================================================================
   11 STANDARD (about)
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 86px); align-items: center; }

.pillar-list { display: flex; flex-direction: column; gap: 26px; margin-top: 40px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(76,111,255,.2), rgba(34,211,238,.1));
  border: 1px solid var(--glass-edge);
  color: var(--cyan);
}
.pillar__icon .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.pillar p { margin: 0; font-size: 0.96rem; }

.quote-card {
  position: relative;
  padding: 42px 38px 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.9), rgba(9, 13, 22, 0.86));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  margin: 0;
}
.quote-card::before {
  content: '';
  position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(76,111,255,.26), transparent 70%);
  pointer-events: none;
}
.quote-card__mark { width: 40px; height: 40px; color: rgba(76,111,255,.4); margin-bottom: 20px; }
.quote-card blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 500; line-height: 1.5;
  color: #fff; letter-spacing: -0.015em;
}
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  font-family: var(--font-display); font-weight: 700; color: #fff;
}
.quote-card figcaption strong { display: block; font-size: 0.95rem; color: #fff; }
.quote-card figcaption small { font-size: 0.8rem; color: var(--text-faint); }
.quote-card__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.quote-card__stats b {
  display: block; font-family: var(--font-display); font-size: 1.9rem;
  color: #fff; letter-spacing: -0.03em;
}
.quote-card__stats span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ==========================================================================
   12 SERVICES
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(18, 26, 43, 0.72), rgba(9, 13, 22, 0.72));
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .4s var(--ease-out), transform .18s ease-out, box-shadow .4s var(--ease-out);
  will-change: transform;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(76,111,255,.13), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover { border-color: var(--glass-edge); box-shadow: var(--sh-md); }
.service-card:hover::after { opacity: 1; }
.service-card__glow {
  position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(76,111,255,.3), transparent 70%);
  filter: blur(18px); opacity: 0; transition: opacity .5s;
}
.service-card:hover .service-card__glow { opacity: 1; }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--glass-edge);
  transition: transform .5s var(--ease-back);
}
.service-card:hover .service-card__icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.service-card__icon .icon { width: 26px; height: 26px; }
.svc-blue   { background: linear-gradient(140deg, rgba(76,111,255,.24), rgba(76,111,255,.06)); color: var(--brand-soft); }
.svc-violet { background: linear-gradient(140deg, rgba(168,85,247,.24), rgba(168,85,247,.06)); color: var(--violet); }
.svc-cyan   { background: linear-gradient(140deg, rgba(34,211,238,.22), rgba(34,211,238,.05)); color: var(--cyan); }
.svc-mint   { background: linear-gradient(140deg, rgba(52,211,153,.22), rgba(52,211,153,.05)); color: var(--mint); }
.svc-amber  { background: linear-gradient(140deg, rgba(255,176,32,.22), rgba(255,176,32,.05)); color: var(--amber); }
.svc-pink   { background: linear-gradient(140deg, rgba(244,114,182,.22), rgba(244,114,182,.05)); color: var(--pink); }

.service-card h3 { font-size: 1.28rem; margin-bottom: 0.55em; }
.service-card p { font-size: 0.94rem; margin-bottom: 18px; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.service-card__tags li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--text-dim);
}
.service-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600; color: var(--cyan);
}
.service-card__more .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.service-card:hover .service-card__more .icon { transform: translateX(5px); }

/* ==========================================================================
   13 PRODUCTS GALLERY
   ========================================================================== */
.products { overflow: hidden; }
.gallery {
  position: relative;
  height: clamp(520px, 68vh, 700px);
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 100% at 50% 50%, rgba(12, 18, 32, .8), transparent 75%);
}
.gallery__canvas, .gallery__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.gallery__fallback {
  display: none;
  background: radial-gradient(40% 50% at 50% 45%, rgba(76,111,255,.28), transparent 70%);
}
.no-webgl .gallery__fallback { display: block; }
.no-webgl .gallery__canvas { display: none; }

.gallery__ui {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  pointer-events: none;
  padding: 0 clamp(16px, 4vw, 40px);
}
.gallery__meta { pointer-events: auto; max-width: 470px; }
.gallery__eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 14px;
}
.gallery__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 0.45em; letter-spacing: -0.035em;
}
.gallery__desc { font-size: 1rem; color: var(--text-soft); margin-bottom: 22px; }
.gallery__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gallery__chips li {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line); color: var(--text-soft);
}
.gallery__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.92rem; color: var(--cyan);
}
.gallery__link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.gallery__link:hover .icon { transform: translate(3px, -3px); }

.gallery__nav {
  grid-column: 2;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  pointer-events: auto;
}
.gallery__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-edge); background: var(--glass);
  color: var(--text);
  transition: background .25s, transform .25s, border-color .25s;
}
.gallery__arrow .icon { width: 17px; height: 17px; transform: rotate(180deg); }
.gallery__arrow--next .icon { transform: none; }
.gallery__arrow:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.08); }
.gallery__dots { display: flex; gap: 8px; }
.gallery__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: width .35s var(--ease-out), background .3s;
}
.gallery__dots button.is-active { width: 28px; border-radius: var(--r-pill); background: var(--cyan); }

.product-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.product-index a {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.product-index a:hover { border-color: var(--glass-edge); background: var(--glass-2); transform: translateX(5px); }
.product-index b { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff; }
.product-index span { display: block; font-size: 0.84rem; color: var(--text-dim); }
.product-index .icon { width: 16px; height: 16px; margin-left: auto; color: var(--text-faint); }
.product-index a:hover .icon { color: var(--cyan); }

/* ==========================================================================
   14 TIMELINE
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.timeline__item {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 23, 38, 0.6), rgba(8, 12, 20, 0.6));
  transition: border-color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.timeline__item::before {
  content: '';
  position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,111,255,.6), transparent);
  transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.timeline__item:hover { border-color: var(--glass-edge); transform: translateY(-6px); box-shadow: var(--sh-md); }
.timeline__item:hover::before { transform: scaleX(1); }
.timeline__num {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--cyan); margin-bottom: 16px;
}
.timeline__body h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.timeline__body p { font-size: 0.92rem; margin-bottom: 18px; }
.timeline__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.timeline__tag .icon { width: 14px; height: 14px; color: var(--brand-soft); }

/* ==========================================================================
   15 SECURITY
   ========================================================================== */
.security { position: relative; overflow: hidden; }
.security__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .55; pointer-events: none;
}
.no-webgl .security__canvas { display: none; }
.security .shell { position: relative; z-index: 2; }
.security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 46px;
}
.sec-card {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(15, 22, 37, .78), rgba(8, 12, 20, .7));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .35s, transform .35s var(--ease-out);
}
.sec-card:hover { border-color: rgba(34,211,238,.32); transform: translateY(-5px); }
.sec-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(34,211,238,.2), rgba(76,111,255,.08));
  border: 1px solid var(--glass-edge);
  color: var(--cyan);
}
.sec-card__icon .icon { width: 21px; height: 21px; }
.sec-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.sec-card p { font-size: 0.92rem; margin: 0; }

.defence {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.defence__label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px;
}
.defence__layers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.defence__layers li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  font-size: 0.86rem; color: var(--text-soft);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.defence__layers li:hover { border-color: rgba(34,211,238,.3); transform: translateX(4px); }
.defence__layers span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--cyan); }

/* ==========================================================================
   16 FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(14, 20, 33, 0.55);
  overflow: hidden;
  transition: border-color .35s, background .35s;
}
.faq__item[open] { border-color: var(--glass-edge); background: rgba(18, 26, 43, 0.7); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: #fff;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 18px; height: 18px; flex: none; color: var(--cyan);
  transition: transform .4s var(--ease-out);
}
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 24px; }
.faq__answer p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }

/* ==========================================================================
   17 CONTACT & FORMS
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 70px);
  align-items: start;
}
.contact__list { display: flex; flex-direction: column; gap: 20px; margin: 36px 0 30px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--cyan);
}
.contact__icon .icon { width: 20px; height: 20px; }
.contact__list small {
  display: block; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 3px;
}
.contact__list a { font-size: 1.02rem; color: #fff; transition: color .25s; }
.contact__list a:hover { color: var(--cyan); }

.contact__status {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft);
}
.contact__status-sep { width: 1px; height: 14px; background: var(--line-strong); }

.form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(165deg, rgba(17, 24, 40, 0.9), rgba(8, 12, 20, 0.86));
  box-shadow: var(--sh-lg);
}
.form--glass { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.form__head h3 { font-size: 1.42rem; margin-bottom: 0.3em; }
.form__head p { font-size: 0.86rem; color: var(--text-dim); margin: 0; }
.form__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.form__note { font-size: 0.78rem; color: var(--text-faint); margin: 0; text-align: center; }
.form__note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-soft);
}
.field .req { color: var(--rose); }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: rgba(4, 7, 14, 0.6);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(76,111,255,.65);
  box-shadow: 0 0 0 3px rgba(76,111,255,.18);
  background: rgba(4, 7, 14, 0.85);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: rgba(251,113,133,.7); box-shadow: 0 0 0 3px rgba(251,113,133,.14); }
.field__err { font-size: 0.74rem; color: var(--rose); min-height: 0; }

.select { position: relative; }
.select select { padding-right: 40px; cursor: pointer; }
.select .icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-faint); pointer-events: none;
}
.select option { background: #0C111E; color: var(--text); }

.budget { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.select--sm select { padding: 13px 34px 13px 14px; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}

.cf-slot { min-height: 0; }
.cf-slot iframe { border-radius: var(--r-sm); }

.btn__icon { transition: transform .3s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.spinner {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__icon { display: none; }

.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px;
  padding: clamp(40px, 6vw, 70px) 30px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(165deg, rgba(16, 34, 30, 0.9), rgba(8, 14, 14, 0.85));
  box-shadow: var(--sh-lg);
}
.form-success__icon {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--mint);
  margin-bottom: 14px;
}
.form-success__icon .icon { width: 30px; height: 30px; }
.form-success__icon--lg { width: 84px; height: 84px; border-radius: 26px; }
.form-success__icon--lg .icon { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.form-success p { max-width: 44ch; margin-bottom: 18px; }

/* ==========================================================================
   18 FOOTER
   ========================================================================== */
.site-footer {
  position: relative; z-index: 2;
  padding: 76px 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.4), rgba(4, 6, 13, 0.96));
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 48px;
}
.brand--footer { margin-bottom: 20px; }
.footer__brand p { font-size: 0.92rem; max-width: 44ch; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.footer__contact a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-soft);
  transition: color .25s;
}
.footer__contact .icon { width: 16px; height: 16px; color: var(--cyan); }
.footer__contact a:hover { color: #fff; }

.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  font-size: 0.78rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 8px;
}
.footer__col a { font-size: 0.9rem; color: var(--text-soft); transition: color .25s, transform .25s; width: fit-content; }
.footer__col a:hover { color: var(--cyan); transform: translateX(3px); }

.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { font-size: 0.82rem; color: var(--text-dim); transition: color .25s; }
.footer__legal a:hover { color: var(--cyan); }
.footer__copy { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); margin: 0; }

/* ==========================================================================
   19 OVERLAYS / MODAL / TOAST
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 950;
  display: flex; justify-content: flex-end;
}
.overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(3, 5, 11, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.overlay.is-open .overlay__scrim { opacity: 1; }
.overlay__panel {
  position: relative;
  width: min(100%, 720px);
  height: 100%;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, #0A0F1C 0%, #06090F 100%);
  border-left: 1px solid var(--glass-edge);
  box-shadow: -40px 0 100px rgba(0, 0, 0, 0.6);
  transform: translateX(40px);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
}
.overlay.is-open .overlay__panel { transform: none; opacity: 1; }
.overlay__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding-bottom: 26px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.overlay__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.overlay__head .eyebrow { margin-bottom: 10px; }
.overlay__body { display: grid; grid-template-columns: 1fr; gap: 34px; }
.overlay__aside {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--glass);
}
.overlay__aside h3 { font-size: 1rem; margin-bottom: 18px; }
.next-steps { display: flex; flex-direction: column; gap: 16px; }
.next-steps li { display: flex; flex-direction: column; gap: 3px; padding-left: 20px; position: relative; }
.next-steps li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.14);
}
.next-steps b { font-size: 0.92rem; color: #fff; }
.next-steps span { font-size: 0.85rem; color: var(--text-dim); }
.overlay__trust { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.overlay__trust p { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-dim); margin: 0; }
.overlay__trust .icon { width: 15px; height: 15px; color: var(--mint); }

.overlay__success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 60px 0;
}
.overlay__success h3 { font-size: 1.8rem; margin-bottom: 0.2em; }
.overlay__success p { max-width: 46ch; margin-bottom: 26px; }

.modal {
  position: fixed; inset: 0; z-index: 960;
  display: grid; place-items: center;
  padding: 24px;
}
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(3, 5, 11, 0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: 86vh; overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(165deg, #101828 0%, #080C15 100%);
  box-shadow: var(--sh-lg);
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .35s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal__icon {
  width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(76,111,255,.24), rgba(34,211,238,.08));
  border: 1px solid var(--glass-edge);
  color: var(--cyan);
}
.modal__icon .icon { width: 26px; height: 26px; }
.modal__panel h3 { font-size: 1.6rem; margin-bottom: 0.6em; }
.modal__body p { font-size: 0.96rem; }
.modal__body ul { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 0; }
.modal__body li {
  position: relative; padding-left: 26px;
  font-size: 0.93rem; color: var(--text-soft);
}
.modal__body li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.modal__body li strong { color: #fff; font-weight: 600; }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 32px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1000;
  transform: translate(-50%, 24px);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: rgba(14, 20, 33, 0.94);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--sh-md);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: min(90vw, 520px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(251,113,133,.5); }

/* ==========================================================================
   20 MOTION UTILITIES
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: .75; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes arcFill {
  0%   { stroke-dashoffset: 327; transform: rotate(-90deg); }
  60%  { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 327; }
}
@keyframes barPulse {
  0%, 100% { transform: scaleY(.62); opacity: .65; }
  50%      { transform: scaleY(1); opacity: 1; }
}
@keyframes scrollCue {
  0%   { transform: translateY(0); }
  70%  { transform: translateY(88px); }
  100% { transform: translateY(88px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(9vw, 6vh) scale(1.12); }
  66%      { transform: translate(-6vw, 9vh) scale(.92); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-8vw, -7vh) scale(1.18); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(7vw, -9vh) scale(1.1); }
  75%      { transform: translate(-9vw, -3vh) scale(.95); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes sheen {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

/* ==========================================================================
   21 RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__hud { display: none; }
  .split { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery__ui { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .gallery__nav { grid-column: 1; justify-content: flex-start; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-desktop, .header-phone { display: none; }
  .burger { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .hero__proof { gap: 24px; }
  .hero__proof dd { font-size: 1.6rem; }
  .overlay { justify-content: center; }
  .overlay__panel { width: 100%; border-left: 0; }
  .cursor { display: none; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .quote-card { padding: 32px 24px 26px; }
  .budget { grid-template-columns: 104px 1fr; }
  .gallery { height: 620px; }
  .marquee__label { display: none; }
  .hero__cta .btn { width: 100%; }
  .header-actions .btn--primary { display: none; }
  .brand__text { font-size: 1.16rem; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 20px; height: 20px; }
  .eyebrow { letter-spacing: .16em; }
  .hero__proof { gap: 20px 26px; }
}

/* ==========================================================================
   22 REDUCED MOTION / NO-WEBGL
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
}

.no-js .preloader { display: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   23 LEGAL PAGES
   ========================================================================== */
.legal-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.legal-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 22% 0%, rgba(76,111,255,.14), transparent 70%);
  pointer-events: none;
}
.legal-hero .shell { position: relative; z-index: 2; }
.legal-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: .35em;
}
.legal-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
}
.legal-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

.legal {
  padding: clamp(48px, 7vw, 92px) 0 clamp(70px, 9vw, 120px);
  position: relative; z-index: 2;
}
.legal__grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.legal__toc {
  position: sticky; top: 96px;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
}
.legal__toc h2 {
  font-size: .7rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 14px;
}
.legal__toc a {
  display: block; padding: 7px 0;
  font-size: .86rem; color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color .25s, padding-left .25s;
}
.legal__toc a:hover { color: var(--cyan); padding-left: 6px; }

.legal__content { max-width: 78ch; }
.legal__content h2 {
  font-size: 1.35rem;
  margin: 2.4em 0 .7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.legal__content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__content h3 { font-size: 1.02rem; margin: 1.6em 0 .5em; color: #fff; }
.legal__content p { font-size: .95rem; color: var(--text-soft); }
.legal__content ul, .legal__content ol { margin: 0 0 1.1em; padding-left: 22px; }
.legal__content ul { list-style: disc; }
.legal__content ol { list-style: decimal; }
.legal__content li { font-size: .95rem; color: var(--text-soft); margin-bottom: .5em; }
.legal__content strong { color: #fff; font-weight: 600; }
.legal__content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal__content table {
  width: 100%; margin: 0 0 1.4em;
  font-size: .88rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden;
}
.legal__content th, .legal__content td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line); color: var(--text-soft);
}
.legal__content th {
  background: rgba(255,255,255,.04); color: #fff;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.legal__content tr:last-child td { border-bottom: 0; }

.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 26px;
  font-size: .86rem; color: var(--text-dim);
  transition: color .25s;
}
.legal__back:hover { color: var(--cyan); }
.legal__back .icon { width: 15px; height: 15px; transform: rotate(180deg); }

.legal-callout {
  padding: 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid rgba(34,211,238,.28);
  background: rgba(34,211,238,.06);
  margin-bottom: 1.6em;
}
.legal-callout p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
