/* ═══════════════════════════════════════════════════════════
   ELECTRIC VEHICLES — capability / lifecycle page
   ─────────────────────────────────────────────────────────
   This is NOT a product page: there is no single vehicle to sell,
   there is a SERVICE — engineering mobility from concept to
   commercialization. The hero and intro now use the SHARED product
   shells (.hero-slider / .ab-intro) so the page reads as part of the
   family; the identity lives in the LIFECYCLE RAIL — four phases on
   one spine, because here the journey IS the product.

   Everything else reuses the shared system (Manrope, #43AF43,
   --content-ease, [data-au-reveal]) and Angad's primitives.
   New components are prefixed `ev-`.
════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   HERO — the shared .hero-slider, plus the phase strapline
════════════════════════════════════════════════════════════ */
.ag-head--center{
  max-width: 765px!important;
}
.ev-tagline-line {
  display: block;
  margin: 0 0 20px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6bd46b;
  opacity: 0;
}
.slide.is-entering .ev-tagline-line {
  animation: hsContentUp 0.76s var(--content-ease) 0.42s both;
}

/* ═══════════════════════════════════════════════════════════
   INTRO — the studio photo (bare chassis beside a built-up vehicle:
   the concept-to-commercialization story in a single frame)
════════════════════════════════════════════════════════════ */
.ev-intro-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 62%;
  border-radius: 22px;
  box-shadow: 0 40px 70px -34px rgba(16, 44, 28, 0.42);
}
/* <picture> is display:inline by default, which collapses a percentage/fixed
   height on the <img> inside it. It must be a block. */


/* ═══════════════════════════════════════════════════════════
   ★ SIGNATURE — THE LIFECYCLE RAIL
   Four phases on a spine. The journey is the product.
════════════════════════════════════════════════════════════ */
.ev-rail-section {
  position: relative;
  overflow: hidden;
  background: #0a0c0a;
}
.ev-rail-section::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background: radial-gradient(55% 40% at 50% 0%, rgba(67, 175, 67, 0.12) 0%, transparent 62%);
  pointer-events: none;
}
.ev-rail-section > * { position: relative; z-index: 1; }

.ev-rail {
  position: relative;
  max-width: 940px;
  margin: clamp(44px, 6vh, 64px) auto 0;
}
/* the spine */
.ev-rail::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(67, 175, 67, 0.85) 0%,
    rgba(67, 175, 67, 0.45) 55%,
    rgba(67, 175, 67, 0.08) 100%
  );
}

.ev-phase {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(38px, 5vh, 54px);
}
.ev-phase:last-child { padding-bottom: 0; }

.ev-phase-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #6bd46b;
  background: #0f140f;
  border: 1.5px solid rgba(67, 175, 67, 0.45);
  transition: box-shadow 0.5s var(--content-ease), border-color 0.4s ease;
}
.ev-phase.is-revealed .ev-phase-node {
  border-color: rgba(67, 175, 67, 0.9);
  box-shadow:
    0 0 0 5px rgba(67, 175, 67, 0.08),
    0 0 30px -4px rgba(67, 175, 67, 0.5);
}

.ev-phase-body { padding-top: 5px; }
.ev-phase-title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #ffffff;
}
.ev-phase-note {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.ev-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ev-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition:
    transform 0.35s var(--content-ease),
    border-color 0.3s ease,
    background 0.3s ease;
}
.ev-cap::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #43af43;
}
.ev-cap:hover {
  transform: translateY(-3px);
  background: rgba(67, 175, 67, 0.1);
  border-color: rgba(67, 175, 67, 0.45);
}

@media (max-width: 620px) {
  .ev-phase { grid-template-columns: 44px 1fr; gap: 16px; }
  .ev-phase-node { width: 44px; height: 44px; font-size: 13px; }
  .ev-rail::before { left: 21px; }
}

/* ═══════════════════════════════════════════════════════════
   VEHICLE TYPES — what we build on
════════════════════════════════════════════════════════════ */
.ev-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: clamp(38px, 5vh, 54px);
}
.ev-type {
  position: relative;
  overflow: hidden;
  padding: 32px 26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(67, 175, 67, 0.14);
  border-radius: 18px;
  box-shadow:
    0 18px 44px -30px rgba(16, 44, 28, 0.24),
    0 2px 6px rgba(16, 44, 28, 0.04);
  transition:
    transform 0.45s var(--content-ease),
    box-shadow 0.5s var(--content-ease),
    border-color 0.35s ease;
}
.ev-type:hover {
  transform: translateY(-8px);
  border-color: rgba(67, 175, 67, 0.42);
  box-shadow:
    0 34px 64px -28px rgba(16, 44, 28, 0.3),
    0 0 46px -16px rgba(67, 175, 67, 0.22);
}
.ev-type-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #43af43;
  background: linear-gradient(135deg, rgba(67, 175, 67, 0.16), rgba(67, 175, 67, 0.05));
  border: 1px solid rgba(67, 175, 67, 0.22);
}
.ev-type-ic svg { width: 26px; height: 26px; }
.ev-type-name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1b1e1b;
}

@media (max-width: 900px) { .ev-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ev-types { grid-template-columns: 1fr; } }
