:root {
  --text: #edf3ff;
  --muted: #9ca9c0;
  --line: rgba(167, 198, 255, 0.14);
  --accent: #72b7ff;
  --accent-2: #8a7dff;
  --accent-3: #65ffd1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  /* Fluid gutters: scales with viewport, respects notched devices */
  --gutter-x: clamp(14px, 3.2vw + 6px, 32px);
  /** Max readable width inside main; horizontal inset comes from .section-shell only */
  --container: min(1220px, 100%);
  --section-gap: clamp(1rem, 0.5rem + 2.2vw, 2rem);
  --section-padding-y: clamp(1.35rem, 0.8rem + 3.2vw, 2.75rem);
  /* Floating action buttons (WhatsApp + scroll-to-top): shared size & alignment */
  --fab-size: 52px;
  --fab-icon-size: 26px;
  --fab-offset-bottom: max(1.5rem, env(safe-area-inset-bottom));
  --fab-offset-inline: max(1.5rem, env(safe-area-inset-left));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  cursor: none;
}

body {
  margin: 0;
  width: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(114, 183, 255, 0.06), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(138, 125, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #000000 0%, #020408 25%, #03060a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-scrolled .site-header {
  background: rgba(0, 2, 6, 0.88);
  border-color: rgba(148, 190, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.preload-lock {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #070b14;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid white;
  outline-offset: 2px;
}

.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.page-404__content {
  max-width: 480px;
}

.page-404__logo img {
  height: 80px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.page-404__title {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-404__message {
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.page-404__btn {
  display: inline-flex;
}

.page-404 .button,
.page-404 a {
  cursor: none;
}

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

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

button,
a,
.tilt-card,
.magnetic {
  cursor: none;
}

@media (pointer: coarse) {
  html {
    cursor: auto;
  }

  button,
  a,
  .tilt-card,
  .magnetic {
    cursor: pointer;
  }

  .cursor {
    display: none;
  }
}

.section-shell {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding-left: max(var(--gutter-x), env(safe-area-inset-left));
  padding-right: max(var(--gutter-x), env(safe-area-inset-right));
  box-sizing: border-box;
}

.section {
  padding: var(--section-padding-y) 0;
}

.section:not(#hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

#services.section {
  content-visibility: visible;
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  /* Horizontal rhythm lives on .section-shell; keep only notch “margin” here */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  max-width: 100%;
  box-sizing: border-box;
}

.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-noise,
.page-glow,
.scroll-progress,
.cursor {
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.45) 0.6px, transparent 0.7px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.22) 0.6px, transparent 0.7px);
  background-size: 18px 18px;
  mix-blend-mode: soft-light;
}

.page-glow {
  position: fixed;
  inset: auto;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.page-glow--one {
  top: -180px;
  left: -120px;
  background: rgba(114, 183, 255, 0.65);
}

.page-glow--two {
  right: -160px;
  top: 20vh;
  background: rgba(138, 125, 255, 0.5);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  z-index: 50;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 20px rgba(114, 183, 255, 0.6);
}

.cursor {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.cursor--dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 18px rgba(114, 183, 255, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(
    calc(
      100vw - max(var(--gutter-x), env(safe-area-inset-left)) -
        max(var(--gutter-x), env(safe-area-inset-right))
    ),
    1260px
  );
  margin: 8px auto 0;
  padding: clamp(12px, 1.35vw + 8px, 16px) clamp(14px, 2.2vw + 8px, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand--header {
  gap: 0.5rem;
}

.brand__logo {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.brand--header .brand__logo {
  height: 88px;
}

.brand__name {
  display: none;
}

.brand--header .brand__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand--header .brand__line {
  display: block;
}

.brand--header .brand__line:first-child {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand--header .brand__line:last-child {
  font-size: 0.7rem;
  font-weight: 400;
}

@media (max-width: 720px) {
  .brand--header .brand__name {
    display: flex;
  }
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  --button-bg: linear-gradient(135deg, rgba(114, 183, 255, 0.92), rgba(138, 125, 255, 0.92));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(130, 191, 255, 0.15);
  background: var(--button-bg);
  box-shadow: 0 12px 30px rgba(87, 126, 255, 0.3);
  color: white;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(87, 126, 255, 0.36);
}

.button--ghost {
  --button-bg: rgba(255, 255, 255, 0.02);
  color: var(--text);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 35, 0.65), rgba(10, 17, 29, 0.9));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(158, 198, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 183, 255, 0.78), transparent);
}

.hero {
  position: relative;
  padding-top: 10px;
  padding-bottom: 0;
  min-height: 0;
}

.hero__beam {
  position: absolute;
  pointer-events: none;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.hero__beam--one {
  top: 10%;
  left: -80px;
  background: rgba(114, 183, 255, 0.6);
}

.hero__beam--two {
  right: -120px;
  top: 18%;
  background: rgba(138, 125, 255, 0.5);
}

.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  margin: 12px 0 16px;
  max-width: 28ch;
  font-size: clamp(1.55rem, 3.35vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero__title .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
}

.hero__title .split-word--space {
  min-width: 0.3em;
  user-select: none;
}

.reveal.is-visible .hero__title.is-split.is-visible .split-word,
.hero__title.is-split.is-visible .split-word {
  animation: splitReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-split-text].is-split .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
}

[data-split-text].is-split .split-word--space {
  min-width: 0.3em;
  user-select: none;
}

[data-split-text].is-split.is-visible .split-word {
  animation: splitReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .split-word,
  [data-split-text] .split-word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes splitReveal {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title-line {
  display: block;
}

.hero__title .hero__title-line .split-word {
  color: transparent;
  background: linear-gradient(135deg, #ffffff 20%, #b2d6ff 55%, #8d87ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__title > .split-word {
  color: var(--text);
}

.hero__copy {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__mini-grid {
  margin-top: clamp(26px, 4vw + 12px, 38px);
  max-width: 520px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw + 6px, 14px);
}

.hero-stat {
  padding: 22px 20px;
}

.hero-stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.hero__visual {
  display: grid;
  gap: 18px;
  justify-items: end;
  align-items: center;
}

.hero__robot-wrap {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1400px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  transform: perspective(1400px) translateZ(20px) scale3d(1.02, 1.02, 1);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 40px rgba(114, 183, 255, 0.08));
}

.hero__robot-wrap:hover {
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 50px rgba(114, 183, 255, 0.1));
}

.hero__robot-stack {
  position: relative;
  display: block;
  line-height: 0;
}

.hero__robot {
  display: block;
  max-width: 100%;
  width: min(100%, 520px);
  height: auto;
  max-height: 580px;
  min-height: 400px;
  object-fit: contain;
  object-position: right center;
}

.hero__robot-stack .hero__robot--bw {
  position: relative;
  z-index: 1;
}

.hero__robot-stack .hero__robot--color {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero__robot-wrap:hover .hero__robot-stack .hero__robot--color,
.hero__robot-stack:hover .hero__robot--color {
  opacity: 1;
  transform: scale(1);
}

.hero__earth-wrap {
  position: absolute;
  left: 52%;
  top: 68%;
  transform: translate(-50%, -50%) translateZ(12px) scale(1.05);
  transform-style: preserve-3d;
  width: 180px;
  height: 180px;
  z-index: 2;
  pointer-events: none;
}

.hero__earth-wrap::before {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(114, 183, 255, 0.06) 0%,
    transparent 50%
  );
  z-index: -1;
}

.hero__earth-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(100, 150, 200, 0.12) 0%,
    transparent 55%
  );
  z-index: 0;
  pointer-events: none;
}

.hero__earth-wrap .hero__earth[src] {
  position: relative;
  z-index: 1;
}

.hero__earth {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.hero__scroll-hint,
.hero__scroll-hint .hero__scroll-hint-text {
  color: #ffffff !important;
  text-shadow: 0 0 30px rgba(114, 183, 255, 1), 0 0 60px rgba(114, 183, 255, 0.6) !important;
}

body.nav-scrolled .hero__scroll-hint {
  opacity: 0.3;
  pointer-events: none;
}

.hero__scroll-hint-arrow {
  width: 24px;
  height: 24px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 16px rgba(114, 183, 255, 1));
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

.hero__marquee {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(165, 196, 255, 0.1);
  border-bottom: 1px solid rgba(165, 196, 255, 0.1);
  background: rgba(7, 11, 18, 0.55);
}

.hero__marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  min-width: max-content;
  padding-left: 38px;
  color: rgba(235, 243, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.88rem;
  animation: marquee 26s linear infinite;
}

.hero__marquee-track span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 16px rgba(114, 183, 255, 0.55);
}

.section-heading h2,
.showcase__title,
.contact__intro h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading p,
.showcase__lead p,
.contact__intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: clamp(0.94rem, 0.9rem + 0.38vw, 1.06rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1rem;
}

/* Services section */
.services__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

.services__robot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services__robot .hero__robot {
  width: min(100%, 320px);
  max-height: 420px;
  min-height: 280px;
}

.services__header {
  margin-bottom: 0;
  text-align: right;
}

.services__header .section-heading {
  margin-left: auto;
}

.services__header .section-heading p {
  margin-left: auto;
}

#services .services__header .section-heading {
  margin-bottom: 0.35rem;
}

.service-grid,
.process-grid,
.contact__grid {
  display: grid;
  gap: 1.25rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid__extras {
  grid-column: 1 / -1;
  align-self: start;
  /* Without min-height: 0, grid min-content size ignores max-height and stays tall */
  min-height: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.service-grid__extras.is-open {
  max-height: 8000px;
  opacity: 1;
  pointer-events: auto;
}

.service-grid__extras-inner {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  transform: translateY(14px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-grid__extras.is-open .service-grid__extras-inner {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .service-grid__extras {
    transition: none;
  }

  .service-grid__extras-inner {
    transition: none;
  }
}

.services__more-wrap {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

#services .services__more-wrap--in-intro {
  justify-content: flex-end;
}

.services__more-wrap--after-cards {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

.services__more-btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
}

a.services__more-link-page {
  text-decoration: none;
}

/* Centered footer CTA row (Industries, Process) — matches Services ghost control sizing */
.section-cta {
  margin-top: 1.75rem;
  margin-bottom: 0.15rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Modern service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.15), transparent 40%, transparent 60%, rgba(138, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-card__accent {
  transform: scaleY(1);
}

.service-card__content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: rgba(230, 242, 255, 1);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  flex-grow: 1;
}

.service-card__features {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: rgba(231, 239, 255, 0.88);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.4s ease;
}

@media (hover: hover) {
  .service-card__features li {
    opacity: 0.7;
    transform: translateX(-4px);
  }
  .service-card:hover .service-card__features li {
    opacity: 1;
    transform: translateX(0);
  }
  .service-card:hover .service-card__features li:nth-child(1) { transition-delay: 0.05s; }
  .service-card:hover .service-card__features li:nth-child(2) { transition-delay: 0.1s; }
  .service-card:hover .service-card__features li:nth-child(3) { transition-delay: 0.15s; }
}

.service-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 8px rgba(114, 183, 255, 0.5);
}

/* Process cards - same box & animation as service cards */
.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.15), transparent 40%, transparent 60%, rgba(138, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.process-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.2);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-card:hover .process-card__accent {
  transform: scaleY(1);
}

.process-card__content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.process-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.process-card:hover h3 {
  color: rgba(230, 242, 255, 1);
}

.process-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Contact cards - same box & animation as service cards */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.15), transparent 40%, transparent 60%, rgba(138, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.2);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-card__accent {
  transform: scaleY(1);
}

.contact-card__content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card__label {
  display: inline-flex;
  margin-bottom: 4px;
  color: rgba(172, 211, 255, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.contact-card strong,
.contact-card a {
  margin: 0;
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.contact-card:hover strong,
.contact-card:hover a {
  color: rgba(230, 242, 255, 1);
}

.contact-card a + a {
  margin-top: 4px;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Reel Card */
.video-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.reel-heading {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  position: relative;
}

.reel-heading__text {
  display: inline-block;
}

.reel-heading__text:not([data-split-text]) {
  opacity: 0;
  transform: translateY(20px);
}

.reel-heading.is-visible .reel-heading__text:not(.is-split) {
  animation: reel-heading-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reel-heading__text[data-split-text].is-split {
  opacity: 1;
}

.reel-heading__line {
  display: block;
  width: 0;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.reel-heading.is-visible .reel-heading__line {
  animation: reel-line-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes reel-heading-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reel-line-in {
  to {
    width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-heading__text {
    opacity: 1;
    transform: none;
  }
  .reel-heading__line {
    width: 80px;
  }
  .reel-heading.is-visible .reel-heading__text,
  .reel-heading.is-visible .reel-heading__line {
    animation: none;
  }
}

.reel-card {
  max-width: 720px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.reel-card__link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.reel-card__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0e18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card__link:hover .reel-card__thumb {
  transform: scale(1.03);
}

.reel-card__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  clip-path: polygon(36% 22%, 36% 78%, 82% 50%);
  transform: scale(0.85);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.reel-card__link:hover .reel-card__play {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  transform: scale(1);
}

.reel-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reel-card__link:hover .reel-card__glow {
  opacity: 0.6;
  animation: reel-glow 3s ease-in-out infinite;
}

@keyframes reel-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 2, 8, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.video-modal__wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.video-modal.is-open .video-modal__wrap {
  transform: scale(1);
  opacity: 1;
}

.video-modal__content {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.video-modal__content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.showcase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.showcase__intro-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  width: 100%;
  max-width: 1100px;
}

.showcase__eyebrow-above {
  display: inline-flex;
  margin: 0;
  align-self: flex-start;
  font-size: 0.88rem;
}

.showcase__copy-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.showcase__header-inner {
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.showcase__header-inner .showcase__title {
  margin: 0;
  font-size: clamp(1.52rem, 2.8vw, 2.48rem);
  line-height: 1.14;
  letter-spacing: -0.032em;
  white-space: normal;
}

.showcase__intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, clamp(148px, 17.5vw, 238px));
  gap: clamp(0.85rem, 2.2vw, 1.35rem) clamp(0.85rem, 2.5vw, 1.65rem);
  align-items: start;
  margin-bottom: 0;
  width: 100%;
}

.showcase__intro-row .showcase__lead {
  max-width: 720px;
  margin: 0;
  padding-top: 0;
}

.showcase__intro-row .showcase__lead p {
  font-size: 1.075rem;
  line-height: 1.72;
}

.showcase__lead {
  min-width: 0;
}

.showcase__media-cluster {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: clamp(122px, 15vw, 198px);
  max-height: 198px;
  align-self: start;
  justify-self: end;
  box-sizing: border-box;
  overflow: visible;
}

.showcase-cluster__cell {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(165, 201, 255, 0.14);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.65), rgba(8, 14, 24, 0.88));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  min-height: 0;
  cursor: pointer;
  transition: border-color 0.38s ease, box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
  z-index: 1;
}

.showcase-cluster__cell:hover {
  z-index: 3;
  border-color: rgba(114, 183, 255, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(114, 183, 255, 0.28),
    0 0 36px rgba(114, 183, 255, 0.22);
}

.showcase-cluster__cell--tall {
  grid-row: 1 / -1;
}

.showcase-cluster__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.showcase-cluster__cell:hover img {
  transform: scale(1.1);
  filter: brightness(1.08) saturate(1.06) contrast(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .showcase-cluster__cell {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .showcase-cluster__cell img {
    transition: filter 0.2s ease;
  }

  .showcase-cluster__cell:hover img {
    transform: scale(1.02);
    filter: brightness(1.04);
  }
}

.showcase .feature-list.showcase__features {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.showcase .feature-list.showcase__features--home-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .showcase .feature-list.showcase__features--home-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showcase .feature-item--compact strong {
  font-size: 1.08rem;
}

.showcase .feature-item--compact p {
  font-size: 0.93rem;
}

@media (max-width: 800px) {
  .showcase__intro-wrap {
    margin-bottom: 1rem;
  }

  .showcase__intro-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0;
  }

  .showcase__media-cluster {
    width: min(310px, 86vw);
    height: 206px;
    max-height: 206px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .showcase .feature-list.showcase__features {
    grid-template-columns: 1fr;
  }

  .showcase .feature-list.showcase__features--home-six {
    grid-template-columns: 1fr;
  }

  .showcase__media-cluster {
    width: min(328px, 90vw);
    height: 190px;
    max-height: 190px;
  }

  .feature-item__content {
    padding: 1.1rem 1.2rem;
  }
}

.feature-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.feature-item--compact {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.feature-item--compact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.15), transparent 40%, transparent 60%, rgba(138, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-item--compact:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.2);
}

.feature-item--compact:hover::before {
  opacity: 1;
}

.feature-item__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item--compact:hover .feature-item__accent {
  transform: scaleY(1);
}

.feature-item__content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item--compact strong {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
  transition: color 0.3s ease;
}

.feature-item--compact:hover strong {
  color: rgba(230, 242, 255, 1);
}

.feature-item--compact p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.feature-item--compact.reveal {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-item--compact[data-delay="0"].reveal { transition-delay: 0.05s; }
.feature-item--compact[data-delay="1"].reveal { transition-delay: 0.12s; }
.feature-item--compact[data-delay="2"].reveal { transition-delay: 0.19s; }
.feature-item--compact[data-delay="3"].reveal { transition-delay: 0.26s; }

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.35rem;
}

.contact__cta {
  position: relative;
  margin-top: 22px;
  padding: 28px 28px 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.contact__cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
}

.contact__cta-lead,
.contact__cta-body {
  min-width: 0;
}

.contact__cta-lead {
  grid-column: 1 / -1;
  grid-row: 1;
}

.contact__cta-body {
  grid-column: 1;
  grid-row: 2;
}

.contact__cta-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.965rem;
  line-height: 1.62;
  text-wrap: pretty;
  max-width: 100%;
}

.contact__actions {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.contact__cta-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.15), transparent 40%, transparent 60%, rgba(138, 125, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact__cta:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.2);
}

.contact__cta:hover::before {
  opacity: 1;
}

.contact__cta:hover .contact__cta-accent {
  transform: scaleY(1);
}

.contact__cta h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.08;
  transition: color 0.3s ease;
}

.contact__cta:hover h3 {
  color: rgba(230, 242, 255, 1);
}

@media (min-width: 981px) {
  #services .section-heading > h2 {
    white-space: nowrap;
    font-size: clamp(1.55rem, 2.05vw + 0.75rem, 2.2rem);
  }

  .showcase__header-inner .showcase__title {
    white-space: nowrap;
  }

  .showcase__header-inner {
    max-width: none;
  }

  .showcase__header-inner .showcase__title {
    font-size: clamp(1.18rem, 1.65vw + 0.62rem, 2.05rem);
  }

  .contact__cta h3 {
    font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  }
}

@media (min-width: 1181px) {
  .contact__cta h3 {
    white-space: nowrap;
  }
}

.contact__form-wrap {
  position: relative;
  margin-top: 22px;
  padding: 28px 28px 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.1);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.85), rgba(8, 14, 24, 0.95));
  overflow: hidden;
}

.contact__form-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact__form-wrap:hover .contact__form-accent {
  transform: scaleY(1);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form h3 {
  margin: 8px 0 4px;
  font-size: 1.4rem;
}

.contact__form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact__form input,
.contact__form textarea {
  padding: 14px 18px;
  border: 1px solid rgba(165, 196, 255, 0.15);
  border-radius: 12px;
  background: rgba(5, 12, 22, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact__form input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 44px;
}

.contact__form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(203, 219, 244, 0.4);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: rgba(114, 183, 255, 0.4);
}

.contact-card a strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-card a:hover strong {
  color: var(--accent);
}

.contact__form-feedback {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.contact__form-feedback.is-success {
  color: var(--accent-3);
}

.contact__form-feedback.is-error {
  color: #ff6b6b;
}

.site-footer {
  margin-top: 4rem;
  padding: 0;
  color: rgba(203, 219, 244, 0.75);
  font-size: 0.9rem;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.4) 0%, rgba(3, 7, 14, 0.85) 100%);
  border-top: 1px solid rgba(165, 196, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-footer__main {
  padding-top: 2rem;
  padding-bottom: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr auto auto auto auto;
  gap: 2.5rem 2.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(165, 196, 255, 0.06);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.site-footer__logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.site-footer__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: rgba(203, 219, 244, 0.75);
  max-width: 22rem;
  font-weight: 500;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__nav a {
  color: rgba(203, 219, 244, 0.7);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 140px;
}

.site-footer__contact a {
  color: rgba(203, 219, 244, 0.75);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.site-footer__contact a:hover {
  color: var(--accent);
}

.site-footer__visit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.site-footer__address,
.site-footer__hours {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(203, 219, 244, 0.65);
}

.site-footer__address a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer__address a:hover {
  color: var(--accent);
}

.site-footer__connect {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(165, 196, 255, 0.5);
  margin-bottom: 0.25rem;
}

.site-footer__social {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 10px;
  width: fit-content;
}

.site-footer__visit .site-footer__map-link {
  margin: 0.25rem 0 0;
}

.site-footer__map-link a {
  font-size: 0.8rem;
  color: rgba(165, 196, 255, 0.55);
}

.site-footer__map-link a:hover {
  color: var(--accent);
}

.site-footer__note-wrap {
  border-top: 1px solid rgba(165, 196, 255, 0.08);
  padding: 1rem max(2rem, 5vw);
}

.site-footer__note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 52rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(203, 219, 244, 0.7);
  border: 1px solid rgba(165, 196, 255, 0.12);
  border-radius: 10px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
  color: var(--accent);
  border-color: rgba(114, 183, 255, 0.25);
  background-color: rgba(114, 183, 255, 0.06);
  transform: translateY(-1px);
}

.site-footer__social-icon {
  width: 18px;
  height: 18px;
}

.site-footer__bottom {
  padding: 0.75rem 0;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  text-align: right;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(203, 219, 244, 0.45);
  letter-spacing: 0.03em;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: var(--fab-offset-bottom);
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 45;
  width: var(--fab-size);
  height: var(--fab-size);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(165, 196, 255, 0.15);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.9), rgba(8, 14, 24, 0.95));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(203, 219, 244, 0.85);
  cursor: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease,
              border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  outline: none;
  border-color: rgba(114, 183, 255, 0.35);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(114, 183, 255, 0.2);
}

.scroll-to-top__icon {
  width: var(--fab-icon-size);
  height: var(--fab-icon-size);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card[data-delay="0"].reveal,
.process-card[data-delay="0"].reveal,
.contact-card[data-delay="0"].reveal { transition-delay: 0.05s; }
.service-card[data-delay="1"].reveal,
.process-card[data-delay="1"].reveal,
.contact-card[data-delay="1"].reveal { transition-delay: 0.12s; }
.service-card[data-delay="2"].reveal,
.process-card[data-delay="2"].reveal,
.contact-card[data-delay="2"].reveal { transition-delay: 0.19s; }
.service-card[data-delay="3"].reveal { transition-delay: 0.26s; }
.service-card[data-delay="4"].reveal { transition-delay: 0.33s; }
.service-card[data-delay="5"].reveal { transition-delay: 0.4s; }

.tilt-card {
  transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transition: transform 0.22s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: inset 0 0 0 2px rgba(165, 201, 255, 0.08);
}

.tilt-card:hover {
  border-color: rgba(114, 183, 255, 0.22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(165, 201, 255, 0.12);
}

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

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

  .contact__cta-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 0;
    align-items: stretch;
  }

  .contact__cta-lead,
  .contact__cta-body {
    grid-column: 1;
    grid-row: auto;
  }

  .contact__actions {
    grid-column: 1;
    grid-row: auto;
    align-self: stretch;
    width: 100%;
    justify-content: center;
  }

  .hero__visual {
    justify-items: center;
  }

  .hero__robot {
    max-height: min(520px, 62vh);
    min-height: 0;
  }

  .hero__earth-wrap {
    width: 140px;
    height: 140px;
    top: 66%;
    left: 52%;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    padding-bottom: 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__contact,
  .site-footer__visit {
    min-width: 0;
  }

  .site-footer__tagline {
    max-width: none;
  }

  .site-footer__brand-row {
    flex-wrap: wrap;
  }

  .site-footer__brand-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .site-footer__brand-row {
    flex-direction: column;
    align-items: center;
  }

  .site-footer__brand-text {
    align-items: center;
    text-align: center;
  }

  .site-footer__nav {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer__contact {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer__connect {
    grid-column: 1;
    grid-row: 3;
  }

  .site-footer__visit {
    grid-column: 2;
    grid-row: 3;
  }

  .site-footer__bottom {
    display: block;
    padding: 1rem 0 max(1.25rem, env(safe-area-inset-bottom));
  }

  .site-footer__copyright {
    font-size: 0.75rem;
    text-align: center;
    color: rgba(203, 219, 244, 0.6);
  }
}

@media (max-width: 1100px) {
  .hero__mini-grid,
  .service-grid,
  .process-grid,
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid__extras-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 480px) and (orientation: landscape) and (max-width: 960px) {
  .hero {
    padding-top: 4px;
  }

  .hero__robot {
    max-height: min(240px, 52vh);
    min-height: 0;
    width: auto;
    max-width: min(52vw, 420px);
  }

  .hero__mini-grid {
    margin-top: 16px;
  }

  .inner-hero:not(.inner-hero--services-hub) {
    padding-top: clamp(1rem, 5vh, 1.75rem);
    padding-bottom: clamp(1rem, 5vh, 1.85rem);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .site-header .brand {
    justify-content: center;
    order: 1;
  }

  .site-nav {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    order: 2;
  }

  .header-cta {
    display: none !important;
  }

  .services__intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services__robot {
    order: 2;
    justify-content: flex-start;
  }

  .services__header {
    order: 1;
    text-align: left;
  }

  .services__header .section-heading,
  .services__header .section-heading p {
    margin-left: 0;
  }

  #services .services__more-wrap--in-intro {
    display: none;
  }

  .services__more-wrap--after-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }

  #services .services__intro {
    gap: 0.55rem;
    margin-bottom: 0.35rem;
  }

  #services .services__robot {
    margin: 0;
    padding: 0;
  }

  #services .services__more-wrap--after-cards {
    justify-content: center;
  }

  /* Natural image height — avoid min-height bar dead space */
  #services .services__robot .hero__robot {
    width: min(88vw, 640px);
    max-height: min(82vh, 840px);
    min-height: 0;
    height: auto;
  }

  .hero__robot {
    min-height: 0;
  }

  .hero {
    padding-top: 10px;
  }

}

@media (max-width: 720px) {
  .services__robot {
    justify-content: center;
  }

  /* Phones: wide robot, height from aspect ratio (no min-height gutter) */
  #services .services__robot .hero__robot {
    width: min(96vw, 520px);
    max-height: min(78vh, 680px);
    min-height: 0;
    height: auto;
  }

  .service-card__content {
    padding: 1.5rem 1.25rem;
  }

  body {
    cursor: auto;
  }

  button,
  a,
  .tilt-card,
  .magnetic {
    cursor: pointer;
  }

  .cursor {
    display: none;
  }

  .section {
    padding: 1.65rem 0;
  }

  main {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-header {
    width: min(
      calc(
        100vw - max(var(--gutter-x), env(safe-area-inset-left)) -
          max(var(--gutter-x), env(safe-area-inset-right))
      ),
      1260px
    );
    max-width: calc(100% - 16px);
    margin: 8px auto 0;
    border-radius: 20px;
  }

  .brand--header .brand__logo {
    height: 56px;
  }

  .site-nav {
    font-size: 0.88rem;
  }

  .hero__marquee {
    width: 100%;
    max-width: 100%;
  }

  .hero__title {
    max-width: none;
  }

  .hero__mini-grid,
  .service-grid,
  .process-grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .service-grid__extras-inner {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .contact__actions {
    justify-content: center;
  }

  .contact__cta {
    padding: 22px;
  }

  .scroll-to-top {
    background: rgba(12, 20, 35, 0.25);
    border-color: rgba(165, 196, 255, 0.06);
    box-shadow: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .scroll-to-top:hover,
  .scroll-to-top:focus-visible {
    background: rgba(12, 20, 35, 0.45);
    border-color: rgba(114, 183, 255, 0.18);
    box-shadow: 0 0 16px rgba(114, 183, 255, 0.1);
  }

  .whatsapp-fab {
    background: rgba(12, 20, 35, 0.25);
    border-color: rgba(165, 196, 255, 0.06);
    box-shadow: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .whatsapp-fab:hover,
  .whatsapp-fab:focus-visible {
    background: rgba(12, 20, 35, 0.45);
    border-color: rgba(114, 183, 255, 0.18);
    box-shadow: 0 0 16px rgba(114, 183, 255, 0.1);
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Homepage additions: industries, form select, WhatsApp --- */

.section-heading .lead {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 760px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}

.service-card__link:hover {
  color: var(--accent-3);
}

.surface-panel .industries-grid {
  margin-top: 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 2vw + 8px, 18px);
  margin-top: 2rem;
}

.industry-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(165, 196, 255, 0.1);
  background: linear-gradient(155deg, rgba(12, 20, 35, 0.72), rgba(6, 12, 22, 0.92));
}

.industry-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact__form select {
  padding: 14px 18px;
  min-height: 44px;
  border: 1px solid rgba(165, 196, 255, 0.15);
  border-radius: 12px;
  background: rgba(5, 12, 22, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.contact__form select:focus {
  outline: none;
  border-color: rgba(114, 183, 255, 0.4);
}

.contact__form select option {
  background: #0a1628;
  color: var(--text);
}

.whatsapp-fab {
  position: fixed;
  left: max(1.5rem, env(safe-area-inset-left));
  bottom: var(--fab-offset-bottom);
  z-index: 90;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(165, 196, 255, 0.15);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.72), rgba(8, 14, 24, 0.55));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(203, 219, 244, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, background 0.25s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(114, 183, 255, 0.35);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(114, 183, 255, 0.2);
}

.whatsapp-fab svg {
  width: var(--fab-icon-size);
  height: var(--fab-icon-size);
}

body.page-inner {
  cursor: auto;
}

body.page-inner button,
body.page-inner a,
body.page-inner .tilt-card,
body.page-inner .magnetic {
  cursor: pointer;
}

.inner-hero {
  position: relative;
  padding: clamp(1.6rem, 4vw + 0.85rem, 2.35rem) 0 clamp(2rem, 4.5vw + 1rem, 2.85rem);
  overflow: hidden;
}

.inner-hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 183, 255, 0.25), transparent);
  opacity: 0.65;
  z-index: 0;
}

/* services.php — less space under site header; no rule line before service cards */
.inner-hero.inner-hero--services-hub {
  padding: 0.55rem 0 0.2rem;
}

.inner-hero.inner-hero--services-hub .inner-hero__toolbar {
  margin-bottom: 0.3rem;
}

.inner-hero.inner-hero--services-hub::after {
  display: none;
}

.inner-hero__toolbar {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.inner-hero__toolbar--cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.inner-hero__toolbar-glance {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 210, 255, 0.95) 0%, rgba(114, 183, 255, 0.25) 55%, transparent 70%);
  box-shadow: 0 0 12px rgba(114, 183, 255, 0.35);
  opacity: 0.88;
  flex-shrink: 0;
}

.inner-hero__stage {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.inner-hero__stage .eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.inner-hero__stage h1 {
  font-size: clamp(1.62rem, 3.35vw, 2.38rem);
  margin: 0 auto 1rem;
  max-width: min(100%, 32rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.inner-hero__stage .lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}

/* Services hub (services.php): mirrored robot | centered title/lead | robot */
.services-hub__hero-split {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(min(320px, 100%), min(38rem, 100%)) minmax(140px, 1fr);
  gap: clamp(0.85rem, 3vw, 2rem);
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

.services-hub__hero-copy {
  text-align: center;
  margin: 0 auto;
  max-width: 42rem;
  justify-self: center;
  padding-top: clamp(0.55rem, 1.5vw, 0.95rem);
  padding-bottom: clamp(0.65rem, 1.8vw, 1.1rem);
}

.services-hub__hero-copy h1 {
  font-size: clamp(1.62rem, 3.35vw, 2.38rem);
  margin: 0 auto 1.05rem;
  max-width: min(100%, 36rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.services-hub__hero-copy .lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}

.services-hub__hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.services-hub__hero-visual--mirror .hero__robot-stack--hub-duo {
  transform: scaleX(-1);
}

.hero__robot-stack--hub-duo .hero__robot {
  width: min(100%, clamp(160px, 22vw, 280px));
  height: auto;
  max-height: min(340px, 42vw);
  min-height: 0;
  object-position: center;
}

@media (max-width: 900px) {
  .services-hub__hero-split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.35rem;
    justify-items: center;
  }

  .services-hub__hero-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .services-hub__hero-visual--mirror {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    padding-right: 0.35rem;
  }

  .services-hub__hero-visual--right {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding-left: 0.35rem;
  }

  .hero__robot-stack--hub-duo .hero__robot {
    width: min(100%, clamp(140px, 38vw, 220px));
    max-height: min(280px, 48vw);
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .services-hub__hero-split {
    gap: 1rem;
  }
}

.inner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.inner-actions--center {
  justify-content: center;
}

.inner-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 182, 226, 0.12);
  background: rgba(3, 6, 12, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(226, 235, 255, 0.92);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.22s ease, background-color 0.25s ease;
}

.inner-back:hover,
.inner-back:focus-visible {
  outline: none;
  border-color: rgba(114, 183, 255, 0.32);
  color: var(--accent);
  background: rgba(8, 14, 24, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(114, 183, 255, 0.08);
  transform: translateY(-1px);
}

.inner-back__glyph {
  flex-shrink: 0;
  opacity: 0.88;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.inner-back:hover .inner-back__glyph,
.inner-back:focus-visible .inner-back__glyph {
  transform: translateX(-2px);
  opacity: 1;
}

.inner-back__label {
  padding-top: 1px;
}

.inner-back--home .inner-back__glyph--home {
  opacity: 0.92;
}

.inner-back--home:hover .inner-back__glyph--home,
.inner-back--home:focus-visible .inner-back__glyph--home {
  transform: none;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(114, 183, 255, 0.45));
}

.inner-back--home:hover .inner-back__glyph,
.inner-back--home:focus-visible .inner-back__glyph {
  transform: none;
}

.inner-back--home:hover,
.inner-back--home:focus-visible {
  border-color: rgba(114, 183, 255, 0.38);
}

/* Service sibling navigation (service detail pages) */
.service-sibling-nav {
  position: relative;
  padding: 2.5rem 0 4rem;
  margin-top: 0.25rem;
}

.service-sibling-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 183, 255, 0.22), transparent);
  opacity: 0.9;
}

.service-sibling-nav__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.85rem;
  position: relative;
}

.service-sibling-nav__orbit {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(134, 174, 226, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 55%);
  box-shadow:
    0 0 22px rgba(114, 183, 255, 0.25),
    inset 0 0 12px rgba(114, 183, 255, 0.12);
}

.service-sibling-nav__heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(152, 184, 226, 0.88);
}

.service-sibling-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 1.65rem);
  max-width: 58rem;
  margin: 0 auto;
  align-items: stretch;
}

.service-sibling-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(148, 182, 226, 0.14);
  background: rgba(5, 9, 16, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: rgba(232, 240, 255, 0.96);
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease;
}

.service-sibling-card__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(114, 183, 255, 0.55), rgba(140, 110, 255, 0.25));
  opacity: 0.85;
  transition: opacity 0.28s ease;
}

.service-sibling-card__rail--next {
  left: auto;
  right: 0;
  background: linear-gradient(180deg, rgba(140, 110, 255, 0.45), rgba(114, 183, 255, 0.35));
}

.service-sibling-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 10% 0%, rgba(114, 183, 255, 0.09), transparent 55%);
  opacity: 0.9;
}

.service-sibling-card--next::after {
  background: radial-gradient(ellipse 80% 70% at 92% 0%, rgba(140, 110, 255, 0.085), transparent 55%);
}

.service-sibling-card:hover,
.service-sibling-card:focus-visible {
  outline: none;
  border-color: rgba(114, 183, 255, 0.35);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(114, 183, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.service-sibling-card--next:hover,
.service-sibling-card--next:focus-visible {
  border-color: rgba(168, 130, 255, 0.32);
}

.service-sibling-card--hub {
  border-color: rgba(170, 200, 240, 0.18);
}

.service-sibling-card__chev {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 182, 226, 0.16);
  background: rgba(8, 14, 24, 0.65);
  color: rgba(186, 210, 252, 0.95);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 1;
}

.service-sibling-card:hover .service-sibling-card__chev,
.service-sibling-card:focus-visible .service-sibling-card__chev {
  border-color: rgba(114, 183, 255, 0.4);
  color: var(--accent);
  transform: scale(1.04);
}

.service-sibling-card--next:hover .service-sibling-card__chev,
.service-sibling-card--next:focus-visible .service-sibling-card__chev {
  border-color: rgba(168, 130, 255, 0.38);
}

.service-sibling-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.service-sibling-card--next .service-sibling-card__body {
  align-items: flex-end;
  text-align: right;
}

.service-sibling-card__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(158, 186, 224, 0.78);
}

.service-sibling-card__name {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-sibling-card--hub .service-sibling-card__name {
  color: rgba(194, 222, 255, 0.98);
}

@media (max-width: 720px) {
  .service-sibling-nav__grid {
    grid-template-columns: 1fr;
  }

  .service-sibling-nav {
    padding-bottom: 3.25rem;
  }
}

.prose-section {
  padding-bottom: 3.25rem;
}

.surface-panel {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.12);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.75), rgba(8, 14, 24, 0.92));
  padding: clamp(1.35rem, 4vw + 0.65rem, 2rem) clamp(1.1rem, 4vw + 0.85rem, 1.85rem);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.surface-panel:hover {
  border-color: rgba(114, 183, 255, 0.2);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(114, 183, 255, 0.08);
}

.surface-panel--spread {
  padding: 1.75rem 1.5rem;
}

.surface-panel .prose-block {
  max-width: 820px;
  margin: 0 auto;
}

.prose-block {
  max-width: 820px;
}

.prose-block h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose-block h2:first-child {
  margin-top: 0;
}

.prose-block p,
.prose-block li {
  color: var(--muted);
  line-height: 1.72;
}

.prose-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.prose-block li + li {
  margin-top: 0.35rem;
}

.services--hub-page {
  padding-top: 0;
  padding-bottom: 3rem;
  margin-top: calc(-1 * var(--section-gap));
}

.services--hub-page .service-grid {
  margin-top: 0;
}


@media (max-width: 560px) {
  .surface-panel {
    padding: 1.35rem 1.15rem;
  }

  .surface-panel--spread {
    padding: 1.35rem 1rem;
  }

  .inner-back {
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  }

  .inner-hero {
    padding: 1.75rem 0 2.25rem;
  }
}




.support-page__cta {
  padding-top: 0.25rem;
  padding-bottom: 3.25rem;
}

.support-cta {
  position: relative;
  padding: 2rem 2rem 2rem 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(165, 201, 255, 0.14);
  background: linear-gradient(145deg, rgba(12, 20, 35, 0.88), rgba(8, 14, 24, 0.96));
  overflow: hidden;
}

.support-cta__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}

.support-cta__body {
  max-width: 720px;
}

.support-cta h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.support-cta__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.support-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

@media (max-width: 560px) {
  .support-cta {
    padding: 1.35rem 1.15rem 1.35rem 1.35rem;
  }

  .support-cta__actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Homepage contact form - modern redesign */
.cform {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cform__head h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.15;
}

.cform__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Step indicator */
.cform__steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0 1.35rem;
  padding: 0;
}

.cform__step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  color: rgba(203, 219, 244, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cform__step:last-child {
  flex: 0 0 auto;
}

.cform__step:first-child::after {
  content: "";
  flex: 1;
  height: 2px;
  margin: 0 0.85rem;
  border-radius: 2px;
  background: rgba(165, 196, 255, 0.16);
  transition: background 0.4s ease;
}

.cform__step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(165, 196, 255, 0.1);
  border: 1px solid rgba(165, 196, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(203, 219, 244, 0.7);
  transition: all 0.3s ease;
}

.cform__step.is-active {
  color: rgba(230, 242, 255, 0.96);
}

.cform__step.is-active .cform__step-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: transparent;
  color: #061018;
  box-shadow: 0 6px 18px rgba(114, 183, 255, 0.32);
}

.cform__step.is-done .cform__step-dot {
  background: rgba(114, 183, 255, 0.2);
  border-color: rgba(114, 183, 255, 0.4);
  color: #cfe6ff;
}

.cform.is-step-2 .cform__step:first-child::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

/* Fields with floating labels */
.cform__field {
  position: relative;
  display: block;
}

.cform__field input,
.cform__field textarea,
.cform__field select {
  width: 100%;
  padding: 23px 16px 9px;
  border: 1px solid rgba(165, 196, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 12, 22, 0.55);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cform__field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

.cform__field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.cform__field input:hover,
.cform__field textarea:hover,
.cform__field select:hover {
  border-color: rgba(165, 196, 255, 0.28);
}

.cform__field input:focus,
.cform__field textarea:focus,
.cform__field select:focus {
  outline: none;
  border-color: rgba(114, 183, 255, 0.5);
  background: rgba(8, 16, 28, 0.72);
  box-shadow: 0 0 0 3px rgba(114, 183, 255, 0.14);
}

.cform__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(203, 219, 244, 0.55);
  font-size: 1rem;
  pointer-events: none;
  transition: top 0.16s ease, font-size 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.cform__label em {
  font-style: normal;
  opacity: 0.65;
}

.cform__field--area .cform__label {
  top: 18px;
  transform: none;
}

.cform__field input:focus + .cform__label,
.cform__field input:not(:placeholder-shown) + .cform__label,
.cform__field textarea:focus + .cform__label,
.cform__field textarea:not(:placeholder-shown) + .cform__label,
.cform__field--select.is-filled .cform__label,
.cform__field--select:focus-within .cform__label {
  top: 9px;
  transform: none;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(138, 190, 255, 0.92);
}

.cform__chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(165, 196, 255, 0.6);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cform__field--select:focus-within .cform__chevron {
  color: var(--accent);
  transform: translateY(-50%) rotate(180deg);
}

.cform__field select option {
  background: #0a1628;
  color: var(--text);
}

.cform__hint {
  margin: 0.7rem 0 0;
  font-size: 0.87rem;
  color: rgba(203, 219, 244, 0.55);
}

.cform__panel--topic {
  padding: 1.3rem 1.35rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(114, 183, 255, 0.07), rgba(138, 125, 255, 0.04));
  border: 1px solid rgba(114, 183, 255, 0.18);
}

/* Step 2 reveal */
.cform__panel--details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  margin-top: 0;
  transition:
    max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease,
    transform 0.42s ease,
    margin-top 0.42s ease;
}

.cform__panel--details.is-open {
  max-height: 860px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1.25rem;
}

/* Selected-topic chip */
.cform__chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(114, 183, 255, 0.14), rgba(138, 125, 255, 0.08));
  border: 1px solid rgba(114, 183, 255, 0.24);
}

.cform__chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-3, #8a7dff);
  box-shadow: 0 0 0 4px rgba(138, 125, 255, 0.18);
  flex: 0 0 auto;
}

.cform__chip-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  margin-right: auto;
  min-width: 0;
}

.cform__chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(203, 219, 244, 0.6);
}

.cform__chip-value {
  font-size: 1rem;
  color: rgba(230, 242, 255, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cform__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 196, 255, 0.28);
  background: rgba(5, 12, 22, 0.4);
  color: rgba(203, 219, 244, 0.88);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cform__edit svg {
  width: 15px;
  height: 15px;
}

.cform__edit:hover,
.cform__edit:focus-visible {
  outline: none;
  border-color: rgba(114, 183, 255, 0.5);
  color: #fff;
  background: rgba(114, 183, 255, 0.14);
}

.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.cform__field--full {
  grid-column: 1 / -1;
}

.cform__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.cform__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(203, 219, 244, 0.55);
}

.cform__submit {
  margin-left: auto;
}

@media (max-width: 560px) {
  .cform__grid {
    grid-template-columns: 1fr;
  }
  .cform__step-text {
    display: none;
  }
  .cform__step {
    gap: 0;
  }
  .cform__submit {
    width: 100%;
    margin-left: 0;
  }
  .cform__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cform__panel--details,
  .cform__label,
  .cform__chevron {
    transition: none;
  }
}

/* =====================================================================
   UI POLISH LAYER (additive only)
   Refines typography, spacing, color consistency, buttons, cards,
   hover/focus states and responsiveness. No structural/theme changes.
   ===================================================================== */

/* --- Typography rendering & balance --- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1, h2, h3, h4,
.section-heading h2,
.showcase__title,
.contact__intro h2 {
  text-wrap: balance;
}

/* Hero headline: keep natural line breaks (balance changed layout on mobile & desktop) */
.hero__title {
  text-wrap: wrap;
}

p, li {
  text-wrap: pretty;
}

/* Branded text selection */
::selection {
  background: rgba(114, 183, 255, 0.30);
  color: #ffffff;
  text-shadow: none;
}

/* Branded form-control accents */
input[type="checkbox"],
input[type="radio"],
progress {
  accent-color: var(--accent);
}

/* --- Branded scrollbar (desktop pointers only) --- */
@media (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 183, 255, 0.45) transparent;
  }
  ::-webkit-scrollbar {
    width: 11px;
    height: 11px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(114, 183, 255, 0.55), rgba(138, 125, 255, 0.55));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(114, 183, 255, 0.8), rgba(138, 125, 255, 0.8));
    background-clip: padding-box;
  }
}

/* --- Accessibility: consistent keyboard focus ring ---
   (cursor:none is used site-wide, so a clear focus ring matters) */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
.button--ghost:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Button polish: depth + active feedback + sheen on hover --- */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  letter-spacing: 0.01em;
  will-change: transform;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(120%);
}

.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 8px 22px rgba(87, 126, 255, 0.28);
}

/* Ghost button: clearer, more tactile hover */
.button--ghost {
  border-color: rgba(130, 191, 255, 0.22);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(130, 191, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

/* --- Nav links: subtle animated underline --- */
.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* --- Cards: consistent interactive lift --- */
.industry-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(114, 183, 255, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.industry-card h3 {
  transition: color 0.3s ease;
}

.industry-card:hover h3 {
  color: #ffffff;
}

/* --- Form fields: soft focus glow for a modern feel --- */
.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus,
.cform__field input:focus,
.cform__field textarea:focus,
.cform__field select:focus {
  box-shadow: 0 0 0 3px rgba(114, 183, 255, 0.16);
}

/* --- Service card link: arrow nudge on hover --- */
.service-card__link {
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-card:hover .service-card__link {
  gap: 10px;
}

/* --- Footer links: align hover affordance with nav --- */
.site-footer__nav a,
.site-footer__contact a,
.site-footer__map-link a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* --- Honor reduced-motion for all polish-layer motion --- */
@media (prefers-reduced-motion: reduce) {
  .button,
  .button::after,
  .site-nav a::after,
  .industry-card,
  .service-card__link {
    transition: none;
  }
  .button:active {
    transform: none;
  }
  .industry-card:hover {
    transform: none;
  }
}

/* =====================================================================
   MOBILE POLISH LAYER (additive, scoped to small screens / touch only)
   Improves tap targets, button consistency, tap feedback and spacing.
   No structural, content or functional changes.
   ===================================================================== */

/* Branded tap feedback instead of the default grey/black flash + keep
   form text at 16px so iOS Safari doesn't auto-zoom on focus. */
@media (pointer: coarse) {
  a,
  button,
  .button,
  summary,
  [role="button"],
  input,
  textarea,
  select {
    -webkit-tap-highlight-color: rgba(114, 183, 255, 0.18);
  }

  .cform__field input,
  .cform__field textarea,
  .cform__field select,
  .contact__form input,
  .contact__form textarea,
  .contact__form select {
    font-size: 16px;
  }
}

/* Comfortable, clearly tappable nav once the header stacks/wraps.
   (Native links were ~20px tall — below the ~44px touch guideline.) */
@media (max-width: 980px) {
  .site-nav {
    flex-wrap: nowrap;
    gap: 0.2rem 0.3rem;
    justify-content: center;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.32rem 0.42rem;
    font-size: 0.76rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--text);
    background: rgba(130, 191, 255, 0.1);
  }

  /* The sliding underline reads as clutter beside the pill on mobile */
  .site-nav a::after {
    display: none;
  }
}

/* Consistent, full-width stacked calls-to-action on phones.
   (Stacked buttons previously had mismatched widths.) */
@media (max-width: 560px) {
  .hero__actions,
  .contact__actions,
  .inner-actions {
    width: 100%;
  }

  .hero__actions .button,
  .contact__actions .button,
  .inner-actions .button {
    width: 100%;
    justify-content: center;
  }

  /* Evenly padded stat + content cards on the smallest screens */
  .hero-stat {
    padding: 18px 18px;
  }

  .industry-card {
    padding: 20px 18px;
  }
}

/* Consistent horizontal page margins across ALL sections on mobile.
   Sections that combine `.section-shell` with `.section` had their side
   gutter cancelled by `.section`'s `padding: <y> 0` shorthand, so their
   content ran edge-to-edge. On desktop the centered max-width container
   hides this; on mobile (full-width) it left no side margin — unlike the
   hero, which keeps its gutter via a separate inner `.section-shell`.
   Restore the exact same gutter so every section lines up with the hero. */
@media (max-width: 980px) {
  .section.section-shell {
    padding-left: max(var(--gutter-x), env(safe-area-inset-left));
    padding-right: max(var(--gutter-x), env(safe-area-inset-right));
  }

  /* Hero stat cards: center text on mobile */
  .hero__mini-grid {
    justify-items: center;
  }

  .hero-stat {
    text-align: center;
  }
}
