/* =========================================================
   Vector Pulse — styles
   ========================================================= */

:root {
  /* Slightly lighter charcoal base (was pure black) */
  --bg: #10141a;
  --bg-elevated: #161b22;
  --fg: #f2f4f7;
  --muted: hsl(215 12% 68%);
  --border: hsl(215 14% 28%);
  --card: #171c24;
  --primary: hsl(168 78% 46%);
  --primary-dim: hsl(168 78% 46% / 0.16);
  --secondary: hsl(255 72% 68%);
  --secondary-dim: hsl(255 72% 68% / 0.16);
  --danger: hsl(0 78% 62%);
  --success: hsl(168 78% 46%);
  --gradient-neon: linear-gradient(135deg, hsl(168 78% 46%) 0%, hsl(255 72% 68%) 100%);
  --glow-primary: 0 0 20px hsl(168 78% 46% / 0.4), 0 0 40px hsl(168 78% 46% / 0.18);
  --glow-secondary: 0 0 20px hsl(255 72% 68% / 0.35), 0 0 40px hsl(255 72% 68% / 0.15);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --radius: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography helpers */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section__lead {
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.text-outline {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
  display: block;
}

.text-outline-primary {
  -webkit-text-stroke: 1.5px var(--primary);
  color: transparent;
}

.text-gradient {
  display: block;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-solid {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--primary);
  color: #000;
  box-shadow: 4px 4px 0 var(--fg);
}

.btn--primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--fg), var(--glow-primary);
}

.btn--outline {
  border-color: var(--fg);
  background: transparent;
  color: var(--fg);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--primary);
}

.btn--block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: hsl(215 20% 8% / 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: min(12.5rem, 48vw);
}

.footer .logo img {
  height: 2.6rem;
  max-width: 14rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--fg);
}

.nav__cta {
  color: #000;
  background: var(--primary);
  padding: 0.65rem 1rem;
  border: 2px solid var(--primary);
}

.nav__cta:hover {
  color: #000;
  box-shadow: var(--glow-primary);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--fg);
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle span:first-child { top: 0.85rem; }
.nav-toggle span:last-child { top: 1.35rem; }

.nav-toggle.is-open span:first-child {
  top: 1.1rem;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  top: 1.1rem;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 1.5rem) 0 4rem;
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.72) contrast(1.05) brightness(0.55);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, hsl(215 20% 6% / 0.72) 0%, hsl(215 20% 6% / 0.55) 42%, hsl(215 20% 6% / 0.88) 100%),
    radial-gradient(ellipse 70% 55% at 20% 20%, hsl(168 100% 48% / 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 35%, hsl(262 100% 59% / 0.14), transparent 50%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: pulse-soft 8s ease-in-out infinite;
}

.hero__glow--a {
  width: 40vw;
  height: 40vw;
  top: 10%;
  left: -10%;
  background: hsl(168 100% 48% / 0.14);
}

.hero__glow--b {
  width: 35vw;
  height: 35vw;
  right: -5%;
  bottom: 10%;
  background: hsl(262 100% 59% / 0.14);
  animation-delay: -3s;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.hero__network {
  position: absolute;
  inset: 8% 5%;
  width: 90%;
  height: 84%;
  opacity: 0.18;
}

.hero__network line {
  stroke: var(--primary);
  stroke-width: 0.35;
  animation: network-pulse 4s ease-in-out infinite;
}

.hero__network circle {
  fill: var(--primary);
  animation: node-pulse 3s ease-in-out infinite;
}

.hero__network circle:nth-child(odd) {
  animation-delay: 0.6s;
}

.shape {
  position: absolute;
  border: 1.5px solid;
  opacity: 0.7;
}

.shape--cube {
  width: 3.5rem;
  height: 3.5rem;
  top: 18%;
  left: 10%;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: rotate(45deg);
}

.shape--sphere {
  width: 4rem;
  height: 4rem;
  top: 28%;
  right: 12%;
  border-radius: 50%;
  border-color: var(--secondary);
  box-shadow: var(--glow-secondary);
  background: radial-gradient(circle at 30% 30%, hsl(262 100% 59% / 0.25), transparent 60%);
}

.shape--pyramid {
  width: 0;
  height: 0;
  top: auto;
  bottom: 22%;
  left: 22%;
  border: none;
  border-left: 2rem solid transparent;
  border-right: 2rem solid transparent;
  border-bottom: 3.4rem solid hsl(168 100% 48% / 0.35);
  filter: drop-shadow(0 0 12px hsl(168 100% 48% / 0.4));
}

.shape--ring {
  width: 5rem;
  height: 5rem;
  bottom: 18%;
  right: 20%;
  border-radius: 50%;
  border-color: hsl(262 100% 59% / 0.7);
  border-style: dashed;
  box-shadow: var(--glow-secondary);
}

.float {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  will-change: transform;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  white-space: nowrap;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title .text-solid {
  margin-top: 0.15em;
  font-size: 0.72em;
}

.hero__sub {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  color: hsl(215 14% 82%);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.5;
  font-weight: 500;
}

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

/* Sections */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section__head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Services */
.services {
  border-top: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--card);
  border: 2px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service:hover {
  border-color: var(--primary);
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--primary);
}

.service__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(0 0% 100% / 0.08);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.service__text {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.service__list {
  display: grid;
  gap: 0.5rem;
}

.service__list li {
  position: relative;
  padding-left: 1rem;
  color: var(--fg);
  font-size: 0.9rem;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.service .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.tech-tags li {
  padding: 0.3rem 0.55rem;
  border: 1px solid hsl(168 78% 46% / 0.35);
  background: hsl(168 78% 46% / 0.08);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(168 40% 78%);
}

/* Solutions — stacked outcome cards */
.solutions {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, hsl(262 100% 59% / 0.1), transparent 60%),
    var(--bg);
  overflow: visible;
}

.section__head--center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section__head--center .section__title .text-outline,
.section__head--center .section__title .text-gradient {
  display: inline;
}

.section__head--center .section__lead {
  margin-inline: auto;
  color: hsl(215 14% 78%);
}

.outcome-stack {
  position: relative;
  display: grid;
  gap: 50px;
}

.outcome-card {
  --accent: var(--primary);
  --accent-dim: var(--primary-dim);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  min-height: min(22rem, 68dvh);
  border: 1px solid hsl(0 0% 100% / 0.72);
  background: #1a212c;
  overflow: hidden;
  box-shadow: 0 18px 50px hsl(215 30% 2% / 0.45);
}

.outcome-card[data-accent="violet"] {
  --accent: var(--secondary);
  --accent-dim: var(--secondary-dim);
}

.outcome-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 14rem;
  overflow: hidden;
  border-right: 1px solid hsl(0 0% 100% / 0.28);
  background: #121820;
}

.outcome-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.82);
  transition: transform 0.6s var(--ease);
}

.outcome-card:hover .outcome-card__visual img {
  transform: scale(1.03);
}

.outcome-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(215 22% 6% / 0.22), hsl(215 22% 6% / 0.42)),
    linear-gradient(90deg, transparent 50%, hsl(215 22% 12% / 0.4)),
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 35%, hsl(215 22% 8% / 0.35));
  pointer-events: none;
  z-index: 1;
}

.outcome-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #1c2430;
}

.outcome-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 1.1rem 1.1rem 0 0;
  border-color: var(--accent) transparent transparent transparent;
}

.outcome-card__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-dim);
}

.outcome-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
}

.outcome-card__cat {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.outcome-card__focus {
  font-size: 0.85rem;
  color: hsl(215 14% 72%);
}

.outcome-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.outcome-card__title .text-outline,
.outcome-card__title .text-solid {
  display: inline;
  margin-right: 0.25em;
}

.outcome-card__title .text-outline {
  -webkit-text-stroke: 1.25px var(--fg);
}

.outcome-card__body > p {
  color: hsl(215 14% 82%);
  font-size: 1rem;
  max-width: 38ch;
  line-height: 1.55;
}

.outcome-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.outcome-card__tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid hsl(0 0% 100% / 0.42);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(215 16% 92%);
  background: hsl(215 20% 10% / 0.35);
}

/* Process */
.process {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.process__sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding-block: 2rem;
}

.process__sticky .section__lead {
  margin-bottom: 1.75rem;
}

.process__track {
  position: relative;
  padding: 2rem 0 2rem 2.5rem;
}

.process__line {
  position: absolute;
  left: 0;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--border);
  overflow: visible;
}

.process__progress {
  width: 100%;
  height: 0%;
  background: var(--gradient-neon);
  box-shadow: var(--glow-primary);
  transform-origin: top;
}

.process__dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-50%);
  will-change: top;
}

.process__steps {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.process-step.is-visible {
  opacity: 0.5;
  transform: translateX(0);
}

.process-step.is-active {
  opacity: 1;
  transform: translateX(0);
}

.process-step.is-active .process-step__num {
  color: var(--primary);
  text-shadow: 0 0 20px hsl(168 100% 48% / 0.5);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: hsl(0 0% 100% / 0.12);
  line-height: 1;
  transition: color 0.3s, text-shadow 0.3s;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__copy p + p {
  margin-top: 1rem;
}

.about__copy p {
  color: var(--muted);
  max-width: 38rem;
}

.about__facts {
  border: 2px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
}

.about__facts-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.facts {
  display: grid;
  gap: 1.1rem;
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.facts dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.facts a:hover {
  color: var(--primary);
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, hsl(168 100% 48% / 0.08), transparent 55%),
    var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__direct {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact__direct li {
  display: grid;
  gap: 0.25rem;
}

.contact__direct span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__direct a {
  font-family: var(--font-display);
  font-weight: 600;
  transition: color 0.2s;
}

.contact__direct a:hover {
  color: var(--primary);
}

.contact__panel {
  position: relative;
  border: 2px solid var(--border);
  background: var(--card);
  padding: clamp(1.5rem, 3vw, 2rem);
  min-height: 28rem;
}

.form {
  display: grid;
  gap: 1.15rem;
}

.form__field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form__field abbr {
  text-decoration: none;
  color: var(--primary);
}

.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form__field.is-invalid input,
.form__field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px hsl(0 84% 60% / 0.15);
  animation: shake 0.4s var(--ease);
}

.form__error {
  min-height: 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--danger);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.form__field.is-invalid .form__error {
  opacity: 1;
  transform: translateY(0);
}

.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--card);
  animation: fade-in 0.45s var(--ease);
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.5rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: var(--glow-primary);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
}

.form-success p {
  color: var(--muted);
  max-width: 22rem;
  margin: 0 auto 0.75rem;
}

.form.is-hidden {
  display: none;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, hsl(255 72% 68% / 0.06), transparent 55%),
    var(--bg);
}

.faq__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 2px solid var(--border);
  background: var(--card);
  transition: border-color 0.25s var(--ease);
}

.faq__item[open] {
  border-color: hsl(168 78% 46% / 0.55);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.faq__item[open] summary::after {
  content: "–";
  border-color: var(--primary);
  transform: none;
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq__answer p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2rem;
}

.footer__brand {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer__brand p,
.footer__meta p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__desc {
  max-width: 28rem;
  line-height: 1.55;
}

.footer__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem !important;
}

.footer__nav,
.footer__legal-nav {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer__nav a,
.footer__legal-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer__nav a:hover,
.footer__legal-nav a:hover,
.footer__meta a:hover {
  color: var(--primary);
}

.footer__meta {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer__copy {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-page__inner {
  max-width: 760px;
}

.legal-page__eyebrow {
  margin-bottom: 0.75rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-page__updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--primary);
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

.shape--cube.float {
  animation-name: float-cube;
}

@keyframes float-cube {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(50deg) translateY(-16px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes network-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.5; r: 1.3; }
  50% { opacity: 1; }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__inner,
  .about__grid,
  .contact__grid,
  .faq__layout {
    grid-template-columns: 1fr;
  }

  .process__sticky {
    position: relative;
    top: 0;
    padding-block: 0 1rem;
  }

  .outcome-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .outcome-card__visual {
    min-height: 11rem;
    border-right: none;
    border-bottom: 1px solid hsl(0 0% 100% / 0.28);
  }
}


@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: hsl(215 20% 9% / 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
  }

  .nav__cta {
    text-align: center;
  }

  .shape--cube { left: 4%; top: 14%; width: 2.4rem; height: 2.4rem; }
  .shape--sphere { right: 6%; width: 2.8rem; height: 2.8rem; }
  .shape--pyramid { left: 12%; border-left-width: 1.4rem; border-right-width: 1.4rem; border-bottom-width: 2.4rem; }
  .shape--ring { right: 10%; width: 3.2rem; height: 3.2rem; }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float,
  .hero__glow,
  .hero__network line,
  .hero__network circle {
    animation: none !important;
  }
}
