/* Nesty Content — Custom Brand Steps
   Figma "Section - steps" (node 1:542): dark section, two-tone heading + step
   list on the left, an interactive stacked card deck on the right. */

.cew-bcs {
  width: 100%;
  box-sizing: border-box;
  /* Back cards in the deck step right — clip so they can't cause a
     horizontal scrollbar on narrow screens. */
  overflow-x: hidden;
  padding-right : 38px;
}

.cew-bcs__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Left column ── */
.cew-bcs__left {
  display: flex;
  flex-direction: column;
  gap: 60px;
  flex: 1 1 auto;
  min-width: 0;
}

.cew-bcs__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cew-bcs__title {
  margin: 0;
  font-family: "Aileron", sans-serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 88px;
  letter-spacing: -4px;
  color: #fff;
}

.cew-bcs__title .l1,
.cew-bcs__title .l2 {
  display: block;
}

.cew-bcs__title .l2 {
  font-family: "Libre Caslon Condensed", Georgia, serif;
  font-weight: 500;
}

.cew-bcs__subtext {
  margin: 0;
  max-width: 400px;
  font-family: "Aileron", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.48px;
  color: #d5dccf;
}

/* ── Steps list ── */
.cew-bcs__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.cew-bcs__step {
  display: flex;
  gap: 16px;
  cursor: pointer;
  outline: none;
}

.cew-bcs__num {
  flex-shrink: 0;
  font-family: "Libre Caslon Condensed", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 40px;
  line-height: 56px;
  letter-spacing: -0.96px;
  color: #fff;
  opacity: .7;
}

.cew-bcs__step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cew-bcs__step-title {
  font-family: "Aileron", sans-serif;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -2.4px;
  color: #fff;
}

.cew-bcs__step-desc {
  margin: 0;
  font-family: "Aileron", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.48px;
  color: #bababa;
}


.cew-bcs__step.is-active,
.cew-bcs__step:hover {
  opacity: 1;
}

/* ── Card deck ── */
.cew-bcs__deck {
  position: relative;
  flex-shrink: 0;
  width: 444px;
  /* Card height (560px) + max depth-2 translate (52px) + buffer */
  height: 640px;
}

.cew-bcs__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  /* Active card (depth 0) sits on top-left; cards behind step DOWN and RIGHT so
     they peek out at the bottom-right. --depth is set by JS from the active step. */
  transform: translate(calc(var(--depth, 0) * 18px), calc(var(--depth, 0) * 26px));
  z-index: calc(100 - var(--depth, 0));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0s 0.22s;
}

.cew-bcs__card-img {
  position: relative;
  width: 100%;
  height: 372px;
  overflow: hidden;
}

.cew-bcs__card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cew-bcs__card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px;
  background: #fff;
}

.cew-bcs__card-title {
  margin: 0;
  font-family: "Libre Caslon Condensed", Georgia, serif;
  font-weight: 500;
  font-style: normal;
  font-size: 34px;
  line-height: 0.94;
  letter-spacing: -1.2px;
  color: #131313;
}

.cew-bcs__card-text {
  font-family: "Aileron", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.48px;
  color: #5c5c5c;
}

.cew-bcs__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 8px;
  background: #131313;
  color: #fff;
  font-family: "Aileron", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.42px;
  white-space: nowrap;
}

/* ── Editor empty-state ── */
.cew-bcs__empty {
  padding: 28px 20px;
  border: 1px dashed #555;
  border-radius: 8px;
  text-align: center;
  color: #ccc;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cew-bcs__inner{
    gap: 40px;
  }
  .cew-bcs__title {
    font-size: 55px;
    line-height: 1.1;
    letter-spacing: -2px;
  }
}

@media (max-width: 880px) {
  .cew-bcs__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }
  .cew-bcs__left {
    width: 100%;
  }
  .cew-bcs__title {
    font-size: 45px;
    line-height: 1.1;
    letter-spacing: -2px;
  }
  .cew-bcs__deck {
    width: 100%;
    max-width: 444px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .cew-bcs__num{
    font-size: 28px;
    line-height: 28px; 
  }

  .cew-bcs__step-title {
    font-size: 24px;
    letter-spacing: -1px;
  }
}