/* ==========================================================================
   A00 Motion & Architectural Animation Layer
   Industrial precision: subtle SVG signal pulses, scroll reveals, glass depth
   ========================================================================== */

/* Top Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #1a56db 0%, #3b82f6 55%, #34d399 100%);
  z-index: 300;
  transition: width 0.08s linear;
}

/* Scroll-Triggered Reveal System */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Animated SVG Signal & Coolant Flows */
@keyframes flowDash {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

@keyframes flowDashReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 36; }
}

@keyframes pulseNode {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes scanShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

.svg-flow {
  stroke-dasharray: 6 6;
  animation: flowDash 1.6s linear infinite;
}

.svg-flow-slow {
  stroke-dasharray: 8 8;
  animation: flowDash 2.8s linear infinite;
}

.svg-flow-reverse {
  stroke-dasharray: 6 6;
  animation: flowDashReverse 2s linear infinite;
}

.svg-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseNode 2.4s ease-in-out infinite;
}

.svg-float {
  animation: subtleFloat 5.5s ease-in-out infinite;
}

/* ==========================================================================
   Hero Architectural Lattice Canvas Layer
   ========================================================================== */
.hero {
  overflow: hidden;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, #000 55%, transparent 100%);
}

.hero-canvas__el {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

/* ==========================================================================
   Interactive Card Radial Spotlight & Animated Border Traces
   ========================================================================== */
.card-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, -999px) var(--my, -999px),
    rgba(26, 86, 219, 0.085),
    rgba(14, 159, 110, 0.035) 45%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}

.section--dark .card-glow::before,
.section--dark-elevated .card-glow::before {
  background: radial-gradient(
    380px circle at var(--mx, -999px) var(--my, -999px),
    rgba(59, 130, 246, 0.16),
    rgba(52, 211, 153, 0.07) 45%,
    transparent 72%
  );
}

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

.card-glow > * {
  position: relative;
  z-index: 1;
}

.card-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 1.5px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.9), rgba(52, 211, 153, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-glow:hover::after {
  opacity: 1;
  animation: scanShimmer 1.35s ease forwards;
}

/* Animated Top Border Trace on Blueprint Diagram Cards */
.diagram-card {
  position: relative;
  overflow: hidden;
}

.diagram-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3b82f6 35%, #34d399 70%, transparent 100%);
  opacity: 0.75;
  pointer-events: none;
}

/* Hero Diagram Mode Selector & Telemetry Caption */
.diagram-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #98a6b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-disclaimer::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.diagram-mode-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.diagram-mode-btn {
  background: rgba(19, 25, 34, 0.9);
  border: 1px solid #243040;
  color: #98a6b8;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  text-align: center;
}

.diagram-mode-btn:hover {
  border-color: #6ea0ff;
  color: #f3f6fa;
}

.diagram-mode-btn.active {
  background: rgba(26, 86, 219, 0.24);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.diagram-telemetry-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1f2937;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #98a6b8;
}

/* Smooth Hover Micro-Interactions */
.card--interactive {
  transition: border-color 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease;
}

.card--interactive:hover {
  box-shadow: 0 12px 32px rgba(13, 21, 32, 0.08);
}

.section--dark .card--interactive:hover,
.section--dark-elevated .card--interactive:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.card--interactive .card__link {
  transition: color 0.16s ease, gap 0.18s ease, transform 0.18s ease;
}

.card--interactive:hover .card__link {
  transform: translateX(3px);
}

.proof-item {
  transition: background 0.18s ease;
}

.proof-item:hover {
  background: rgba(59, 130, 246, 0.045);
}

.timeline-step {
  transition: border-color 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.timeline-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 21, 32, 0.06);
}

/* Procurement Comparison Matrix Refinement */
.comparison-table th.comparison-col--a00,
.comparison-table td.comparison-col--a00 {
  background: rgba(26, 86, 219, 0.055);
  border-left: 1px solid rgba(26, 86, 219, 0.22);
  border-right: 1px solid rgba(26, 86, 219, 0.22);
}

.comparison-table th.comparison-col--a00 {
  color: var(--accent-cobalt);
  background: rgba(26, 86, 219, 0.1);
}

.comparison-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  font-weight: 600;
}

/* Governance 4-Card Strip */
.governance-card {
  padding: 24px;
}

.governance-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.governance-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .diagram-mode-bar {
    grid-template-columns: 1fr;
  }
}

/* Interactive Network Plane Highlighting */
.plane-dim {
  opacity: 0.22;
  transition: opacity 0.25s ease;
}

.plane-active {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Metric / Spec Pill Bar */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.kpi-box {
  background: rgba(14, 19, 25, 0.85);
  border: 1px solid #1f2937;
  border-radius: 5px;
  padding: 16px 18px;
}

.kpi-box__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a8d;
  margin-bottom: 5px;
}

.kpi-box__val {
  font-size: 0.94rem;
  font-weight: 600;
  color: #f3f6fa;
}

/* Timeline Flow Connector */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 36px;
}

.timeline-step {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-cobalt);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.section--dark .timeline-step {
  background: var(--bg-obsidian-card);
  border-color: var(--border-dark);
  border-top-color: var(--accent-cobalt-bright);
}

@media (max-width: 980px) {
  .timeline-grid, .kpi-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .timeline-grid, .kpi-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .svg-flow, .svg-flow-slow, .svg-flow-reverse, .svg-pulse, .svg-float { animation: none; }
  .card-glow::before, .card-glow::after { display: none; }
  .card--interactive:hover, .timeline-step:hover, .card--interactive:hover .card__link { transform: none; }
}

/* ==========================================================================
   Animated Architectural & 2026 Server Photography Frames
   ========================================================================== */
@keyframes kenBurnsSlow {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.075) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes scanBeam {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 0.45; }
  85% { opacity: 0.45; }
  100% { transform: translateY(420%); opacity: 0; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #243040;
  background: #080b0f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.media-frame__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0e11;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurnsSlow 22s ease-in-out infinite;
  transition: filter 0.4s ease;
  will-change: transform;
}

.media-frame:hover .media-frame__img {
  filter: brightness(1.06) contrast(1.04);
}

.media-frame__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(59, 130, 246, 0.14) 50%,
    transparent 100%
  );
  height: 28%;
  animation: scanBeam 7.5s ease-in-out infinite;
}

.media-frame__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 15, 0.15) 0%,
    transparent 35%,
    rgba(8, 11, 15, 0.72) 100%
  );
}

.media-frame__hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.media-frame__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(8, 11, 15, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(110, 160, 255, 0.3);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.media-frame__caption {
  padding: 14px 18px;
  background: #0e1319;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.media-frame__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f3f6fa;
}

.media-frame__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #98a6b8;
}

@media (prefers-reduced-motion: reduce) {
  .media-frame__img,
  .media-frame__scan {
    animation: none;
  }
}

/* #1E0A0B Dark + #DAFF8E Accent Overrides for Media Frames & Scroll Bar */
.scroll-progress {
  background: linear-gradient(90deg, #daff8e 0%, #ffffff 100%) !important;
}

.media-frame {
  border: 1px solid #492225;
  border-radius: 12px;
  background: #271011;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.media-frame__caption {
  background: #271011;
  border-top: 1px solid #3d1c1f;
}

.media-frame__title {
  color: #ffffff;
}

.media-frame__meta {
  color: #d6cbcc;
}

.media-frame__pill {
  background: rgba(30, 10, 11, 0.85);
  border-color: rgba(218, 255, 142, 0.45);
  color: #ffffff;
}

.media-frame__scan {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(218, 255, 142, 0.14) 50%,
    transparent 100%
  );
}

/* ==========================================================================
   Full Brand Colour-Harmony Blending (#1E0A0B + #DAFF8E + #FFFFFF)
   Makes every 2026 photo, card spotlight & border feel native to the palette
   ========================================================================== */
.media-frame {
  border: 1px solid rgba(218, 255, 142, 0.18) !important;
  background: #240d0f !important;
  box-shadow: 0 14px 36px rgba(10, 2, 3, 0.55) !important;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.media-frame:hover {
  border-color: rgba(218, 255, 142, 0.55) !important;
  transform: translateY(-2px);
}

.media-frame__viewport {
  background: #1e0a0b !important;
}

/* Warm oxblood-neutral colour grade so cool blue hardware photos blend natively into #1E0A0B */
.media-frame__img {
  filter: saturate(0.76) contrast(1.08) brightness(0.92) sepia(0.16) hue-rotate(-18deg);
}

.media-frame:hover .media-frame__img {
  filter: saturate(0.9) contrast(1.1) brightness(1.0) sepia(0.1) hue-rotate(-12deg);
}

/* Subtle warm #1E0A0B edge-blending vignette + delicate #DAFF8E top rim */
.media-frame__vignette {
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(218, 255, 142, 0.04) 0%, rgba(30, 10, 11, 0.35) 68%, rgba(30, 10, 11, 0.88) 100%),
    linear-gradient(180deg, rgba(30, 10, 11, 0.25) 0%, transparent 28%, rgba(30, 10, 11, 0.88) 100%) !important;
}

.media-frame__caption {
  background: linear-gradient(180deg, #240d0f 0%, #1e0a0b 100%) !important;
  border-top: 1px solid rgba(218, 255, 142, 0.14) !important;
}

.media-frame__pill {
  background: rgba(30, 10, 11, 0.86) !important;
  border: 1px solid rgba(218, 255, 142, 0.4) !important;
  color: #daff8e !important;
}

/* Re-harmonise interactive card spotlights & border traces from blue to #DAFF8E */
.card-glow::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(218, 255, 142, 0.11),
    transparent 65%
  ) !important;
}

.card-glow::after {
  background: linear-gradient(90deg, transparent, rgba(218, 255, 142, 0.85), transparent) !important;
}

.diagram-card {
  background: #240d0f !important;
  border: 1px solid rgba(218, 255, 142, 0.22) !important;
}

.diagram-card::before {
  background: linear-gradient(90deg, transparent, rgba(218, 255, 142, 0.5), transparent) !important;
}

/* ==========================================================================
   Animated A00 Chamfered Server-Blade Emblem
   ========================================================================== */
@keyframes logoBorderTrace {
  0% { stroke-dashoffset: 136; }
  100% { stroke-dashoffset: 0; }
}

@keyframes logoLedBlink {
  0%, 100% { opacity: 0.25; }
  45%, 55% { opacity: 1; }
}

@keyframes logoBarPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.brand__mark--animated {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand__mark--animated {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(218, 255, 142, 0.45));
}

.logo-trace {
  stroke-dasharray: 34 102;
  animation: logoBorderTrace 3.6s linear infinite;
}

.brand:hover .logo-trace {
  animation-duration: 1.4s;
}

.logo-led {
  animation: logoLedBlink 2.1s ease-in-out infinite;
}
.logo-led--1 { animation-delay: 0s; }
.logo-led--2 { animation-delay: 0.7s; }
.logo-led--3 { animation-delay: 1.4s; }

.logo-bar {
  animation: logoBarPulse 2.4s ease-in-out infinite;
}
.logo-bar--1 { animation-delay: 0.2s; }
.logo-bar--2 { animation-delay: 0.9s; }
.logo-bar--3 { animation-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .logo-trace, .logo-led, .logo-bar { animation: none; }
}

/* Wide Self-Contained A00 Logo Lockup Animation */
.brand__lockup {
  display: inline-flex;
  align-items: center;
}

.brand__sub--side {
  margin-top: 0;
  padding-left: 12px;
  border-left: 1px solid #492225;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #d6cbcc;
  white-space: nowrap;
}

.logo-trace--wide {
  stroke-dasharray: 64 280;
  animation: logoBorderTraceWide 4.2s linear infinite;
}

@keyframes logoBorderTraceWide {
  0% { stroke-dashoffset: 344; }
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 1180px) {
  .brand__sub--side { display: none; }
}

/* ==========================================================================
   Global Flowing Nexus Drops Layer + Logo Internal Nexus Drop Trails
   ========================================================================== */
.nexus-global-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

main, .site-footer {
  position: relative;
  z-index: 2;
}

/* Semi-transparent section backgrounds so the Nexus drops glide visibly throughout the entire site */
.section, .hero, .page-hero {
  background-color: rgba(30, 10, 11, 0.86) !important;
}

.section--paper, .section--dark, .proof-strip {
  background-color: rgba(39, 16, 17, 0.86) !important;
}

/* Nexus Drops Flowing Directly Through the A00 Logo */
@keyframes nexusLogoDrop {
  0% { stroke-dashoffset: 84; }
  100% { stroke-dashoffset: 0; }
}

@keyframes nexusLogoStream {
  0% { stroke-dashoffset: 184; }
  100% { stroke-dashoffset: 0; }
}

.logo-nexus-drop {
  stroke-dasharray: 16 68;
  animation: nexusLogoDrop 2.2s linear infinite;
}
.logo-nexus-drop--1 { animation-delay: 0s; }
.logo-nexus-drop--2 { animation-delay: 0.75s; }
.logo-nexus-drop--3 { animation-delay: 1.45s; }

.logo-nexus-stream {
  stroke-dasharray: 28 156;
  animation: nexusLogoStream 3.1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logo-nexus-drop, .logo-nexus-stream { animation: none; }
}
