/*
 * Bella Interior Design — Homepage Design Process
 * Progressive enhancement: semantic vertical stages by default; a lightweight slide-away effect on capable desktop browsers.
 */

.bella-process {
  --bdp-white: #FFFFFF;
  --bdp-mist: #F4F5F5;
  --bdp-charcoal: #191919;
  --bdp-graphite: #5F6362;
  --bdp-sage: #718078;
  --bdp-deep-sage: #46534D;
  --bdp-silver: #D9DDDB;
  --bdp-black: #111312;
  position: relative;
  background: var(--bdp-white);
  color: var(--bdp-charcoal);
  border-top: 1px solid var(--bdp-silver);
}

.bella-process__head {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(250px, .62fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: end;
  padding-top: clamp(90px, 8vw, 132px);
  padding-bottom: clamp(30px, 3vw, 44px);
}

.bella-process__head-main { max-width: 980px; }

.bella-process__eyebrow,
.bella-process__closing-eyebrow {
  margin: 0 0 12px;
  color: var(--bdp-sage);
  font-family: "Parisienne", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
}

.bella-process h2 {
  max-width: 1000px;
  margin: 0;
  color: var(--bdp-charcoal);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.bella-process__intro {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--bdp-graphite);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

.bella-process__helper {
  align-self: end;
  max-width: 330px;
  padding-bottom: 4px;
}

.bella-process__helper > span {
  display: block;
  width: 54px;
  height: 1px;
  margin: 0 0 17px;
  background: var(--bdp-deep-sage);
}

.bella-process__helper p {
  margin: 0;
  color: var(--bdp-graphite);
  font-size: 15px;
  line-height: 1.65;
}

.bella-process__index {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid var(--bdp-silver);
  border-bottom: 1px solid var(--bdp-silver);
}

.bella-process__index a {
  position: relative;
  min-width: 0;
  padding: 16px 14px 17px;
  color: var(--bdp-graphite);
  text-decoration: none;
  border-right: 1px solid var(--bdp-silver);
  transition: color .35s ease, background .35s ease;
}

.bella-process__index a:last-child { border-right: 0; }

.bella-process__index a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--bdp-deep-sage);
  transition: right .45s cubic-bezier(.2,.72,.2,1);
}

.bella-process__index a:hover,
.bella-process__index a:focus-visible,
.bella-process__index a.is-current {
  color: var(--bdp-charcoal);
  background: rgba(244,245,245,.6);
}

.bella-process__index a.is-current::after { right: 0; }

.bella-process__index span {
  display: block;
  margin-bottom: 7px;
  color: var(--bdp-sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.bella-process__index b {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Default / crawlable layout: every stage is visible in normal document flow. */
.bella-process__scroll { position: relative; }
.bella-process__sticky { position: relative; }

.bella-process__book-shell {
  position: relative;
  padding-top: clamp(38px, 4vw, 58px);
  padding-bottom: clamp(54px, 5vw, 78px);
}

.bella-process__book {
  position: relative;
  outline: none;
}

.bella-process__book:focus-visible {
  box-shadow: 0 0 0 2px rgba(113,128,120,.36);
}

.bella-process__pages {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bella-process__page {
  position: relative;
  min-width: 0;
}

.bella-process__spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 600px;
  overflow: hidden;
  background: var(--bdp-white);
  border: 1px solid var(--bdp-silver);
  border-radius: 2px 24px 24px 2px;
  box-shadow: 0 24px 68px rgba(17,19,18,.055);
}

.bella-process__media {
  position: relative;
  min-width: 0;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  background: #e9ecea;
}

.bella-process__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(.99) brightness(.99);
  transform: scale(1.015);
  transition: transform 1s cubic-bezier(.2,.72,.2,1), filter .5s ease;
}

.bella-process__page.is-current .bella-process__media img,
.bella-process__page:focus-within .bella-process__media img {
  filter: saturate(.98) contrast(1) brightness(1);
  transform: scale(1);
}

.bella-process__media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,19,18,.01) 58%, rgba(17,19,18,.26) 100%);
  pointer-events: none;
}

.bella-process__media figcaption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.95);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.24);
}

.bella-process__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 4vw, 62px) clamp(34px, 4.3vw, 66px);
  background:
    linear-gradient(145deg, var(--bdp-white) 0%, var(--bdp-white) 78%, rgba(244,245,245,.88) 100%);
}

.bella-process__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bdp-silver);
}

.bella-process__stage-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--bdp-graphite);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bella-process__stage-line i {
  width: 34px;
  height: 1px;
  background: var(--bdp-silver);
}

.bella-process__question {
  margin: 0 0 8px;
  color: var(--bdp-sage);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.bella-process__copy h3 {
  max-width: 580px;
  margin: 0;
  color: var(--bdp-charcoal);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.bella-process__text {
  max-width: 640px;
  margin: 17px 0 0;
  color: var(--bdp-graphite);
  font-size: 16px;
  line-height: 1.68;
}

.bella-process__decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--bdp-silver);
}

.bella-process__decision h4 {
  margin: 0 0 11px;
  color: var(--bdp-charcoal);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bella-process__decision ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bella-process__decision li {
  padding: 7px 10px;
  color: var(--bdp-graphite);
  background: var(--bdp-mist);
  border: 1px solid rgba(217,221,219,.9);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
}

.bella-process__decision--review li {
  color: var(--bdp-deep-sage);
  background: rgba(113,128,120,.075);
  border-color: rgba(113,128,120,.2);
}

.bella-process__technical {
  margin-top: 18px;
  padding: 15px 17px 14px;
  background: #fafbfa;
  border: 1px solid var(--bdp-silver);
}

.bella-process__technical h4 {
  margin: 0 0 10px;
  color: var(--bdp-deep-sage);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bella-process__technical ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bella-process__technical li {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: var(--bdp-graphite);
  font-size: 11.5px;
  line-height: 1.45;
}

.bella-process__technical li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 1px;
  background: var(--bdp-sage);
}

.bella-process__outcome {
  margin-top: 19px;
  padding: 15px 17px;
  background: rgba(113,128,120,.08);
  border-left: 2px solid var(--bdp-sage);
}

.bella-process__outcome span {
  display: block;
  margin-bottom: 5px;
  color: var(--bdp-deep-sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bella-process__outcome p {
  margin: 0;
  color: var(--bdp-charcoal);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.bella-process__related {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 18px;
  color: var(--bdp-deep-sage);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bella-process__related svg,
.bella-process__closing-primary svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .28s ease;
}

.bella-process__related:hover svg,
.bella-process__related:focus-visible svg,
.bella-process__closing-primary:hover svg,
.bella-process__closing-primary:focus-visible svg { transform: translateX(5px); }

.bella-process__stack-sheet,
.bella-process__spine { display: none; }

.bella-process__controls {
  display: none;
}

.bella-process__closing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: start;
  padding-top: clamp(72px, 7vw, 110px);
  padding-bottom: clamp(88px, 8vw, 132px);
  border-top: 1px solid var(--bdp-silver);
}

.bella-process__closing h3 {
  max-width: 560px;
  margin: 0;
  color: var(--bdp-charcoal);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.bella-process__closing-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--bdp-graphite);
  font-size: 17px;
  line-height: 1.72;
}

.bella-process__closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 26px;
}

.bella-process__closing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 238px;
  padding: 15px 19px;
  color: #fff;
  background: var(--bdp-deep-sage);
  border: 1px solid var(--bdp-deep-sage);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

.bella-process__closing-primary:hover,
.bella-process__closing-primary:focus-visible {
  color: var(--bdp-deep-sage);
  background: #fff;
}

.bella-process__closing-secondary {
  color: var(--bdp-charcoal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bdp-silver);
  padding-bottom: 4px;
}


/* --------------------------------------------------------------------------
 * Desktop side-away process transition
 * --------------------------------------------------------------------------
 * Performance strategy:
 * - no scroll event listener
 * - no requestAnimationFrame loop
 * - no 3D transforms / perspective / page curl
 * - IntersectionObserver only changes stage state at a small viewport trigger
 * - the browser animates one compositor-friendly translateX transition
 * - every stage remains server-rendered HTML in normal document flow
 */

@media (min-width: 1100px) {
  .bella-process {
    overflow-x: clip;
  }

  .bella-process__scroll,
  .bella-process__sticky,
  .bella-process__book-shell,
  .bella-process__book,
  .bella-process__pages {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .bella-process__book-shell {
    padding-top: clamp(30px, 3vw, 46px);
    padding-bottom: clamp(58px, 6vw, 92px);
  }

  .bella-process__book { outline: none; }

  .bella-process__pages {
    display: block;
    margin: 0;
    padding: 0;
  }

  /* The current stage stays in view while the next one approaches underneath.
     At the trigger point, only the outgoing panel moves: it slides to the left,
     exposing the next process stage. This deliberately does NOT use the upward
     stacking transition used elsewhere on the homepage. */
  .bella-process__page {
    position: sticky;
    top: 84px;
    width: 100%;
    margin: 0 0 clamp(110px, 18vh, 190px);
    opacity: 1;
    pointer-events: auto;
  }

  /* Earlier stages sit above later stages until they slide away. */
  .bella-process__page:nth-child(1) { z-index: 28; }
  .bella-process__page:nth-child(2) { z-index: 27; }
  .bella-process__page:nth-child(3) { z-index: 26; }
  .bella-process__page:nth-child(4) { z-index: 25; }
  .bella-process__page:nth-child(5) { z-index: 24; }
  .bella-process__page:nth-child(6) { z-index: 23; }
  .bella-process__page:nth-child(7) { z-index: 22; }
  .bella-process__page:nth-child(8) { z-index: 21; }
  .bella-process__page:nth-child(n+9) { z-index: 20; }

  .bella-process__spread {
    grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
    min-height: 0;
    overflow: hidden;
    background: var(--bdp-white);
    border: 1px solid var(--bdp-silver);
    border-radius: 3px 18px 18px 3px;
    box-shadow: 0 16px 42px rgba(17,19,18,.045);
    transform: translate3d(0,0,0);
    opacity: 1;
    transition:
      transform .58s cubic-bezier(.22,.78,.18,1),
      opacity .38s ease;
    backface-visibility: hidden;
    contain: paint;
  }

  /* Future stages remain completely readable beneath the active sheet. */
  .bella-process__page.is-upcoming .bella-process__spread,
  .bella-process__page.is-current .bella-process__spread {
    transform: translate3d(0,0,0);
    opacity: 1;
  }

  /* This is the entire animation: one horizontal compositor transform. */
  .bella-process__page.is-passed .bella-process__spread {
    transform: translate3d(-104%,0,0);
    opacity: .12;
    pointer-events: none;
  }

  /* Let the content column determine the panel height. The image is taken out
     of normal flow so a tall source image can never make one process card
     unnecessarily taller than the others. */
  .bella-process__media {
    position: relative;
    min-height: 0;
    height: auto;
    overflow: hidden;
    background: #e9ecea;
  }

  .bella-process__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }

  /* Keep images completely static while the panel itself moves. */
  .bella-process__media img,
  .bella-process__page.is-current .bella-process__media img,
  .bella-process__page:focus-within .bella-process__media img {
    filter: none;
    transform: none;
    transition: none;
  }

  .bella-process__media-shade {
    background: linear-gradient(180deg, transparent 68%, rgba(17,19,18,.22) 100%);
  }

  .bella-process__copy {
    justify-content: flex-start;
    padding: clamp(25px, 2.4vw, 38px) clamp(28px, 3vw, 46px);
    background: var(--bdp-white);
  }

  .bella-process__stage-line { margin-bottom: 11px; }
  .bella-process__question { margin-bottom: 5px; font-size: 12.5px; }
  .bella-process__copy h3 { font-size: 26px; line-height: 1.12; }
  .bella-process__text { max-width: none; margin-top: 10px; font-size: 13.15px; line-height: 1.5; }

  .bella-process__decision-grid {
    gap: 12px;
    margin-top: 13px;
    padding-top: 12px;
  }

  .bella-process__decision h4 { margin-bottom: 7px; font-size: 9.5px; }
  .bella-process__decision ul { gap: 5px 6px; }
  .bella-process__decision li { padding: 5px 8px; font-size: 10.2px; }

  .bella-process__technical {
    margin-top: 11px;
    padding: 10px 12px 9px;
    background: #fafbfa;
  }

  .bella-process__technical h4 { margin-bottom: 7px; font-size: 9.2px; }
  .bella-process__technical ul { gap: 5px 12px; }
  .bella-process__technical li { padding-left: 11px; font-size: 10.05px; line-height: 1.34; }

  .bella-process__outcome { margin-top: 10px; padding: 9px 11px; }
  .bella-process__outcome span { margin-bottom: 3px; font-size: 8.7px; }
  .bella-process__outcome p { font-size: 10.4px; line-height: 1.34; }
  .bella-process__related { margin-top: 9px; font-size: 11.4px; }

  .bella-process__stack-sheet,
  .bella-process__spine { display: none !important; }

  .bella-process__controls {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
    gap: 22px;
    align-items: center;
    padding-top: 4px;
  }

  .bella-process__counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 68px;
  }

  .bella-process__counter strong { color: var(--bdp-charcoal); font-size: 16px; font-weight: 700; }
  .bella-process__counter span { color: var(--bdp-graphite); font-size: 12px; font-weight: 500; }

  .bella-process__progress {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: var(--bdp-silver);
  }

  .bella-process__progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background: var(--bdp-deep-sage);
    transform: scaleX(var(--process-progress, .125));
    transform-origin: left center;
    transition: transform .22s ease-out;
  }

  .bella-process__buttons { display: flex; align-items: center; gap: 18px; }
  .bella-process__buttons button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: var(--bdp-charcoal);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .bella-process__buttons button[disabled] { color: #a7acab; cursor: default; }
  .bella-process__buttons svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .bella-process__scroll-hint { margin: 0; color: var(--bdp-graphite); font-size: 11px; font-weight: 500; letter-spacing: .07em; white-space: nowrap; }
}

/* Short desktop screens: keep everything ultra-light and fully visible by
   disabling sticky stacking rather than forcing an oversized panel into view. */
@media (min-width: 1100px) and (max-height: 760px) {
  .bella-process__page {
    position: relative;
    top: auto;
    margin-bottom: 28px;
  }
}

@media (max-width: 1260px) {
  .bella-process__index b { font-size: 11px; }
}

@media (min-width: 1100px) and (max-width: 1260px) {
  .bella-process__spread { grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr); }
  .bella-process__copy { padding: 26px 32px; }
  .bella-process__decision-grid { grid-template-columns: 1fr; gap: 11px; }
}

@media (max-width: 1099px) {
  .bella-process__head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bella-process__helper { max-width: 620px; }

  .bella-process__index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bella-process__index a:nth-child(4n) { border-right: 0; }
  .bella-process__index a:nth-child(n+5) { border-top: 1px solid var(--bdp-silver); }

  .bella-process__spread {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 2px 18px 18px 2px;
    box-shadow: none;
  }

  .bella-process__media,
  .bella-process__media img {
    min-height: 0;
    height: clamp(360px, 56vw, 560px);
  }

  .bella-process__media img {
    filter: none;
    transform: none;
    transition: none;
  }

  .bella-process__copy::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .bella-process__controls { display: none; }

  .bella-process__closing {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .bella-process__head {
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .bella-process__eyebrow,
  .bella-process__closing-eyebrow { font-size: 24px; }

  .bella-process h2 { font-size: 30px; }
  .bella-process__intro { font-size: 16px; line-height: 1.66; }

  .bella-process__index {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .bella-process__index::-webkit-scrollbar { display: none; }

  .bella-process__index a {
    flex: 0 0 138px;
    border-top: 0 !important;
    scroll-snap-align: start;
  }

  .bella-process__book-shell { padding-top: 28px; padding-bottom: 48px; }
  .bella-process__pages { gap: 20px; }

  .bella-process__media,
  .bella-process__media img { height: 310px; }

  .bella-process__media figcaption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 9px;
  }

  .bella-process__copy { padding: 28px 22px 30px; }
  .bella-process__stage-line { margin-bottom: 14px; }
  .bella-process__copy h3 { font-size: 24px; }
  .bella-process__text { font-size: 15px; }

  .bella-process__decision-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bella-process__technical ul { grid-template-columns: 1fr; }

  .bella-process__closing { padding-top: 62px; padding-bottom: 80px; }
  .bella-process__closing h3 { font-size: 24px; }
  .bella-process__closing-copy p { font-size: 16px; }
  .bella-process__closing-actions { align-items: stretch; flex-direction: column; }
  .bella-process__closing-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bella-process *,
  .bella-process *::before,
  .bella-process *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .bella-process__page {
    position: relative !important;
    top: auto !important;
  }
}
