/*
 * Roar Panther — Collection Blueprint
 * Replaces the previous homepage collection carousel.
 */

.rp-home-blueprint {
  --rp-blueprint-bg: #fcfaf6;
  --rp-blueprint-text: #28241f;
  --rp-blueprint-muted: #6b645c;
  --rp-blueprint-bronze: var(--rp-accent, #a87542);
  --rp-blueprint-line: rgba(168, 117, 66, 0.48);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: clamp(24px, 3.8vh, 42px);
  background:
    radial-gradient(circle at 58% 44%, rgba(226, 211, 188, 0.14), transparent 34%),
    linear-gradient(180deg, #fcfaf6 0%, #faf7f0 100%);
  color: var(--rp-blueprint-text);
  font-family: var(--font-sans, "Questrial", sans-serif);
}

.rp-home-blueprint__container {
  display: grid;
  gap: clamp(18px, 2.4vh, 28px);
}

.rp-home-blueprint__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: end;
}

.rp-home-blueprint__eyebrow {
  margin: 0 0 8px;
  color: var(--rp-blueprint-bronze);
  font: 500 0.72rem/1.4 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rp-home-blueprint h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--rp-blueprint-text);
  font: 300 clamp(2.15rem, 3.5vw, 4.35rem)/0.98 var(--font-display, "Questrial", sans-serif);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.rp-home-blueprint__intro {
  max-width: 48ch;
  margin: 0 0 3px;
  color: var(--rp-blueprint-muted);
  font: 400 0.98rem/1.7 var(--font-sans, "Questrial", sans-serif);
}

.rp-home-blueprint__layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: clamp(410px, 55vh, 520px);
}

.rp-home-blueprint__selector {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-block: 6px;
}

.rp-home-blueprint__selector-list {
  position: relative;
  display: grid;
}

.rp-home-blueprint__selector-button {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 8px 6px 8px 18px;
  border: 0;
  border-bottom: 1px solid rgba(100, 75, 48, 0.11);
  background: transparent;
  color: #7b746c;
  cursor: pointer;
  text-align: left;
  transition:
    color 280ms ease,
    transform 280ms ease;
}

.rp-home-blueprint__selector-button > span {
  color: var(--rp-blueprint-bronze);
  font: 400 0.76rem/1.2 var(--font-sans, "Questrial", sans-serif);
}

.rp-home-blueprint__selector-button strong {
  font: 500 0.83rem/1.25 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rp-home-blueprint__selector-button:hover {
  color: var(--rp-blueprint-text);
  transform: translateX(3px);
}

.rp-home-blueprint__selector-button.is-active {
  color: var(--rp-blueprint-text);
}

.rp-home-blueprint__selector-button:focus-visible,
.rp-home-blueprint__product:focus-visible,
.rp-home-blueprint__cta:focus-visible,
.rp-home-blueprint__all-link:focus-visible,
.rp-home-blueprint-spaces a:focus-visible {
  outline: 2px solid var(--rp-blueprint-bronze);
  outline-offset: 3px;
}

.rp-home-blueprint__selector-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 55px;
  background: var(--rp-blueprint-bronze);
  transform: translateY(var(--rp-indicator-y, 0px));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-home-blueprint__all-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  color: #8c5c2f;
  font: 500 0.75rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.rp-home-blueprint__all-link span:last-child {
  font-size: 1.1rem;
  transition: transform 220ms ease;
}

.rp-home-blueprint__all-link:hover span:last-child {
  transform: translateX(4px);
}

.rp-home-blueprint__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(265px, 0.38fr);
  gap: clamp(12px, 1.7vw, 26px);
  min-width: 0;
  isolation: isolate;
}

.rp-home-blueprint__draft {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
}

.rp-home-blueprint__draft-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 876;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.rp-home-blueprint__draft-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.rp-home-blueprint__draft-image.is-current {
  z-index: 1;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-home-blueprint__draft-image.is-next {
  z-index: 2;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: scale(1.012);
}

.rp-home-blueprint__drafting-wipe {
  position: absolute;
  inset: 0 auto 0 -14%;
  z-index: 3;
  width: 18%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 117, 66, 0.28), transparent);
  transform: skewX(-8deg);
  pointer-events: none;
}

.rp-home-blueprint__measurements {
  position: absolute;
  inset: 3%;
  z-index: 4;
  width: 94%;
  height: 94%;
  opacity: 0.45;
  pointer-events: none;
}

.rp-home-blueprint__measurements path,
.rp-home-blueprint__measurements circle {
  fill: none;
  stroke: rgba(117, 92, 65, 0.45);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.rp-home-blueprint__measurements circle {
  fill: #fcfaf6;
  stroke: rgba(168, 117, 66, 0.74);
}

.rp-home-blueprint__measurements text {
  fill: #80776d;
  font: 12px var(--font-sans, "Questrial", sans-serif);
  text-anchor: middle;
}

.rp-home-blueprint.is-switching .rp-home-blueprint__draft-image.is-current {
  opacity: 0.18;
  transform: scale(0.992);
}

.rp-home-blueprint.is-switching .rp-home-blueprint__draft-image.is-next {
  animation: rp-blueprint-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rp-home-blueprint.is-switching .rp-home-blueprint__drafting-wipe {
  animation: rp-blueprint-wipe 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rp-home-blueprint__products {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  border-left: 1px solid rgba(100, 75, 48, 0.11);
  padding-left: clamp(14px, 1.6vw, 26px);
}

.rp-home-blueprint__active-copy {
  position: relative;
  z-index: 7;
  max-width: 330px;
}

.rp-home-blueprint__active-copy > p:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 7px;
  color: var(--rp-blueprint-bronze);
  font: 500 0.68rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-home-blueprint__active-copy > p:first-child span:first-child::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: rgba(168, 117, 66, 0.7);
}

.rp-home-blueprint__active-copy h3 {
  margin: 0;
  color: var(--rp-blueprint-text);
  font: 300 clamp(1.6rem, 2vw, 2.45rem)/1.02 var(--font-display, "Questrial", sans-serif);
  letter-spacing: -0.035em;
}

.rp-home-blueprint__active-copy > p:last-of-type {
  max-width: 35ch;
  margin: 10px 0 0;
  color: var(--rp-blueprint-muted);
  font: 400 0.84rem/1.55 var(--font-sans, "Questrial", sans-serif);
}

.rp-home-blueprint__piece-count {
  display: inline-flex;
  gap: 7px;
  margin-top: 9px;
  color: #7b736b;
  font: 500 0.67rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-home-blueprint__piece-count b {
  color: var(--rp-blueprint-bronze);
  font-weight: 500;
}

.rp-home-blueprint__product-cluster {
  position: relative;
  min-height: 0;
}

.rp-home-blueprint__product {
  appearance: none;
  position: absolute;
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rp-blueprint-text);
  cursor: pointer;
  opacity: 0.92;
  transition:
    opacity 360ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.rp-home-blueprint__product--0 {
  left: 22%;
  top: 2%;
  width: 52%;
}

.rp-home-blueprint__product--1 {
  left: 0;
  top: 37%;
  width: 34%;
}

.rp-home-blueprint__product--2 {
  right: 0;
  top: 29%;
  width: 32%;
}

.rp-home-blueprint__product--3 {
  left: 10%;
  bottom: 0;
  width: 31%;
}

.rp-home-blueprint__product--4 {
  right: 4%;
  bottom: 0;
  width: 31%;
}

.rp-home-blueprint__product:hover,
.rp-home-blueprint__product.is-highlighted {
  z-index: 8;
  opacity: 1;
  transform: translateY(-4px) scale(1.035);
  filter: drop-shadow(0 14px 18px rgba(69, 50, 29, 0.14));
}

.rp-home-blueprint__product-media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.rp-home-blueprint__product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 15px rgba(69, 50, 29, 0.11));
}

.rp-home-blueprint__product img:not([src]) {
  opacity: 0;
}

.rp-home-blueprint__product-label {
  display: grid;
  gap: 2px;
  max-width: 14ch;
  margin-top: -2px;
  color: #746c64;
  font: 500 0.61rem/1.25 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.rp-home-blueprint__product-label small {
  color: var(--rp-blueprint-bronze);
  font-size: 0.58rem;
}

.rp-home-blueprint__cta {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid rgba(168, 117, 66, 0.64);
  color: #86572b;
  font: 500 0.75rem/1.25 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    background 260ms ease,
    transform 260ms ease;
}

.rp-home-blueprint__cta b {
  font-weight: 500;
}

.rp-home-blueprint__cta:hover {
  color: var(--rp-blueprint-text);
  background: rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
}

.rp-home-blueprint__connectors {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rp-home-blueprint__connectors path {
  fill: none;
  stroke: rgba(168, 117, 66, 0.54);
  stroke-width: 1.2;
  stroke-dasharray: 520;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  transition:
    stroke 260ms ease,
    stroke-width 260ms ease,
    opacity 260ms ease;
}

.rp-home-blueprint__connectors circle {
  fill: #fcfaf6;
  stroke: rgba(168, 117, 66, 0.82);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition:
    fill 260ms ease,
    transform 260ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.rp-home-blueprint.is-switching .rp-home-blueprint__connectors path {
  animation: rp-blueprint-lines 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rp-home-blueprint.is-product-0-active [data-blueprint-path="0"],
.rp-home-blueprint.is-product-1-active [data-blueprint-path="1"],
.rp-home-blueprint.is-product-2-active [data-blueprint-path="2"],
.rp-home-blueprint.is-product-3-active [data-blueprint-path="3"],
.rp-home-blueprint.is-product-4-active [data-blueprint-path="4"] {
  stroke: rgba(168, 117, 66, 0.95);
  stroke-width: 2;
}

.rp-home-blueprint.is-product-0-active [data-blueprint-node="0"],
.rp-home-blueprint.is-product-1-active [data-blueprint-node="1"],
.rp-home-blueprint.is-product-2-active [data-blueprint-node="2"],
.rp-home-blueprint.is-product-3-active [data-blueprint-node="3"],
.rp-home-blueprint.is-product-4-active [data-blueprint-node="4"] {
  fill: var(--rp-blueprint-bronze);
  transform: scale(1.35);
}

.rp-home-blueprint.is-switching .rp-home-blueprint__active-copy,
.rp-home-blueprint.is-switching .rp-home-blueprint__cta {
  opacity: 0;
  transform: translateY(10px);
}

.rp-home-blueprint.is-switching .rp-home-blueprint__product {
  opacity: 0;
  transform: translate(var(--rp-exit-x, 0), var(--rp-exit-y, 12px)) scale(0.94);
}

.rp-home-blueprint__active-copy,
.rp-home-blueprint__cta {
  transition:
    opacity 360ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__header,
.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__selector,
.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__draft,
.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__products {
  opacity: 0;
}

.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__header,
.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__selector {
  transform: translateY(16px);
}

.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__draft {
  transform: translateY(14px) scale(0.985);
}

.rp-home-blueprint:not(.is-visible) .rp-home-blueprint__products {
  transform: translateY(18px);
}

.rp-home-blueprint__header,
.rp-home-blueprint__selector,
.rp-home-blueprint__draft,
.rp-home-blueprint__products {
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-home-blueprint.is-visible .rp-home-blueprint__selector {
  transition-delay: 70ms;
}

.rp-home-blueprint.is-visible .rp-home-blueprint__draft {
  transition-delay: 110ms;
}

.rp-home-blueprint.is-visible .rp-home-blueprint__products {
  transition-delay: 160ms;
}

.rp-home-blueprint-spaces {
  width: 100%;
  padding-block: 20px;
  border-top: 1px solid rgba(100, 75, 48, 0.1);
  border-bottom: 1px solid rgba(100, 75, 48, 0.1);
  background: #fcfaf6;
}

.rp-home-blueprint-spaces .rp-container {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.rp-home-blueprint-spaces p {
  margin: 0;
  color: var(--rp-blueprint-text, #28241f);
  font: 300 1.35rem/1.2 var(--font-display, "Questrial", sans-serif);
}

.rp-home-blueprint-spaces .rp-container > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(95px, 1fr));
  width: min(900px, 100%);
}

.rp-home-blueprint-spaces a {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 56px;
  padding-inline: 12px;
  border-right: 1px solid rgba(100, 75, 48, 0.1);
  color: #736b62;
  text-decoration: none;
}

.rp-home-blueprint-spaces a:last-child {
  border-right: 0;
}

.rp-home-blueprint-spaces a > span:first-child {
  width: 34px;
  height: 34px;
  color: rgba(141, 99, 57, 0.86);
}

.rp-home-blueprint-spaces svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-home-blueprint-spaces a > span:last-child {
  font: 500 0.67rem/1.25 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.rp-home-blueprint-spaces a:hover {
  color: var(--rp-blueprint-text, #28241f);
}

@keyframes rp-blueprint-reveal {
  from {
    opacity: 0.2;
    clip-path: inset(0 100% 0 0);
    transform: scale(1.012);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes rp-blueprint-wipe {
  0% {
    left: -14%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

@keyframes rp-blueprint-lines {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
  42% {
    stroke-dashoffset: 520;
    opacity: 0.12;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Short laptop layout, including 1366 × 768. */
@media (min-width: 1025px) and (max-height: 820px) {
  .rp-home-blueprint {
    padding-block: 20px;
  }

  .rp-home-blueprint__container {
    gap: 14px;
  }

  .rp-home-blueprint h2 {
    font-size: clamp(1.95rem, 3.05vw, 3.35rem);
  }

  .rp-home-blueprint__intro {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .rp-home-blueprint__layout {
    min-height: 390px;
  }

  .rp-home-blueprint__selector-button {
    min-height: 47px;
  }

  .rp-home-blueprint__selector-indicator {
    height: 47px;
  }

  .rp-home-blueprint__active-copy h3 {
    font-size: clamp(1.45rem, 1.75vw, 2rem);
  }

  .rp-home-blueprint__active-copy > p:last-of-type {
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .rp-home-blueprint__piece-count {
    margin-top: 6px;
  }

  .rp-home-blueprint__cta {
    min-height: 42px;
  }

  .rp-home-blueprint-spaces {
    padding-block: 14px;
  }
}

/* Tablet: horizontal selector, full blueprint, three product previews. */
@media (max-width: 1024px) {
  .rp-home-blueprint {
    padding-block: clamp(52px, 7vw, 76px);
  }

  .rp-home-blueprint__header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rp-home-blueprint h2 {
    max-width: 15ch;
  }

  .rp-home-blueprint__intro {
    max-width: 55ch;
  }

  .rp-home-blueprint__layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 26px;
  }

  .rp-home-blueprint__selector {
    display: grid;
    gap: 14px;
  }

  .rp-home-blueprint__selector-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
  }

  .rp-home-blueprint__selector-list::-webkit-scrollbar {
    display: none;
  }

  .rp-home-blueprint__selector-button {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(100, 75, 48, 0.13);
    border-radius: 999px;
  }

  .rp-home-blueprint__selector-indicator {
    display: none;
  }

  .rp-home-blueprint__all-link {
    margin-top: 0;
  }

  .rp-home-blueprint__visual {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  }

  .rp-home-blueprint__connectors,
  .rp-home-blueprint__measurements {
    display: none;
  }

  .rp-home-blueprint__product--3,
  .rp-home-blueprint__product--4 {
    display: none;
  }

  .rp-home-blueprint__product--0 {
    left: 21%;
    width: 58%;
  }

  .rp-home-blueprint__product--1 {
    left: 3%;
    top: 45%;
    width: 38%;
  }

  .rp-home-blueprint__product--2 {
    right: 3%;
    top: 45%;
    width: 36%;
  }

  .rp-home-blueprint__product-label {
    font-size: 0.56rem;
  }

  .rp-home-blueprint.is-switching .rp-home-blueprint__draft-image.is-next {
    animation-duration: 420ms;
  }

  .rp-home-blueprint.is-switching .rp-home-blueprint__drafting-wipe {
    animation-duration: 420ms;
  }

  .rp-home-blueprint-spaces .rp-container > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 0;
  }

  .rp-home-blueprint-spaces a:nth-child(3n) {
    border-right: 0;
  }
}

/* Mobile: blueprint leads; one hero product plus four compact thumbnails. */
@media (max-width: 680px) {
  .rp-home-blueprint {
    padding-block: 54px 48px;
  }

  .rp-home-blueprint__container {
    gap: 22px;
  }

  .rp-home-blueprint h2 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }

  .rp-home-blueprint__intro {
    font-size: 0.96rem;
  }

  .rp-home-blueprint__selector-button strong {
    font-size: 0.72rem;
  }

  .rp-home-blueprint__visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rp-home-blueprint__draft {
    order: 1;
  }

  .rp-home-blueprint__products {
    order: 2;
    border-left: 0;
    padding-left: 0;
    gap: 18px;
  }

  .rp-home-blueprint__active-copy {
    max-width: 100%;
  }

  .rp-home-blueprint__product-cluster {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    min-height: 305px;
  }

  .rp-home-blueprint__product {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    height: 82px;
    padding: 5px;
    border: 1px solid rgba(100, 75, 48, 0.1);
    background: rgba(255, 255, 255, 0.32);
  }

  .rp-home-blueprint__product.is-mobile-featured {
    grid-column: 1 / -1;
    order: -1;
    height: 210px;
    border: 0;
    background: transparent;
  }

  .rp-home-blueprint__product-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .rp-home-blueprint__product-label {
    display: none;
  }

  .rp-home-blueprint__cta {
    width: 100%;
  }

  .rp-home-blueprint-spaces p {
    font-size: 1.15rem;
  }

  .rp-home-blueprint-spaces .rp-container > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-home-blueprint-spaces a {
    border-right: 1px solid rgba(100, 75, 48, 0.1);
  }

  .rp-home-blueprint-spaces a:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-home-blueprint *,
  .rp-home-blueprint *::before,
  .rp-home-blueprint *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 180ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .rp-home-blueprint__drafting-wipe {
    display: none !important;
  }

  .rp-home-blueprint__connectors path {
    stroke-dashoffset: 0 !important;
  }
}


/*
 * Desktop product-panel repair
 *
 * The product side now follows the supplied editorial reference:
 * one stable vertical list with five compact product rows.
 * This prevents real database names from overlapping and keeps the complete
 * section inside a normal PC viewport.
 */
@media (min-width: 1025px) {
  .rp-home-blueprint__visual {
    grid-template-columns: minmax(0, 0.66fr) minmax(300px, 0.34fr);
    gap: clamp(14px, 1.5vw, 24px);
  }

  .rp-home-blueprint__products {
    position: relative;
    z-index: 6;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    overflow: hidden;
    padding-left: clamp(16px, 1.5vw, 24px);
    background:
      linear-gradient(
        90deg,
        rgba(252, 250, 246, 0.72) 0%,
        rgba(252, 250, 246, 0.94) 12%,
        rgba(252, 250, 246, 0.98) 100%
      );
  }

  .rp-home-blueprint__active-copy {
    max-width: 100%;
    padding-right: 8px;
  }

  .rp-home-blueprint__active-copy h3 {
    font-size: clamp(1.45rem, 1.75vw, 2.05rem);
    line-height: 1;
  }

  .rp-home-blueprint__active-copy > p:last-of-type {
    max-width: 38ch;
    margin-top: 7px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .rp-home-blueprint__piece-count {
    margin-top: 6px;
  }

  .rp-home-blueprint__product-cluster {
    position: relative;
    display: grid;
    grid-template-rows: repeat(5, minmax(54px, 1fr));
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    padding-block: 2px;
  }

  .rp-home-blueprint__product,
  .rp-home-blueprint__product--0,
  .rp-home-blueprint__product--1,
  .rp-home-blueprint__product--2,
  .rp-home-blueprint__product--3,
  .rp-home-blueprint__product--4 {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: 7;
    display: grid;
    grid-template-columns: clamp(58px, 5vw, 82px) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 4px 4px 4px 0;
    border-bottom: 1px solid rgba(100, 75, 48, 0.09);
    text-align: left;
  }

  .rp-home-blueprint__product:last-child {
    border-bottom: 0;
  }

  .rp-home-blueprint__product:hover,
  .rp-home-blueprint__product.is-highlighted {
    transform: translateX(4px);
    filter: none;
  }

  .rp-home-blueprint__product-media {
    width: 100%;
    height: 100%;
    max-height: 72px;
    aspect-ratio: 1;
  }

  .rp-home-blueprint__product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(69, 50, 29, 0.1));
  }

  .rp-home-blueprint__product-label {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    max-width: none;
    min-width: 0;
    margin: 0;
    color: #5f5851;
    font-size: 0.66rem;
    line-height: 1.25;
    letter-spacing: 0.055em;
    text-align: left;
  }

  .rp-home-blueprint__product-label > span {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
  }

  .rp-home-blueprint__product-label small {
    font-size: 0.56rem;
  }

  .rp-home-blueprint__cta {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.7rem;
  }

  .rp-home-blueprint__connectors {
    z-index: 4;
  }
}

/* Extra restraint for common 1366 × 768 laptop screens. */
@media (min-width: 1025px) and (max-height: 820px) {
  .rp-home-blueprint__products {
    gap: 6px;
  }

  .rp-home-blueprint__active-copy > p:first-child {
    margin-bottom: 4px;
  }

  .rp-home-blueprint__active-copy h3 {
    font-size: clamp(1.3rem, 1.55vw, 1.78rem);
  }

  .rp-home-blueprint__active-copy > p:last-of-type {
    margin-top: 5px;
    font-size: 0.73rem;
    line-height: 1.38;
  }

  .rp-home-blueprint__product-cluster {
    grid-template-rows: repeat(5, minmax(48px, 1fr));
    gap: 3px;
  }

  .rp-home-blueprint__product,
  .rp-home-blueprint__product--0,
  .rp-home-blueprint__product--1,
  .rp-home-blueprint__product--2,
  .rp-home-blueprint__product--3,
  .rp-home-blueprint__product--4 {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 9px;
    padding-block: 2px;
  }

  .rp-home-blueprint__product-media {
    max-height: 58px;
  }

  .rp-home-blueprint__product-label {
    font-size: 0.6rem;
  }

  .rp-home-blueprint__cta {
    min-height: 38px;
  }
}
