/* Warlord Electric
   Palette comes from the bikes themselves: black bodywork, the G1's yellow livery,
   trail dust, and the S5's red wheel rings. One motif throughout: the 12-degree slant
   of the G1's chevron decal. */

:root {
  --black: #000;
  --earth: #1b1712;
  --earth-2: #2b241b;
  --dust: #cbb994;
  --bone: #f5f0e6;
  --accent: #f2d21b;
  --accent-ink: #0a0a0a;
  --rule: rgba(203, 185, 148, .24);
  --font: "Kanit", "Segoe UI", system-ui, sans-serif;
  --cut: 14px;
}
body.s5 { --accent: #e5392c; --accent-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--bone); font: 300 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, table { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.display { font-weight: 800; font-style: italic; line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.muted { color: var(--dust); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn, .quote-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px;
  background: var(--accent); color: var(--accent-ink); font: italic 600 18px/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: filter .15s ease-out, transform .12s ease-out;
}
.btn:hover, .quote-btn:hover { filter: brightness(1.08); }
.btn:active, .quote-btn:active { transform: scale(.97); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { color: var(--accent); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: clamp(16px, 4vw, 34px); }
.top nav a { font-weight: 500; font-size: 16px; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: var(--accent); }

/* ---------- home hero: two rides share one stage and trade places ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); }
.hero-stage { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.hero-slide.s5, .hero-tabs .s5 { --accent: #e5392c; --accent-ink: #fff; }
.hero-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--earth); clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.hero-photo img, .hero-photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.s5 .hero-photo img { object-position: 50% 16%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 30%, transparent 60%, rgba(0, 0, 0, .7)); }
.hero-copy { position: relative; z-index: 2; padding-bottom: 56px; }
.mega { font-weight: 800; font-style: italic; font-size: clamp(140px, 42vw, 360px); line-height: .74; letter-spacing: -.04em; color: var(--accent); margin: -.5em 0 0 -.04em; }
.hero-tabs { position: absolute; z-index: 5; top: 14px; left: 20px; display: flex; gap: 8px; }
.hero-tabs[hidden] { display: none; }
.hero-tabs button { position: relative; overflow: hidden; min-height: 44px; padding: 0 16px 3px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--dust); font: italic 600 15px/1 var(--font); }
.hero-tabs button.is-on { color: var(--bone); }
.hero-tabs i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.hero-tabs button.is-on i { transform: scaleX(1); }
.hero-tabs.auto button.is-on i { animation: fill var(--dur, 6s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.badge { display: inline-block; background: var(--bone); color: #000; font-weight: 600; font-style: italic; font-size: 14px; line-height: 1; padding: 7px 14px 6px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hero .badge { margin-top: 20px; }
.hero .name { font-size: clamp(34px, 8.6vw, 60px); margin-top: 14px; }
.hero-slide.s5 .name { margin-top: 20px; }
.hero .spec-line { margin-top: 14px; font-size: 18px; color: var(--dust); max-width: 30em; }
.price-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.price { font-weight: 800; font-style: italic; font-size: 30px; line-height: 1; }
.price.big { font-size: clamp(46px, 11vw, 68px); }
.price-row small { font-size: 15px; color: var(--dust); }
.hero .btn { margin-top: 26px; }

/* ---------- statement ---------- */
.statement { background: var(--earth); }
.statement .wrap { display: grid; gap: 30px; padding-block: 64px; }
.statement h2 { font-size: clamp(42px, 10.5vw, 92px); }
.statement p { margin-top: 18px; font-size: 19px; color: var(--dust); }
.slant { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); aspect-ratio: 5 / 4; overflow: hidden; }
.slant img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lineup ---------- */
.lineup { padding-block: 70px 30px; }
.lineup > .wrap > h2 { font-size: clamp(34px, 7vw, 56px); }
.rides { margin-top: 28px; display: grid; gap: 22px; }
.ride { display: block; text-decoration: none; background: var(--earth); position: relative; }
.ride-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.ride-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ride:hover .ride-photo img { transform: scale(1.04); }
.ride .badge { position: absolute; top: 16px; left: 14px; background: var(--accent); }
.ride-body { padding: 22px 22px 26px; border-top: 4px solid var(--ride-accent, var(--accent)); }
.ride-body .kind { font-size: 15px; color: var(--dust); }
.ride-body h3 { font-size: clamp(28px, 6vw, 40px); margin-top: 4px; }
.ride-body .tag { margin-top: 10px; color: var(--dust); }
.ride-foot { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ride.s5 { --ride-accent: #e5392c; }
.ride.s5 .ride-photo { aspect-ratio: 1 / 1; }

.dealer { padding-block: 26px 70px; }
.dealer p { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; font-size: 19px; }
.dealer strong { font-weight: 600; font-style: italic; }

/* ---------- contact ---------- */
.contact { background: var(--earth); }
.contact .wrap { display: grid; gap: 30px; padding-block: 64px; }
.contact h2 { font-size: clamp(44px, 10vw, 84px); }
.contact .intro { margin-top: 16px; color: var(--dust); max-width: 30em; }
.contact .intro a { color: var(--bone); }
.cform { display: grid; gap: 18px; }
.cform label { display: grid; gap: 7px; font-weight: 500; font-size: 15px; color: var(--dust); }
.cform input, .cform select, .cform textarea { width: 100%; font: 300 17px/1.4 var(--font); color: var(--bone); background: var(--black); border: 1px solid var(--rule); border-radius: 0; padding: 14px 14px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--accent); }
.cform textarea { resize: vertical; min-height: 140px; }
.cform .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.cform .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.quote { background: var(--black); border-top: 1px solid var(--rule); scroll-margin-top: 66px; }
.quote .cform input, .quote .cform select, .quote .cform textarea { background: var(--earth); }
.quote .cform textarea { min-height: 110px; }

/* ---------- product page ---------- */
.pdp-top { display: grid; gap: 26px; padding-block: 22px 50px; }
.pdp-top > * { min-width: 0; }
.gallery-main { aspect-ratio: 1 / 1; overflow: hidden; background: var(--earth); margin-inline: -20px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease; }
.gallery-main img.swap { opacity: 0; }
.thumbs { position: relative; margin-top: 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 72px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--earth); border-bottom: 4px solid transparent; opacity: .6; transition: opacity .15s; }
.thumbs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.thumbs a[aria-current="true"] { opacity: 1; }
.thumbs a[aria-current="true"]::after { transform: scaleX(1); }
.gallery.auto .thumbs a[aria-current="true"]::after { animation: fill 3.6s linear both; }
.thumbs a:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy .kind { color: var(--dust); }
.buy h1 { font-size: clamp(38px, 9.4vw, 66px); margin-top: 6px; }
.buy .tag { margin-top: 14px; font-size: 18px; color: var(--dust); }
.buy .quote-btn { margin-top: 22px; width: 100%; min-height: 60px; font-size: 20px; }
.buy .ship { margin-top: 18px; color: var(--dust); font-size: 16px; }
.buy .ship + .ship { margin-top: 10px; }
.buy .ship a { color: var(--bone); }

/* key numbers */
.stats { border-top: 1px solid var(--rule); }
.stats dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 26px 0 24px; border-bottom: 1px solid var(--rule); min-width: 0; }
.stat:nth-child(odd) { padding-right: 14px; }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat dt { font-weight: 500; font-size: 15px; color: var(--dust); }
.stat dd { margin: 0; }
.fig { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; white-space: nowrap; margin-top: 6px; font-weight: 800; font-style: italic; line-height: .95; color: var(--accent); }
.fig b { font-weight: 800; font-size: clamp(38px, 11.4vw, 92px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: inline-block; }
.fig i { font-size: clamp(17px, 4.6vw, 28px); }
.fig em { flex-basis: 100%; font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--bone); min-height: 18px; }
.stat small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--dust); }

/* riding clip */
.clip { position: relative; background: var(--black); }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .82), transparent 55%); pointer-events: none; }
.clip .wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; }
.clip p { font-size: clamp(26px, 7vw, 68px); max-width: 12em; }

.detail { background: var(--earth); }
.detail .wrap { display: grid; gap: 44px; padding-block: 60px; }
.detail h2 { font-size: clamp(32px, 7vw, 52px); }
.story p { margin-top: 18px; max-width: 34em; }
.specs table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.specs th { width: 42%; font-weight: 400; color: var(--dust); padding-right: 14px; }
.specs td { font-weight: 500; }

.next { padding-block: 60px; }
.next h2 { font-size: clamp(30px, 6vw, 44px); }
.next .rides { grid-template-columns: 1fr; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(0, 0, 0, .94); border-top: 1px solid var(--rule); padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.buybar[hidden] { display: none; }
.buybar .price { font-size: 26px; }
.buybar .quote-btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
body.has-buybar { padding-bottom: 76px; }

/* ---------- thanks ---------- */
.thanks { min-height: 62vh; display: grid; align-content: center; padding-block: 70px; }
.thanks h1 { font-size: clamp(44px, 11vw, 96px); max-width: 11em; }
.thanks p { margin-top: 18px; font-size: 19px; color: var(--dust); }
.thanks .btn { margin-top: 30px; justify-self: start; }

/* ---------- footer ---------- */
.foot { border-top: 4px solid var(--accent); background: var(--black); }
.foot .wrap { padding-block: 40px 46px; display: grid; gap: 22px; }
.foot .logo img { height: 46px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { font-weight: 500; text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot .safety { color: var(--dust); font-size: 15px; max-width: 46em; }
.foot .addr { color: var(--dust); font-size: 15px; }
.dealer span { flex: 1 1 22em; color: var(--dust); font-size: 17px; }

/* ---------- one sequence: whichever ride takes the stage rolls in ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes roll { from { opacity: 0; transform: translateX(-7%); } to { opacity: 1; transform: none; } }
@keyframes push { from { transform: scale(1.07); } to { transform: none; } }
.hero-slide.is-on .mega { animation: roll .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-on .hero-photo img { animation: push 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-on .badge, .hero-slide.is-on .name, .hero-slide.is-on .spec-line, .hero-slide.is-on .price-row, .hero-slide.is-on .btn { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-on .name { animation-delay: .08s; } .hero-slide.is-on .spec-line { animation-delay: .14s; } .hero-slide.is-on .price-row { animation-delay: .2s; } .hero-slide.is-on .btn { animation-delay: .26s; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap { width: min(1200px, 100% - 80px); }
  .logo img { height: 46px; }

  .hero-stage { min-height: min(86vh, 800px); }
  .hero-slide { display: grid; align-items: center; }
  .hero-photo { position: absolute; inset: 0 0 0 46%; aspect-ratio: auto; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-photo::after { background: linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 40%); }
  .hero-slide.s5 .hero-photo img { object-position: 50% 50%; }
  /* the G1 clip fills the stage; a slanted black panel carries the copy */
  .hero-slide.g1 .hero-photo { inset: 0; clip-path: none; }
  .hero-slide.g1 .hero-photo::after { background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 34%); }
  .hero-slide.g1 .hero-photo::before { content: ""; position: absolute; z-index: 1; inset: 0 44% 0 0; background: rgba(0, 0, 0, .84); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
  .hero-copy { padding-block: 46px 104px; }
  .hero-copy > * { max-width: 42%; }
  .mega { max-width: none !important; font-size: clamp(200px, 22vw, 330px); margin: 0 0 0 -.05em; }
  .hero-slide.s5 .name { font-size: clamp(34px, 3.3vw, 48px); }
  .hero .badge { margin-top: 30px; }
  .hero-tabs { top: auto; bottom: 34px; left: max(40px, calc((100% - 1200px) / 2)); }

  .stats dl { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 44px 26px 40px; border-bottom: 0; border-left: 1px solid var(--rule); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .fig b { font-size: clamp(54px, 5.2vw, 78px); }
  .fig i { font-size: 24px; }
  .clip video { max-height: 84vh; }
  .clip .wrap { bottom: 46px; }

  .statement .wrap { grid-template-columns: 7fr 5fr; align-items: center; gap: 50px; padding-block: 110px; }
  .lineup { padding-block: 110px 40px; }
  .rides { grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
  .ride-body { padding: 26px 28px 30px; }
  .dealer { padding-bottom: 110px; }
  .contact .wrap { grid-template-columns: 5fr 6fr; gap: 70px; padding-block: 110px; }

  .pdp-top { grid-template-columns: 7fr 5fr; gap: 56px; padding-block: 40px 90px; align-items: start; }
  .gallery-main { margin-inline: 0; }
  .thumbs { grid-auto-columns: 92px; }
  .buy { position: sticky; top: 100px; }
  .buy h1 { font-size: clamp(40px, 3.7vw, 54px); }
  .detail .wrap { grid-template-columns: 5fr 7fr; gap: 70px; padding-block: 100px; align-items: start; }
  .story { position: sticky; top: 100px; }
  .next { padding-block: 100px; }
  .next .rides { grid-template-columns: 1fr 1fr; }
  .next .ride { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .next .ride-body { border-top: 0; border-left: 4px solid var(--ride-accent, var(--accent)); display: grid; align-content: center; }
  .buybar { display: none; }
  body.has-buybar { padding-bottom: 0; }
  .foot .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 50px; padding-block: 54px; }
  .foot nav { justify-content: flex-end; }
  .foot .safety, .foot .addr { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
