/*
 * Rectangle 459 — Blaupunkt centenary timeline (homepage / future product pages).
 * Standalone SCSS module, intentionally written in CSS-compatible syntax.
 * Scoped selectors avoid collisions with original WooCommerce/theme blocks.
 * Keep brand-history.css in sync whenever changing this file.
 */
.bp-history {
  --bp-history-ink: #f7f7f7;
  --bp-history-cyan: #28b9d1;
  position: relative;
  width: 100%;
  padding: clamp(78px, 8.4vw, 142px) 0;
  background: #000;
  color: var(--bp-history-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  isolation: isolate;
}
.bp-history,
.bp-history *,
.bp-history *::before,
.bp-history *::after { box-sizing: border-box; }
.bp-history__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.bp-history__scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #101010;
  background-image:
    radial-gradient(ellipse at 25% 57%, rgba(207, 207, 207, .13) 0%, transparent 34%),
    radial-gradient(ellipse at 76% 47%, rgba(210, 210, 210, .12) 0%, transparent 43%),
    linear-gradient(112deg, rgba(0,0,0,.40) 15%, rgba(150,150,150,.09) 29%, rgba(0,0,0,.38) 36%, rgba(150,150,150,.10) 55%, rgba(0,0,0,.40) 72%),
    radial-gradient(circle, rgba(245,245,245,.22) 0 .9px, rgba(0,0,0,0) 1.3px);
  background-position: center, center, center, 0 0;
  background-size: 100% 100%, 100% 100%, 100% 100%, 5px 5px;
}
/* Dark halftone mesh and angled graphic shadows, independent of translatable text. */
.bp-history__scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 9%, rgba(0,0,0,.1) 21%, rgba(0,0,0,.55) 25%, transparent 35%),
    linear-gradient(72deg, rgba(0,0,0,.56) 12%, transparent 17% 48%, rgba(0,0,0,.60) 55%, transparent 64% 100%),
    radial-gradient(ellipse at 50% 40%, transparent 18%, rgba(0,0,0,.4) 92%);
}
.bp-history__viewport {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: visible;
  outline: none;
}
.bp-history__viewport:focus-visible {
  outline: 2px solid var(--bp-history-cyan);
  outline-offset: -3px;
}
.bp-history__rail {
  position: relative;
  width: 100%;
  min-width: 0;
}
.bp-history__events {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  height: 360px;
  margin: 0;
  padding: 0 31px;
  list-style: none;
}
.bp-history__events::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 5.5%;
  right: 5.5%;
  top: 50%;
  height: 2px;
  background: rgba(248,248,248,.89);
  transform: translateY(-50%);
}
.bp-history__event {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  text-align: center;
  list-style: none;
}
.bp-history__event::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,.92);
  transform: translateX(-50%);
}
.bp-history__event--above::before { top: calc(50% - 36px); height: 36px; }
.bp-history__event--below::before { top: 50%; height: 36px; }
.bp-history__event--start::before,
.bp-history__event--end::before { display: none; }
.bp-history__marker {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #101010;
  box-shadow: 0 0 0 3px rgba(255,255,255,.23);
  transform: translate(-50%, -50%);
}
.bp-history__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #fff;
}
.bp-history__event--above .bp-history__marker { top: calc(50% - 36px); }
.bp-history__event--below .bp-history__marker { top: calc(50% + 36px); }
.bp-history__info {
  position: absolute;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% + 6px);
  max-width: 180px;
  transform: translateX(-50%);
  text-align: center;
}
.bp-history__event--above .bp-history__info { bottom: calc(50% + 59px); }
.bp-history__event--below .bp-history__info { top: calc(50% + 56px); }
.bp-history__event--start .bp-history__info,
.bp-history__event--end .bp-history__info { top: calc(50% + 25px); }
.bp-history__year {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #fff;
  font-size: clamp(15px, 1.13vw, 22px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.bp-history__description {
  display: block;
  width: 100%;
  max-width: 172px;
  color: #f3f3f3;
  font-size: clamp(10px, .83vw, 15px);
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: normal;
  hyphens: manual;
}
.bp-history__centenary {
  position: absolute;
  z-index: 3;
  top: 37px;
  right: 30px;
  width: 172px;
  height: 77px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 20px 44px 11px;
  align-content: center;
  color: #fff;
  line-height: 1;
  text-align: left;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0,0,0,.6);
}
.bp-history__centenary-brand {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.03em;
}
.bp-history__centenary-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #17a8d8;
}
.bp-history__centenary-number {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .94;
}
.bp-history__centenary-word {
  align-self: end;
  padding: 0 0 3px 2px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.bp-history__centenary-caption {
  grid-column: 1 / -1;
  display: block;
  padding-right: 8px;
  font-size: 10px;
  letter-spacing: .03em;
  text-align: right;
}
.bp-history__pagination { display: none; }

/* Smaller desktop widths need a little extra vertical space for long labels. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .bp-history__events { height: 420px; }
  .bp-history__centenary { transform: scale(.83); transform-origin: right top; }
}

@media (max-width: 1199.98px) {
  .bp-history { padding: 70px 0 62px; }
  .bp-history__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: auto;
  }
  .bp-history__viewport::-webkit-scrollbar { display: none; }
  .bp-history__rail { width: max-content; }
  .bp-history__events {
    display: flex;
    width: max-content;
    height: 350px;
    padding: 0 38px;
  }
  .bp-history__events::before { left: 0; right: 0; }
  .bp-history__event {
    flex: 0 0 clamp(128px, 18vw, 195px);
    scroll-snap-align: start;
  }
  .bp-history__year { font-size: 20px; }
  .bp-history__description { font-size: 14px; max-width: 165px; }
  .bp-history__centenary { right: 25px; top: 33px; }
  .bp-history__pagination:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 0;
    margin: 34px auto 0;
    padding: 0 18px;
    min-height: 34px;
  }
  .bp-history__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    min-width: 29px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .bp-history__page::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d5dce0;
    transition: width .2s, background-color .2s;
  }
  .bp-history__page[aria-current="page"] { width: 70px; min-width: 70px; }
  .bp-history__page[aria-current="page"]::before {
    width: 61px;
    height: 6px;
    background: var(--bp-history-cyan);
  }
  .bp-history__page:focus-visible {
    outline: 2px solid var(--bp-history-cyan) !important;
    outline-offset: -2px;
    border-radius: 99px;
  }
}
@media (max-width: 767.98px) {
  .bp-history { padding: 60px 0 56px; }
  .bp-history__events { height: 342px; padding: 0 25px; }
  .bp-history__event { flex-basis: clamp(120px, 32vw, 145px); }
  .bp-history__marker { width: 19px; height: 19px; }
  .bp-history__event--above::before { top: calc(50% - 33px); height: 33px; }
  .bp-history__event--below::before { height: 33px; }
  .bp-history__event--above .bp-history__marker { top: calc(50% - 33px); }
  .bp-history__event--below .bp-history__marker { top: calc(50% + 33px); }
  .bp-history__event--above .bp-history__info { bottom: calc(50% + 55px); }
  .bp-history__event--below .bp-history__info { top: calc(50% + 54px); }
  .bp-history__event--start .bp-history__info,
  .bp-history__event--end .bp-history__info { top: calc(50% + 25px); }
  .bp-history__info { max-width: 145px; width: calc(100% + 4px); }
  .bp-history__year { font-size: clamp(17px, 4.4vw, 21px); margin-bottom: 8px; }
  .bp-history__description { font-size: clamp(11px, 3vw, 14px); line-height: 1.34; }
  .bp-history__centenary { width: 145px; top: 35px; right: 11px; transform: scale(.82); transform-origin: right top; }
  .bp-history__pagination:not([hidden]) { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-history__page::before { transition: none; }
  .bp-history__viewport { scroll-behavior: auto; }
}
