/* ==========================================================================
   RESPONSIVE: TABLET (768px)
   ========================================================================== */
@media (min-width: 768px) {
  :root { --pad-x: 36px; --pad-y: 56px; --pad-y-sub: 16px; }
  .section {
    padding: var(--pad-y) var(--pad-x);
  }
  .h1-hero {
    font-size: 56px;
  }
  .hero-wrapper {
    height: 85vh;
    min-height: 600px;
    max-height: 850px;
  }
  .hero-wrapper__content {
    padding: 0 48px 96px;
  }
  .hero-wrapper__bg .hero-poster img {
    object-position: center 25%;
  }
  .subnav__inner {
    padding: 0 36px;
  }
  .still-asset__content {
    padding: 0 48px 64px;
  }

  /* Mosaic slides: 2-col */
  .mosaic-slide-container.layout-one {
    grid-template-columns: 1fr 1fr;
  }
  .mosaic-slide-container.layout-two {
    grid-template-columns: 1fr 1fr;
  }
  .mosaic-slide-container.layout-two .mosaic-image {
    order: 2;
  }
  .mosaic-slide-container.layout-two .mosaic-info {
    order: 1;
  }
  .mosaic-slide-container.layout-three {
    grid-template-columns: 1fr 1fr;
  }

  /* (ns-grid removed — merged into safety-section) */
}


/* ==========================================================================
   RESPONSIVE: DESKTOP (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --pad-x: 56px; --pad-y: 96px; --pad-y-sub: 24px; }
  .section {
    padding: var(--pad-y) var(--pad-x);
  }
  .h1-hero {
    font-size: 72px;
  }
  .hero-wrapper {
    height: 90vh;
    min-height: 650px;
    max-height: 960px;
  }
  .hero-wrapper__content {
    padding: 0 80px 120px;
  }
  .hero-wrapper__subtitle {
    font-size: 18px;
    line-height: 28px;
  }
  .hero-wrapper__bg .hero-poster img {
    object-position: center 20%;
  }
  .subnav__inner {
    padding: 0 56px;
  }
  .still-asset {
    align-items: center;
  }
  .still-asset__content {
    padding: 0 0 0 80px;
    max-width: 560px;
  }

  /* Specs desktop padding */
  .vehicle-specs-container.section {
    padding: 96px 113px;
  }

}

@media (min-width: 1200px) {
  :root { --pad-x: 113px; }
  .section {
    padding: var(--pad-y) var(--pad-x);
  }
}


/* ==========================================================================
   MOBILE OVERRIDES (<768px)
   ========================================================================== */
@media (max-width: 767px) {
  /* --- Typography scaling --- */
  .heading-02, .display-05 {
    font-size: 28px;
    line-height: 1.15;
  }
  .heading-03 {
    font-size: 20px;
    line-height: 28px;
  }
  .heading-04 {
    font-size: 18px;
    line-height: 26px;
  }
  .body-02 {
    font-size: 15px;
    line-height: 23px;
  }

  /* --- Hero: full viewport on mobile --- */
  .hero-wrapper {
    min-height: 520px;
    max-height: 780px;
  }
  .hero-wrapper__content {
    padding: 0 20px 44px;
  }
  .hero-wrapper__bg .hero-poster img {
    object-position: center center;
  }
  .hero-wrapper__bg .hero-video {
    object-position: center center;
  }
  .hero-wrapper__bg::after {
    height: 90%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.1) 70%, transparent 100%);
  }

  /* --- Subnav: compact mobile --- */
  .subnav__cta {
    display: none;
  }
  .subnav__link {
    padding: 14px 14px;
    font-size: 13px;
  }
  .subnav__inner {
    gap: 0;
    padding: 0 12px;
  }

  /* --- Specs header: tighter on mobile --- */
  .vehicle-specs-container .specs-title {
    margin-bottom: 24px;
  }
  .vehicle-specs-container .section-inner > .body-02 {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 21px;
  }

  /* --- Specs: 2-col compact grid on mobile --- */
  .specs-top-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
  .spec-card {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 14px 10px 14px 0;
  }
  .spec-card__label {
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .spec-card__value {
    font-size: 16px;
    line-height: 1.2;
  }
  .spec-card .body-03 {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 2px;
  }

  /* --- Specs charge block: dark accent, battery visible --- */
  .specs-charge-block {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 20px;
    background: var(--dark-gray);
    border-radius: 10px;
  }
  .specs-charge-block .scb-battery {
    display: block;
    width: 52px;
    height: 96px;
  }
  .specs-charge-block .scb-body {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
  }
  .specs-charge-block .scb-cap {
    background: rgba(255,255,255,0.15);
    width: 22px;
    height: 4px;
    top: -6px;
  }
  .specs-charge-block .scb-pct {
    font-size: 0.85rem;
    color: #fff;
  }
  .specs-charge-block .scb-content .spec-card__label {
    color: rgba(255,255,255,0.4);
    font-size: 9px;
  }
  .specs-charge-block .scb-value {
    font-size: 1.6rem;
    color: #fff;
  }
  .specs-charge-block .scb-label {
    font-size: 9px;
    margin-bottom: 6px;
    letter-spacing: 0.15em;
  }
  .specs-charge-block .scb-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
  }
  .specs-charge-block .scb-timers {
    margin-top: 10px;
  }
  .specs-charge-block .scb-timer {
    width: 30px;
    height: 30px;
  }
  .specs-charge-block .scb-timer__bg {
    stroke: rgba(255,255,255,0.1);
  }
  .specs-charge-block .scb-timer span {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
  }
  .specs-charge-block .scb-timer.active span,
  .specs-charge-block .scb-timer.done span {
    color: #fff;
  }
  .scb-side-stats {
    display: none;
  }
  .spec-card {
    padding-top: 14px;
  }

  /* --- Mosaic carousels: stack vertically, full-bleed feel --- */
  .mosaic-slide-container.layout-one,
  .mosaic-slide-container.layout-two,
  .mosaic-slide-container.layout-three {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mosaic-slide-container.layout-one .mosaic-image,
  .mosaic-slide-container.layout-two .mosaic-image,
  .mosaic-slide-container.layout-three .mosaic-image {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }
  .mosaic-info__title {
    font-size: 18px;
    line-height: 26px;
  }
  .mosaic-info__body {
    font-size: 14px;
    line-height: 21px;
  }
  .mosaic-carousel__controls {
    margin-top: 24px;
  }
  .mosaic-carousel__btn {
    width: 40px;
    height: 40px;
  }

  /* (ns- mobile rules removed — merged into safety-section) */

  /* --- Footer CTA: tighter --- */
  .footer-cta.section {
    padding: var(--pad-y) var(--pad-x);
  }
  .footer-cta__buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .footer-cta__buttons .btn-pill {
    width: 100%;
    justify-content: center;
  }

  /* --- General touch targets --- */
  .btn-pill {
    padding: 14px 28px;
    font-size: 13px;
    min-height: 48px;
  }
  .link-arrow {
    min-height: 44px;
    padding: 8px 0;
  }

  /* --- Tech gallery: smaller title on mobile --- */
  .tech-gallery__title { font-size: 22px; }

}

/* ==========================================================================
   LARGER PHONES (480-767px) — 2-col specs
   ========================================================================== */
@media (min-width: 480px) and (max-width: 767px) {
  .specs-charge-block {
    grid-template-columns: auto 1fr auto;
    background: rgba(0,0,0,0.04);
  }
  .specs-charge-block .scb-value,
  .specs-charge-block .scb-pct {
    color: var(--black);
  }
  .specs-charge-block .scb-body {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.6);
  }
  .specs-charge-block .scb-cap {
    background: rgba(0,0,0,0.1);
  }
  .specs-charge-block .scb-content .spec-card__label {
    color: var(--mid-gray);
  }
  .specs-charge-block .scb-desc {
    color: var(--mid-gray);
  }
  .scb-side-stats {
    display: flex;
  }
}

/* ==========================================================================
   EXTRA SMALL MOBILE (<400px)
   ========================================================================== */
@media (max-width: 399px) {
  .h1-hero {
    font-size: 28px;
    line-height: 34px;
  }
  .hero-wrapper__subtitle {
    font-size: 14px;
    line-height: 20px;
  }
  .subnav__link {
    padding: 12px 10px;
    font-size: 12px;
  }
  .heading-02, .display-05 {
    font-size: 26px;
    line-height: 1.15;
  }
  .heading-03 {
    font-size: 18px;
    line-height: 24px;
  }
  /* (ns-card removed) */
}

/* ==========================================================================
   SAFE AREA INSETS (notch phones)
   ========================================================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0));
  }
  .subnav {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
}

/* ==========================================================================
   iOS BOUNCE / OVERSCROLL FIX
   ========================================================================== */
html {
  overscroll-behavior-y: none;
}

/* Prevent image drag on mobile */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Tap highlight removal */
* {
  -webkit-tap-highlight-color: transparent;
}
