/* ═══════════════════════════════════════════════════════════════════
   COMPANY / MISSION-PURPOSE — Real-World Impact section
   Namespace: rw-* (Real-World Impact)
   Palette strictly follows Neodustria: #02050A, #168BFF, #005dba,
   #00F0B5 (green sovereignty). NO purple, orange, pink.
   Loaded after: industries.css, mission-purpose.css
═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   SECTION SHELL
───────────────────────────────────────────────────────────────── */
.rw-impact {
  position: relative;
  background: #02050A;
  overflow: hidden;
  padding: 108px 0 0;
}

/* Layered atmospheric haze */
.rw-impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%,   rgba(22,139,255,0.08) 0%, transparent 62%),
    radial-gradient(ellipse 60% 40% at 18% 50%,   rgba(0,93,186,0.04)  0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 82% 55%,   rgba(22,139,255,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #02050A 0%, #04090F 40%, #02050A 100%);
  pointer-events: none; z-index: 0;
}

/* Grid data-fabric lines in section background */
.rw-impact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,139,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,139,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 78%);
  mask-image:         radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}

/* ─────────────────────────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────────────────────────── */
.rw-impact-header {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px 72px;
  max-width: 780px;
  margin: 0 auto;
}

/* Eyebrow row: line — text — line */
.rw-impact-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}
.rw-eyebrow-text {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: #005dba;
  white-space: nowrap;
}
.rw-eyebrow-line {
  display: block;
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,93,186,0.55));
  flex-shrink: 0;
}
.rw-eyebrow-line:last-child {
  background: linear-gradient(90deg, rgba(0,93,186,0.55), transparent);
}

/* Hexagonal connector badge */
.rw-eyebrow-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.rw-eyebrow-badge svg {
  width: 28px; height: 28px;
  color: #005dba;
  filter:
    drop-shadow(0 0 5px rgba(0,93,186,0.70))
    drop-shadow(0 0 14px rgba(0,93,186,0.35));
}

/* Main heading — exact match to ind-section-title system */
.rw-impact-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.rw-highlight {
  color: #168BFF;
  display: inline;
  font-style: normal;
}

/* Subtitle — exact match to ind-section-sub */
.rw-impact-sub {
  font-size: 15px;
  color: rgba(169,184,200,0.68);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   CARDS OUTER WRAPPER — full bleed
───────────────────────────────────────────────────────────────── */
.rw-cards-outer {
  position: relative;
  z-index: 2;
}

/* Top border line for the card grid */
.rw-cards-outer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(22,139,255,0.15) 12%,
    rgba(22,139,255,0.35) 50%,
    rgba(22,139,255,0.15) 88%,
    transparent 100%);
  z-index: 3;
}

/* ─────────────────────────────────────────────────────────────────
   CARDS GRID
───────────────────────────────────────────────────────────────── */
.rw-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

/* ─────────────────────────────────────────────────────────────────
   INDIVIDUAL CARD
───────────────────────────────────────────────────────────────── */
.rw-card {
  position: relative;
  height: 458px;
  overflow: hidden;
  border-right: 1px solid rgba(22,139,255,0.10);
  cursor: default;
  isolation: isolate;
}
.rw-card:last-child { border-right: none; }

/* ── Background image layer ── */
.rw-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  transition: transform 0.90s cubic-bezier(0.25,0.46,0.45,0.94);
}
.rw-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.28) saturate(0.60);
  transition: filter 0.65s ease, transform 0.90s cubic-bezier(0.25,0.46,0.45,0.94);
}
.rw-card:hover .rw-card-bg { transform: scale(1.07); }
.rw-card:hover .rw-card-bg img { filter: brightness(0.46) saturate(0.80); }

/* ── Multi-layer overlay: cinematic depth ── */
.rw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(2,5,10,0.50) 0%,
      rgba(4,12,30,0.25) 35%,
      rgba(2,5,10,0.72) 65%,
      rgba(2,5,10,0.97) 100%
    ),
    radial-gradient(ellipse 80% 55% at 50% 20%,
      rgba(22,139,255,0.05) 0%, transparent 70%);
  z-index: 1;
  transition: background 0.55s ease;
  pointer-events: none;
}
.rw-card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(2,5,10,0.35) 0%,
      rgba(4,12,30,0.15) 35%,
      rgba(2,5,10,0.68) 65%,
      rgba(2,5,10,0.97) 100%
    ),
    radial-gradient(ellipse 80% 55% at 50% 20%,
      rgba(22,139,255,0.13) 0%, transparent 70%);
}

/* ── Border glow overlay (inset, on hover) ── */
.rw-card-glow {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(22,139,255,0.00);
  z-index: 6;
  pointer-events: none;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.rw-card:hover .rw-card-glow {
  border-color: rgba(22,139,255,0.38);
  box-shadow:
    inset 0 0 40px rgba(22,139,255,0.06),
    inset 0 1px 0 rgba(22,139,255,0.30),
    0 0 50px rgba(22,139,255,0.10);
}

/* ── HUD corner brackets ── */
.rw-card-corner {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 7;
  opacity: 0.50;
  transition: opacity 0.40s ease, filter 0.40s ease;
  pointer-events: none;
}
.rw-card:hover .rw-card-corner {
  opacity: 1.0;
  filter: drop-shadow(0 0 5px rgba(22,139,255,0.80));
}
.rw-card-corner--tl {
  top: 12px; left: 12px;
  border-top: 1.5px solid rgba(22,139,255,0.75);
  border-left: 1.5px solid rgba(22,139,255,0.75);
}
.rw-card-corner--tr {
  top: 12px; right: 12px;
  border-top: 1.5px solid rgba(22,139,255,0.75);
  border-right: 1.5px solid rgba(22,139,255,0.75);
}
.rw-card-corner--bl {
  bottom: 38px; left: 12px;
  border-bottom: 1.5px solid rgba(22,139,255,0.75);
  border-left: 1.5px solid rgba(22,139,255,0.75);
}
.rw-card-corner--br {
  bottom: 38px; right: 12px;
  border-bottom: 1.5px solid rgba(22,139,255,0.75);
  border-right: 1.5px solid rgba(22,139,255,0.75);
}

/* ── Card content layout ── */
.rw-card-content {
  position: absolute;
  inset: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 0;
  z-index: 5;
  pointer-events: none;
}

/* Icon zone — pushes to top, metrics pulled to bottom */
.rw-card-icon-wrap {
  flex-shrink: 0;
}

/* Spacer pushes metrics group to bottom */
.rw-card-metrics {
  margin-top: auto;
  padding-bottom: 12px;
  /* slight background for text contrast against the image */
  padding: 14px 10px 12px;
  margin-left: -10px;
  margin-right: -10px;
  border-radius: 6px;
  transition: background 0.45s ease;
}
.rw-card:hover .rw-card-metrics {
  background: rgba(2,5,10,0.35);
}

/* ── Icon container — HUD-framed ── */
.rw-card-icon {
  width: 50px; height: 50px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(5,14,32,0.92), rgba(2,8,20,0.96));
  border: 1px solid rgba(22,139,255,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 22px rgba(22,139,255,0.16),
    inset 0 1px 0 rgba(22,139,255,0.14),
    inset 0 0 12px rgba(22,139,255,0.05);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.rw-card:hover .rw-card-icon {
  border-color: rgba(22,139,255,0.65);
  box-shadow:
    0 0 32px rgba(22,139,255,0.38),
    0 0 70px rgba(22,139,255,0.12),
    inset 0 1px 0 rgba(22,139,255,0.22),
    inset 0 0 18px rgba(22,139,255,0.07);
}

/* HUD targeting lines extending from icon */
.rw-card-icon::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 1px;
  background: rgba(22,139,255,0.45);
}
.rw-card-icon::after {
  content: '';
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 1px;
  background: rgba(22,139,255,0.45);
}

.rw-card-icon svg {
  color: #168BFF;
  filter: drop-shadow(0 0 5px rgba(22,139,255,0.55));
  transition: filter 0.45s ease;
  position: relative; z-index: 1;
}
.rw-card:hover .rw-card-icon svg {
  filter: drop-shadow(0 0 10px rgba(22,139,255,0.90));
}

/* ── Metric number ── */
.rw-card-metric {
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 9px;
  background: linear-gradient(140deg, #ffffff 18%, #168BFF 88%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(22,139,255,0.32));
  transition: filter 0.45s ease;
}
.rw-card:hover .rw-card-metric {
  filter: drop-shadow(0 0 22px rgba(22,139,255,0.60));
}

/* ── Card title ── */
.rw-card-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 9px;
  line-height: 1.35;
  transition: color 0.4s ease;
}
.rw-card:hover .rw-card-title {
  color: #ffffff;
}

/* ── Description ── */
.rw-card-desc {
  font-size: 11.5px;
  line-height: 1.58;
  color: rgba(169,184,200,0.55);
  transition: color 0.4s ease;
}
.rw-card:hover .rw-card-desc {
  color: rgba(215,228,242,0.88);
}

/* ─────────────────────────────────────────────────────────────────
   BOTTOM HASH STRIP — industrial panel marking
───────────────────────────────────────────────────────────────── */
.rw-card-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  z-index: 5;
  overflow: hidden;
  background: repeating-linear-gradient(
    -55deg,
    transparent          0px,
    transparent          4px,
    rgba(22,139,255,0.07) 4px,
    rgba(22,139,255,0.07) 8px
  );
  border-top: 1px solid rgba(22,139,255,0.12);
  transition: background 0.45s ease, border-color 0.45s ease;
  pointer-events: none;
}
.rw-card:hover .rw-card-bottom {
  border-top-color: rgba(22,139,255,0.32);
  background: repeating-linear-gradient(
    -55deg,
    transparent          0px,
    transparent          4px,
    rgba(22,139,255,0.18) 4px,
    rgba(22,139,255,0.18) 8px
  );
}

/* ─────────────────────────────────────────────────────────────────
   SCAN LINE ANIMATION
───────────────────────────────────────────────────────────────── */
@keyframes rwCardScan {
  0%   { top: -1%;  opacity: 0; }
  3%   { opacity: 0.55; }
  90%  { opacity: 0.10; }
  100% { top: 103%; opacity: 0; }
}

.rw-card-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent          0%,
    rgba(22,139,255,0.35) 25%,
    rgba(0,93,186,0.68)  50%,
    rgba(22,139,255,0.35) 75%,
    transparent          100%);
  z-index: 6;
  animation: rwCardScan 6s linear infinite;
  opacity: 0;
  pointer-events: none;
}
/* Stagger each card's scan for a cascading data-flow feel */
.rw-cards-grid .rw-card:nth-child(1) .rw-card-scan { animation-delay:    0s; }
.rw-cards-grid .rw-card:nth-child(2) .rw-card-scan { animation-delay: -1.0s; }
.rw-cards-grid .rw-card:nth-child(3) .rw-card-scan { animation-delay: -2.0s; }
.rw-cards-grid .rw-card:nth-child(4) .rw-card-scan { animation-delay: -3.0s; }
.rw-cards-grid .rw-card:nth-child(5) .rw-card-scan { animation-delay: -4.0s; }
.rw-cards-grid .rw-card:nth-child(6) .rw-card-scan { animation-delay: -5.0s; }

/* ─────────────────────────────────────────────────────────────────
   GREEN VARIANT — card 6: Data Sovereignty
───────────────────────────────────────────────────────────────── */
.rw-card--green .rw-card-corner--tl,
.rw-card--green .rw-card-corner--tr,
.rw-card--green .rw-card-corner--bl,
.rw-card--green .rw-card-corner--br {
  border-color: rgba(0,240,181,0.72);
}
.rw-card--green:hover .rw-card-corner {
  filter: drop-shadow(0 0 5px rgba(0,240,181,0.80));
}

.rw-card--green:hover .rw-card-glow {
  border-color: rgba(0,240,181,0.35);
  box-shadow:
    inset 0 0 40px rgba(0,240,181,0.05),
    inset 0 1px 0 rgba(0,240,181,0.28),
    0 0 50px rgba(0,240,181,0.08);
}

.rw-card--green .rw-card-icon {
  border-color: rgba(0,240,181,0.32);
  box-shadow:
    0 0 22px rgba(0,240,181,0.16),
    inset 0 1px 0 rgba(0,240,181,0.12),
    inset 0 0 12px rgba(0,240,181,0.04);
}
.rw-card--green:hover .rw-card-icon {
  border-color: rgba(0,240,181,0.62);
  box-shadow:
    0 0 32px rgba(0,240,181,0.38),
    0 0 70px rgba(0,240,181,0.10),
    inset 0 1px 0 rgba(0,240,181,0.20),
    inset 0 0 18px rgba(0,240,181,0.06);
}
.rw-card--green .rw-card-icon::before,
.rw-card--green .rw-card-icon::after {
  background: rgba(0,240,181,0.45);
}
.rw-card--green .rw-card-icon svg {
  color: #00F0B5;
  filter: drop-shadow(0 0 5px rgba(0,240,181,0.55));
}
.rw-card--green:hover .rw-card-icon svg {
  filter: drop-shadow(0 0 10px rgba(0,240,181,0.92));
}

.rw-card--green .rw-card-metric {
  background: linear-gradient(140deg, #ffffff 18%, #00F0B5 88%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(0,240,181,0.32));
}
.rw-card--green:hover .rw-card-metric {
  filter: drop-shadow(0 0 22px rgba(0,240,181,0.60));
}

.rw-card--green .rw-card-bottom {
  border-top-color: rgba(0,240,181,0.12);
  background: repeating-linear-gradient(
    -55deg,
    transparent           0px,
    transparent           4px,
    rgba(0,240,181,0.07)  4px,
    rgba(0,240,181,0.07)  8px
  );
}
.rw-card--green:hover .rw-card-bottom {
  border-top-color: rgba(0,240,181,0.30);
  background: repeating-linear-gradient(
    -55deg,
    transparent           0px,
    transparent           4px,
    rgba(0,240,181,0.18)  4px,
    rgba(0,240,181,0.18)  8px
  );
}
.rw-card--green .rw-card-scan {
  background: linear-gradient(90deg,
    transparent           0%,
    rgba(0,240,181,0.35)  25%,
    rgba(0,240,181,0.68)  50%,
    rgba(0,240,181,0.35)  75%,
    transparent          100%);
}

/* ─────────────────────────────────────────────────────────────────
   BOTTOM SECTION FADE — smooth transition into next section
───────────────────────────────────────────────────────────────── */
.rw-section-fade {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(22,139,255,0.12) 20%,
    rgba(22,139,255,0.28) 50%,
    rgba(22,139,255,0.12) 80%,
    transparent 100%);
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────── */

/* ── 1280px: 6-col still, just slightly shorter ── */
@media (max-width: 1280px) {
  .rw-card { height: 440px; }
}

/* ── 1024px: 3 × 2 grid ── */
@media (max-width: 1024px) {
  .rw-impact { padding: 80px 0 0; }
  .rw-impact-header { padding-bottom: 52px; }
  .rw-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .rw-card {
    height: 420px;
    border-bottom: 1px solid rgba(22,139,255,0.10);
  }
  /* 3rd card: no right border */
  .rw-card:nth-child(3) { border-right: none; }
  /* last row (cards 4–6): no bottom border */
  .rw-card:nth-child(4),
  .rw-card:nth-child(5),
  .rw-card:nth-child(6) { border-bottom: none; }
}

/* ── 768px: 2 × 3 grid ── */
@media (max-width: 768px) {
  .rw-impact { padding: 64px 0 0; }
  .rw-impact-header { padding-bottom: 40px; }
  .rw-eyebrow-badge { margin-bottom: 18px; }
  .rw-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-card {
    height: 360px;
    /* reset 3-col rules then apply 2-col rules */
    border-right: 1px solid rgba(22,139,255,0.10);
    border-bottom: 1px solid rgba(22,139,255,0.10);
  }
  /* restore card 3 right border (was removed in 3-col) */
  .rw-card:nth-child(3) { border-right: 1px solid rgba(22,139,255,0.10); }
  /* restore last-row cards' bottom border (removed in 3-col) */
  .rw-card:nth-child(4),
  .rw-card:nth-child(5),
  .rw-card:nth-child(6) { border-bottom: 1px solid rgba(22,139,255,0.10); }
  /* right column: no right border */
  .rw-card:nth-child(2n) { border-right: none; }
  /* last row in 2-col (cards 5–6): no bottom border */
  .rw-card:nth-child(5),
  .rw-card:nth-child(6) { border-bottom: none; }
  /* corner adjustments */
  .rw-card-corner--tl, .rw-card-corner--tr { top: 8px; }
  .rw-card-corner--tl, .rw-card-corner--bl { left: 8px; }
  .rw-card-corner--tr, .rw-card-corner--br { right: 8px; }
  .rw-card-corner--bl, .rw-card-corner--br { bottom: 36px; }
  .rw-card-content { padding: 20px 16px 0; }
  .rw-card-icon { width: 44px; height: 44px; }
  .rw-card-metric { font-size: clamp(30px, 6.5vw, 42px); }
  .rw-card-title { font-size: 10px; letter-spacing: 0.07em; }
  .rw-card-desc { font-size: 11px; }
}

/* ── 520px: single column ── */
@media (max-width: 520px) {
  .rw-impact { padding: 56px 0 0; }
  .rw-impact-header { padding: 0 16px 36px; }
  .rw-eyebrow-badge { display: none; } /* save vertical space */
  .rw-cards-grid { grid-template-columns: 1fr; }
  .rw-card {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(22,139,255,0.10);
  }
  /* reset all column-specific border overrides */
  .rw-card:nth-child(3),
  .rw-card:nth-child(4),
  .rw-card:nth-child(5),
  .rw-card:nth-child(6) {
    border-right: none;
    border-bottom: 1px solid rgba(22,139,255,0.10);
  }
  .rw-card:nth-child(2n) { border-right: none; }
  .rw-card:last-child { border-bottom: none; }
  .rw-card-content { padding: 18px 16px 0; }
  .rw-card-icon { width: 42px; height: 42px; border-radius: 9px; }
  .rw-card-metric { font-size: clamp(34px, 8.5vw, 46px); }
  .rw-card-metrics { padding: 12px 8px 10px; }
}

/* ── 380px: very small phones ── */
@media (max-width: 380px) {
  .rw-card { height: 280px; }
  .rw-card-metric { font-size: 32px; }
  .rw-card-desc { display: none; } /* remove desc on tiny screens — metric + title sufficient */
  .rw-card-metrics { padding-bottom: 6px; }
}

/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rw-card-scan { animation: none; }
  .rw-card-bg,
  .rw-card-bg img {
    transition: none;
  }
  .rw-card-glow,
  .rw-card-icon,
  .rw-card-metric,
  .rw-card-bottom { transition: none; }
}
