/* BOS machines: white high-gloss hero with the model line-up, and the H-Series model cards. */

/* ---------- machines hero ---------- */
.hero-range {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  padding-top: clamp(3rem, 7vw, 5.5rem) !important; padding-bottom: 0 !important;
  background:
    radial-gradient(70% 55% at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fbfbfc 0%, #f1f2f4 58%, #e8eaed 100%);
}
/* light streak across the top, like a lacquered surface */
.hero-range::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 70%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .95) 46%, rgba(255, 255, 255, 0) 60%);
  transform: skewY(-4deg); pointer-events: none;
}
.hero-range .crumbs { color: var(--muted); }
.hero-range h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.05em; margin: 0 auto .2em; max-width: 18ch; color: var(--ink); }
.hero-range .lead { max-width: 46rem; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-range .actions { justify-content: center; margin-top: 1.5rem; }
.hero-range > :not(.range-stage) { animation: rise 1.1s var(--ease-out) both; }
.hero-range > :nth-child(2) { animation-delay: .08s; }
.hero-range > :nth-child(3) { animation-delay: .16s; }
.hero-range > :nth-child(4) { animation-delay: .24s; }

.range-stage { position: relative; isolation: isolate; margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 1360px; }
/* the glossy floor the machines stand on */
.range-stage::after {
  content: ""; position: absolute; z-index: -1; left: -50vw; right: -50vw; bottom: 0; height: 4.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 55%, #e6e8eb 100%);
  border-top: 1px solid #fff; box-shadow: 0 -1px 0 rgba(0, 0, 0, .07), 0 -18px 40px rgba(255, 255, 255, .9);
}
.range-lineup {
  list-style: none; margin: 0; padding: 0 0 4.2rem; display: flex; align-items: flex-end; justify-content: center; gap: 1.2%;
}
.range-lineup li { position: relative; flex: 0 0 var(--w); animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * .07s); }
.range-lineup a { display: block; text-decoration: none; color: var(--ink); }
.range-lineup img {
  display: block; width: 100%; height: auto; position: relative; z-index: 1;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
  filter: drop-shadow(0 18px 14px rgba(20, 24, 30, .16));
  -webkit-box-reflect: below 2px linear-gradient(transparent 72%, rgba(255, 255, 255, .28));
}
/* soft contact shadow on the floor */
.range-lineup a::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -7px; height: 14px; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
}
.range-lineup .lbl {
  position: absolute; left: 50%; top: calc(100% + 1rem); translate: -50% 0; white-space: nowrap; z-index: 2;
  font: 700 .82rem/1 var(--font); letter-spacing: .1em; color: var(--ink);
}
.range-lineup .lbl small { display: block; margin-top: .35rem; font-weight: 500; font-size: .7rem; letter-spacing: .02em; color: var(--muted); }
.range-lineup .lbl.is-h { color: var(--brand-text); }
.range-lineup a:hover img, .range-lineup a:focus-visible img { transform: translateY(-8px); filter: drop-shadow(0 26px 20px rgba(20, 24, 30, .2)); }
.range-lineup a:focus-visible { outline: none; }
.range-lineup a:focus-visible .lbl { text-decoration: underline; }

.range-hint { display: none; margin: -2.6rem 0 1.2rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .range-stage { margin-inline: calc(var(--pad) * -1); }
  .range-lineup {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); gap: 1.3rem;
    padding: 0 var(--pad) 4.2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .range-lineup::-webkit-scrollbar { display: none; }
  .range-lineup li { flex: 0 0 auto; width: calc(var(--w) * 4); max-width: 72vw; scroll-snap-align: start; }
  .range-lineup img { -webkit-box-reflect: unset; }
  .range-hint { display: block; margin: -1.5rem 0 1.1rem; position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-range > *, .range-lineup li { animation: none; }
  .range-lineup img { transition: none; }
}

/* ---------- H-Series model cards ---------- */
.h-models > header { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.h-models > header h2 { margin-inline: auto; }
.h-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.h-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 1.5rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 30px rgba(20, 24, 30, .06);
  scroll-margin-top: calc(var(--header) + 1.5rem);
}
.h-card:target { box-shadow: 0 0 0 2px var(--brand), 0 10px 30px rgba(20, 24, 30, .08); }
.h-card .h-img { position: relative; aspect-ratio: 4 / 3; width: 100%; display: grid; place-items: end center; margin: 0 0 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); border-radius: 20px; overflow: hidden; }
.h-card .h-img img { position: absolute; left: 6%; top: 7%; width: 88%; height: 86%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 10px rgba(20, 24, 30, .14)); }
.h-card .h-img figcaption { position: absolute; left: .8rem; top: .7rem; z-index: 1; font-size: .72rem; color: var(--muted); background: rgba(255, 255, 255, .85); padding: .15rem .5rem; border-radius: 999px; }
.h-card h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.04em; margin: 0; }
.h-card .h-series { margin: .1rem 0 .9rem; font-size: .86rem; font-weight: 600; color: var(--brand-text); }
.h-card .h-soon { display: inline-block; margin: 0 0 .9rem; padding: .3rem .7rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: .8rem; font-weight: 600; }
.h-card dl { margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.h-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid #ececf0; font-size: .92rem; }
.h-card dt { color: var(--muted); }
.h-card dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); white-space: nowrap; }
.h-card dt { min-width: 0; }
.h-card dd.na { font-weight: 500; color: var(--muted); font-style: italic; }
.h-card .btn { margin-top: auto; align-self: flex-start; }
