/* Product catalogue. Scoped under .products-board so snapshot CSS does not leak. */

html:has(.products-board) {
  scroll-behavior: smooth;
}

.products-board {
  --hc-navy: #123a5e;
  --hc-navy-deep: #0b1c2e;
  --hc-navy-mid: #1b4a73;
  --hc-gold: #c2a06a;
  --hc-gold-soft: #d4b98a;
  --hc-cream: #f4efe6;
  --hc-sand: #e8dfd2;
  --hc-paper: #fbf8f3;
  --hc-ink: #1c2430;
  --hc-mute: #5c6570;
  --hc-line: rgba(18, 58, 94, 0.1);
  --hc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hc-max: 1180px;
  --pb-card: 579px;
  --pb-gap-x: 22px;
  --pb-board-max: calc(4 * var(--pb-card) + 3 * var(--pb-gap-x));
  color: var(--hc-ink);
  background: var(--hc-paper);
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

.products-board *,
.products-board *::before,
.products-board *::after {
  box-sizing: border-box;
}

.products-board a {
  text-decoration: none;
}

.pb-wrap {
  width: min(var(--hc-max), calc(100% - 48px));
  margin-inline: auto;
}

.pb-wrap--board {
  width: min(var(--pb-board-max), calc(100% - 48px));
}

.pb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hc-gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.72rem;
}

.pb-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.pb-title {
  margin: 14px 0 16px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pb-lead {
  max-width: 42rem;
  color: var(--hc-mute);
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.pb-section {
  padding-block: 5.5rem;
  position: relative;
  scroll-margin-top: 96px;
}

.pb-section--cream {
  background: var(--hc-cream);
}

.pb-section--navy {
  background: var(--hc-navy-deep);
  color: #fff;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.products-board.is-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.85s var(--hc-ease), transform 0.85s var(--hc-ease);
}

.products-board.is-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 60ms; }
[data-delay="2"] { transition-delay: 120ms; }
[data-delay="3"] { transition-delay: 180ms; }
[data-delay="4"] { transition-delay: 240ms; }

.pb-btn {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.55);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 0.55s var(--hc-ease),
    box-shadow 0.55s var(--hc-ease),
    border-color 0.55s var(--hc-ease),
    color 0.55s var(--hc-ease),
    background-color 0.55s var(--hc-ease);
}

.pb-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s var(--hc-ease);
  z-index: -1;
}

.pb-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 28, 46, 0.18);
}

.pb-btn:hover::before {
  transform: translateX(120%);
}

.pb-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.pb-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--hc-ease);
}

.pb-btn:hover svg {
  transform: translate(3px, -2px);
}

.pb-btn--gold {
  --btn-bg: var(--hc-gold);
  --btn-fg: var(--hc-navy-deep);
  --btn-bd: var(--hc-gold);
}

.pb-btn--gold:hover {
  background: #d8b57c;
}

.pb-btn--light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.35);
}

.pb-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--hc-navy);
  --btn-bd: rgba(18, 58, 94, 0.22);
}

.pb-btn:focus-visible,
.pb-hero__nav:focus-visible,
.pb-card:focus-visible,
.pb-filter:focus-visible,
.pb-viewer__close:focus-visible,
.pb-viewer__switch:focus-visible {
  outline: 2px solid var(--hc-gold);
  outline-offset: 3px;
}

/* Hero */
.pb-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--hc-navy-deep);
  padding-block: 6.25rem 3.25rem;
  box-sizing: border-box;
}

.pb-hero__slides,
.pb-hero__slide,
.pb-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pb-hero__slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.pb-hero__slide.is-active {
  opacity: 1;
}

.pb-hero__slide img {
  object-fit: cover;
  transform: scale(1.08);
}

.products-board:not(.is-reduced) .pb-hero__slide.is-active img {
  animation: pb-kenburns 22s ease-in-out infinite alternate;
}

.pb-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 28, 46, 0.78) 0%, rgba(11, 28, 46, 0.42) 52%, rgba(11, 28, 46, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 28, 46, 0.18) 0%, rgba(11, 28, 46, 0.72) 100%);
}

.pb-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding-inline: 56px;
}

.pb-hero h1 {
  margin: 16px 0 18px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  /* H1 含品类词 "flexible stone cladding" 后比原稿长，行宽放宽避免碎行。 */
  max-width: 28ch;
}

.pb-hero h1 span {
  display: block;
}

.pb-hero h1 span:last-child {
  color: var(--hc-gold-soft);
}

.pb-hero__lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
}

.pb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Montserrat-Medium, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.products-board:not(.is-reduced) .pb-chip {
  animation: pb-chip-float 5.5s ease-in-out infinite;
}

.pb-chip:nth-child(2) { animation-delay: 0.4s; }
.pb-chip:nth-child(3) { animation-delay: 0.8s; }
.pb-chip:nth-child(4) { animation-delay: 1.2s; }

.pb-hero [data-hero] {
  animation: pb-hero-in 1s var(--hc-ease) both;
}

.pb-hero [data-hero="1"] { animation-delay: 0.05s; }
.pb-hero [data-hero="2"] { animation-delay: 0.18s; }
.pb-hero [data-hero="3"] { animation-delay: 0.32s; }
.pb-hero [data-hero="4"] { animation-delay: 0.46s; }
.pb-hero [data-hero="5"] { animation-delay: 0.6s; }

.pb-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: opacity 0.35s var(--hc-ease), transform 0.35s var(--hc-ease), background 0.35s var(--hc-ease);
}

.pb-hero__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

.pb-hero__nav--prev {
  left: 18px;
}

.pb-hero__nav--prev:hover {
  transform: translateX(-4px);
}

.pb-hero__nav--next {
  right: 18px;
}

.pb-hero__nav--next:hover {
  transform: translateX(4px);
}

.pb-hero__progress {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 48px));
}

.pb-hero__bar {
  flex: 1;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
}

.pb-hero__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hc-gold-soft);
  transform-origin: left center;
}

.pb-hero__bar.is-done span {
  width: 100%;
}

.products-board:not(.is-reduced) .pb-hero__bar.is-active span {
  animation: pb-progress 6.5s linear forwards;
}

.products-board.is-paused .pb-hero__bar.is-active span {
  animation-play-state: paused;
}

.products-board.is-reduced .pb-hero__bar.is-active span {
  width: 100%;
}

/* Board */
.pb-board-head {
  display: grid;
  gap: 28px;
}

.pb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.pb-filter {
  appearance: none;
  border: 0;
  background: none;
  padding: 8px 0 10px;
  color: var(--hc-mute);
  cursor: pointer;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.pb-filter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--hc-navy);
  transform: translateX(-50%);
  transition: width 0.28s var(--hc-ease);
}

.pb-filter.is-on,
.pb-filter:hover {
  color: var(--hc-navy);
}

.pb-filter.is-on::after {
  width: 100%;
}

.pb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, var(--pb-card)));
  justify-content: space-between;
  gap: 28px var(--pb-gap-x);
  margin-top: 40px;
}

.pb-card {
  appearance: none;
  position: relative;
  padding: 0;
  text-align: left;
  background: #f7f3ec;
  display: block;
  width: 100%;
  color: inherit;
  border: 1px solid #e6e0d4;
  scroll-margin-top: 96px;
  transition: transform 0.7s var(--hc-ease), border-color 0.4s ease;
}

.pb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 58, 94, 0.18);
}

.pb-card__link {
  display: block;
  color: inherit;
}

.pb-card__link:focus-visible {
  outline: none;
}

.pb-card__link:focus-visible .pb-card__shot {
  outline: 2px solid var(--hc-gold);
  outline-offset: 3px;
}

.pb-card__shot {
  position: relative;
  display: block;
  aspect-ratio: 1024 / 412;
  overflow: hidden;
  background: #efeae1;
}

.pb-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--hc-ease);
}

.pb-card:hover img {
  transform: scale(1.045);
}

.pb-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22), transparent 65%);
  transform: translateX(-130%);
}

.pb-card:hover .pb-card__shot::after {
  animation: pb-sheen 0.9s var(--hc-ease) 1;
}

/* Peek：次级入口，整卡已是链接。悬停/键盘聚焦时显现，触屏常显。 */
.pb-card__view {
  position: absolute;
  right: 14px;
  bottom: 74px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(18, 58, 94, 0.18);
  background: rgba(255, 252, 247, 0.92);
  color: var(--hc-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s var(--hc-ease), transform 0.35s var(--hc-ease),
    background 0.35s var(--hc-ease), color 0.35s var(--hc-ease);
}

.pb-card:hover .pb-card__view,
.pb-card__view:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.pb-card__view:hover {
  background: var(--hc-navy);
  color: #fff;
}

.pb-card__view:focus-visible {
  outline: 2px solid var(--hc-gold);
  outline-offset: 3px;
}

.pb-card__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px 14px;
}

.pb-card__index {
  flex: none;
  font-family: Montserrat-Medium, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(18, 58, 94, 0.4);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.pb-card:hover .pb-card__index {
  color: var(--hc-navy);
}

.pb-card__names {
  min-width: 0;
}

.pb-card__en {
  display: block;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--hc-ink);
  transition: color 0.35s ease;
}

.pb-card:hover .pb-card__en {
  color: var(--hc-navy);
}

.pb-card__zh {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(28, 36, 48, 0.45);
}

/* A–Z 纯文字索引：GEO 用，一次抓取得全量实体清单。 */
.pb-index {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e6e0d4;
}

.pb-index__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  columns: 4;
  column-gap: var(--pb-gap-x);
}

.pb-index__list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.pb-index__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--hc-ink);
  font-size: 0.92rem;
  line-height: 1.5;
  border-block-end: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pb-index__list a:hover {
  color: var(--hc-navy);
  border-color: rgba(18, 58, 94, 0.28);
}

.pb-index__zh {
  color: rgba(28, 36, 48, 0.42);
  font-size: 0.8rem;
}

@media (max-width: 1199px) {
  .pb-index__list {
    columns: 3;
  }
}

@media (max-width: 767px) {
  .pb-index__list {
    columns: 2;
  }

  /* 触屏没有 hover，Peek 常显 */
  .pb-card__view {
    opacity: 1;
    transform: none;
  }
}

/* Spec + OEM */
.pb-spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.pb-spec article {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}

.pb-spec strong {
  display: block;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 1.35rem;
  color: var(--hc-gold-soft);
}

.pb-spec span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pb-spec__note {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.pb-oem {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--hc-line);
}

.pb-oem p {
  max-width: 40rem;
  color: var(--hc-mute);
  line-height: 1.65;
}

/* Viewer */
body.is-product-viewer {
  overflow: hidden;
}

body.is-product-viewer .site-floats {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pb-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  background: rgba(11, 28, 46, 0.72);
  cursor: pointer;
}

.products-board:not(.is-reduced) .pb-viewer,
.pb-viewer {
  animation: pb-viewer-in 0.38s ease both;
}

.pb-viewer.is-out {
  animation: pb-viewer-out 0.32s ease both;
}

.pb-viewer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s var(--hc-ease);
}

.pb-viewer__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.pb-viewer__stage {
  width: min(1680px, calc(100vw - 56px));
  display: flex;
  align-items: center;
  gap: 40px;
  cursor: default;
}

.pb-viewer__shot {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 1024 / 412;
  background: #111;
  outline: 1px solid rgba(255, 255, 255, 0.12);
}

.pb-viewer__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: top left;
}

.pb-viewer__panel {
  flex: 0 0 460px;
  width: 460px;
  max-width: 460px;
  background: #fffcf7;
  color: var(--hc-ink);
  padding: 36px 34px 28px;
  max-height: min(88vh, 820px);
  overflow: auto;
  animation: pb-panel-in 0.48s var(--hc-ease) 90ms both;
}

.pb-viewer.is-out .pb-viewer__panel {
  animation: pb-panel-out 0.28s ease both;
}

.pb-viewer__copy {
  animation: pb-copy-in 0.4s var(--hc-ease) both;
}

.pb-viewer__count {
  font-family: Montserrat-Medium, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(18, 58, 94, 0.4);
}

.pb-viewer__family {
  margin-top: 18px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hc-gold);
}

.pb-viewer__panel h2 {
  margin: 8px 0 0;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pb-viewer__zh {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(28, 36, 48, 0.42);
}

.pb-viewer__kicker {
  margin: 18px 0 0;
  font-family: Montserrat-Medium, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--hc-navy);
}

.pb-viewer__body {
  margin-top: 14px;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--hc-mute);
}

.pb-viewer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pb-viewer__tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--hc-line);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--hc-navy);
}

.pb-viewer__cta .pb-btn {
  width: 100%;
}

.pb-viewer__wa {
  display: inline-block;
  margin-top: 12px;
  color: var(--hc-navy);
  border-bottom: 1px solid rgba(194, 160, 106, 0.45);
  font-size: 0.88rem;
  padding-bottom: 2px;
}

.pb-viewer__switch-row {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hc-line);
}

.pb-viewer__switch {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-navy);
}

.pb-viewer__switch svg {
  transition: transform 0.35s var(--hc-ease);
  vertical-align: middle;
}

.pb-viewer__switch:hover svg {
  transform: translateX(var(--shift, 0));
}

.pb-viewer__switch[data-dir="prev"] { --shift: -8px; }
.pb-viewer__switch[data-dir="next"] { --shift: 8px; }

@keyframes pb-kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

@keyframes pb-hero-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes pb-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pb-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pb-sheen {
  to { transform: translateX(130%); }
}

@keyframes pb-viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pb-viewer-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes pb-panel-in {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes pb-panel-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(16px, 0, 0); }
}

@keyframes pb-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1399px) {
  .pb-wrap--board {
    width: min(var(--hc-max), calc(100% - 48px));
  }

  .pb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .pb-viewer__stage {
    width: min(1680px, calc(100vw - 40px));
    gap: 28px;
  }

  .pb-viewer__panel {
    flex-basis: 400px;
    width: 400px;
    max-width: 400px;
  }
}

@media (max-width: 960px) {
  .pb-viewer__stage {
    width: min(720px, 94vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pb-viewer__panel {
    flex: none;
    width: 100%;
    max-width: none;
    max-height: 46vh;
  }
}

@media (max-width: 767px) {
  .pb-wrap,
  .pb-wrap--board,
  .pb-hero__inner {
    width: calc(100% - 32px);
  }

  .pb-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .pb-hero {
    min-height: 92vh;
    padding-block: 5.5rem 4.5rem;
  }

  .pb-hero__nav {
    display: none;
  }

  .pb-spec {
    grid-template-columns: 1fr 1fr;
  }

  .pb-viewer {
    padding: 52px 0 0;
    align-items: end;
  }

  .pb-viewer__stage {
    width: 100%;
    max-height: calc(100dvh - 52px);
    overflow: auto;
  }

  .pb-viewer__panel {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-hero [data-hero],
  .products-board.is-motion [data-reveal],
  .pb-card,
  .pb-card__shot img,
  .pb-viewer,
  .pb-viewer__panel {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
