.bim-mep {
  --mep-blue: #46bdf6;
  --mep-sweep: 700ms cubic-bezier(.4,0,.2,1);
  border-color: #193c4d;
  background: radial-gradient(ellipse at 94% 0, #0b3955, transparent 56%), #041c28;
}
.bim-mep .bim-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #eff6fa;
  border-color: #38647a;
  font-weight: 800;
}
.bim-mep .bim-eyebrow::before { content: ""; width: 2.5rem; height: 3px; background: var(--mep-blue); }
.bim-mep .bim-section-heading h2 { font-weight: 800; text-wrap: balance; }
.bim-mep .bim-section-heading strong { color: #28aef2; }
.bim-mep .bim-section-heading-row > p { border-inline-start: 1px solid #3992b3; padding-inline-start: clamp(1rem,3vw,3.3rem); color: #e4edf2; }
.bim-mep .bim-cards-mep { gap: clamp(.9rem,1.4vw,1.6rem); }
.bim-mep .mep-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #48798e;
  border-radius: clamp(.9rem,1.35vw,1.5rem);
  background: linear-gradient(150deg,#0c3040,#051c27 75%);
  box-shadow: 0 4px 15px #00101a55;
  transition: border-color 220ms, box-shadow 220ms;
}
.bim-mep .mep-card.is-model { border-color: #69caff; box-shadow: 0 0 12px #319ad62e; }
.bim-mep .mep-card:has(button:focus-visible) { outline: 3px solid #a1daff; outline-offset: 3px; }
.bim-mep .mep-media {
  position: relative;
  aspect-ratio: 1.62;
  overflow: hidden;
  border-bottom: 1px solid #48798e;
  border-radius: 0 0 .85rem .85rem;
  background: #102c37;
}
.bim-mep .mep-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.bim-mep .mep-model {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--mep-sweep);
}
.bim-mep .is-model .mep-model { clip-path: inset(0); }
.bim-mep .mep-model small {
  position: absolute; bottom: .65rem; left: .7rem;
  padding: .18rem .6rem; border-radius: .35rem;
  background: #071d29e8; color: white; font-size: .72rem;
}
.bim-mep .mep-scan {
  position: absolute; inset: 0; pointer-events: none;
  mask-image: linear-gradient(to right,transparent,#000 1%,#000 99%,transparent);
}
.bim-mep .mep-scan::after {
  content: ""; position: absolute; inset: 0;
  border-right: 2px solid #50c4ff;
  transform: translateX(-100%);
  transition: transform var(--mep-sweep);
}
.bim-mep .is-model .mep-scan::after { transform: translateX(0); }
.bim-mep .mep-body { flex: 1; display: flex; flex-direction: column; padding: clamp(1rem,1.65vw,1.9rem); }
.bim-mep .mep-discipline {
  display: flex; align-items: center; gap: .75rem;
  font-size: clamp(.75rem,.92vw,.95rem); font-weight: 800; text-transform: uppercase; letter-spacing: .055em;
}
.bim-mep .mep-discipline svg { width: 2.8rem; height: 2rem; color: var(--mep-blue); padding-right: .65rem; border-right: 1px solid #52798a; }
.bim-mep .mep-body h3 { margin: .6rem 0; font-size: clamp(1.3rem,1.95vw,2.1rem); font-weight: 800; }
.bim-mep .mep-body > p { color: #dbe6eb; line-height: 1.52; }
.bim-mep .mep-outputs { margin-top: auto; padding-top: 1.2rem; }
.bim-mep .mep-outputs > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .7rem; padding-top: .9rem; border-top: 1px solid #315363; }
.bim-mep .mep-outputs b { color: var(--mep-blue); font-size: .78rem; text-transform: uppercase; }
.bim-mep .mep-outputs span { padding: .2rem .65rem; border: 1px solid #497080; border-radius: 1rem; font-size: clamp(.78rem,.92vw,.95rem); }
.bim-mep .mep-toggle { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.bim-mep .mep-toggle::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
@media (max-width: 58rem) {
  .bim-mep .bim-cards-mep { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 44rem) {
  .bim-mep .bim-cards-mep, .bim-mep .bim-section-heading-row { grid-template-columns: minmax(0,1fr); }
  .bim-mep .bim-section-heading-row > p { padding-inline-start: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bim-mep .mep-card, .bim-mep .mep-model, .bim-mep .mep-scan::after { transition: none; }
  .bim-mep .mep-scan { display: none; }
}
