/* Battery Electric Locomotive page: builds on about.css + mep.css */

/* custom video player */
.bv-player { position: relative; border-radius: 26px; overflow: hidden; background: #0d0f11; aspect-ratio: 16 / 9; max-height: 64vh; width: 100%;
  box-shadow: 0 30px 80px rgba(22,25,28,.18); margin-bottom: 22px; }
.bv-frame { position: absolute; inset: 0; overflow: hidden; }
/* over-scale the iframe so YouTube's title bar and logo sit outside the visible frame */
.bv-frame iframe, .bv-yt { position: absolute; left: -10%; top: -14%; width: 120%; height: 128%; border: 0; pointer-events: none; }
.bv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.bv-player.is-playing .bv-poster { opacity: 0; }
.bv-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.45)); }
.bv-controls { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
  opacity: .0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.bv-player:hover .bv-controls, .bv-player:focus-within .bv-controls, .bv-player:not(.is-playing) .bv-controls { opacity: 1; transform: none; }
@media (hover: none) { .bv-controls { opacity: 1; transform: none; } }
.bv-controls button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s; flex: none; }
.bv-controls button:hover { background: var(--red); }
.bv-play { background: var(--red) !important; }
.bv-bar { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.bv-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--red); pointer-events: none; }
.bv-bar input { position: absolute; inset: -8px 0; width: 100%; height: 22px; opacity: 0; cursor: pointer; margin: 0; }
.bv-time { font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; opacity: .9; }
.bv-player:fullscreen { border-radius: 0; max-height: none; }

/* lead copy */
.bel-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.bel-lead p { margin: 0 0 10px; color: var(--body); line-height: 1.6; font-size: 1rem; }

/* features */
.bel-features { grid-template-columns: repeat(3, 1fr); }
.bel-why { grid-template-columns: repeat(2, 1fr); }

/* specs */
.bel-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.bel-specs div { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.8); border-top: 3px solid var(--red);
  box-shadow: 0 1px 2px rgba(22,25,28,.05), 0 12px 28px rgba(22,25,28,.08); transition: transform .3s var(--ease); }
.bel-specs div:hover { transform: translateY(-3px); }
.bel-specs .bel-wide { grid-column: span 3; }
.bel-specs dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bel-specs dd { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.bel-photo { margin: 0; }
.bel-photo img { width: 100%; max-height: 52vh; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(22,25,28,.18)); }

@media (max-width: 991px) { .bel-lead { grid-template-columns: 1fr; } .bel-specs { grid-template-columns: 1fr 1fr; } .bel-specs .bel-wide { grid-column: span 2; } }
@media (max-width: 767px) { .bel-features, .bel-why, .bel-specs { grid-template-columns: 1fr; } .bel-specs .bel-wide { grid-column: auto; } .bv-time { display: none; } }
@media (min-width: 1200px) {
  .mp-page #s-features .mg-ben-grid { grid-template-columns: 1fr; }
  .mp-page #s-features .mp-benefits ul { columns: 2; }
}

/* feature icons */
.bel-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); flex: none;
  margin-bottom: 10px; transition: background .3s, color .3s, transform .4s var(--ease); }
.mp-feature:hover .bel-ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.06); }
.bel-features .mp-feature-solo { display: flex; align-items: center; gap: 14px; }
.bel-features .mp-feature-solo .bel-ico { margin: 0; }
.mp-feature .bel-ico svg path, .mp-feature .bel-ico svg circle, .mp-feature .bel-ico svg rect { stroke-dasharray: 80; stroke-dashoffset: 80; }
.mp-feature.is-in .bel-ico svg path, .mp-feature.is-in .bel-ico svg circle, .mp-feature.is-in .bel-ico svg rect { animation: bel-draw 1.2s var(--ease) .2s forwards; }
@keyframes bel-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mp-feature .bel-ico svg * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; } }

.bel-photo-top { margin: 0 0 18px; }
.bel-photo-top img { max-height: 46vh; animation: ab-float 7s ease-in-out infinite; }
