@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Tailwind's Play CDN handles utility classes; this file only covers
   what utilities can't: web fonts, keyframes, and a couple of globals. */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

::selection {
  background: #E8B923;
  color: #081912;
}

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

/* One orchestrated hero moment — connection lines draw in, nodes settle. */
@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.hero-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pathLength: 1;
  animation: draw-line 1.1s ease-out forwards;
}
@keyframes settle-node {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.hero-node {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: settle-node 0.5s ease-out forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.7s ease both;
}

/* Homepage "Understanding Resilience" slider: cross-fade between slides. */
.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.slide:not(.is-active) {
  position: absolute;
  inset: 0;
}


/* =========================================================
   Ambient circuit-board background for dark (brand-950) sections
   ========================================================= */
.bg-circuit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-circuit::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%20%3Cg%20fill%3D%27none%27%20stroke%3D%27%234FA97A%27%20stroke-width%3D%271.4%27%3E%20%3Cpath%20d%3D%27M0%2024%20H40%20V56%20H88%20V24%20H160%27/%3E%20%3Cpath%20d%3D%27M24%200%20V40%20H56%27%20/%3E%20%3Cpath%20d%3D%27M0%20100%20H32%20V132%20H72%20V160%27/%3E%20%3Cpath%20d%3D%27M120%200%20V32%20H160%27/%3E%20%3Cpath%20d%3D%27M100%20160%20V128%20H140%20V88%20H160%27/%3E%20%3Cpath%20d%3D%27M0%20140%20H16%27/%3E%20%3Cpath%20d%3D%27M130%2060%20H160%27/%3E%20%3Cpath%20d%3D%27M60%2088%20H88%20V120%27/%3E%20%3C/g%3E%20%3Cg%20fill%3D%27%234FA97A%27%3E%20%3Ccircle%20cx%3D%2740%27%20cy%3D%2724%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2788%27%20cy%3D%2724%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2788%27%20cy%3D%2756%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2724%27%20cy%3D%2740%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2756%27%20cy%3D%2740%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2732%27%20cy%3D%27100%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2732%27%20cy%3D%27132%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2772%27%20cy%3D%27132%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%27120%27%20cy%3D%2732%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%27100%27%20cy%3D%27128%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%27140%27%20cy%3D%27128%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%27140%27%20cy%3D%2788%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%27130%27%20cy%3D%2760%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2760%27%20cy%3D%2788%27%20r%3D%272.6%27/%3E%20%3Ccircle%20cx%3D%2788%27%20cy%3D%27120%27%20r%3D%272.6%27/%3E%20%3C/g%3E%20%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.22;
  animation: circuit-drift 50s linear infinite;
}
.bg-circuit::after {
  /* soft diagonal scanning beam, echoing a security-scan sweep */
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 55%;
  height: 160%;
  background: linear-gradient(100deg, transparent 42%, rgba(79, 169, 122, 0.16) 50%, transparent 58%);
  animation: circuit-scan 8s ease-in-out infinite;
}
@keyframes circuit-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-160px, -160px); }
}
@keyframes circuit-scan {
  0%, 100% { transform: translateX(0%); }
  50%      { transform: translateX(220%); }
}

.circuit-pulse {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4FA97A;
  box-shadow: 0 0 10px 3px rgba(79, 169, 122, 0.85);
  animation: circuit-pulse-fade 3.4s ease-in-out infinite;
}
@keyframes circuit-pulse-fade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1); }
}

/* Faint biometric-scan silhouette, a quiet nod to the reference footage */
.circuit-scan-mark {
  position: absolute;
  opacity: 0.07;
  animation: circuit-mark-pulse 4.5s ease-in-out infinite;
}
@keyframes circuit-mark-pulse {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.14; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-circuit::before, .bg-circuit::after, .circuit-pulse, .circuit-scan-mark {
    animation: none;
  }
}

/* =========================================================
   Our Expertise — continuously auto-scrolling card strip
   ========================================================= */
.expertise-track-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.expertise-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 16px;
  animation: expertise-scroll 38s linear infinite;
}
.expertise-track-wrap:hover .expertise-track,
.expertise-track:focus-within {
  animation-play-state: paused;
}
@keyframes expertise-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.expertise-card {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 248px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  box-shadow: 0 1px 2px rgba(16,22,15,0.06), 0 10px 22px -12px rgba(16,22,15,0.28);
}
@media (min-width: 768px) {
  .expertise-card { width: 340px; height: 276px; }
}
.expertise-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.expertise-card:hover img {
  transform: scale(1.06);
}
.expertise-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,18,13,0.88) 0%, rgba(8,18,13,0.25) 48%, rgba(8,18,13,0.05) 72%);
}
.expertise-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .expertise-track { animation: none; }
}

/* =========================================================
   Lightbox-trigger affordance (the "click to enlarge" hint)
   ========================================================= */
.lightbox-trigger {
  position: relative;
  cursor: zoom-in;
}
.lightbox-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(8, 25, 18, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.lightbox-trigger:hover .lightbox-hint,
.lightbox-trigger:focus-visible .lightbox-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox prev/next arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
/* Explicit show/hide, so this always wins over Tailwind's .hidden utility
   regardless of which stylesheet the CDN script happens to inject last. */
.lightbox-nav.hidden {
  display: none !important;
}
.lightbox-nav:not(.hidden) {
  display: flex;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-nav[data-dir="prev"] { left: 8px; }
.lightbox-nav[data-dir="next"] { right: 8px; }
@media (min-width: 768px) {
  .lightbox-nav[data-dir="prev"] { left: -64px; }
  .lightbox-nav[data-dir="next"] { right: -64px; }
}
