@font-face {
  font-family: "Heatwood";
  src: url("../../fonts/Heatwood.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bcf-ivory: #f4f0e7;
  --bcf-ivory-deep: #e9e2d6;
  --bcf-ink: #171a18;
  --bcf-copy: #5b625d;
  --bcf-coral: #e84a5b;
  --bcf-coral-dark: #a82f3e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.bcf-preview-page {
  overflow-x: hidden;
  background: var(--bcf-ivory);
}

.bcf-showcase {
  --bcf-spring: cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  overflow: hidden;
  padding: clamp(64px, 7vw, 112px) 0 clamp(54px, 6vw, 92px);
  background: linear-gradient(180deg, #f7f3ec 0%, var(--bcf-ivory) 58%, #eee8dd 100%);
  color: var(--bcf-ink);
  font-family: "Open Sans", Arial, sans-serif;
  isolation: isolate;
}

.bcf-showcase button,
.bcf-showcase a {
  -webkit-tap-highlight-color: transparent;
}

.bcf-intro {
  position: relative;
  z-index: 20;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  overflow: visible;
  text-align: center;
}

.bcf-details__number,
.bcf-details__kicker {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bcf-details__kicker {
  color: var(--bcf-coral);
}

.bcf-intro__title {
  margin: 0;
  padding: .06em .08em .18em;
  overflow: visible;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(34px, 4.55vw, 68px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .88;
  text-transform: uppercase;
}

.bcf-intro__title span {
  display: inline-block;
  margin-left: .08em;
  padding: .02em .1em .12em;
  color: var(--bcf-coral);
  font-family: Heatwood, cursive;
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transform: translateY(.04em);
}

.bcf-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 52vw, 740px);
  margin: clamp(16px, 2.4vw, 36px) auto 0;
  overflow: hidden;
  cursor: grab;
  outline: none;
  perspective: 1600px;
  perspective-origin: 50% 43%;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.bcf-stage:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(232, 74, 91, .58);
}

.bcf-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.bcf-stage.is-dragging {
  cursor: grabbing;
}

.bcf-stage.is-dragging .bcf-model {
  filter: drop-shadow(0 18px 26px rgba(29, 26, 22, .16));
  transition: none;
}

.bcf-model {
  --bcf-x: 0px;
  --bcf-y: 0px;
  --bcf-z: 0px;
  --bcf-rotate-y: 0deg;
  --bcf-scale: .7;
  --bcf-opacity: .7;
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  display: block;
  width: clamp(220px, 23vw, 340px);
  height: clamp(390px, 41vw, 590px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: var(--bcf-opacity);
  filter: drop-shadow(0 18px 26px rgba(29, 26, 22, .16));
  outline: none;
  transform:
    translate3d(-50%, -50%, var(--bcf-z))
    translateX(var(--bcf-x))
    translateY(var(--bcf-y))
    rotateY(var(--bcf-rotate-y))
    scale(var(--bcf-scale));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: filter 320ms ease;
  will-change: transform, opacity;
}

.bcf-model img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bcf-model:focus-visible {
  box-shadow: 0 0 0 4px var(--bcf-coral);
}

.bcf-model.is-active {
  filter: brightness(1.06) drop-shadow(0 28px 34px rgba(29, 26, 22, .26));
}

.bcf-model[data-position="0"] {
  --bcf-y: 28px;
  --bcf-z: 120px;
  --bcf-scale: .96;
  --bcf-opacity: 1;
  z-index: 10;
}

.bcf-model[data-position="-1"] {
  --bcf-x: calc(-1 * clamp(170px, 20vw, 330px));
  --bcf-y: -10px;
  --bcf-z: 0px;
  --bcf-rotate-y: 28deg;
  --bcf-scale: .7;
  --bcf-opacity: .78;
  z-index: 6;
}

.bcf-model[data-position="1"] {
  --bcf-x: clamp(170px, 20vw, 330px);
  --bcf-y: -10px;
  --bcf-z: 0px;
  --bcf-rotate-y: -28deg;
  --bcf-scale: .7;
  --bcf-opacity: .78;
  z-index: 6;
}

.bcf-model[data-position="-2"] {
  --bcf-x: calc(-1 * clamp(300px, 37vw, 620px));
  --bcf-y: -52px;
  --bcf-z: -160px;
  --bcf-rotate-y: 40deg;
  --bcf-scale: .55;
  --bcf-opacity: .58;
  z-index: 2;
}

.bcf-model[data-position="2"] {
  --bcf-x: clamp(300px, 37vw, 620px);
  --bcf-y: -52px;
  --bcf-z: -160px;
  --bcf-rotate-y: -40deg;
  --bcf-scale: .55;
  --bcf-opacity: .58;
  z-index: 2;
}

.bcf-controls {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1320px, calc(100% - 36px));
  justify-content: space-between;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.bcf-arrow {
  display: grid;
  width: clamp(46px, 4vw, 60px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(23, 26, 24, .14);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 28px rgba(38, 34, 29, .12);
  color: var(--bcf-ink);
  cursor: pointer;
  pointer-events: auto;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}

.bcf-arrow:hover,
.bcf-arrow:focus-visible {
  border-color: var(--bcf-coral);
  background: var(--bcf-coral);
  color: #fff;
  outline: none;
  transform: scale(1.06);
}

.bcf-arrow svg,
.bcf-cta svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bcf-pagination {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.bcf-pagination button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 26, 24, .22);
  cursor: pointer;
  transition: width 320ms var(--bcf-spring), background 220ms ease;
}

.bcf-pagination button.is-active {
  width: 34px;
  background: var(--bcf-coral);
}

.bcf-pagination button:focus-visible {
  outline: 2px solid var(--bcf-coral);
  outline-offset: 4px;
}

.bcf-pagination button {
  background: transparent;
  height: 24px;
  position: relative;
  width: 24px;
}

.bcf-pagination button::before {
  background: rgba(23, 26, 24, .28);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width 320ms var(--bcf-spring), background 220ms ease;
  width: 8px;
}

.bcf-pagination button.is-active {
  background: transparent;
  width: 34px;
}

.bcf-pagination button.is-active::before {
  background: var(--bcf-coral);
  width: 34px;
}

.bcf-details {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(920px, calc(100% - 40px));
  margin: clamp(12px, 2vw, 26px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 24, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 24px 70px rgba(48, 42, 34, .09);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 260ms var(--bcf-spring);
  backdrop-filter: blur(18px);
}

.bcf-details.is-changing {
  opacity: 0;
  transform: translateY(14px);
}

.bcf-details__identity,
.bcf-details__content {
  padding: clamp(20px, 2vw, 28px);
}

.bcf-details__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(18px, 2vw, 30px);
  align-items: center;
  border-right: 1px solid rgba(23, 26, 24, .09);
}

.bcf-details__number {
  grid-row: 1 / 3;
  color: rgba(23, 26, 24, .4);
}

.bcf-details__kicker {
  align-self: end;
  margin: 0 0 4px;
  letter-spacing: .13em;
}

.bcf-details__title {
  align-self: start;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .96;
  text-transform: uppercase;
}

.bcf-details__content {
  display: flex;
  align-items: center;
  align-self: center;
}

.bcf-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--bcf-ink);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 220ms ease, transform 220ms ease;
}

.bcf-cta:hover,
.bcf-cta:focus-visible {
  background: var(--bcf-coral);
  outline: none;
  transform: translateY(-2px);
}

.bcf-cta svg {
  width: 19px;
}

.bcf-interaction-hint {
  margin: 22px auto 0;
  color: rgba(23, 26, 24, .48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.bcf-interaction-hint span {
  display: inline-block;
  margin-right: 7px;
  color: var(--bcf-coral);
  font-size: 18px;
  vertical-align: -1px;
}

.bcf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bcf-stage {
    height: clamp(470px, 70vw, 610px);
    perspective: 1300px;
  }

  .bcf-model {
    top: 47%;
    width: clamp(190px, 31vw, 270px);
    height: clamp(340px, 53vw, 470px);
  }

  .bcf-model[data-position="-1"] {
    --bcf-x: calc(-1 * clamp(145px, 27vw, 240px));
    --bcf-rotate-y: 20deg;
  }

  .bcf-model[data-position="1"] {
    --bcf-x: clamp(145px, 27vw, 240px);
    --bcf-rotate-y: -20deg;
  }

  .bcf-model[data-position="-2"] {
    --bcf-x: calc(-1 * clamp(270px, 51vw, 460px));
    --bcf-rotate-y: 30deg;
  }

  .bcf-model[data-position="2"] {
    --bcf-x: clamp(270px, 51vw, 460px);
    --bcf-rotate-y: -30deg;
  }

}

@media (max-width: 600px) {
  .bcf-showcase {
    padding-top: 54px;
  }

  .bcf-intro__title {
    font-size: clamp(29px, 9.1vw, 44px);
    line-height: .94;
  }

  .bcf-intro__title span {
    display: block;
    max-width: 100%;
    margin: 8px auto 0;
    padding: .04em .18em .18em;
    line-height: 1.08;
  }

  .bcf-stage {
    height: 430px;
    margin-top: 12px;
    perspective: 1000px;
  }

  .bcf-model {
    top: 47%;
    width: min(54vw, 215px);
    height: min(92vw, 380px);
  }

  .bcf-model[data-position="0"] {
    --bcf-y: 18px;
    --bcf-z: 50px;
    --bcf-scale: .94;
  }

  .bcf-model[data-position="-1"] {
    --bcf-x: -36vw;
    --bcf-y: -6px;
    --bcf-z: -20px;
    --bcf-rotate-y: 11deg;
    --bcf-scale: .66;
  }

  .bcf-model[data-position="1"] {
    --bcf-x: 36vw;
    --bcf-y: -6px;
    --bcf-z: -20px;
    --bcf-rotate-y: -11deg;
    --bcf-scale: .66;
  }

  .bcf-model[data-position="-2"] {
    --bcf-x: -68vw;
    --bcf-y: -28px;
    --bcf-z: -80px;
    --bcf-rotate-y: 17deg;
    --bcf-scale: .5;
    --bcf-opacity: .44;
  }

  .bcf-model[data-position="2"] {
    --bcf-x: 68vw;
    --bcf-y: -28px;
    --bcf-z: -80px;
    --bcf-rotate-y: -17deg;
    --bcf-scale: .5;
    --bcf-opacity: .44;
  }

  .bcf-controls {
    top: auto;
    bottom: 22px;
    width: calc(100% - 36px);
    transform: translateX(-50%);
  }

  .bcf-pagination {
    bottom: 36px;
  }

  .bcf-details {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    border-radius: 22px;
  }

  .bcf-details__identity,
  .bcf-details__content {
    padding: 18px;
  }

  .bcf-details__identity {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 26, 24, .09);
  }

  .bcf-details__content {
    justify-content: flex-start;
  }

  .bcf-interaction-hint {
    width: calc(100% - 32px);
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcf-model,
  .bcf-track,
  .bcf-details,
  .bcf-arrow,
  .bcf-pagination button,
  .bcf-cta {
    transition-duration: .01ms !important;
  }
}

/* Center each mobile card action beneath its title and description. */
@media (max-width: 600px) {
  .bcf-details__content {
    align-items: center;
    text-align: center;
  }

  .bcf-cta {
    margin-inline: auto;
  }
}

@supports not (transform-style: preserve-3d) {
  .bcf-stage {
    perspective: none;
  }

  .bcf-model {
    filter: none;
  }
}
