/* ==========================================================
   ENP WEB — Base styles & Hero
   ========================================================== */

:root {
  /* Navy palette */
  --navy-950: #030816;
  --navy-900: #060d24;
  --navy-800: #0b1636;
  --navy-700: #13224d;
  --navy-600: #1c3168;

  /* Electric green accents */
  --green: #00ff9c;
  --green-soft: #39ffb4;
  --green-glow: rgba(0, 255, 156, 0.45);

  /* Text */
  --text: #e8eefc;
  --text-muted: #9aa8c7;

  --error: #ff7a8a;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px; /* clears the floating nav */
}

html.menu-open {
  overflow: hidden;
}

body {
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Hero layout ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at top, var(--navy-800) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

/* ---------- Animated gradient blobs ---------- */

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: -3;
  filter: blur(90px);
  opacity: 0.85;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob--1 {
  width: 55vmax;
  height: 55vmax;
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, var(--navy-600) 0%, transparent 70%);
  animation: drift-1 22s ease-in-out infinite alternate;
}

.blob--2 {
  width: 40vmax;
  height: 40vmax;
  bottom: -15vmax;
  right: -10vmax;
  background: radial-gradient(circle, rgba(0, 255, 156, 0.22) 0%, transparent 70%);
  animation: drift-2 26s ease-in-out infinite alternate;
}

.blob--3 {
  width: 35vmax;
  height: 35vmax;
  top: 30%;
  left: 45%;
  background: radial-gradient(circle, rgba(40, 90, 200, 0.35) 0%, transparent 70%);
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  to { transform: translate(18vw, 12vh) scale(1.15); }
}
@keyframes drift-2 {
  to { transform: translate(-22vw, -18vh) scale(1.25); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-25vw, 10vh) scale(0.85); }
  100% { transform: translate(10vw, -15vh) scale(1.1); }
}

/* ---------- Particle canvas ---------- */

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 70%, var(--navy-950) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(3, 8, 22, 0.75) 100%);
}

/* ---------- Content ---------- */

.hero__content {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.25s; }
.hero__content > *:nth-child(3) { animation-delay: 0.4s; }
.hero__content > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(0, 255, 156, 0.25);
  border-radius: var(--radius);
  background: rgba(11, 22, 54, 0.5);
  backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

/* ---------- Logo (SVG symbol, reused everywhere) ---------- */

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

.logo {
  display: block;
  aspect-ratio: 536 / 124;
  overflow: visible;
}

.hero__title {
  line-height: 1;
}

.hero__title .logo {
  width: min(86vw, 760px);
  height: auto;
  margin: 0.25rem auto 0.5rem;
  filter: drop-shadow(0 14px 30px rgba(3, 8, 22, 0.6));
}

.accent {
  background: linear-gradient(90deg, var(--green) 0%, var(--green-soft) 50%, #7dffd0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px var(--green-glow));
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero__tagline {
  max-width: 560px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg {
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  color: var(--navy-950);
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow), 0 10px 30px -10px var(--green-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(0, 255, 156, 0.15), 0 14px 40px -8px var(--green-glow);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(232, 238, 252, 0.22);
  background: rgba(11, 22, 54, 0.4);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--green);
  border-color: var(--green);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* ---------- Scroll indicator ---------- */

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(232, 238, 252, 0.3);
  border-radius: 14px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.9s forwards;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--green);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================
   Why Choose Us
   ========================================================== */

.why {
  position: relative;
  padding: 0 1.25rem 8rem;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}

/* Faint grid that fades in from the hero */
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* ---------- Moving light on the grid ---------- */

@property --gx {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}
@property --gy {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

.why__lights {
  --cell: 56px; /* must match the grid's background-size */
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* Green copy of the grid, only visible inside a drifting spotlight */
.why__lights::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.28) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(280px circle at var(--gx) var(--gy), #000 0%, transparent 70%);
  mask-image: radial-gradient(280px circle at var(--gx) var(--gy), #000 0%, transparent 70%);
  animation: grid-sweep 24s ease-in-out infinite alternate;
}

@keyframes grid-sweep {
  0%   { --gx: 12%; --gy: 18%; }
  25%  { --gx: 78%; --gy: 28%; }
  50%  { --gx: 30%; --gy: 55%; }
  75%  { --gx: 85%; --gy: 70%; }
  100% { --gx: 45%; --gy: 88%; }
}

/* Comet-like pulses that travel along individual grid lines */
.pulse {
  position: absolute;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--green));
  animation: var(--dur) linear var(--delay) infinite;
}

.pulse--h {
  top: calc(var(--line) * var(--cell));
  left: -160px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
  animation-name: pulse-h;
}

.pulse--v {
  left: calc(var(--line) * var(--cell));
  top: -160px;
  width: 1px;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--green));
  animation-name: pulse-v;
}

@keyframes pulse-h {
  0%   { left: -160px; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}

@keyframes pulse-v {
  0%   { top: -160px; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.why__glow {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 50%;
  width: 60vmax;
  height: 40vmax;
  translate: -50% 0;
  background: radial-gradient(ellipse, rgba(0, 255, 156, 0.08) 0%, rgba(28, 49, 104, 0.25) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Beam: continues the hero's scroll cue and fills as you scroll */
.why__beam {
  position: relative;
  width: 2px;
  height: 140px;
  margin: 0 auto 2.5rem;
  background: rgba(232, 238, 252, 0.08);
  border-radius: 2px;
}

.why__beam-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--beam, 0) * 100%);
  background: linear-gradient(180deg, transparent, var(--green));
  border-radius: inherit;
  box-shadow: 0 0 12px var(--green-glow);
}

.why__beam-fill::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px 3px var(--green-glow);
  opacity: min(1, calc(var(--beam, 0) * 10));
}

/* ---------- Header ---------- */

.why__header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.why__title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.why__title .accent {
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.3));
}

.why__intro {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Cards: 3D flip-in + cursor spotlight ---------- */

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1200px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 34, 77, 0.55) 0%, rgba(11, 22, 54, 0.35) 100%);
  border: 1px solid rgba(232, 238, 252, 0.07);
  backdrop-filter: blur(10px);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;

  /* Hidden state: tipped back and lowered */
  opacity: 0;
  transform: rotateX(-40deg) translateY(80px) scale(0.94);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.card.is-visible {
  opacity: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}

/* After the entrance, tilt responds instantly */
.card.is-ready {
  transition: transform 0.35s var(--ease), opacity 0.4s var(--ease);
  transition-delay: 0s;
}

/* Spotlight border, follows the cursor across the whole grid */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--green), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

/* Soft inner glow under the cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(0, 255, 156, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.why__grid:hover .card::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card > * {
  position: relative;
  z-index: 1;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  color: var(--green);
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid rgba(0, 255, 156, 0.2);
  transform: translateZ(30px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card__icon {
  transform: translateZ(50px) scale(1.06);
  box-shadow: 0 0 24px -4px var(--green-glow);
}

.card__metric {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transform: translateZ(20px);
}

.card__metric small {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0;
}

.card__metric-label {
  margin: 0.4rem 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Stats strip ---------- */

.why__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 1.25rem auto 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 34, 77, 0.45) 0%, rgba(11, 22, 54, 0.3) 100%);
  border: 1px solid rgba(232, 238, 252, 0.07);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Green line that draws across the top when the strip enters view */
.why__stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green) 50%, transparent);
  box-shadow: 0 0 12px var(--green-glow);
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}

.why__stats.is-visible::before {
  transform: scaleX(1);
}

.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(232, 238, 252, 0.07);
}

.stat__value {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--text) 0%, var(--green-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .why__stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(232, 238, 252, 0.07);
  }
  .stat {
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================
   Services
   ========================================================== */

.services {
  --line: rgba(232, 238, 252, 0.08);
  position: relative;
  padding: 4rem 1.25rem 8rem;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}

.services__glow {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: -15vmax;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, rgba(28, 49, 104, 0.45) 0%, rgba(0, 255, 156, 0.05) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.services__aside {
  position: sticky;
  top: 6.5rem;
}

.services__title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.services__title .accent {
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.3));
}

.services__intro {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
}

/* ---------- Service index (right column) ---------- */

.svc {
  position: relative;
  list-style: none;
  border-top: 1px solid var(--line);
}

.svc__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
  border-radius: 2px;
  pointer-events: none;
}

.svc__item {
  position: relative;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background-color 0.4s var(--ease);
  transition-delay: var(--delay, 0s);
}

.svc__item.is-visible {
  opacity: 1;
  transform: none;
}

.svc__item.is-active {
  background: linear-gradient(90deg, rgba(0, 255, 156, 0.05), transparent 70%);
}

.svc__trigger {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.6rem 0.5rem 1.6rem 1.5rem;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.svc__trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
  border-radius: 6px;
}

.svc__num {
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.svc__name {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(232, 238, 252, 0.55);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.svc__tag {
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green);
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid rgba(0, 255, 156, 0.35);
  border-radius: var(--radius);
}

.svc__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.svc__arrow svg {
  width: 16px;
  height: 16px;
}

.svc__item.is-active .svc__num { color: var(--green); }
.svc__item.is-active .svc__name { color: var(--text); transform: translateX(6px); }
.svc__item.is-active .svc__arrow {
  transform: rotate(-45deg);
  color: var(--navy-950);
  background: var(--green);
  border-color: var(--green);
}

/* Collapsible description (grid rows 0fr → 1fr) */
.svc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.svc__item.is-active .svc__body {
  grid-template-rows: 1fr;
}

.svc__body-inner {
  overflow: hidden;
  padding-left: calc(1.5rem + 2rem + 1rem + 6px);
  padding-right: 3.5rem;
}

.svc__body-inner p {
  max-width: 48ch;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.svc__item.is-active .svc__body-inner p {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.svc__link {
  display: inline-flex;
  gap: 0.4rem;
  margin: 1rem 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  background: linear-gradient(var(--green), var(--green)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}

.svc__link span {
  transition: transform 0.3s var(--ease);
}

.svc__link:hover {
  background-size: 100% 1px;
}

.svc__link:hover span {
  transform: translateX(4px);
}

/* ---------- Live preview (browser mockup) ---------- */

.preview {
  margin-top: 2.5rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 252, 0.1);
  background: linear-gradient(180deg, rgba(19, 34, 77, 0.6), rgba(11, 22, 54, 0.55));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -25px rgba(0, 255, 156, 0.2);
  overflow: hidden;
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 36, 0.6);
}

.preview__dots {
  display: flex;
  gap: 6px;
}

.preview__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 238, 252, 0.15);
}

.preview__url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 0.25rem 0.8rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  padding: 6cqw;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  transform: none;
}

/* Children build in one after another */
.scene > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.scene.is-active > * { opacity: 1; transform: none; }
.scene.is-active > :nth-child(2) { transition-delay: 0.08s; }
.scene.is-active > :nth-child(3) { transition-delay: 0.16s; }
.scene.is-active > :nth-child(4) { transition-delay: 0.24s; }
.scene.is-active > :nth-child(5) { transition-delay: 0.32s; }
.scene.is-active > :nth-child(6) { transition-delay: 0.4s; }

/* Mockup primitives */
.m-line {
  display: block;
  height: 2cqw;
  border-radius: 1cqw;
  background: rgba(232, 238, 252, 0.16);
}
.m-line--xl { width: 85%; height: 4cqw; background: rgba(232, 238, 252, 0.85); }
.m-line--lg { width: 60%; height: 4cqw; background: rgba(232, 238, 252, 0.85); }
.m-line--md { width: 75%; }

.m-btn {
  display: block;
  width: 22cqw;
  height: 5.5cqw;
  border-radius: 3cqw;
  background: var(--green);
  box-shadow: 0 0 4cqw -1cqw var(--green-glow);
}
.m-btn--sm { width: 13cqw; height: 4cqw; }
.m-btn--wide { width: 100%; height: 6.5cqw; }

.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-logo {
  width: 11cqw;
  height: 3cqw;
  border-radius: 1cqw;
  background: var(--green);
}
.m-links {
  display: flex;
  gap: 3cqw;
}
.m-links i {
  width: 7cqw;
  height: 1.6cqw;
  border-radius: 1cqw;
  background: rgba(232, 238, 252, 0.2);
}

.m-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5cqw;
  align-items: center;
}
.m-hero__text {
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
}
.m-hero__text .m-btn { margin-top: 1.5cqw; }

.m-media {
  aspect-ratio: 1.15;
  border-radius: 3cqw;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 255, 156, 0.4), transparent 55%),
    linear-gradient(135deg, var(--navy-600), var(--navy-800));
}

.m-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3cqw;
}
.m-cards span {
  border-radius: 2.5cqw;
  background: rgba(232, 238, 252, 0.05);
  border: 1px solid var(--line);
}

.m-pill {
  align-self: center;
  padding: 1cqw 3cqw;
  font-size: 2.4cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.35);
  border-radius: 99px;
}

/* Scene 02: redesign wipe */
@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.scene--redesign {
  padding: 0;
  gap: 0;
  --split: 50%;
}

.scene--redesign.is-active {
  animation: wipe 6s ease-in-out infinite;
}

@keyframes wipe {
  0%, 100% { --split: 28%; }
  50%      { --split: 72%; }
}

.redesign__old,
.redesign__new {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  padding: 6cqw;
}

.redesign__old {
  background: #cfc9b8;
  color: #3a3a3a;
  font-family: "Times New Roman", Times, serif;
}

.old__banner {
  padding: 2.5cqw;
  font-size: 4.2cqw;
  font-weight: 700;
  text-align: center;
  color: #ffef5a;
  background: #6b1f2b;
  border: 0.6cqw ridge #a3a3a3;
}

.old__body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4cqw;
  flex: 1;
}

.old__img {
  display: grid;
  place-items: center;
  font-size: 3cqw;
  color: #777;
  border: 0.5cqw dashed #888;
  background: #e6e1d3;
}

.old__text {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  font-size: 3cqw;
}
.old__text span {
  height: 1.8cqw;
  background: #8f8a7c;
}
.old__text span:nth-child(2n) { width: 80%; }
.old__text u { color: #1a33c9; }

.old__footer {
  font-size: 2.4cqw;
  text-align: center;
  color: #555;
}

.redesign__new {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  clip-path: inset(0 0 0 var(--split));
}

.redesign__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  translate: -50% 0;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.redesign__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 8cqw;
  height: 8cqw;
  translate: -50% -50%;
  font-size: 3.4cqw;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--green-glow);
}

.redesign__label {
  position: absolute;
  bottom: 3.5cqw;
  padding: 0.8cqw 2.4cqw;
  font-size: 2.3cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
}
.redesign__label--old { left: 3.5cqw; color: #3a3a3a; background: rgba(255, 255, 255, 0.6); }
.redesign__label--new { right: 3.5cqw; color: var(--navy-950); background: var(--green); }

/* Scene 03: landing page */
.scene--landing {
  align-items: center;
  justify-content: center;
  gap: 3cqw;
}
.scene--landing .m-line { margin: 0 auto; }

.lp__form {
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  width: 62%;
  margin-top: 2cqw;
  padding: 4cqw;
  border-radius: 3cqw;
  border: 1px solid var(--line);
  background: rgba(232, 238, 252, 0.04);
}

.lp__input {
  height: 6cqw;
  border-radius: 1.5cqw;
  border: 1px solid rgba(232, 238, 252, 0.14);
  background: rgba(3, 8, 22, 0.4);
}

.scene--landing.is-active .m-btn--wide {
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  50% { box-shadow: 0 0 0 1.5cqw rgba(0, 255, 156, 0.15), 0 0 6cqw -1cqw var(--green-glow); }
}

.lp__form { position: relative; }

.lp__badge {
  position: absolute;
  top: -3.5cqw;
  right: -12cqw;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2cqw) scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.4cqw 2.6cqw;
  font-size: 2.4cqw;
  font-weight: 600;
  color: var(--text);
  background: rgba(11, 22, 54, 0.9);
  border: 1px solid rgba(0, 255, 156, 0.4);
  border-radius: 99px;
  box-shadow: 0 0 20px -6px var(--green-glow);
}
.lp__badge i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: var(--green);
}
.scene--landing.is-active .lp__badge {
  opacity: 1;
  transform: none;
  transition-delay: 1s;
}

/* Scene 04: SEO climb */
.seo__search {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 2.4cqw 3.5cqw;
  font-size: 2.8cqw;
  color: var(--text-muted);
  border: 1px solid rgba(232, 238, 252, 0.14);
  border-radius: 99px;
  background: rgba(3, 8, 22, 0.4);
}
.seo__search svg { width: 3.4cqw; height: 3.4cqw; }

.seo__results {
  --rh: 11cqw;
  --step: calc(var(--rh) + 2cqw);
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  list-style: none;
}

.seo__results li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4cqw;
  height: var(--rh);
  padding: 0 3.5cqw;
  border-radius: 2cqw;
  border: 1px solid var(--line);
  background: rgba(232, 238, 252, 0.03);
  transform: translateY(calc(-1 * var(--step)));
  transition: transform 0.9s var(--ease);
}

.seo__results li.is-you {
  position: relative;
  border-color: rgba(0, 255, 156, 0.45);
  background: rgba(0, 255, 156, 0.07);
  box-shadow: 0 0 24px -10px var(--green-glow);
  transform: translateY(calc(3 * var(--step)));
  z-index: 1;
}

.scene--seo.is-active .seo__results li {
  transform: none;
  transition-delay: 0.6s;
}

.seo__url {
  font-size: 2.6cqw;
  color: var(--text-muted);
}
.is-you .seo__url { color: var(--green); font-weight: 600; }

.seo__rank {
  position: absolute;
  top: 50%;
  right: 3.5cqw;
  translate: 0 -50%;
  font-size: 3.6cqw;
  font-weight: 800;
  color: var(--green);
}

/* Scene 05: support monitor */
.sup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2.6cqw;
}

.sup__status {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.4cqw 2.8cqw;
  font-weight: 600;
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.35);
  border-radius: 99px;
  background: rgba(0, 255, 156, 0.06);
}
.sup__status i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.sup__meta { color: var(--text-muted); }

.sup__graph {
  width: 100%;
  height: 20cqw;
  border-radius: 2.5cqw;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(232, 238, 252, 0.04) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(3, 8, 22, 0.35);
}

.sup__graph polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--green));
  stroke-dasharray: 160 400;
  stroke-dashoffset: 560;
}

.scene--support.is-active .sup__graph polyline {
  animation: heartbeat 3s linear infinite;
}

@keyframes heartbeat {
  to { stroke-dashoffset: 0; }
}

.sup__list {
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  list-style: none;
  font-size: 3cqw;
  color: var(--text);
}

.sup__list li {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.sup__check {
  position: relative;
  flex: none;
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 50%;
  border: 1px solid rgba(232, 238, 252, 0.25);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sup__check::after {
  content: "";
  position: absolute;
  left: 35%;
  top: 18%;
  width: 25%;
  height: 48%;
  border: solid var(--navy-950);
  border-width: 0 0.6cqw 0.6cqw 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease);
}

.scene--support.is-active .sup__check {
  background: var(--green);
  border-color: var(--green);
}
.scene--support.is-active .sup__check::after { transform: rotate(45deg) scale(1); }
.scene--support.is-active li:nth-child(1) .sup__check,
.scene--support.is-active li:nth-child(1) .sup__check::after { transition-delay: 0.6s; }
.scene--support.is-active li:nth-child(2) .sup__check,
.scene--support.is-active li:nth-child(2) .sup__check::after { transition-delay: 0.95s; }
.scene--support.is-active li:nth-child(3) .sup__check,
.scene--support.is-active li:nth-child(3) .sup__check::after { transition-delay: 1.3s; }

/* ---------- Consultation banner ---------- */

.consult {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 6rem auto 0;
  padding: 2.5rem 2.75rem;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

/* Rotating light that shows only along the border */
.consult::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 75%, rgba(0, 255, 156, 0.15) 85%, var(--green) 95%, transparent 100%);
  animation: spin 7s linear infinite;
}

.consult::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(0, 255, 156, 0.1), transparent 50%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

@keyframes spin {
  to { rotate: 360deg; }
}

.consult__mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 156, 0.4);
  background: rgba(0, 255, 156, 0.08);
  box-shadow: 0 0 30px -6px var(--green-glow);
}

.consult__mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ring 2.4s var(--ease) infinite;
}

@keyframes ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.consult__text {
  flex: 1;
}

.consult__text h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.consult__text p {
  max-width: 56ch;
  color: var(--text-muted);
}

.consult__btn {
  flex: none;
}

/* ---------- Services responsive ---------- */

@media (max-width: 900px) {
  .services__layout {
    grid-template-columns: 1fr;
  }
  .services__aside {
    position: static;
  }
  .preview {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .svc__trigger {
    grid-template-columns: 1.6rem 1fr auto;
    padding-left: 1rem;
    row-gap: 0.4rem;
  }
  .svc__tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .svc__arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .svc__body-inner {
    padding-left: calc(1rem + 1.6rem + 1rem + 6px);
    padding-right: 1rem;
  }
  .consult {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
  }
  .consult__text p {
    margin: 0 auto;
  }
  .consult__btn {
    width: 100%;
  }
}

/* ==========================================================
   Process
   Default = vertical timeline (phones, short screens, reduced motion).
   .is-horizontal (set by JS) = pinned, scroll-driven horizontal track.
   ========================================================== */

.process {
  position: relative;
  padding: 4rem 1.25rem 8rem;
  background: var(--navy-950);
  isolation: isolate;
}

.process__glow {
  position: absolute;
  z-index: -1;
  left: -15vmax;
  bottom: 0;
  width: 55vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(0, 255, 156, 0.07) 0%, rgba(28, 49, 104, 0.3) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.process__sticky {
  max-width: 1200px;
  margin: 0 auto;
}

.process__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.process__title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.process__title .accent {
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.3));
}

.process__intro {
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
}

.process__counter {
  display: none;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  text-shadow: 0 0 24px var(--green-glow);
}

.process__counter small {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-shadow: none;
}

/* ---------- Steps (vertical by default) ---------- */

.process__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 3rem;
  list-style: none;
}

/* Rail geometry is set by JS so it always runs node-to-node */
.process__rail {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(232, 238, 252, 0.1);
  border-radius: 2px;
  pointer-events: none;
}

.process__rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--rail-dir, 180deg), rgba(0, 255, 156, 0.2), var(--green));
  box-shadow: 0 0 12px var(--green-glow);
  border-radius: inherit;
  transform-origin: 0 0;
  transform: scale(var(--sx, 1), var(--sy, 0));
}

.process__head {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px 4px var(--green-glow);
}

.step {
  position: relative;
  max-width: 560px;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}

.step.is-active {
  opacity: 1;
}

.step__node {
  position: absolute;
  top: 1.6rem;
  left: calc(-3rem + 0px);
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid rgba(232, 238, 252, 0.25);
  background: var(--navy-950);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step.is-active .step__node {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 255, 156, 0.12), 0 0 16px var(--green-glow);
}

.step__top {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.step__num {
  font-size: clamp(3.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  /* Outline trick: a double-width stroke painted *under* a background-coloured fill.
     The fill hides the inner half of the stroke, including the lines where the
     font's overlapping glyph shapes cross, leaving a clean outer outline. */
  color: var(--navy-950);
  -webkit-text-stroke: 3px rgba(232, 238, 252, 0.3);
  paint-order: stroke fill;
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease), text-shadow 0.5s var(--ease);
}

.step.is-current .step__num {
  color: var(--green);
  -webkit-text-stroke-color: var(--green);
  text-shadow: 0 0 30px var(--green-glow);
}

.step.is-active:not(.is-current) .step__num {
  -webkit-text-stroke-color: rgba(0, 255, 156, 0.6);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text-muted);
  border: 1px solid rgba(232, 238, 252, 0.12);
  background: rgba(232, 238, 252, 0.03);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.5s var(--ease);
}

.step__icon svg {
  width: 22px;
  height: 22px;
}

.step.is-current .step__icon {
  color: var(--green);
  border-color: rgba(0, 255, 156, 0.4);
  background: rgba(0, 255, 156, 0.08);
  transform: rotate(-8deg) scale(1.08);
}

.step__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step__text {
  max-width: 34ch;
  color: var(--text-muted);
}

/* ---------- Closing card ---------- */

.process__closing {
  max-width: 460px;
  margin: 3.5rem 0 0 3rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 156, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 255, 156, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(19, 34, 77, 0.6), rgba(11, 22, 54, 0.45));
  backdrop-filter: blur(10px);
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.6s var(--ease);
  opacity: 0.5;
}

.process__closing.is-active {
  opacity: 1;
  border-color: rgba(0, 255, 156, 0.45);
  box-shadow: 0 0 60px -20px var(--green-glow);
}

.process__closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.3);
  border-radius: var(--radius);
  background: rgba(0, 255, 156, 0.06);
}

.process__closing-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.process__closing p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.process__closing strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Progress dial (vertical mode, medium+ screens) ---------- */

.dial,
.lane {
  display: none;
}

@media (min-width: 700px) {
  .process:not(.is-horizontal) .process__track {
    --gap: clamp(1.5rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    column-gap: var(--gap);
    align-items: start;
  }

  /* The lane shares the dial's column (and reaches back across the gap) */
  .process:not(.is-horizontal) .lane {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    position: relative;
    margin-left: calc(-1 * var(--gap));
  }

  .process:not(.is-horizontal) .process__steps,
  .process:not(.is-horizontal) .process__closing {
    grid-column: 1;
  }

  .process:not(.is-horizontal) .dial {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 18vh;
  }
}

/* ---------- Lane: the track behind the dial ---------- */

.lane {
  /* x position of the track line: centre of the dial column */
  --line-x: calc(var(--gap, 0px) + (100% - var(--gap, 0px)) / 2);
  pointer-events: none;
}

/* Faint dashed rail running the full height of the column */
.lane::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--line-x);
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(232, 238, 252, 0.12) 0 6px, transparent 6px 14px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.lane__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Solid track between the first and last station (geometry set by JS) */
.lane__line {
  position: absolute;
  left: var(--line-x);
  width: 2px;
  translate: -50% 0;
  border-radius: 2px;
  background: rgba(232, 238, 252, 0.1);
}

.lane__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 255, 156, 0.15), var(--green));
  box-shadow: 0 0 10px var(--green-glow);
  transform-origin: top;
  transform: scaleY(var(--lane-p, 0));
}

.lane__station {
  position: absolute;
  top: var(--y);
  left: var(--line-x);
  width: 12px;
  height: 12px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid rgba(232, 238, 252, 0.2);
  background: var(--navy-950);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.lane__station::after {
  content: attr(data-n);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  translate: 0 -50%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(232, 238, 252, 0.3);
  transition: color 0.4s var(--ease);
}

.lane__station.is-on {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 255, 156, 0.1), 0 0 12px var(--green-glow);
}

.lane__station.is-on::after {
  color: var(--green);
}

/* Dashed connector from each step across to its station */
.lane__conn {
  position: absolute;
  top: var(--y);
  left: 0;
  width: calc(var(--line-x) - 10px);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(232, 238, 252, 0.14) 0 4px, transparent 4px 9px);
  transition: opacity 0.4s var(--ease);
}

.lane__conn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 9px);
  filter: drop-shadow(0 0 3px var(--green));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}

.lane__conn.is-on::after {
  transform: scaleX(1);
}

.dial {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 238, 252, 0.08);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 255, 156, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(19, 34, 77, 0.5), rgba(11, 22, 54, 0.35));
  backdrop-filter: blur(10px);
}

.dial__ring {
  position: relative;
  aspect-ratio: 1;
}

.dial__ring > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial__spin {
  transform-origin: 100px 100px;
  animation: dial-spin 18s linear infinite;
}

@keyframes dial-spin {
  to { transform: rotate(360deg); }
}

.dial__orbit {
  fill: none;
  stroke: rgba(232, 238, 252, 0.14);
  stroke-width: 0.6;
  stroke-dasharray: 1 3;
}

.dial__satellite {
  fill: var(--green);
  filter: drop-shadow(0 0 3px var(--green));
}

.dial__seg {
  fill: none;
  stroke: rgba(232, 238, 252, 0.09);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 17 83;
  transition: stroke 0.5s var(--ease), filter 0.5s var(--ease);
}

.dial__seg.is-on {
  stroke: rgba(0, 255, 156, 0.55);
}

.dial__seg.is-current {
  stroke: var(--green);
  filter: drop-shadow(0 0 5px var(--green));
}

.dial__track,
.dial__progress {
  fill: none;
  stroke-width: 1.5;
}

.dial__track {
  stroke: rgba(232, 238, 252, 0.08);
}

.dial__progress {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: var(--p, 0) 100;
  opacity: 0.8;
}

.dial__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

.dial__center.is-swapping {
  animation: dial-swap 0.5s var(--ease);
}

@keyframes dial-swap {
  from { opacity: 0; transform: scale(0.85); }
}

.dial__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  border-radius: 11px;
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.08);
}

.dial__icon svg {
  width: 20px;
  height: 20px;
}

.dial__num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
  text-shadow: 0 0 24px var(--green-glow);
  font-variant-numeric: tabular-nums;
}

.dial__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.dial__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 238, 252, 0.08);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dial__foot strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* ---------- Horizontal, scroll-pinned mode ---------- */

.process.is-horizontal {
  padding: 0;
}

.process.is-horizontal .process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.process.is-horizontal .process__header {
  width: calc(100% - 2.5rem);
  max-width: 1200px;
  margin: 0 auto 2.75rem;
}

/* Particle layer behind the pinned content */
.process__fx {
  display: none;
}

.process.is-horizontal .process__fx {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.process.is-horizontal .process__header,
.process.is-horizontal .process__track {
  position: relative;
  z-index: 1;
}

/* Compact dial in the pinned header (replaces the plain 01 / 05 counter) */
.process.is-horizontal .process__counter {
  display: none;
}

.process.is-horizontal .dial {
  --ring: clamp(150px, 21vh, 190px);
  display: grid;
  grid-template-columns: var(--ring) auto;
  align-items: center;
  gap: 1.5rem;
  flex: none;
  padding: 1rem 2rem 1rem 1rem;
  border-radius: 26px;
  border-color: rgba(0, 255, 156, 0.22);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(0, 255, 156, 0.3);
}

.process.is-horizontal .dial__center {
  gap: 0;
}

.process.is-horizontal .dial__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.2rem;
  border-radius: 9px;
}

.process.is-horizontal .dial__icon svg {
  width: 18px;
  height: 18px;
}

.process.is-horizontal .dial__num {
  font-size: clamp(1.9rem, 3.4vh, 2.5rem);
}

.process.is-horizontal .dial__label {
  font-size: 0.82rem;
}

.process.is-horizontal .dial__foot {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-top: 0;
  border-left: 1px solid rgba(232, 238, 252, 0.08);
  align-self: stretch;
}

.process.is-horizontal .dial__foot {
  min-width: 150px;
}

.process.is-horizontal .dial__foot strong {
  font-size: clamp(2.2rem, 4vh, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px var(--green-glow);
}

.process.is-horizontal .process__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(2.5rem, 5vw, 5rem);
  width: max-content;
  padding: 0 max(1.25rem, calc((100vw - 1200px) / 2));
  will-change: transform;
}

.process.is-horizontal .process__steps {
  flex-direction: row;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: 3.25rem 0 0;
}

.process.is-horizontal .step {
  flex: none;
  width: clamp(250px, 24vw, 320px);
}

.process.is-horizontal .step__node {
  top: -3.25rem;
  left: 0;
  margin-top: 0;
}

.process.is-horizontal .process__closing {
  flex: none;
  width: clamp(380px, 32vw, 460px);
  margin: 1rem 0 0;
  padding: 1.6rem 1.75rem;
}

.process.is-horizontal .process__closing p {
  margin-bottom: 1.1rem;
}

/* ==========================================================
   Closer: Industries + Contact
   ========================================================== */

.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;
}

.closer {
  position: relative;
  padding: 4rem 0 9rem;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}

.closer__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -10vmax;
  width: 90vmax;
  height: 55vmax;
  translate: -50% 0;
  background: radial-gradient(ellipse, rgba(0, 255, 156, 0.1) 0%, rgba(28, 49, 104, 0.35) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.closer.is-celebrating .closer__glow {
  animation: glow-burst 1.8s var(--ease);
}

@keyframes glow-burst {
  30% { transform: scale(1.25); opacity: 1; filter: blur(40px) brightness(1.8); }
}

/* ---------- Industries header ---------- */

.industries__header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.industries__title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.industries__title .accent {
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.3));
}

.industries__intro {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
}

/* ---------- Crossing tape bands ---------- */

.tape {
  position: relative;
  padding: 3rem 0 4rem;
}

.tape__band {
  width: 130vw;
  margin-left: -15vw;
  padding: 1.15rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.tape__band--solid {
  position: relative;
  z-index: 2;
  color: var(--navy-950);
  background: var(--green);
  transform: rotate(-3deg);
  box-shadow: 0 0 70px -10px var(--green-glow), 0 25px 40px -25px rgba(0, 0, 0, 0.7);
}

.tape__band--outline {
  margin-top: -0.25rem;
  color: transparent;
  background: var(--navy-800);
  border-block: 1px solid rgba(0, 255, 156, 0.25);
  transform: rotate(2.5deg);
}

.tape__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.tape__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.tape__group span {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Same clean-outline trick as the Process numbers: the fill matches the band */
.tape__band--outline span {
  letter-spacing: 0.01em;
  color: var(--navy-800);
  -webkit-text-stroke: 3px rgba(232, 238, 252, 0.75);
  paint-order: stroke fill;
}

.tape__group b {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1;
}

.tape__band--outline b {
  color: var(--green);
  text-shadow: 0 0 14px var(--green-glow);
}

/* ---------- Contact layout ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 7rem auto 0;
  padding: 0 1.25rem;
}

.contact__title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

/* Word-by-word mask reveal */
.contact__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  vertical-align: bottom;
}

.contact__title .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}

.contact__title.is-visible .w > span {
  transform: none;
}

.contact__title .w--accent > span {
  color: var(--green);
  text-shadow: 0 0 30px rgba(0, 255, 156, 0.35);
}

.contact__punch {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sweep {
  color: inherit;
  background: linear-gradient(transparent 58%, rgba(0, 255, 156, 0.38) 58%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s var(--ease) 0.6s;
}

.contact__punch.is-visible .sweep {
  background-size: 100% 100%;
}

.contact__text {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact__promises {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.25rem;
  list-style: none;
}

.contact__promises li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}

.tick {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 255, 156, 0.12);
  border: 1px solid rgba(0, 255, 156, 0.4);
}

.tick::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Form card ---------- */

.contact__form-wrap {
  position: relative;
}

.contact__fx {
  position: absolute;
  z-index: 5;
  top: -160px;
  left: -160px;
  width: calc(100% + 320px);
  height: calc(100% + 320px);
  pointer-events: none;
}

.shockwave {
  position: absolute;
  z-index: 4;
  left: var(--sx, 50%);
  top: var(--sy, 50%);
  width: 0;
  height: 0;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 40px var(--green-glow), inset 0 0 40px rgba(0, 255, 156, 0.25);
  opacity: 0;
  pointer-events: none;
}

.contact__form-wrap.is-launching .shockwave {
  animation: shockwave 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes shockwave {
  0%   { width: 0; height: 0; opacity: 1; }
  100% { width: 1600px; height: 1600px; opacity: 0; }
}

.form-card {
  position: relative;
  padding: 2.25rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 238, 252, 0.09);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 255, 156, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(19, 34, 77, 0.65), rgba(11, 22, 54, 0.5));
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85);
}

.form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px var(--green-glow);
}

.form-card.is-shaking {
  animation: shake 0.45s var(--ease);
}

@keyframes shake {
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form__head p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* Floating-label fields */
.field {
  position: relative;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 1.4rem 1rem 0.55rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(3, 8, 22, 0.45);
  border: 1px solid rgba(232, 238, 252, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.field textarea {
  min-height: 130px;
  padding-top: 1.65rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(232, 238, 252, 0.22);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  background: rgba(3, 8, 22, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 255, 156, 0.12);
}

.field label {
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.field label em {
  font-style: normal;
  opacity: 0.6;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.6rem) scale(0.78);
  color: var(--green);
}

.field__error {
  display: none;
  margin-top: 0.4rem;
  padding-left: 0.25rem;
  font-size: 0.8rem;
  color: var(--error);
}

.was-validated .field :invalid {
  border-color: var(--error);
}

.was-validated .field :invalid + label {
  color: var(--error);
}

.was-validated .field :invalid ~ .field__error {
  display: block;
}

/* Service chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 0.7rem;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(232, 238, 252, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chip:hover span {
  color: var(--text);
  border-color: rgba(0, 255, 156, 0.45);
}

.chip input:checked + span {
  color: var(--navy-950);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 18px -4px var(--green-glow);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Submit button: morphs into a spinner while sending */
.submit {
  position: relative;
  align-self: center;
  width: 100%;
  height: 56px;
  margin-top: 0.4rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--green);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -12px var(--green-glow);
  cursor: pointer;
  transition: width 0.45s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(0, 255, 156, 0.15), 0 16px 40px -10px var(--green-glow);
}

.submit:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.submit__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.submit__spinner {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  margin: auto;
  border-radius: 50%;
  border: 2.5px solid var(--navy-950);
  border-top-color: transparent;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.submit.is-loading {
  width: 56px;
  pointer-events: none;
}

.submit.is-loading .submit__label { opacity: 0; }
.submit.is-loading .submit__spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

.form__note {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

/* Dissolve-out on send (staggered via --d) */
.dissolve {
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.7s var(--ease);
}

.is-launching .dissolve {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-14px) scale(0.98);
  transition-delay: calc(var(--d, 0) * 1ms);
  pointer-events: none;
}

.is-sent .form {
  visibility: hidden;
}

/* ---------- Success state ---------- */

.success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  visibility: hidden;
  pointer-events: none;
}

.is-sent .success {
  visibility: visible;
  pointer-events: auto;
}

.success > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.is-sent .success > * { opacity: 1; transform: none; }
.is-sent .success > :nth-child(2) { transition-delay: 0.45s; }
.is-sent .success > :nth-child(3) { transition-delay: 0.6s; }
.is-sent .success > :nth-child(4) { transition-delay: 0.8s; }

.success__check {
  width: 104px;
  height: 104px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 16px var(--green-glow));
}

.success__check circle {
  fill: rgba(0, 255, 156, 0.08);
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.8s var(--ease);
}

.success__check path {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.5s var(--ease) 0.6s;
}

.is-sent .success__check circle,
.is-sent .success__check path {
  stroke-dashoffset: 0;
}

.success__title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.success__text {
  max-width: 34ch;
  color: var(--text-muted);
}

.success__reset {
  margin-top: 0.75rem;
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 255, 156, 0.4);
  cursor: pointer;
}

.success__reset:hover {
  border-bottom-color: var(--green);
}

/* ---------- Closer responsive ---------- */

@media (max-width: 900px) {
  .industries__header,
  .contact {
    grid-template-columns: 1fr;
  }
  .contact {
    margin-top: 5rem;
  }
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.6rem 1.25rem;
  }
  .tape__band {
    padding: 0.85rem 0;
  }
  .tape__band--outline {
    margin-top: 0;
  }
}

/* ==========================================================
   Sticky navigation
   ========================================================== */

.nav {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
  animation: nav-drop 0.9s var(--ease) 0.2s both;
  transition: top 0.4s var(--ease);
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-120%); }
}

.nav.is-scrolled {
  top: 0.6rem;
}

.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1120px;
  height: 64px;
  padding: 0 0.6rem 0 1.4rem;
  --lamp-gap: 9px; /* space between link top and bar's inner top edge */
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 156, 0.28);
  background:
    linear-gradient(180deg, rgba(19, 34, 77, 0.55), rgba(6, 13, 36, 0.55)),
    rgba(6, 13, 36, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 20px 50px -18px rgba(0, 0, 0, 0.85),
    0 0 45px -12px rgba(0, 255, 156, 0.35),
    inset 0 1px 0 rgba(232, 238, 252, 0.08);
  pointer-events: auto;
  transition: max-width 0.5s var(--ease), height 0.4s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* A light that travels along the bar's outline.
   Drawn as dashes on an SVG pill that traces the border (sized by script.js),
   so it renders the same on every browser, including iPhone/Safari. */
.nav__trace {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0, 255, 156, 0.7));
}

.nav__trace rect {
  fill: none;
  stroke-linecap: butt;
  animation: nav-trace 6s linear infinite;
}

/* Each layer is faint; overlapping layers build up toward the leading edge */
.nav__trace-tail {
  stroke: rgba(0, 255, 156, 0.14);
  stroke-width: 1.75;
}

.nav__trace-head {
  stroke: rgba(214, 255, 238, 0.32);
  stroke-width: 2;
}

/* Before the script has measured the bar, keep the light hidden */
.nav__trace:not(.is-ready) {
  display: none;
}

@keyframes nav-trace {
  from { stroke-dashoffset: var(--perim, 0); }
  to { stroke-dashoffset: 0; }
}

.nav.is-scrolled .nav__bar {
  max-width: 1040px;
  height: 60px;
  --lamp-gap: 7px;
  background:
    linear-gradient(180deg, rgba(19, 34, 77, 0.6), rgba(6, 13, 36, 0.7)),
    rgba(6, 13, 36, 0.85);
  border-color: rgba(0, 255, 156, 0.4);
  box-shadow:
    0 22px 55px -18px rgba(0, 0, 0, 0.9),
    0 0 55px -10px rgba(0, 255, 156, 0.4),
    inset 0 1px 0 rgba(232, 238, 252, 0.08);
}

/* Tablet & desktop: larger bar, type and targets */
@media (min-width: 768px) {
  .nav {
    top: 1.25rem;
  }
  .nav.is-scrolled {
    top: 0.75rem;
  }
  .nav__bar {
    --lamp-gap: 14px;
    max-width: 1200px;
    height: 78px;
    gap: 1.25rem;
    padding: 0 0.75rem 0 2rem;
  }
  .nav.is-scrolled .nav__bar {
    --lamp-gap: 11px;
    max-width: 1120px;
    height: 72px;
  }
  .nav__logo .logo {
    height: 46px;
  }
  .nav.is-scrolled .nav__logo .logo {
    height: 42px;
  }
  .nav__links a {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  .nav__cta {
    padding: 0.85rem 1.55rem;
    font-size: 1rem;
  }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border-radius: 8px;
}

.nav__logo .logo {
  height: 34px;
  width: auto;
  transition: height 0.4s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.nav__logo:hover .logo {
  transform: translateX(3px);
  filter: drop-shadow(0 0 14px rgba(0, 255, 156, 0.35));
}

/* Links + the sliding "lamp" */
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.25s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

.nav__links a:focus-visible,
.nav__cta:focus-visible,
.nav__logo:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.nav__lamp {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--lamp-w, 0);
  transform: translateX(var(--lamp-x, 0));
  border-radius: var(--radius);
  background: rgba(0, 255, 156, 0.07);
  opacity: 0;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}

.nav__lamp.is-on {
  opacity: 1;
}

/* The light bar on top of the lamp, casting a glow downward */
.nav__lamp::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--lamp-gap) - 1px);
  left: 50%;
  width: 26px;
  height: 3px;
  translate: -50% 0;
  border-radius: 0 0 4px 4px;
  background: var(--green);
  box-shadow: 0 0 10px 1px var(--green);
}

.nav__lamp::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--lamp-gap));
  left: 50%;
  width: 56px;
  height: 30px;
  translate: -50% 0;
  background: radial-gradient(ellipse at top, rgba(0, 255, 156, 0.35), transparent 70%);
  filter: blur(4px);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy-950);
  background: var(--green);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -10px var(--green-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav__cta:hover,
.nav__cta.is-active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(0, 255, 156, 0.15), 0 10px 30px -8px var(--green-glow);
}

.nav__cta svg {
  transition: transform 0.25s var(--ease);
}

.nav__cta:hover svg {
  transform: translateX(3px);
}

/* Scroll progress along the bottom edge of the pill */
.nav__progress {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 156, 0.2), var(--green));
  box-shadow: 0 0 10px var(--green-glow);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* Menu button (all screen sizes) */
.nav__toggle {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(232, 238, 252, 0.14);
  border-radius: 50%;
  background: rgba(232, 238, 252, 0.05);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav__toggle:hover {
  border-color: rgba(0, 255, 156, 0.5);
  background: rgba(0, 255, 156, 0.08);
}

.nav__toggle span {
  position: absolute;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), right 0.4s var(--ease), background-color 0.3s var(--ease);
}

.nav__toggle span:first-child { top: calc(50% - 4px); }
.nav__toggle span:last-child { top: calc(50% + 3px); right: 42%; }

.nav__toggle:hover span:last-child { right: 30%; }

.nav__toggle[aria-expanded="true"] {
  border-color: var(--green);
}

.nav__toggle[aria-expanded="true"] span {
  top: calc(50% - 1px);
  right: 30%;
  background: var(--green);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 1.5rem 2.5rem;
  background:
    radial-gradient(circle at 85% 5%, rgba(0, 255, 156, 0.14), transparent 45%),
    linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--navy-950);
  clip-path: circle(0 at var(--mx, 90%) var(--my, 40px));
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}

.menu.is-open {
  clip-path: circle(150% at var(--mx, 90%) var(--my, 40px));
  visibility: visible;
  transition: clip-path 0.7s var(--ease), visibility 0s;
}

.menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  border-bottom: 1px solid rgba(232, 238, 252, 0.07);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.25s var(--ease);
}

.menu__links a span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green);
}

.menu__links a.is-active,
.menu__links a:hover {
  color: var(--green);
}

.menu a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 8px;
}

.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
}
.menu.is-open li:nth-child(1) a { transition-delay: 0.15s; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.21s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.27s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.33s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.39s; }

.menu__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.menu.is-open .menu__foot {
  opacity: 1;
  transition-delay: 0.45s;
}

.menu__social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.menu__social:hover {
  color: var(--green);
}

/* Phones: logo + menu button only */
@media (max-width: 767px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__bar,
  .nav.is-scrolled .nav__bar {
    height: 60px;
    padding: 0 0.4rem 0 1.2rem;
  }
}

/* Tablets / small laptops: section links + menu button (CTA lives in the menu) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__cta {
    display: none;
  }
  .nav__bar {
    padding-left: 1.5rem;
  }
  .nav__links a {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .nav__toggle {
    width: 50px;
    height: 50px;
  }
}

/* Larger screens: give the menu a wider, two-column layout */
@media (min-width: 768px) {
  .menu {
    padding: 9rem max(2rem, calc((100vw - 1120px) / 2)) 3rem;
  }
  .menu__links a {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
  }
  .menu__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Keep pinned Process content clear of the floating nav: centred when there's
   room, otherwise starting just below the bar (~600px is the content height). */
.process.is-horizontal .process__sticky {
  justify-content: flex-start;
  padding-top: max(6.5rem, calc((100vh - 620px) / 2));
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem 0.5rem;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  border-top: 1px solid rgba(232, 238, 252, 0.07);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(600px, 80%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 14px var(--green-glow);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(232, 238, 252, 0.07);
}

.footer__logo {
  display: inline-block;
}

.footer__logo .logo {
  height: 40px;
  width: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer__links a,
.footer__totop {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer__links a:hover,
.footer__totop:hover {
  color: var(--green);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.footer__social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--green);
  border: 1px solid rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.06);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer__social:hover .footer__social-icon {
  color: var(--navy-950);
  background: var(--green);
  box-shadow: 0 0 20px -2px var(--green-glow);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer__totop svg {
  transition: transform 0.25s var(--ease);
}

.footer__totop:hover svg {
  transform: translateY(-3px);
}

.footer a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* ==========================================================
   Work page (work.html)
   ========================================================== */

.work {
  background: var(--navy-950);
  overflow-x: clip;
}

/* ---------- Project intro ---------- */

.work-hero {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9.5rem 1.25rem 4rem;
}

.work-hero__glow {
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 50%;
  width: 110vmax;
  height: 70vmax;
  translate: -50% 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(28, 49, 104, 0.55), transparent 55%),
    radial-gradient(ellipse at 75% 45%, rgba(0, 255, 156, 0.1), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.work-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.work-back svg {
  transition: transform 0.25s var(--ease);
}

.work-back:hover {
  color: var(--green);
}

.work-back:hover svg {
  transform: translateX(-4px);
}

.work-hero__title {
  margin: 0.25rem 0 1.25rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.work-hero__intro {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
}

.work-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem 2rem;
  margin: 2.75rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid rgba(232, 238, 252, 0.08);
}

.work-meta dt {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-meta dd {
  margin: 0;
  font-weight: 600;
}

.work-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Live preview ---------- */

.showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
}

.showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.showcase__title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.showcase__hint {
  flex: 1 1 280px;
  color: var(--text-muted);
}

.device-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 238, 252, 0.12);
  background: rgba(11, 22, 54, 0.6);
}

.device-toggle__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: 0 0 20px -4px var(--green-glow);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.device-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.device-toggle button[aria-selected="true"] {
  color: var(--navy-950);
}

.device-toggle button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 2.25rem;
}

/* Soft green floor glow under the device */
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 156, 0.16), transparent 70%);
  filter: blur(30px);
}

.frame {
  display: none;
}

.frame.is-active {
  display: block;
  animation: frame-in 0.6s var(--ease);
}

@keyframes frame-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
}

.frame__screen {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.frame__screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.frame__screen.is-loaded iframe {
  opacity: 1;
}

.frame__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: opacity 0.4s var(--ease);
}

.frame__loading span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 156, 0.25);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

.frame__screen.is-loaded .frame__loading {
  opacity: 0;
  pointer-events: none;
}

/* Desktop browser */
.frame--desktop {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 252, 0.12);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(0, 255, 156, 0.3);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 13, 36, 0.95);
  border-bottom: 1px solid rgba(232, 238, 252, 0.08);
}

.frame__dots {
  display: flex;
  gap: 6px;
}

.frame__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(232, 238, 252, 0.15);
}

.frame__dots i:first-child { background: #ff6b6b; opacity: 0.8; }
.frame__dots i:nth-child(2) { background: #ffd166; opacity: 0.8; }
.frame__dots i:nth-child(3) { background: var(--green); opacity: 0.8; }

.frame__url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  justify-content: center;
}

.frame__url svg {
  color: var(--green);
}

.frame--desktop .frame__screen {
  aspect-ratio: 16 / 10;
  max-height: 78vh;
}

/* Phone */
.frame--mobile {
  position: relative;
  width: min(340px, 86vw);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1c2440, #0a0f22);
  border: 1px solid rgba(232, 238, 252, 0.14);
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 80px -30px rgba(0, 255, 156, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.03);
}

.frame--mobile .frame__screen {
  aspect-ratio: 390 / 844;
  border-radius: 34px;
}

.frame__notch {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  translate: -50% 0;
  border-radius: 20px;
  background: #05070f;
}

/* ---------- What we built ---------- */

.built {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 8rem;
}

.built__header {
  max-width: 760px;
  margin-bottom: 3rem;
}

.built__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.built__title .accent {
  filter: drop-shadow(0 0 18px rgba(0, 255, 156, 0.3));
}

.built__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 2rem 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 238, 252, 0.08);
  background: linear-gradient(180deg, rgba(19, 34, 77, 0.55), rgba(11, 22, 54, 0.35));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}

.feature:hover {
  translate: 0 -4px;
  border-color: rgba(0, 255, 156, 0.35);
  box-shadow: 0 20px 50px -25px rgba(0, 255, 156, 0.35);
}

.feature__num {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

.feature h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-muted);
}

.feature--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  border-color: rgba(0, 255, 156, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 255, 156, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(19, 34, 77, 0.65), rgba(11, 22, 54, 0.45));
}

.feature--cta .btn {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .work-hero {
    padding-top: 7.5rem;
  }
  .showcase__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .built__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Privacy policy (privacy.html) + legal links
   ========================================================== */

.footer__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.footer__legal,
.form__note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 156, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.footer__legal:hover,
.form__note a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.legal {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--navy-950);
}

.legal__glow {
  position: absolute;
  z-index: -1;
  top: -15vmax;
  left: 50%;
  width: 100vmax;
  height: 60vmax;
  translate: -50% 0;
  background:
    radial-gradient(ellipse at 35% 40%, rgba(28, 49, 104, 0.5), transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 255, 156, 0.07), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 9.5rem 1.25rem 7rem;
}

.legal__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal__updated {
  margin: 0.9rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal__lead {
  font-size: 1.12rem;
  color: var(--text);
}

.legal__toc {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 252, 0.08);
  background: linear-gradient(180deg, rgba(19, 34, 77, 0.5), rgba(11, 22, 54, 0.3));
}

.legal__toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 0.45rem 1.5rem;
  padding-left: 1.2rem;
  color: var(--green);
}

.legal__toc a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.legal__toc a:hover {
  color: var(--green);
}

.legal section {
  padding-top: 2.75rem;
}

.legal h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.legal section p,
.legal section li {
  color: var(--text-muted);
}

.legal section p + p {
  margin-top: 0.85rem;
}

.legal section ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  padding-left: 1.25rem;
}

.legal section li::marker {
  color: var(--green);
}

.legal section strong {
  color: var(--text);
  font-weight: 600;
}

.legal section a:not(.btn) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

@media (max-width: 640px) {
  .legal__inner {
    padding-top: 7.5rem;
  }
}

/* ==========================================================
   Contact details + form sending states
   ========================================================== */

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.contact__direct {
  margin-top: 1.75rem;
  color: var(--text-muted);
}

.contact__direct a {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 156, 0.4);
  text-underline-offset: 3px;
}

.contact__direct a:hover {
  text-decoration-color: var(--green);
}

/* Spam trap: present for bots, invisible and unreachable for people */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 138, 0.45);
  background: rgba(255, 122, 138, 0.08);
  animation: rise 0.4s var(--ease);
}

.form__error[hidden] {
  display: none;
}

.form__error svg {
  flex: none;
  margin-top: 1px;
  color: var(--error);
}

.form__error a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .hero__scroll {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .card,
  .svc__item,
  .contact__title .w > span {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   Mobile / touch extras
   ========================================================== */

/* ---------- What We Offer: animated preview inside each box ---------- */

.svc__mini {
  display: none;
}

@media (max-width: 900px) {
  /* The single preview above the list is replaced by one per box */
  .services__aside .preview {
    display: none;
  }

  .svc__mini {
    display: block;
    margin: 1.1rem 0 0 calc(-1 * (2rem + 1rem + 6px));
    border-radius: 14px;
  }

  .svc__mini .preview__bar {
    padding: 0.55rem 0.8rem;
  }
}

@media (max-width: 640px) {
  .svc__mini {
    margin-left: calc(-1 * (1.6rem + 1rem + 6px));
  }
}

/* ---------- Why Choose Us: the centred card lights up (touch screens) ---------- */

@media (hover: none), (pointer: coarse) {
  .card.is-ready {
    transition: transform 0.35s var(--ease), opacity 0.4s var(--ease),
      border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  }

  .card.is-focus {
    --mx: 50%;
    --my: 10%;
    border-color: rgba(0, 255, 156, 0.4);
    box-shadow: 0 0 44px -14px rgba(0, 255, 156, 0.5), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  }

  .card.is-focus::after {
    opacity: 1;
  }

  .card.is-focus .card__icon {
    transform: translateZ(50px) scale(1.08);
    box-shadow: 0 0 24px -4px var(--green-glow);
  }

  .card.is-focus .card__metric small {
    text-shadow: 0 0 14px var(--green-glow);
  }
}

/* ---------- How We Work: floating progress dial on phones ---------- */

@media (max-width: 699px) {
  .process:not(.is-horizontal) .dial {
    position: fixed;
    z-index: 80;
    right: 14px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem;
    border-radius: 999px;
    border-color: rgba(0, 255, 156, 0.35);
    background: rgba(6, 13, 36, 0.9);
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(0, 255, 156, 0.45);
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  }

  .process.is-in-view:not(.is-horizontal) .dial {
    opacity: 1;
    transform: none;
  }

  .process:not(.is-horizontal) .dial__ring {
    width: 62px;
    flex: none;
  }

  .process:not(.is-horizontal) .dial__icon,
  .process:not(.is-horizontal) .dial__label {
    display: none;
  }

  .process:not(.is-horizontal) .dial__num {
    font-size: 1.15rem;
  }

  .process:not(.is-horizontal) .dial__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.6rem;
  }

  .process:not(.is-horizontal) .dial__foot strong {
    font-size: 1.05rem;
  }
}

/* Safety net: hide the card spotlight border where the clipping mask isn't supported */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .card::before {
    display: none;
  }
}
