:root {
  --neon: #14f1df;
  --neon-soft: rgba(20, 241, 223, 0.14);
  --neon-faint: rgba(20, 241, 223, 0.055);
}

body {
  background:
    linear-gradient(110deg, transparent 0 48%, var(--neon-faint) 56%, transparent 68%),
    linear-gradient(180deg, #08090a 0%, var(--bg) 36rem);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 78%, rgba(20, 241, 223, 0.12), transparent 96%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(20, 241, 223, 0.018) 119px, transparent 120px);
  opacity: calc(0.38 + (var(--scroll-progress, 0) * 0.18));
  transform: translate3d(calc(var(--cursor-x, 0) * 10px), calc(var(--cursor-y, 0) * 8px), 0);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body::after {
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 241, 223, 0.18), transparent);
  width: 1px;
  left: calc(18% + (var(--scroll-progress, 0) * 62%));
  opacity: 0.28;
  transform: translateZ(0);
}

main {
  position: relative;
  z-index: 2;
}

.capability-statement {
  display: block;
}

.capability-statement .section-heading {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  margin-bottom: 0;
}

.capability-statement .section-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(28px, 3.7vw, 58px);
  line-height: 1.08;
  font-weight: 600;
}

.vine-network {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.76;
  mix-blend-mode: screen;
}

.vine-network svg {
  width: 100%;
  height: 120%;
  transform:
    translate3d(calc(var(--cursor-x, 0) * -12px), calc(var(--scroll-progress, 0) * -120px), 0)
    scale(1.05);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vine {
  fill: none;
  stroke: rgba(20, 241, 223, 0.2);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(20, 241, 223, 0.22));
  vector-effect: non-scaling-stroke;
}

.vine-main {
  stroke-width: 3.4;
  animation: vineBreath 8.5s ease-in-out infinite;
}

.vine-branch {
  stroke-width: 2.5;
  animation: vineBreath 10s ease-in-out infinite;
}

.vine-thread {
  stroke-width: 1.35;
  animation: vineBreath 11.5s ease-in-out infinite;
}

.vine-branch-a {
  animation-delay: -1.4s;
}

.vine-branch-b {
  animation-delay: -3s;
}

.vine-branch-c {
  animation-delay: -4.6s;
}

.vine-thread-a {
  animation-delay: -2.2s;
}

.vine-thread-b {
  animation-delay: -5.2s;
}

.vine-main-left {
  animation-delay: -2.8s;
}

.vine-branch-left-a {
  animation-delay: -4s;
}

.vine-thread-left-a {
  animation-delay: -6.2s;
}

@keyframes vineBreath {
  0%, 100% {
    opacity: 0.22;
    stroke: rgba(20, 241, 223, 0.12);
  }

  50% {
    opacity: 0.54;
    stroke: rgba(20, 241, 223, 0.25);
  }
}

.site-header {
  box-shadow: 0 1px 0 rgba(20, 241, 223, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 84px);
  right: clamp(20px, 4vw, 84px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 241, 223, 0.55), transparent);
  opacity: 0.35;
  transform: scaleX(calc(0.28 + (var(--scroll-progress, 0) * 0.72)));
  transform-origin: left center;
}

.hero::after,
.thesis::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto clamp(24px, 5vw, 98px) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 241, 223, 0.48), transparent);
  opacity: 0.35;
}

.hero h1,
.hero-copy p,
.text-link,
.section-marker,
.showcase-card,
.product-line,
.thesis h2,
.company h2,
.company div,
.capability-statement .section-heading,
.contact h2,
.email-link {
  will-change: opacity, transform;
}

.product-visual,
.thesis {
  position: relative;
}

.reveal-ready {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 780ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero .reveal-ready {
  transition-delay: var(--reveal-delay, 0ms);
}

.showcase-card {
  border-color: rgba(244, 244, 241, 0.16);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease,
    opacity 240ms ease;
}

.showcase-card::after,
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(20, 241, 223, 0.24), transparent 32%),
    linear-gradient(315deg, rgba(20, 241, 223, 0.14), transparent 38%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 240ms ease;
}

.showcase-card:hover,
.showcase-card.is-focused,
.product-visual:hover,
.product-visual.is-focused {
  border-color: rgba(20, 241, 223, 0.44);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(20, 241, 223, 0.14);
}

.showcase-card:hover::after,
.showcase-card.is-focused::after,
.product-visual:hover::after,
.product-visual.is-focused::after {
  opacity: 0.5;
}

.showcase-card img,
.product-visual img {
  transition:
    filter 260ms ease,
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover img,
.showcase-card.is-focused img,
.product-visual:hover img,
.product-visual.is-focused img {
  filter: grayscale(0.78) contrast(1.15) brightness(0.9);
  opacity: 0.96;
}

.product-line {
  transition:
    border-color 240ms ease,
    opacity 780ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-line:hover {
  border-color: rgba(20, 241, 223, 0.32);
}

.product-number,
.product-status,
.text-link,
.email-link {
  transition: color 220ms ease, border-color 220ms ease, text-shadow 220ms ease;
}

.product-line:hover .product-number,
.product-line:hover .product-status,
.text-link:hover,
.email-link:hover {
  color: var(--neon);
  border-color: rgba(20, 241, 223, 0.42);
  text-shadow: 0 0 18px rgba(20, 241, 223, 0.22);
}

.motion-click {
  cursor: pointer;
}

.motion-click:focus-visible {
  outline: 2px solid rgba(20, 241, 223, 0.7);
  outline-offset: 4px;
}

.motion-pulse {
  animation: focusPulse 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes focusPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.018);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .showcase-signals {
    animation: floatSignals 8.5s ease-in-out infinite;
  }

  .showcase-cancelcue {
    animation: floatCancelCue 7.5s ease-in-out infinite;
  }

  .showcase-fieldops {
    animation: floatFieldOps 9s ease-in-out infinite;
  }

  .showcase-fixigo {
    animation: floatFixigo 8s ease-in-out infinite;
  }
}

@keyframes floatSignals {
  0%, 100% {
    transform: rotate(-1.5deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-1deg) translate3d(0, -10px, 0);
  }
}

@keyframes floatCancelCue {
  0%, 100% {
    transform: rotate(2deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(1.4deg) translate3d(8px, -12px, 0);
  }
}

@keyframes floatFieldOps {
  0%, 100% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(1.6deg) translate3d(-8px, 8px, 0);
  }
}

@keyframes floatFixigo {
  0%, 100% {
    transform: rotate(-2deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-1.2deg) translate3d(10px, 8px, 0);
  }
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .capability-statement .section-heading {
    grid-template-columns: 1fr;
  }
}
