/* ==========================================================================
   VIRSONIX — Global Stylesheet
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Backdrop effects (grid, aurora)
   5.  Buttons & chips
   6.  Navbar
   7.  Hero
   8.  Marquee / trust bar
   9.  Stats
   10. Cards (service, feature, work, team, value)
   11. Process timeline
   12. Testimonials
   13. Accordion
   14. Forms
   15. CTA band
   16. Footer
   17. Page hero (inner pages)
   18. Reveal animations
   19. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* surface */
  --bg:            #070B16;
  --bg-elev:       #0D1424;
  --bg-elev-2:     #111A2E;
  --surface:       rgba(255, 255, 255, .04);
  --surface-hi:    rgba(255, 255, 255, .07);
  --stroke:        rgba(255, 255, 255, .09);
  --stroke-hi:     rgba(255, 255, 255, .16);

  /* accent */
  --cyan:          #22D3EE;
  --blue:          #3B82F6;
  --violet:        #8B5CF6;
  --cyan-soft:     #67E8F9;
  --violet-soft:   #A78BFA;

  /* text */
  --text:          #E8EEF9;
  --muted:         #93A3BE;   /* 7.1:1 on --bg */
  --faint:         #6B7C99;

  /* gradients */
  --grad:          linear-gradient(120deg, var(--cyan), var(--blue), var(--violet));
  --grad-soft:     linear-gradient(120deg, var(--cyan-soft), var(--violet-soft));
  --grad-fade:     linear-gradient(180deg, rgba(34,211,238,.10), rgba(139,92,246,.03));

  /* spacing scale */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4.5rem;

  /* shape */
  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  10px;
  --radius-pill: 999px;

  /* effects */
  --shadow:       0 18px 40px -18px rgba(0, 0, 0, .8);
  --shadow-glow:  0 0 0 1px rgba(34,211,238,.25), 0 22px 60px -24px rgba(34,211,238,.45);
  --ease:         cubic-bezier(.22, 1, .36, 1);

  /* layout */
  --container: 1200px;
  --nav-h:     76px;

  /* type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 1.35rem + 4.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { color: var(--muted); }

a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cyan-soft); }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: rgba(139, 92, 246, .45); color: #fff; }

/* thin custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #1E2A44;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2C3C5E; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: .7rem 1.2rem;
  background: var(--cyan);
  color: #04070F;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #04070F; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------- 3. LAYOUT PRIMITIVES */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section--elev { background: var(--bg-elev); }

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-4); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem;
  margin-bottom: var(--s-4);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, .7);
}

.grad-text {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--flip > *:first-child { order: 2; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  border: 0;
}

/* ---------------------------------------------- 4. BACKDROP EFFECTS */
.backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.backdrop__grid {
  position: absolute;
  inset: -50% -10%;
  background-image:
    linear-gradient(to right, rgba(143, 179, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 179, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
  to { background-position: 56px 56px, 56px 56px; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: blobFloat 18s ease-in-out infinite;
}
.blob--cyan   { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
                background: radial-gradient(circle, rgba(34,211,238,.55), transparent 68%);
                top: -14%; left: -10%; }
.blob--violet { width: 44vw; height: 44vw; max-width: 580px; max-height: 580px;
                background: radial-gradient(circle, rgba(139,92,246,.55), transparent 68%);
                bottom: -22%; right: -8%; animation-delay: -7s; }
.blob--blue   { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
                background: radial-gradient(circle, rgba(59,130,246,.42), transparent 68%);
                top: 34%; left: 46%; animation-delay: -12s; }

@keyframes blobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(3%, -5%, 0) scale(1.08); }
  66%      { transform: translate3d(-4%, 4%, 0) scale(.95); }
}

.section > .container,
.hero > .container { position: relative; z-index: 1; }

/* ------------------------------------------------- 5. BUTTONS & CHIPS */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid var(--stroke-hi);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #04070F;
  box-shadow: 0 12px 34px -14px rgba(59, 130, 246, .85);
}
.btn--primary:hover {
  color: #04070F;
  box-shadow: 0 18px 44px -14px rgba(59, 130, 246, 1);
}

.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--surface-hi); border-color: var(--stroke-hi); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-4); }
.chip {
  padding: .35rem .8rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}

/* --------------------------------------------------------- 6. NAVBAR */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 66px;
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--stroke);
}

.nav__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__brand {
  display: flex;
  align-items: center;
  color: var(--text);
  flex: none;
}
.nav__brand img { height: 38px; width: auto; }
.nav__brand:hover { color: var(--text); opacity: .9; }

.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: .55rem .95rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: .18rem;
  translate: -50% 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 19px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 340px);
  z-index: 99;
  padding: calc(var(--nav-h) + 1.5rem) 1.6rem 2rem;
  background: #090F1E;
  border-left: 1px solid var(--stroke);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.nav__drawer.is-open { transform: translateX(0); }
/* Links are rendered inside a wrapper div, so it needs the column layout too */
.nav__drawer > div {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.nav__drawer a {
  padding: .85rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.nav__drawer a:hover { background: var(--surface); }
.nav__drawer a[aria-current="page"] { color: var(--cyan); }
.nav__drawer .btn { margin-top: var(--s-4); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(3, 6, 13, .68);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------- 7. HERO */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(3rem, 1.5rem + 6vw, 6rem)) clamp(3.5rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: var(--s-5); }
.hero__lead {
  font-size: clamp(1.02rem, .96rem + .35vw, 1.18rem);
  max-width: 34rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
}
.hero__meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}
.hero__meta div span { font-size: .85rem; color: var(--faint); }

.hero__visual {
  position: relative;
  will-change: transform;
  transition: transform .4s var(--ease);
}
.hero__visual img { width: 100%; height: auto; }
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(59, 130, 246, .38), transparent 70%);
  filter: blur(52px);
}

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .95rem;
  border: 1px solid var(--stroke-hi);
  border-radius: var(--radius);
  background: rgba(13, 20, 36, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 600;
  animation: floatY 6s ease-in-out infinite;
}
.hero__float span { color: var(--muted); font-weight: 500; }
.hero__float--a { top: 8%; right: -4%; }
.hero__float--b { bottom: 10%; left: -6%; animation-delay: -3s; }
.hero__float i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px 2px rgba(52, 211, 153, .8);
}
.hero__float--b i { background: var(--violet); box-shadow: 0 0 10px 2px rgba(139, 92, 246, .8); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ------------------------------------------------------- 8. MARQUEE */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-5);
  border-block: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img {
  height: 28px;
  width: auto;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee img:hover { opacity: 1; filter: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 28px;
  white-space: nowrap;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--faint);
  transition: color .3s var(--ease);
}
.marquee__item:hover { color: var(--text); }
.marquee .marquee__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* Logo turns to full colour when hovering over the name too */
.marquee__item:hover .marquee__icon { opacity: 1; filter: none; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee__label {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------- 9. STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem) 1.25rem;
  background: var(--bg-elev);
  text-align: center;
  transition: background-color .3s var(--ease);
}
.stat:hover { background: var(--bg-elev-2); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--muted);
}

/* --------------------------------------------------------- 10. CARDS */
.card {
  position: relative;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-fade);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, .38);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card h3 { margin-bottom: .6rem; }
.card p  { font-size: .95rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--s-4);
  border: 1px solid var(--stroke-hi);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(34,211,238,.18), rgba(139,92,246,.18));
  color: var(--cyan-soft);
  transition: transform .35s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }

.card__list {
  margin-top: var(--s-4);
  display: grid;
  gap: .5rem;
}
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.card__link { margin-top: var(--s-5); }

/* numbered variant */
.card--num .card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(34, 211, 238, .45);
  margin-bottom: var(--s-4);
}

/* feature list (Why Virsonix) */
.feature-list { display: grid; gap: var(--s-5); }
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.feature__tick {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(34,211,238,.2), rgba(139,92,246,.2));
  border: 1px solid var(--stroke-hi);
  color: var(--cyan);
}
.feature__tick svg { width: 20px; height: 20px; }
.feature h4 { margin-bottom: .25rem; }
.feature p { font-size: .93rem; }

/* work cards */
.work-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--stroke);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__tag {
  position: absolute;
  top: .85rem; left: .85rem;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 22, .8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stroke-hi);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.work-card__body { padding: clamp(1.2rem, 1rem + .8vw, 1.6rem); flex: 1; display: flex; flex-direction: column; }
.work-card__body p { font-size: .92rem; }
.work-card__metrics {
  display: flex;
  gap: var(--s-5);
  margin-top: auto;
  padding-top: var(--s-4);
}
.work-card__metrics div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cyan-soft);
}
.work-card__metrics div span { font-size: .76rem; color: var(--faint); }

.work-card.is-hidden {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--s-6);
}
.filter {
  padding: .5rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--stroke-hi); }
.filter[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #04070F;
}

/* team cards */
.team-card { text-align: center; padding-block: var(--s-6); }
.team-card__avatar {
  width: 96px; height: 96px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--stroke-hi);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover .team-card__avatar { border-color: var(--cyan); transform: scale(1.05); }
.team-card__role {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: .5rem;
}
.team-card p { font-size: .88rem; }

/* -------------------------------------------------- 11. PROCESS TIMELINE */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
}
.process::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(34,211,238,.1), var(--cyan), var(--violet), rgba(139,92,246,.1));
  opacity: .5;
}
.step { position: relative; text-align: center; }
.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--stroke-hi);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-soft);
  transition: all .3s var(--ease);
}
.step:hover .step__dot {
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, .12);
  transform: translateY(-3px);
}
.step h4 { margin-bottom: .3rem; }
.step p { font-size: .88rem; }

/* --------------------------------------------------- 12. TESTIMONIALS */
.slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.slider__track {
  display: flex;
  transition: transform .8s var(--ease);
}
.slider__slide {
  flex: 0 0 100%;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.slider__slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .9vw, 1.6rem);
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: var(--s-6);
}
.slider__slide blockquote::before {
  content: '“';
  display: block;
  font-size: 3.5rem;
  line-height: .6;
  color: var(--cyan);
  opacity: .5;
  margin-bottom: .35rem;
}
.quote-author { display: flex; align-items: center; gap: var(--s-4); }
.quote-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--stroke-hi);
}
.quote-author strong { display: block; font-size: .98rem; }
.quote-author span { font-size: .84rem; color: var(--faint); }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.slider__dots { display: flex; gap: .5rem; }
.slider__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--stroke-hi);
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
}
/* Invisible larger tap area so the small dots are easy to hit on phones */
.slider__dot::after {
  content: '';
  position: absolute;
  inset: -12px -4px;
}
.slider__dot[aria-selected="true"] { width: 28px; border-radius: 999px; background: var(--grad); }
.slider__arrow {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.slider__arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.slider__arrow svg { width: 18px; height: 18px; }

/* ------------------------------------------------------ 13. ACCORDION */
.accordion { display: grid; gap: .75rem; }
.acc-item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.acc-item:has(.acc-trigger[aria-expanded="true"]) { border-color: rgba(34, 211, 238, .35); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.1rem 1.35rem;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.acc-trigger:hover { color: var(--cyan-soft); }
.acc-trigger svg {
  width: 20px; height: 20px;
  flex: none;
  color: var(--cyan);
  transition: transform .3s var(--ease);
}
.acc-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 1.35rem 1.25rem; font-size: .94rem; }

/* ---------------------------------------------------------- 14. FORMS */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: .4rem; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--cyan); }
.field input,
.field select,
.field textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 22, .6);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A3BE' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field select option { background: #0D1424; color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(7, 11, 22, .9);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #F87171; }
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }

.field__error {
  min-height: 1.05rem;
  font-size: .8rem;
  color: #FCA5A5;
}

.form__note { font-size: .82rem; color: var(--faint); }

/* Shown when the message could not be sent (network / server problem) */
.form__error {
  padding: .75rem 1rem;
  border: 1px solid rgba(252, 165, 165, .35);
  border-radius: var(--radius-sm);
  background: rgba(252, 165, 165, .08);
  color: #FCA5A5;
  font-size: .88rem;
}
.form__error[hidden] { display: none; }

/* Anti-spam field: off-screen for people and screen readers, still "visible" to bots */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn:disabled { opacity: .65; cursor: progress; }

.form-success {
  display: none;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  text-align: center;
  border: 1px solid rgba(52, 211, 153, .35);
  border-radius: var(--radius-lg);
  background: rgba(52, 211, 153, .07);
}
.form-success.is-visible { display: block; }
.form-success svg {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-4);
  color: #34D399;
}
.form-success h3 { margin-bottom: .5rem; }

/* ------------------------------------------------------- 15. CTA BAND */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border: 1px solid var(--stroke-hi);
  border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(ellipse 70% 130% at 15% 0%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(ellipse 70% 130% at 85% 100%, rgba(139,92,246,.24), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143,179,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143,179,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { max-width: 40rem; margin: var(--s-4) auto 0; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------- 16. FOOTER */
.footer {
  border-top: 1px solid var(--stroke);
  background: #050810;
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) var(--s-6);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}
.footer__brand img { height: 40px; width: auto; margin-bottom: var(--s-4); }
.footer__brand p { font-size: .92rem; max-width: 26rem; }
.footer h4 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s-4);
}
.footer ul { display: grid; gap: .65rem; }
.footer ul li { color: var(--muted); font-size: .92rem; }
.footer ul a { color: var(--muted); font-size: .92rem; }
.footer ul a:hover { color: var(--cyan); }

.socials { display: flex; gap: .6rem; margin-top: var(--s-5); }
.socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: all .25s var(--ease);
}
.socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
  font-size: .85rem;
  color: var(--faint);
}
.footer__bottom nav { display: flex; gap: var(--s-5); }
.footer__bottom a { color: var(--faint); }
.footer__bottom a:hover { color: var(--muted); }

/* ---------------------------------------------------- 17. PAGE HERO */
.page-hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 1.5rem + 4vw, 4.5rem)) clamp(2.5rem, 1.5rem + 4vw, 4rem);
  overflow: hidden;
  text-align: center;
}
.page-hero p {
  max-width: 40rem;
  margin: var(--s-4) auto 0;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: var(--s-5);
  font-size: .85rem;
  color: var(--faint);
}
.breadcrumb a { color: var(--muted); }

/* contact info blocks */
.info-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--stroke);
}
.info-item:last-child { border-bottom: 0; }
.info-item__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--stroke-hi);
  background: linear-gradient(145deg, rgba(34,211,238,.16), rgba(139,92,246,.16));
  color: var(--cyan-soft);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h4 { margin-bottom: .15rem; }
.info-item p, .info-item a { font-size: .93rem; }
.info-item a { color: var(--muted); }
.info-item a:hover { color: var(--cyan); }

/* tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.tech-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.tech-pill:hover { border-color: rgba(34,211,238,.4); transform: translateY(-3px); }
.tech-pill i {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}

/* timeline (about) */
.timeline { position: relative; display: grid; gap: var(--s-6); padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
  opacity: .6;
}
.tl-item { position: relative; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.25rem; top: .45rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}
.tl-item__year {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan-soft);
}
.tl-item h4 { margin: .2rem 0 .3rem; }
.tl-item p { font-size: .93rem; }

/* case study highlight */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.case__media { background: var(--bg-elev-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: clamp(1.6rem, 1.2rem + 2vw, 2.75rem); }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--stroke);
}
.case__metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case__metrics span { font-size: .78rem; color: var(--faint); }

/* ------------------------------------------------ 18. REVEAL ANIMATION */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------- 19. RESPONSIVE */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-6); }
  .process::before { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; margin-inline: auto; }
  .hero__float--a { right: 2%; }
  .hero__float--b { left: 2%; }

  .split { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }

  .container { width: min(100% - 2rem, var(--container)); }
  .nav__inner { width: min(100% - 2rem, var(--container)); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__float { display: none; }
  .hero__meta { gap: var(--s-4) var(--s-5); }
  .hero__meta div strong { font-size: 1.25rem; }

  .case__metrics { grid-template-columns: 1fr; gap: var(--s-3); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav__toggle { width: 42px; }
  .nav__toggle .btn { width: auto; }
}

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

/* --------------------------------------------- PRINT */
@media print {
  .nav, .nav__drawer, .nav__scrim, .backdrop, .cta-band, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
