/* Homepage hero with the interactive 3D EV. Dark stage under the dark header; the copy column
   swaps to the system explorer while the car is open. Scoped to .ev-hero so other pages keep
   the shared .hero rules in site.css. */
.ev-hero { --ev-bg: #0c110e; --ev-bg2: #121a15; --ev-text: #f3f3ed; --ev-muted: #b3bfae; --ev-lime: #8fce6e; --ev-foot: 62px;
  position: relative; isolation: isolate; overflow: hidden; padding: 0; margin: 0; display: flex; flex-direction: column;
  min-height: clamp(660px, calc(100vh - 96px), 860px); color: var(--ev-text);
  background: radial-gradient(130% 95% at 68% 58%, #1a271d 0%, var(--ev-bg2) 42%, var(--ev-bg) 100%); }
@supports (height: 100svh) { .ev-hero { min-height: clamp(660px, calc(100svh - 96px), 860px); } }
.ev-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(#8fce6e12 1px, transparent 1px), linear-gradient(90deg, #8fce6e12 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 68% 62%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 60% at 68% 62%, #000 10%, transparent 75%); }
.ev-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 700ms ease; pointer-events: none; }
.ev-hero.is-3d .ev-canvas { opacity: 1; }
.ev-layout { display: grid; grid-template-columns: 43% 57%; flex: 1; align-items: stretch; }
.ev-cell { position: relative; z-index: 3; grid-column: 1; display: grid; align-content: center; padding: 36px 0 44px; min-width: 0; }
.ev-cell > * { grid-area: 1 / 1; min-width: 0; }

/* ---- hero copy on the dark stage */
.ev-hero .hero-copy { padding: 0; transition: opacity 380ms ease, visibility 380ms, transform 600ms cubic-bezier(.2,.7,.2,1); }
.ev-hero .location-line { color: var(--ev-muted); margin-bottom: 24px; }
.ev-hero h1 { font-size: clamp(46px, 5.6vw, 82px); max-width: 600px; }
.ev-hero h1 span { color: var(--ev-lime); }
.ev-hero .hero-copy > p { max-width: 430px; margin-top: 22px; font-size: 19px; color: var(--ev-muted); }
.ev-hero .hero-actions { margin-top: 30px; }
.ev-hero .hero-copy .text-link { color: var(--ev-text); }
.ev-hero .hero-copy .text-link:hover { color: var(--ev-lime); }
.ev-hero .experience { color: var(--ev-text) !important; margin-top: 28px !important; }
.ev-hero .experience svg { color: var(--ev-lime); }
.ev-hero .button:focus-visible, .ev-hero a:focus-visible, .ev-hero button:focus-visible { outline-color: var(--ev-lime); }

/* ---- explorer: shown in place of the copy while the car is open */
.ev-explore { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 380ms ease, visibility 380ms, transform 600ms cubic-bezier(.2,.7,.2,1); }
.ev-hero.is-explore .ev-explore { opacity: 1; visibility: visible; transform: none; }
.ev-hero.is-explore .hero-copy { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.ev-explore-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.ev-eyebrow { color: var(--ev-lime); font: 500 13px/1 Sora, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ev-close { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #ffffff2a; border-radius: 3px; background: none; color: var(--ev-muted); font: 500 13px/1 Sora, sans-serif; }
.ev-close span { font-size: 16px; line-height: 1; }
.ev-close:hover { color: var(--ev-text); border-color: #ffffff55; }
.ev-selectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 580px; }
.ev-selector { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff1c; border-radius: 3px; background: #ffffff08; color: var(--ev-text); font: 500 14px/1.2 Sora, sans-serif; text-align: left; transition: background 150ms, border-color 150ms; }
.ev-selector > span { font-size: 10px; color: var(--ev-lime); letter-spacing: .05em; }
.ev-selector:hover { background: #ffffff14; border-color: #ffffff33; }
.ev-selector[aria-pressed=true] { background: var(--ev-lime); border-color: var(--ev-lime); color: #0f1611; }
.ev-selector[aria-pressed=true] > span { color: #2a5a1c; }
.ev-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ffffff1c; min-height: 200px; max-width: 580px; }
.ev-panel h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 10px; }
.ev-panel p { font-size: 17px; line-height: 1.45; color: var(--ev-muted); max-width: 520px; }
.ev-symptoms { margin-top: 14px !important; font-size: 15px !important; }
.ev-symptoms strong { display: block; color: var(--ev-text); font-weight: 600; margin-bottom: 2px; }
.ev-panel-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; align-items: baseline; }
.ev-panel .text-link { font-size: 14px; color: var(--ev-text); }
.ev-panel .text-link:hover { color: var(--ev-lime); }
.ev-panel .ev-parts-link { display: inline; margin: 0; font-size: 14px; color: var(--ev-muted); }
.ev-explore > .button { margin-top: 24px; }

/* ---- the car stage: hover target, poster, hotspots and affordances */
.ev-stage { position: absolute; z-index: 2; left: 40%; right: 0; top: 0; bottom: var(--ev-foot); container-type: inline-size; }
.ev-stage-glow { position: absolute; left: -10%; right: -5%; top: 12%; bottom: 8%; background: radial-gradient(50% 45% at 50% 58%, #8fce6e1f 0%, transparent 70%); filter: blur(20px); pointer-events: none; }
/* Posters are crops of the real 3D frame, centred on the stage box and scaled to its width, so
   the 3D scene paints exactly over them and the handover is a plain crossfade. */
.ev-poster { position: absolute; left: 50%; top: 50%; width: calc(100% * var(--sd, 1.667)); transform: translate(-50%, -50%); pointer-events: none; transition: opacity 700ms ease, visibility 700ms; }
.ev-poster img { width: 100%; height: auto; display: block; }
.ev-poster-open { opacity: 0; visibility: hidden; }
.ev-hero.is-static .ev-poster { transition-duration: 450ms; }
.ev-hero.is-3d .ev-poster { opacity: 0; visibility: hidden; }
.ev-hero.is-static.is-open .ev-poster-closed { opacity: 0; visibility: hidden; }
.ev-hero.is-static.is-open .ev-poster-open { opacity: 1; visibility: visible; }
.ev-hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ev-hotspot { position: absolute; left: 0; top: 0; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--ev-text); font: 500 13px/1 Sora, sans-serif; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -50%) scale(.85); transition: opacity 300ms ease, visibility 300ms, transform 400ms cubic-bezier(.2,.7,.2,1); }
.ev-hero.is-static .ev-hotspot { left: calc(var(--dx) * 100%); top: calc(var(--dy) * 100cqw); }
.ev-hero.is-open .ev-hotspot { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%); transition-delay: 450ms; }
.ev-hero.is-open .ev-hotspot:nth-child(2) { transition-delay: 500ms; } .ev-hero.is-open .ev-hotspot:nth-child(3) { transition-delay: 550ms; } .ev-hero.is-open .ev-hotspot:nth-child(4) { transition-delay: 600ms; } .ev-hero.is-open .ev-hotspot:nth-child(5) { transition-delay: 650ms; } .ev-hero.is-open .ev-hotspot:nth-child(6) { transition-delay: 700ms; }
.ev-hero.is-3d.is-open .ev-hotspot, .ev-hero.is-static.is-open .ev-hotspot { pointer-events: auto; }
.ev-hotspot-dot { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #8fce6ea6; background: #0f1611e6; color: var(--ev-lime); font-size: 11px; letter-spacing: .02em; box-shadow: 0 0 0 6px #8fce6e14, 0 8px 24px #0008; transition: background 150ms, color 150ms, box-shadow 150ms; }
.ev-hotspot-label { position: absolute; padding: 7px 10px; border-radius: 3px; background: #0f1611d9; border: 1px solid #ffffff1a; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-hotspot[data-dir=right] .ev-hotspot-label { left: calc(100% + 9px); top: 50%; transform: translateY(-50%); }
.ev-hotspot[data-dir=left] .ev-hotspot-label { right: calc(100% + 9px); top: 50%; transform: translateY(-50%); }
.ev-hotspot[data-dir=up] .ev-hotspot-label { bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); }
.ev-hotspot[data-dir=down] .ev-hotspot-label { top: calc(100% + 9px); left: 50%; transform: translateX(-50%); }
.ev-hotspot:hover .ev-hotspot-dot, .ev-hotspot[aria-pressed=true] .ev-hotspot-dot { background: var(--ev-lime); color: #0f1611; box-shadow: 0 0 0 7px #8fce6e2e, 0 0 32px #8fce6e66; }
.ev-hotspot[aria-pressed=true] .ev-hotspot-label { border-color: #8fce6e80; }
.ev-hotspot:focus-visible { outline: none; }
.ev-hotspot:focus-visible .ev-hotspot-dot { outline: 3px solid var(--ev-lime); outline-offset: 4px; }
/* Affordances: a hint for mouse users, a real button for touch. Both hide once the car is open. */
.ev-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: 13px; color: var(--ev-muted); white-space: nowrap; pointer-events: none; transition: opacity 300ms; }
.ev-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-lime); box-shadow: 0 0 0 4px #8fce6e2e; animation: ev-pulse 2.2s ease-in-out infinite; }
.ev-tap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: none; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #8fce6e66; border-radius: 999px; background: #0f1611e0; color: var(--ev-text); font: 500 13px/1 Sora, sans-serif; white-space: nowrap; box-shadow: 0 10px 30px #0008; transition: opacity 300ms, visibility 300ms; }
.ev-tap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ev-lime); box-shadow: 0 0 0 4px #8fce6e2e; animation: ev-pulse 2.2s ease-in-out infinite; }
@media (hover: none) { .ev-hint { display: none; } .ev-tap { display: inline-flex; } }
.ev-hero.is-open .ev-hint, .ev-hero.is-open .ev-tap { opacity: 0; visibility: hidden; }
@keyframes ev-pulse { 0%, 100% { box-shadow: 0 0 0 4px #8fce6e2e; } 50% { box-shadow: 0 0 0 9px #8fce6e14; } }

/* ---- foot: toggle (keyboard, touch) and the illustrative-EV note */
.ev-foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: var(--ev-foot); padding-bottom: 6px; }
.ev-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #ffffff2a; border-radius: 3px; background: #ffffff08; color: var(--ev-text); font: 500 13px/1 Sora, sans-serif; transition: background 150ms, border-color 150ms; }
.ev-toggle svg { color: var(--ev-lime); }
.ev-toggle:hover { background: #ffffff14; border-color: #ffffff55; }
.ev-toggle[aria-expanded=true] { border-color: #8fce6e66; }
.ev-footnote { max-width: 360px; text-align: right; font-size: 11px; line-height: 1.4; color: #7f8c7c; }

/* ---- the brand strip that follows the stage */
.ev-hero + .brand-strip { margin-top: 0; background: var(--dark); color: #f3f3ed; /* literal: --ev-text is scoped to .ev-hero */ border-top: 1px solid #27312a; border-bottom: 1px solid #27312a; }
.ev-hero + .brand-strip p { color: #9eae96; }
.ev-hero + .brand-strip .makes-all a { color: #b9dba4; }
.ev-hero + .brand-strip .makes-all a:hover, .ev-hero + .brand-strip .makes a:hover { color: #fff; }

@media (max-width: 1100px) and (min-width: 801px) {
  .ev-layout { grid-template-columns: 46% 54%; }
  .ev-hero h1 { font-size: clamp(44px, 5.4vw, 64px); }
  .ev-stage { left: 42%; }
  .ev-selectors { gap: 5px; }
  .ev-selector { font-size: 13px; padding: 8px 10px; gap: 8px; }
}
@media (max-width: 800px) {
  .ev-hero { --ev-foot: 56px; min-height: 0; background: radial-gradient(120% 60% at 50% 68%, #1a271d 0%, var(--ev-bg2) 45%, var(--ev-bg) 100%); }
  .ev-backdrop { -webkit-mask-image: radial-gradient(80% 45% at 50% 66%, #000 10%, transparent 75%); mask-image: radial-gradient(80% 45% at 50% 66%, #000 10%, transparent 75%); }
  .ev-layout { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .ev-cell { grid-row: 1; padding: 26px 0 8px; align-content: start; }
  .ev-hero .hero-copy { padding: 0; }
  .ev-hero .location-line { margin-bottom: 14px; font-size: 14px; }
  .ev-hero h1 { font-size: clamp(38px, 9.6vw, 56px); letter-spacing: -.05em; max-width: 560px; }
  .ev-hero .hero-copy > p { margin-top: 14px; font-size: 16px; max-width: 460px; }
  .ev-hero .hero-actions { margin-top: 20px; gap: 16px; }
  .ev-hero .hero-actions .button { min-height: 48px; padding: 12px 18px; }
  .ev-hero .experience { display: none; }
  .ev-stage { position: relative; grid-row: 2; left: auto; right: auto; top: auto; bottom: auto; margin: 0 -28px; height: clamp(280px, 56vw, 420px); }
  .ev-poster { width: calc(100% * var(--sp, 1)); }
  .ev-hero.is-static .ev-hotspot { left: calc(var(--px) * 100%); top: calc(var(--py) * 100cqw); }
  .ev-stage-glow { left: 0; right: 0; top: 10%; bottom: 0; }
  .ev-explore { padding-top: 2px; }
  .ev-explore-head { margin-bottom: 12px; }
  .ev-selectors { display: flex; gap: 6px; max-width: none; overflow-x: auto; scrollbar-width: none; margin: 0 -28px; padding: 2px 28px 6px; -webkit-overflow-scrolling: touch; }
  .ev-selectors::-webkit-scrollbar { display: none; }
  .ev-selector { flex: 0 0 auto; min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .ev-panel { margin-top: 12px; padding-top: 14px; min-height: 0; }
  .ev-panel h2 { font-size: 22px; margin-bottom: 6px; }
  .ev-panel p { font-size: 15px; line-height: 1.4; }
  .ev-symptoms { margin-top: 10px !important; font-size: 14px !important; }
  .ev-panel-links { margin-top: 12px; gap: 8px 20px; }
  .ev-explore > .button { display: none; }
  .ev-hotspot-label { display: none; }
  .ev-hotspot { width: 34px; height: 34px; }
  .ev-foot { flex-wrap: wrap; min-height: var(--ev-foot); padding: 4px 0 16px; gap: 12px 16px; }
  .ev-toggle { white-space: nowrap; }
  .ev-footnote { flex: 1 1 220px; text-align: right; font-size: 10px; max-width: none; }
}
@media (max-width: 500px) {
  .ev-stage { margin: 0 -18px; height: clamp(240px, 66vw, 330px); }
  .ev-selectors { margin: 0 -18px; padding: 2px 18px 6px; }
  .ev-hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .ev-footnote { flex-basis: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-hero *, .ev-hero *::before { transition: none !important; animation: none !important; }
}

/* ===================================================================== Homepage sections below the hero
   (this stylesheet is homepage-only, so the overrides live here rather than in site.css). */
.makes { margin: 0; padding: 0; list-style: none; }
.makes a { color: inherit; text-decoration: none; }
.makes a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.makes .makes-all { font-weight: 600; white-space: nowrap; }
.makes .makes-all a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.makes .makes-all a:hover { text-decoration: none; }
.workshop-copy h2 { color: #fff; }
.workshop-copy .workshop-lede strong { color: #fff; font-weight: 600; }
.workshop-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 30px; }
.workshop-copy .workshop-links .text-link { margin-top: 0; font-size: 17px; }
.workshop-copy .workshop-links .text-link:hover { color: #fff; }
@media (max-width: 500px) {
  .workshop-links { flex-direction: column; align-items: flex-start; }
}

/* Dev-only inspect view (?state=open&inspect=<id>): the part alone, with the hero copy and controls hidden. */
.ev-hero[data-inspect] :is(.hero-copy, .ev-explore, .ev-foot, .ev-toggle, .ev-tap, .ev-hint, .ev-footnote) { visibility: hidden; }
.ev-hero[data-inspect] .ev-hotspots { display: none !important; }
