/* ============================================================
   EDIIIE - visual.css
   Image-forward heroes + reusable image components.
   Loaded AFTER industry.css / case-study.css / page styles so it wins.
   ============================================================ */

/* ── HERO: show the photo, put the copy on a glass panel ─────── */
.ind-hero-bg img,
.hero-bg img,
.gov-hero-bg img,
.mod-hero-bg img,
.cs-page-hero-bg img { opacity: 1 !important; }

/* Overlay is now a soft, one-directional scrim: dark enough behind
   the panel edge, fading to almost nothing over the picture. */
.ind-hero-overlay,
.hero-overlay,
.gov-hero-veil,
.cs-page-hero-veil {
  background: linear-gradient(100deg,
    rgba(6,10,28,.58) 0%,
    rgba(6,10,28,.34) 38%,
    rgba(6,10,28,.10) 66%,
    rgba(6,10,28,.04) 100%) !important;
}

/* Flex heroes shrink their .container to content width; force full width. */
.ind-hero > .container, .hero > .container, .gov-hero > .gov-wrap { width: 100%; }

/* The glass panel that carries the hero copy. */
.hero-panel,
.ind-hero-content,
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  background: rgba(6,10,28,.68);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 36px 42px !important;
  margin: 64px 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-panel.wide { max-width: 700px; }
/* Never nest two panels (some pages have an .ind-hero-content inside the wrapper). */
.hero-panel .ind-hero-content, .hero-panel .hero-content { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding: 0 !important; margin: 0; max-width: none; }
.hero-panel.narrow { max-width: 680px; }

/* Hero stats sit inside the panel - tighten the top rule. */
.hero-panel .ind-hero-stats,
.ind-hero-content .ind-hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 36px; padding-top: 28px; gap: 20px 24px; }
.ind-hero-content .ind-hero-stat-num { font-size: 30px; }
.hero-panel .hero-stats { margin-top: 32px; }

/* Case-study heroes: gradient -> photo */
.cs-page-hero { position: relative; overflow: hidden; padding: 96px 0 40px !important; }
.cs-page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cs-page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cs-page-hero-veil { position: absolute; inset: 0; z-index: 1; }
.cs-page-hero > .container { position: relative; z-index: 2; }

/* Optional "photo card" on the right of a hero (module pages). */
.hero-photo {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  aspect-ratio: 16 / 10;
  background: #0b1220;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .hero-photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6,10,28,.85));
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}

@media (max-width: 900px) {
  .hero-panel, .ind-hero-content, .hero-content { max-width: 100%; margin: 40px 0; }
}
@media (max-width: 640px) {
  .hero-panel, .ind-hero-content, .hero-content {
    padding: 26px 22px !important;
    border-radius: 16px;
    margin: 28px 0;
  }
  /* On phones the panel fills the width; darken the scrim a touch more
     so the photo still reads but never fights the copy. */
  .ind-hero-overlay, .hero-overlay, .gov-hero-veil, .cs-page-hero-veil {
    background: linear-gradient(180deg, rgba(6,10,28,.35) 0%, rgba(6,10,28,.55) 100%) !important;
  }
}

/* ── IMAGE COMPONENTS ─────────────────────────────────────────── */
.vis-section { padding: 72px 0; }
.vis-section.alt { background: #f8fafc; }
.vis-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.vis-head .section-subtitle { margin-bottom: 0; }

/* Captioned photo grid */
.vis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vis-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.vis-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.vis-card {
  position: relative; display: block; margin: 0;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 10; background: #0b1220;
  box-shadow: 0 10px 30px rgba(2,6,23,.12);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.vis-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(2,6,23,.18); }
.vis-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.vis-card:hover img { transform: scale(1.04); }
.vis-card figcaption, .vis-card .vis-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(6,10,28,.88) 100%);
  color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3;
}
.vis-card figcaption small, .vis-card .vis-cap small {
  display: block; font-weight: 500; color: rgba(255,255,255,.72); font-size: 12px; margin-top: 3px;
}
.vis-card .vis-cap i { color: #f59e0b; margin-right: 6px; font-size: 12px; }

/* Image + copy split */
.vis-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.vis-split.rev .vis-split-img { order: 2; }
.vis-split-img {
  border-radius: 20px; overflow: hidden; background: #0b1220;
  box-shadow: 0 24px 56px rgba(2,6,23,.18);
}
.vis-split-img img { width: 100%; display: block; }
.vis-split-body .tag { margin-bottom: 14px; }
.vis-split-body h2, .vis-split-body h3 {
  font-family: 'Sora', sans-serif; font-weight: 800; color: #0f172a;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 14px;
}
.vis-split-body p { font-size: 15.5px; color: #475569; line-height: 1.75; margin: 0 0 14px; }
.vis-split-body ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.vis-split-body ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #334155; line-height: 1.6; }
.vis-split-body ul li i { color: #1a56db; margin-top: 4px; font-size: 12px; }

/* Single wide figure */
.vis-figure { margin: 0; }
.vis-figure img { width: 100%; display: block; border-radius: 20px; box-shadow: 0 24px 56px rgba(2,6,23,.16); }
.vis-figure figcaption { text-align: center; font-size: 13px; color: #64748b; margin-top: 14px; }

/* Thumbnails on catalogue cards */
.module-card-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1220; border-bottom: 1px solid #e5e7eb; }
.module-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.module-card:hover .module-card-visual img { transform: scale(1.05); }

/* Product strip (headset + pills) */
.vis-hardware { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 22px 28px; }
.vis-hardware img { width: 220px; max-width: 45%; height: auto; }
.vis-hardware .vis-hw-body { flex: 1; min-width: 240px; }
.vis-hardware .vis-hw-body strong { display: block; font-family: 'Sora', sans-serif; font-size: 17px; color: #0f172a; margin-bottom: 6px; }
.vis-hardware .vis-hw-body p { font-size: 14px; color: #64748b; line-height: 1.65; margin: 0; }

@media (max-width: 960px) {
  .vis-grid, .vis-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .vis-split { grid-template-columns: 1fr; gap: 28px; }
  .vis-split.rev .vis-split-img { order: 0; }
}
@media (max-width: 560px) {
  .vis-grid, .vis-grid.cols-2, .vis-grid.cols-4 { grid-template-columns: 1fr; }
  .vis-section { padding: 52px 0; }
}

/* ── BAND BELOW THE COVER: stats / standards / meta live here now ── */
.hero-below { background: #0b1220; color: #fff; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-below > .container { width: 100%; }
.hero-below .ind-hero-stats, .hero-below .hero-stats, .hero-below .gov-hero-stats, .hero-below .cs-hero-meta, .hero-below .hero-badges-grid, .hero-below .ep-specs {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; width: 100%; max-width: none;
}
.hero-below .ind-hero-stats, .hero-below .hero-stats, .hero-below .gov-hero-stats {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 32px; flex-wrap: wrap;
}
.hero-below .hero-stats > * , .hero-below .gov-hero-stats > * { border: 0 !important; padding: 0 !important; }
.hero-below .ind-hero-stat-num, .hero-below .hero-stat-num, .hero-below .gov-hero-stat-num { font-size: 30px; }
.hero-below .cs-hero-meta { display: flex; gap: 28px 44px; flex-wrap: wrap; }
.hero-below .hero-badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.hero-below .hero-badges-grid .hero-badge-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; }
.hero-below .ep-specs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-below .ep-specs::before { content: 'Formats'; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-right: 10px; }
.hero-below .mod-hero-stat { font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 800; color: #f59e0b; line-height: 1; }
.hero-below .mod-hero-stat-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }
.hero-below .mod-hero-std-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.55; list-style: none; }
.hero-below .mod-hero-std-list li i { color: #f59e0b; margin-top: 4px; font-size: 12px; }
.hero-below .mod-hero-std-list strong { color: #fff; }
@media (max-width: 640px) { .hero-below { padding: 22px 0; } .hero-below .ind-hero-stats, .hero-below .hero-stats, .hero-below .gov-hero-stats { grid-template-columns: 1fr 1fr; } }
