/* ============================================================
   EP AUTOMATION — INLINE X-RAY HERO
   Alle klassen geprefixt met .ep-hero — geen botsingen met
   bestaande site-CSS. Bare h1/color bleed afgedicht via
   expliciete declaraties op .ep-hero__title.
   ============================================================ */

.ep-hero {
  --ep-scan: #3CDD3C;
  --ep-scan-soft: #3CDD3C33;
  --ep-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ep-disp: 'Space Grotesk', system-ui, sans-serif;
  --ep-loop: 8.5s;
  --ep-ease: cubic-bezier(.65, .02, .35, 1);
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #FFFFFF 0%, #F6F1E4 60%, #EEE5CC 100%);
  color: var(--color-ink);
  font-family: var(--ep-disp);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 140px 0 48px;
}

/* Reuses the site-wide .container (max-width: 1200px) so the hero's left/right
   content edges line up with every section below it instead of drifting. */
.ep-hero__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
}

.ep-hero * { box-sizing: border-box; }

/* Stage & images */
.ep-hero__stage {
  position: relative;
  width: min(58vh, 430px);
  aspect-ratio: 1034 / 1110;
  flex-shrink: 0;
}

.ep-hero__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.ep-hero__xray {
  filter: brightness(1.02) contrast(1.05) drop-shadow(0 8px 22px rgba(22, 36, 26, 0.16));
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ep-hero__rgb {
  filter: brightness(0.98) contrast(0.97) saturate(0.95)
          drop-shadow(0 12px 28px rgba(22, 36, 26, 0.18));
  animation: ep-reveal var(--ep-loop) var(--ep-ease) infinite;
  will-change: clip-path;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes ep-reveal {
  0%   { clip-path: inset(0 0 0 0%); }
  45%  { clip-path: inset(0 0 0 100%); }
  47%  { clip-path: inset(0 0 0 100%); }
  98%  { clip-path: inset(0 0 0 0%); }
  100% { clip-path: inset(0 0 0 0%); }
}

/* Scan line */
.ep-hero__scan {
  position: absolute;
  top: -4%;
  height: 108%;
  width: 3px;
  left: 0;
  border-radius: 3px;
  background: linear-gradient(var(--ep-scan), #bffaff, var(--ep-scan));
  box-shadow: 0 0 14px 3px var(--ep-scan), 0 0 50px 12px var(--ep-scan-soft);
  animation: ep-sweep var(--ep-loop) var(--ep-ease) infinite;
  will-change: left;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ep-hero__scan::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  height: 100%;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--ep-scan-soft));
}

@keyframes ep-sweep {
  0%   { left: 0%; }
  45%  { left: 100%; }
  47%  { left: 100%; }
  98%  { left: 0%; }
  100% { left: 0%; }
}

/* Copy */
.ep-hero__copy {
  max-width: min(56ch, 82vw);
}

.ep-hero__eyebrow {
  display: inline-block;
  font-family: var(--ep-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-forest-green);
  background-color: rgba(60, 221, 60, 0.12);
  padding: 2px 5px;
  margin-bottom: 1rem;
}

/* Expliciete font-family + color om bleed van bare h1-regel in style.css te blokkeren */
.ep-hero__title {
  font-family: var(--ep-disp);
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--color-ink);
}

.ep-hero__title em {
  font-style: normal;
  color: var(--color-forest-green);
}

.ep-hero__sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--color-sage);
  max-width: 52ch;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ep-hero { text-align: center; }
  .ep-hero__row { flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
  .ep-hero__copy { margin: 0 auto; }
  .ep-hero__stage { margin: 0 auto; width: min(50vh, 320px); }
}

@media (max-width: 640px) {
  .ep-hero { padding: 120px 0 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ep-hero__rgb  { animation: none; clip-path: inset(0 0 0 50%); }
  .ep-hero__scan { animation: none; left: 50%; }
}
