:root {
  --ink: #0b0d10;
  --panel: #111318;
  --paper: #ffffff;
  --muted: #3a4150;
  --faint: #6b7380;
  --line: #0b0d10;
  --flame: #ee4b1a;
  --gold: #d9a017;
  --adv: #d51c24;
  --wa: #25d366;
  --wa-ink: #052e16;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Barlow, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 80; }
.wrap { width: min(1160px, calc(100% - 8vw)); margin-inline: auto; }

.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .55rem 5vw; background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  flex-wrap: nowrap;
}
.topbar-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-short { display: none; }
.topbar a {
  color: #fff; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  flex-shrink: 0; white-space: nowrap;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 5vw;
  background: #fff;
  border-bottom: 4px solid var(--ink);
}
.brand-lockup { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; min-width: 0; }
.wordmark strong {
  display: block; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 800; letter-spacing: .08em; line-height: .85; text-transform: uppercase;
}
.wordmark b { display: block; font-family: "Barlow Condensed", sans-serif; color: var(--adv); letter-spacing: .34em; font-size: .74rem; }
.brand-lockup .tank-mark {
  display: block; height: 72px; width: auto; max-width: 360px;
}
.assoc { display: flex; align-items: center; gap: .7rem; padding-left: 1rem; border-left: 2px solid var(--ink); flex-shrink: 0; }
.assoc small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .58rem; color: var(--muted); margin-bottom: .2rem; }
.assoc-logos { display: flex; align-items: center; gap: .85rem; }
.assoc img {
  display: block; height: 44px; width: auto; max-width: 180px;
  object-fit: contain; object-position: left center;
}
.assoc img.cfmoto-mark { height: 30px; max-width: 170px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: var(--ink); color: #fff; border: 0; font: inherit; font-weight: 800;
  padding: .55rem .9rem; cursor: pointer; letter-spacing: .08em; text-transform: uppercase;
}
.site-nav ul { display: flex; align-items: center; gap: .15rem .65rem; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .86rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--flame); }
.nav-wa, .btn-wa {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--wa); color: var(--wa-ink) !important; font-weight: 800; text-decoration: none;
}
.nav-wa { padding: .4rem .75rem; width: max-content; flex: 0 0 auto; }
.nav-wa:hover { color: var(--wa-ink) !important; filter: brightness(.95); }
.nav-wa svg, .btn-wa svg, .fab svg { display: block; flex-shrink: 0; }

.hero {
  display: grid; grid-template-columns: .92fr 1.08fr; min-height: min(88vh, 800px); background: var(--ink); color: #fff;
}
.hero-copy { padding: clamp(2.4rem, 7vh, 5.5rem) 5vw; display: flex; flex-direction: column; justify-content: center; }
.hero-photo { position: relative; min-height: 520px; background: #1a1d22; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.kicker {
  font-family: "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .7rem;
}
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; line-height: .92; letter-spacing: .02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.lede { margin-top: 1.1rem; font-size: 1.12rem; max-width: 36rem; color: #e6e8ec; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  text-decoration: none; font-weight: 800; padding: .88rem 1.15rem; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-line { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-wa { padding: .88rem 1.15rem; color: var(--wa-ink); }
.btn-gold { background: var(--gold); color: var(--ink); }

.marks { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 4px solid var(--ink); }
.marks div { padding: 1.25rem 4vw; border-right: 2px solid var(--ink); }
.marks div:last-child { border-right: 0; }
.marks b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.55rem; color: var(--flame); line-height: 1; }
.marks span { font-size: .86rem; color: var(--muted); }

.cfmoto-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 5vw; background: #fff; border-bottom: 2px solid var(--ink);
}
.cfmoto-strip img { height: 38px; width: auto; }
.cfmoto-strip p { color: var(--muted); font-size: .95rem; }
.cfmoto-strip a { font-weight: 800; color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: #fff; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .copy { padding: 4.2rem 5vw; }
.split .copy p { color: var(--muted); margin: .85rem 0; }
.split .media { min-height: 360px; background: #111 center 40% / cover no-repeat; }
.split .media.pos-tank, .cta-band .media.pos-tank { background-position: 40% 48%; }
.split .media.pos-rear, .cta-band .media.pos-rear { background-position: 68% 40%; }
.split .media.pos-side, .cta-band .media.pos-side { background-position: center 38%; }
.split .media.pos-action, .cta-band .media.pos-action { background-position: center 56%; }
.stage.is-dragging { cursor: grabbing; }

.section { padding: 4.4rem 0; background: #fff; }
.section.dark { background: var(--panel); color: #fff; }
.section.dark .kicker { color: var(--gold); }
.section.dark p { color: #c5cad3; }
.grid-3, .grid-2 { display: grid; gap: 1rem; margin-top: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card { background: #fff; border: 2px solid var(--ink); overflow: hidden; color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
.card .pad { padding: 1.1rem 1.15rem 1.25rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.card p { color: var(--muted); }
.section.dark .card p { color: var(--muted); }
.card a { font-weight: 800; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.5rem;
}
.gallery a {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #111; display: block;
}
.gallery a.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.cta-band {
  display: grid; grid-template-columns: 1.15fr .85fr; background: var(--ink); color: #fff;
}
.cta-band .copy { padding: 3.4rem 5vw; }
.cta-band .copy p { color: #c5cad3; }
.cta-band .media { min-height: 280px; background: #111 center 42% / cover no-repeat; }

.page-hero { position: relative; padding: 4.2rem 5vw 2.6rem; background: var(--panel); color: #fff; border-bottom: 4px solid var(--gold); overflow: hidden; }
.page-hero.has-photo { min-height: 42vh; display: flex; align-items: flex-end; }
.page-hero.has-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: brightness(.45);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero p { color: #cfd3da; max-width: 40rem; }

.stay-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; margin-top: 1.6rem; }
.stay-card { border: 2px solid var(--ink); padding: 1.4rem 1.3rem; background: #fff; color: var(--ink); }
.stay-card h3 { margin-bottom: .45rem; }
.stay-card p { color: var(--muted); margin: .5rem 0 1rem; }

.explorer {
  display: grid; grid-template-columns: 1.45fr .55fr; min-height: 72vh; background: #07080a; color: #fff;
  border-bottom: 4px solid var(--gold);
}
.stage { position: relative; min-height: 620px; background: #0c0e12; cursor: grab; touch-action: none; user-select: none; }
.stage.is-dragging { cursor: grabbing; }
.stage iframe, .stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; display: block;
}
.pos-action { object-position: center 58% !important; }
.pos-rear { object-position: 62% 40% !important; }
.pos-tank { object-position: 42% 48% !important; }
.pos-side { object-position: center 38% !important; }
.stage-brands {
  position: absolute; top: 1rem; left: 1rem; z-index: 5; pointer-events: none;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.92); padding: .45rem .65rem;
}
.stage-brands img { display: block; height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.view-bar {
  position: absolute; right: 1rem; left: auto; bottom: 1rem; z-index: 5;
  display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: auto;
}
.stage-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; text-align: center; padding: 2rem;
  color: #c5cad3; z-index: 2; pointer-events: none;
}
.stage-fallback[hidden] { display: none !important; }
.spin-hint {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 5; pointer-events: none;
  background: rgba(11,13,16,.78); color: #fff;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; padding: .5rem .75rem;
}
.view-bar button, .chip-bar button {
  background: rgba(11,13,16,.82); color: #fff; border: 1px solid rgba(255,255,255,.35);
  font: inherit; font-weight: 800; padding: .55rem .75rem; cursor: pointer;
}
.view-bar button.is-on, .chip-bar button.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.explorer-panel { padding: 1.6rem 1.4rem 2rem; border-left: 2px solid #222; display: flex; flex-direction: column; gap: .85rem; }
.explorer-panel h2 { font-size: 2.1rem; }
.explorer-panel p { color: #c5cad3; }
.chip-bar { display: flex; flex-wrap: wrap; gap: .4rem; }
.spec-mini { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; color: #e8eaee; }
.spec-mini dt { color: var(--gold); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.spec-mini dd { margin: 0; }
.credit { font-size: .85rem; color: var(--faint); margin-top: 1rem; }
.credit a { color: var(--ink); font-weight: 700; }

.bikes-hero { padding: 2.4rem 5vw 1.6rem; background: #fff; border-bottom: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: end; }
.bikes-hero img { height: 42px; width: auto; }
.bikes-hero p { color: var(--muted); max-width: 36rem; margin-top: .7rem; }

.spec-board { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.spec-board div { padding: 1.2rem 1.1rem; border-right: 2px solid var(--ink); }
.spec-board div:last-child { border-right: 0; }
.spec-board b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; }
.spec-board span { color: var(--muted); font-size: .88rem; }

.form {
  display: grid; gap: .95rem; background: #fff; padding: 1.6rem 0 0;
}
.enquire-wrap { width: min(780px, calc(100% - 8vw)); margin: 2.2rem auto 4rem; }
.form label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: .3rem; padding: .8rem .85rem;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; border-radius: 0;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .85rem; }
.hp { position: absolute; left: -9999px; }
.note { color: var(--muted); font-size: .9rem; }
.error { background: #111; color: #fff; border-left: 4px solid var(--flame); padding: .85rem 1rem; }
.points-box { border: 2px solid var(--ink); padding: 1rem; display: grid; gap: .7rem; }
.points-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; }
.points-row button, .add-code {
  background: #fff; color: var(--ink); border: 2px solid var(--ink); font: inherit; font-weight: 800;
  padding: .75rem .9rem; cursor: pointer;
}
.add-code { justify-self: start; }
.hidden { display: none !important; }

.footer {
  background: var(--ink); color: #c8ccd3; padding: 3rem 5vw 5.5rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 2rem;
  border-top: 6px solid var(--gold);
}
.footer strong { color: #fff; display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p, .footer li { margin: .25rem 0; }
.footer ul { list-style: none; }
.footer-logos { display: flex; align-items: center; gap: 1rem; margin: .8rem 0 1rem; }
.footer-logos .dd { height: 48px; width: auto; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logos .cfmoto { height: 32px; width: auto; background: #fff; padding: .4rem .55rem; }
.fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--wa-ink);
  display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,10,12,.92);
  display: grid; place-items: center; padding: 2rem;
}
.lightbox img { max-width: min(1200px, 92vw); max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute; top: 1rem; right: 1rem; background: #fff; border: 0; font: inherit; font-weight: 800;
  padding: .5rem .8rem; cursor: pointer;
}

.admin { width: min(1100px, calc(100% - 8vw)); margin: 2rem auto 4rem; }
.admin table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .6rem; }
.admin th, .admin td { border: 1px solid #ccc; padding: .45rem .5rem; text-align: left; vertical-align: top; }
.admin th { background: var(--ink); color: #fff; }

@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none !important; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 4px solid var(--ink); padding: .6rem 5vw 1rem;
  }
  .site-nav.is-open { display: block !important; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .site-nav a { display: block; padding: .5rem 0; }
  .site-nav a.nav-wa {
    display: inline-flex;
    width: auto;
    padding: .42rem .8rem;
    margin: .35rem 0 .15rem;
  }
  .site-header { flex-wrap: nowrap; align-items: center; position: sticky; }
  .brand-lockup { flex: 1; min-width: 0; gap: .45rem; }
  .brand-lockup .tank-mark { height: 44px; max-width: min(42vw, 180px); }
  .assoc { padding-left: .45rem; min-width: 0; overflow: hidden; }
  .assoc small { font-size: .5rem; margin-bottom: .1rem; }
  .assoc img { height: 30px; max-width: 108px; }
  .assoc img.cfmoto-mark { height: 18px; max-width: 96px; }
}
@media (min-width: 1281px) {
  .nav-toggle { display: none !important; }
  .site-nav { display: block !important; position: static; }
}

@media (max-width: 520px) {
  .brand-lockup { flex-direction: column; align-items: flex-start; gap: .3rem; flex: 1; }
  .assoc { border-left: 0; padding-left: 0; }
  .assoc small { display: none; }
  .assoc img { height: 28px; max-width: 120px; }
  .assoc img.cfmoto-mark { height: 18px; max-width: 120px; }
  .brand-lockup .tank-mark { height: 40px; max-width: 70vw; }
}

@media (max-width: 900px) {
  .topbar-long { display: none; }
  .topbar-short { display: inline; }
  .hero, .split, .split.reverse, .marks, .grid-3, .grid-2, .cta-band, .footer, .form .row, .form .row-3,
  .explorer, .stay-grid, .spec-board, .bikes-hero {
    display: flex; flex-direction: column;
  }
  .assoc { border-left: 1px solid var(--ink); padding-left: .55rem; border-top: 0; padding-top: 0; width: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a.wide { grid-column: span 2; }
  .hero-photo, .stage { min-height: 58vh; }
  .hero-photo img { object-position: 50% 36%; }
  .split.reverse { direction: ltr; }
  .explorer-panel { border-left: 0; border-top: 2px solid #222; }
}
