/* InfraYantra Labs — supplemental (Tailwind handles layout; this covers motion, print, a11y) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scientific grid overlay (beyond Tailwind utilities) */
.lab-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.telemetry-chip {
  border: 1px solid rgb(56 189 248 / 0.28);
  background: linear-gradient(135deg, rgb(8 47 73 / 0.45), rgb(15 23 42 / 0.65));
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(165 243 252 / 0.95);
  box-shadow: inset 0 0 0 1px rgb(34 211 238 / 0.08), 0 8px 24px -18px rgb(34 211 238 / 0.65);
}

.lab-panel {
  position: relative;
  overflow: hidden;
}

.lab-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgb(15 23 42 / 0.18) 1px, transparent 1px), linear-gradient(to bottom, rgb(15 23 42 / 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
}

.lab-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(34 211 238 / 0.08), transparent 22%, transparent 72%, rgb(34 211 238 / 0.04));
}

.metric-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgb(34 211 238 / 0.35);
  box-shadow: 0 0 0 1px rgb(34 211 238 / 0.14), 0 18px 40px -22px rgb(34 211 238 / 0.42);
}

/* Hero diagram subtle pulse */
@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

.hero-diagram .pulse-ring {
  animation: pulse-soft 4s ease-in-out infinite;
}

@keyframes scanline {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

.hero-diagram::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(34 211 238 / 0.14), transparent);
  animation: scanline 7s linear infinite;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "+";
  float: right;
  color: rgb(103 232 249 / 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

details[open] > summary::after {
  content: "-";
}

@media print {
  header,
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

@supports (content-visibility: auto) {
  #capabilities,
  #outcomes,
  #services,
  #approach,
  #faq,
  #contact {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}
