:root {
  --accent: #d71920;
  --accent-dark: #a91217;
  --accent-on-dark: #f04148;       /* --accent is too dark for small text on black: 3.7:1 vs 5.1:1 */
  --ink: #15171c;
  --ink-2: #4a4f5c;
  --muted: #666b78;                /* 4.9:1 or better on --bg and --bg-soft */
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --dark: #0e0f12;
  --radius: 14px;
  --max: 1200px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #000;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: none; padding: 0 24px; }
.logo { font-family: var(--head); font-size: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo span span { color: var(--accent); }
.logo-text { white-space: nowrap; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; opacity: .8; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.menu-btn { display: none; font-size: 26px; line-height: 1; min-width: 44px; min-height: 44px; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; isolation: isolate; height: min(88vh, 760px); min-height: 520px; background: var(--dark); color: #fff; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease; }
.slide.active .slide-bg { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.05) 100%);
}
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: .1s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: .2s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: .3s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: .4s; }
.slide-brand { font-family: var(--head); color: var(--accent-on-dark); font-size: 20px; letter-spacing: 4px; text-transform: uppercase; }
.slide-title { font-family: var(--head); font-size: clamp(48px, 8vw, 96px); line-height: 1; text-transform: uppercase; margin: 8px 0 14px; }
.slide-tag { font-size: 20px; opacity: .85; margin-bottom: 18px; }
.slide-price { font-size: 16px; opacity: .75; margin-bottom: 28px; }
.slide-price strong { font-family: var(--head); font-size: 30px; color: #fff; opacity: 1; margin-left: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--accent); color: #fff; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; letter-spacing: .3px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.wa { background: #25d366; }
.btn.wa:hover { background: #1da851; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  font-size: 22px; display: grid; place-items: center; transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.12); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
}
.hero-tab { position: relative; padding: 18px 20px; text-align: left; opacity: .55; transition: opacity .2s; }
.hero-tab:hover, .hero-tab.active { opacity: 1; }
.hero-tab small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-on-dark); }
.hero-tab span { display: block; font-family: var(--head); font-size: 18px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tab .bar { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); }
.hero-tab.active .bar { animation: fill var(--dur, 6s) linear forwards; }
.hero.paused .hero-tab.active .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* ---------- Sections ---------- */
section { padding: 90px 0; scroll-margin-top: 68px; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { font-family: var(--head); font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; margin-top: 6px; }
.section-head p { color: var(--ink-2); margin-top: 8px; }

/* Brands */
.brands { background: var(--bg-soft); }
.search-bar { position: relative; max-width: 400px; margin: -40px 0 40px auto; z-index: 20; }
.search-bar input {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 18px 13px 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(215, 25, 32, .12); }
.search-icon { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 380px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 6px;
}
.search-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.search-item:hover, .search-item.active { background: var(--bg-soft); }
.search-item span { font-weight: 600; }
.search-item small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.search-item strong { font-family: var(--head); font-size: 17px; white-space: nowrap; }
.search-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.search-more { padding: 8px 12px 4px; color: var(--muted); font-size: 13px; }
.search-empty a { color: var(--accent); font-weight: 600; }
.intro { text-align: center; margin-bottom: 40px; }
.intro h1 { font-family: var(--head); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; text-transform: uppercase; }
.intro p { color: var(--ink-2); margin-top: 8px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.brand-card {
  min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 110px; display: grid; place-items: center; padding: 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--accent); }
.brand-card img { max-height: 60px; width: auto; object-fit: contain; }
.brand-card .brand-text { font-family: var(--head); font-size: clamp(16px, 4vw, 24px); text-align: center; overflow-wrap: anywhere; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Filters + bike grid */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: all .2s; background: #fff;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.bike-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.bike-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.bike-card .thumb { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.bike-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bike-card:hover .thumb img { transform: scale(1.06); }
.bike-card .info { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bike-card .brand { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.bike-card h3 { font-family: var(--head); font-size: 26px; text-transform: uppercase; line-height: 1.15; margin: 2px 0 4px; }
.bike-card .cat { color: var(--muted); font-size: 14px; }
.bike-card .bottom { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: end; }
.bike-card .price small { display: block; color: var(--muted); font-size: 12px; }
.bike-card .price strong { font-family: var(--head); font-size: 22px; }
.bike-card .go { color: var(--accent); font-weight: 600; font-size: 14px; }
.brand-page-link { text-align: center; margin: -16px 0 28px; }
.brand-page-link a { color: var(--accent); font-weight: 600; }
.brand-page-link a:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* Contact */
.contact { background: var(--dark); color: #fff; }
.contact .section-head p { color: rgba(255,255,255,.7); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; }
.contact .eyebrow { color: var(--accent-on-dark); }
.contact-card h3 { font-family: var(--head); text-transform: uppercase; font-size: 18px; color: var(--accent-on-dark); margin-bottom: 8px; letter-spacing: 1px; }
.contact-card p, .contact-card a { color: rgba(255,255,255,.85); }
.contact-card a:hover { color: #fff; text-decoration: underline; }
.contact-cta { text-align: center; margin-top: 40px; }

.footer { background: #000; color: rgba(255,255,255,.5); font-size: 14px; padding: 40px 0 28px; text-align: center; }
.footer-logo { width: 220px; margin: 0 auto 16px; }
.footer-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 760px; margin: 0 auto 22px; }
.footer-brands h2 { flex-basis: 100%; font-family: var(--head); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.footer-brands a { color: rgba(255,255,255,.6); }
.footer-brands a:hover { color: var(--accent); }
.footer-social { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.footer-social a { color: rgba(255,255,255,.8); font-weight: 600; }
.footer-social a:hover { color: var(--accent); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Bike detail page ---------- */
.crumbs { padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin: 0 6px; }
.crumbs a:hover { color: var(--accent); }
.detail { padding: 28px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.gallery-main {
  position: relative; aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 18px; display: grid; place-items: center;
}
.gallery-main .g-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-main .g-arrow.prev { left: 14px; }
.gallery-main .g-arrow.next { right: 14px; }
.gallery-main .count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.thumbs button.active, .thumbs button:hover { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.d-brand { color: var(--accent); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; }
.d-title { font-family: var(--head); font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; line-height: 1.05; margin: 0 0 6px; }
.d-title .d-brand { display: block; font-family: var(--body); line-height: 1.6; margin-bottom: 4px; }
.d-cat { display: inline-block; background: var(--bg-soft); padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.d-tag { font-size: 18px; color: var(--ink-2); margin: 16px 0 8px; font-weight: 500; }
.d-desc { color: var(--ink-2); }
.d-price { margin: 24px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); }
.d-price small { color: var(--muted); font-size: 13px; display: block; }
.d-price strong { font-family: var(--head); font-size: 40px; line-height: 1.1; }
.d-price em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; }
.d-colors { margin-bottom: 24px; }
.d-colors h2, .specs h2 { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 16px; margin-bottom: 10px; }
.d-colors div { display: flex; flex-wrap: wrap; gap: 8px; }
.d-colors span { border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; font-size: 14px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.d-actions .btn.ghost { color: var(--ink); }
.d-actions .btn.ghost:hover { background: var(--bg-soft); }

.specs { margin-top: 64px; }
.specs h2 { font-size: 28px; margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 8px; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; }
.spec-table td { font-weight: 600; }

.spec-group + .spec-group { margin-top: 36px; }
.spec-group h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; color: var(--accent); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.d-price-note { display: inline-block; margin-left: 10px; vertical-align: middle; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.feature-list li { position: relative; padding-left: 28px; color: var(--ink-2); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }
.spec-empty { color: var(--ink-2); padding: 20px 22px; background: var(--bg-soft); border-radius: var(--radius); }
.spec-empty a { color: var(--accent); font-weight: 600; }
.related { background: var(--bg-soft); }

/* ---------- Brand pages (tools/build_site.js) ---------- */
.brand-head { padding: 28px 0 0; text-align: center; }
.brand-head img { height: 70px; width: auto; margin: 0 auto 16px; }
.brand-head h1 { font-family: var(--head); font-size: clamp(34px, 5vw, 52px); line-height: 1.1; text-transform: uppercase; }
.brand-head p { color: var(--ink-2); margin-top: 8px; }
.brand-page { padding: 48px 0 80px; }
.brand-page .specs { margin-top: 56px; }
.brand-models, .brand-page .specs h2 { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 28px; margin-bottom: 20px; }
.key-specs { overflow-x: auto; }
.key-specs table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.key-specs th, .key-specs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.key-specs thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.key-specs tbody th a { color: var(--accent); font-weight: 600; }
.key-specs tbody th a:hover { text-decoration: underline; }
.brand-cta { text-align: center; margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-cta .btn { align-self: auto; }
.brand-cta .btn.ghost { color: var(--ink); }
.not-found { text-align: center; padding: 120px 20px; }
.not-found h1 { font-family: var(--head); font-size: 48px; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; margin-right: -10px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo img { height: 36px; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--dark); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06); }
  .hero-arrow { display: none; }
  /* carousel tabs: just progress bars on phones (the names would be cut off); the names stay for screen readers */
  .hero-tabs { padding: 0 86px 0 20px; gap: 8px; background: none; backdrop-filter: none; border-top: 0; } /* right: room for the WhatsApp button */
  .hero-tab { height: 44px; padding: 0; opacity: 1; }
  .hero-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 3px; background: rgba(255,255,255,.3); }
  .hero-tab .bar { top: 20px; }
  .hero-tab small, .hero-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .slide::after { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.15) 100%); }
  .slide-content { justify-content: flex-end; padding-bottom: 72px; }
  section { padding: 64px 0; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .search-bar { max-width: none; margin: -24px 0 32px; }
  .brand-card { height: 68px; padding: 8px; }
  .brand-card img { max-height: 40px; }
  /* brand filter: one row that scrolls sideways */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* two compact bike cards per row */
  .bike-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bike-card .info { padding: 12px 12px 14px; }
  .bike-card .brand { font-size: 10px; letter-spacing: 1.5px; }
  .bike-card h3 { font-size: 18px; }
  .bike-card .bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; }
  .bike-card .price strong { font-size: 18px; }
  .bike-card .go { font-size: 13px; }
}
@media (max-width: 400px) {
  .logo { font-size: 17px; }
  .logo img { height: 30px; }
}

/* ---------- Colour-linked photos (js/media.js) ---------- */
/* colour pills became buttons: same look as the old text pills, plus a selected state */
.d-colors button {
  border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; font-size: 14px; background: #fff;
  transition: border-color .2s, background .2s, color .2s;
}
.d-colors button:hover { border-color: var(--ink); }
.d-colors button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.d-colors button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.d-colors .no-photo { opacity: .45; }
.d-colors-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
/* renders are 16:9 with the whole bike in frame - show them uncropped */
.gallery-main.photo img, .bike-card .thumb.photo img { object-fit: contain; }
.gallery-main img { transition: opacity .18s ease; }
.gallery-main img.swapping { opacity: .25; }
.gallery-main [hidden], .thumbs[hidden] { display: none; }
.thumbs button { background: var(--bg-soft); }
.thumbs img { object-fit: contain; }
.slide-bg.photo { background-size: contain; background-repeat: no-repeat; background-position: 70% center; }
/* Full-scene carousel photos (heroImage). The text must never sit on the bike:
   - "full" photos (heroLayout: "full") already have empty space on the left for it, so they fill the frame;
   - the others only take the right part of the frame and fade into the dark background, which holds the text. */
.slide-bg.scene { background-size: cover; background-repeat: no-repeat; background-position: var(--focus, right center); }
.slide.scene::after { background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 38%, rgba(0,0,0,.15) 75%, rgba(0,0,0,0) 100%); }
.slide-bg.scene:not(.full) {
  left: 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.slide.scene:not(.full)::after { background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%); }
/* the text sits near the left edge (not in the centred page column), in the empty part of the photo */
.slide.scene .slide-content { max-width: min(660px, 42vw); margin: 0; padding-left: clamp(96px, 7vw, 140px); padding-right: 0; }
.slide-brand, .slide-title, .slide-tag { font-style: italic; }
@media (max-width: 760px) {
  .d-colors button { padding: 9px 16px; min-height: 40px; }
  .slide-bg.photo { background-position: center 35%; }
  .slide.scene::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
  /* phones: every scene photo sits at the top, the text below it */
  .slide-bg.scene, .slide-bg.scene:not(.full) {
    left: 0; bottom: 46%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  }
  .slide.scene::after, .slide.scene:not(.full)::after { background: none; }
  .slide.scene .slide-content { max-width: none; padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main img { transition: none; }
  .hero-tab.active .bar { animation: none; width: 100%; } /* no animation = no autoplay (js/home.js) */
}
