/* Mobile layout: show the vehicle above readable content, without tall cropping. */
html { scroll-padding-top: 100px; }
.product-specs { padding-left: 20px; color: #b5b6b7; font-size: 1rem; line-height: 1.65; margin: 0 0 20px; }
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: white; }
.apparel { background: #101214; }
.apparel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.apparel-category { border: 1px solid #303336; padding: clamp(24px, 4vw, 48px); }
.apparel-category h3 { font: 800 2.5rem/1.1 var(--display); text-transform: uppercase; margin: 0; }
.apparel-category p { color: #b5b6b7; line-height: 1.6; margin: 20px 0 28px; }
@media (max-width: 580px) { .apparel-grid { grid-template-columns: 1fr; } }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 900px) {
  .nav { height: 72px; padding-inline: 16px; gap: 12px; }
  .nav-cta { min-height: 44px; padding: 10px; letter-spacing: 0; text-transform: none; }
  .nav-cta span { display: inline; font-size: .875rem; }
  .hero { display: block; height: auto; min-height: 0; padding: 72px 0 32px; }
  .hero-media { position: relative; inset: auto; width: 100%; height: clamp(230px, 58vw, 460px); background-position: 85% center; animation: none; transform: none; will-change: auto; }
  .hero-shade { top: 72px; bottom: auto; height: clamp(230px, 58vw, 460px); background: linear-gradient(0deg, #08090a, transparent 23%); }
  .rain, .lightning { inset: 72px 0 auto; height: clamp(230px, 58vw, 460px); }
  .hero-copy { width: auto; margin: 0; padding: 0 20px; }
  .hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.5rem); line-height: 1; letter-spacing: -.025em; }
  .eyebrow { font-size: .875rem; letter-spacing: .08em; line-height: 1.5; }
  .lead { font-size: 1rem; line-height: 1.6; margin: 20px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .button { min-height: 48px; font-size: .875rem; line-height: 1.5; letter-spacing: .04em; gap: 12px; }
  .hero-facts { display: grid; grid-template-columns: 1fr; max-width: none; overflow: visible; margin-top: 24px; }
  .hero-facts div { min-width: 0; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #ffffff20; }
  .hero-facts strong { font-size: 1.125rem; }
  .hero-facts span { font-size: .875rem; }
  .scroll-cue { display: none; }
  .section { padding: 56px 20px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .finder h2, .promise h2, .cta h2 { font-size: clamp(2.25rem, 8.5vw, 4rem); line-height: 1; overflow-wrap: anywhere; }
  .filters { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .filter { min-height: 44px; font-size: .875rem; padding: 10px 14px; }
  .card { min-height: 0; }
  .machine-art { height: 150px; }
  .machine-art strong { font-size: 7rem; }
  .machine-art:after { font-size: 9rem; }
  .card-body { padding: 20px; }
  .card p { font-size: 1rem; min-height: 0; }
  .tag, .price span { font-size: .875rem; letter-spacing: 0; }
  .card a { display: flex; align-items: center; min-height: 48px; font-size: .875rem; }
  .finder { gap: 28px; }
  .finder-number { display: none; }
  .quiz { min-width: 0; min-height: 0; padding: 24px 20px; box-shadow: 5px 5px 0 #c9c6bd; }
  .progress { margin-bottom: 24px; }
  .quiz h3 { line-height: 1.1; margin-bottom: 24px; }
  .question-count, .choices small { font-size: .875rem; }
  .choices { grid-template-columns: 1fr; }
  .choices button { min-height: 64px; padding: 16px; }
  .back, .restart { min-height: 44px; font-size: 1rem; }
  .promise-grid { margin-top: 32px; }
  .promise-grid > div { padding: 24px; }
  .promise-grid p { font-size: 1rem; }
  .cta { margin: 0 12px 24px; padding: 36px 20px; gap: 20px; }
  .instagram { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
  footer { padding: 32px 20px 96px; font-size: .875rem; }
  .float-wa { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .brand-logo img { width: 108px; }
  .nav-cta { gap: 5px; }
  .nav-cta span { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div, .reveal { animation: none; }
}
/* Keep every section reachable by touch, including on narrow phones. */
@media (max-width: 900px) {
  html { scroll-padding-top: 132px; }
  .nav { height: 116px; flex-wrap: wrap; align-content: flex-start; padding-top: 10px; gap: 0 10px; background: #08090af5; }
  .nav > .brand-logo, .nav > .nav-cta { height: 52px; }
  .nav > .brand-logo { display: flex; align-items: center; }
  .nav > .nav-cta { height: 44px; margin-top: 4px; max-width: calc(100% - 142px); }
  .nav-cta span { font-size: .875rem; line-height: 1.2; }
  .nav nav { display: flex; order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: .875rem; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; color: #e0e0e0; }
  .hero { padding-top: 116px; }
  .hero-shade, .rain, .lightning { top: 116px; }
  .hero-copy { padding-top: 0; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .hero-facts div:last-child { grid-column: 1 / -1; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-width: 0; }
  .card h3 { font-size: 2rem; line-height: 1.1; }
  .card a { text-transform: none; letter-spacing: 0; font-size: 1rem; }
  .price { flex-wrap: wrap; margin: 16px 0; }
  .price strong { font-size: 2rem; }
  .product-specs { font-size: .9375rem; }
  .apparel-category { min-width: 0; }
  .apparel-category .button { width: 100%; white-space: normal; }
  .card:hover, .button:hover { transform: none; }
  .float-wa { width: 52px; height: 52px; }
  footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .apparel-grid { grid-template-columns: minmax(0, 1fr); }
  .product-photo { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.view-switch { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 24px; font-size:.875rem; }
.view-switch > span { color:#bbb; margin-right:4px; }
.view-switch button { min-height:44px; padding:10px 16px; background:#151719; color:#eee; border:1px solid #45484b; cursor:pointer; }
.view-switch button[aria-pressed="true"] { background:var(--red); border-color:var(--red); color:white; }
.model-grid.compact-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.compact-grid .card { min-height:0; }
.compact-grid .card-body { padding:16px; }
.compact-grid .card h3 { font-size:1.65rem; line-height:1.1; }
.compact-grid .card p { min-height:0; }
.compact-grid .product-specs { font-size:.875rem; padding-left:16px; }
.compact-grid .price { flex-wrap:wrap; gap:4px; }
.compact-grid .card a { display:flex; align-items:center; min-height:44px; text-transform:none; letter-spacing:0; font-size:.875rem; overflow-wrap:anywhere; }
.compact-grid .machine-art { height:130px; font-size:2rem; }
.compact-grid .machine-art strong { font-size:5rem; }
.compact-grid .machine-art:after { font-size:7rem; }
@media(max-width:1100px) { .model-grid.compact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
 .model-grid.compact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .compact-grid .card-body { padding:12px; }
 .compact-grid .card h3 { font-size:1.4rem; }
 .compact-grid .card p, .compact-grid .product-specs { font-size:.875rem; }
 .compact-grid .price strong { font-size:1.45rem; }
 .compact-grid .card-top { flex-wrap:wrap; gap:8px; padding:12px; }
}
@media(max-width:340px) { .model-grid.compact-grid { grid-template-columns:minmax(0,1fr); } }

/* The alternate list keeps one complete model per row on every screen. */
.model-grid:not(.compact-grid) { grid-template-columns:minmax(0,1fr); }
@media(min-width:701px) {
 .model-grid:not(.compact-grid) .card:not(.hidden) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:0; align-items:center; }
 .model-grid:not(.compact-grid) .card-body { margin:0; border-top:0; }
 .model-grid:not(.compact-grid) .card-top { grid-column:1 / -1; }
}

[hidden] { display:none !important; }
.catalog-apparel { padding:24px 0 0; background:transparent; }
.catalog-apparel .section-head h2 { font-size:clamp(2rem,5vw,3.5rem); }

/* Preserve the entire wet-road photograph and its red X without rain overlays. */
.hero { display:block; height:auto; min-height:0; padding:82px 0 48px; }
.hero-media { position:relative; inset:auto; width:100%; height:auto; aspect-ratio:1672 / 941; background-size:contain; background-position:center; background-repeat:no-repeat; animation:none; transform:none; will-change:auto; }
.hero-shade { display:none; }
.rain { display:none; }
.lightning { inset:82px 0 auto; height:auto; aspect-ratio:1672 / 941; }
.hero-copy { width:auto; max-width:1200px; margin:0 auto; padding:32px clamp(20px,5vw,76px) 0; }
.hero h1 { font-size:clamp(2.5rem,6vw,6rem); line-height:1; }
.hero-facts { margin-top:32px; }
.scroll-cue { display:none; }
@media(max-width:900px) {
 .hero { padding:116px 0 32px; }
 .hero-media { height:auto; aspect-ratio:1672 / 941; background-position:center; }
 .lightning { top:116px; height:auto; aspect-ratio:1672 / 941; }
 .hero-copy { padding:20px 20px 0; }
}

/* Restore the original over-image headline position. */
.hero { position:relative; display:flex; align-items:center; min-height:820px; height:100vh; padding:0; }
.hero-media { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; background-size:cover; background-position:center; }
.hero-copy { position:relative; width:min(780px,88vw); max-width:none; margin:0 0 0 clamp(24px,8vw,130px); padding:70px 0 0; }
.hero h1 { font-size:clamp(4rem,8.4vw,8.8rem); line-height:.85; }
.lightning { inset:0; height:auto; aspect-ratio:auto; }
.hero-copy h1, .hero-copy .eyebrow, .hero-copy .lead { text-shadow:0 2px 18px #000b; }
/* Restore the mobile layout independently of the desktop headline overlay. */
@media(max-width:900px) {
 .hero { display:block; min-height:0; height:auto; padding:116px 0 32px; }
 .hero-media { position:relative; inset:auto; width:100%; height:clamp(230px,58vw,460px); aspect-ratio:auto; background-size:cover; background-position:85% center; animation:none; transform:none; }
 .hero-shade { display:block; inset:116px 0 auto; height:clamp(230px,58vw,460px); background:linear-gradient(0deg,#08090a,transparent 23%); pointer-events:none; }
 .hero-copy { width:auto; max-width:none; margin:0; padding:0 20px; }
 .hero h1 { font-size:clamp(2.5rem,8.5vw,4.5rem); line-height:1; }
 .hero-facts { margin-top:24px; }
 .lightning { inset:116px 0 auto; height:clamp(230px,58vw,460px); aspect-ratio:auto; }
}

/* Raptor gallery retains both views in one product card. */
.product-gallery{min-width:0;align-self:start;background:#fff;border-radius:10px;overflow:hidden}
/* Arrows overlay the photograph without adding a controls row. */
.product-gallery{position:relative;width:100%}
.gallery-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 4px;pointer-events:none}
.gallery-arrows button{pointer-events:auto;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #0002;border-radius:50%;background:#ffffffe6;color:#171717;box-shadow:0 2px 8px #0002;font:32px/1 Arial,sans-serif;cursor:pointer}
.gallery-arrows button:hover{background:#fff}
.gallery-arrows button:focus-visible{outline:3px solid #d50919;outline-offset:2px}
