/*
 * Bella Interior Design — Homepage Featured Abu Dhabi Projects
 * Scroll-driven horizontal project storytelling on desktop, native swipe on smaller screens.
 */

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

.bella-projects__scroll {
  position: relative;
}

.bella-projects__sticky {
  position: relative;
  overflow: hidden;
  background: var(--bfp-white);
}

.bella-projects__head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, .62fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: end;
  padding-top: clamp(86px, 8vw, 126px);
  padding-bottom: clamp(34px, 3.6vw, 54px);
}

.bella-projects__head-main {
  max-width: 1020px;
}

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

.bella-projects h2 {
  max-width: 1040px;
  margin: 0;
  color: var(--bfp-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-projects__intro {
  max-width: 930px;
  margin: 19px 0 0;
  color: var(--bfp-graphite);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

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

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

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

.bella-projects__viewport {
  position: relative;
  overflow: hidden;
  outline: none;
}

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

.bella-projects__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  padding-left: max(36px, calc((100vw - var(--max, 1480px)) / 2));
  padding-right: clamp(64px, 7vw, 112px);
  will-change: transform;
}

.bella-project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(370px, .77fr);
  width: min(1380px, calc(100vw - 112px));
  min-height: clamp(500px, 53vh, 650px);
  margin-right: clamp(34px, 4vw, 66px);
  background: var(--bfp-white);
  border-top: 1px solid var(--bfp-silver);
  border-bottom: 1px solid var(--bfp-silver);
  box-shadow: 0 24px 70px rgba(17, 19, 18, .035);
  scroll-snap-align: start;
}

.bella-project__media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #e7e9e8;
}

.bella-project__media::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: var(--bfp-white);
  transform-origin: right center;
  transform: scaleX(0);
  pointer-events: none;
}

.bella-project__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(500px, 53vh, 650px);
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(.99) brightness(.99);
  transform: scale(1.025);
  transition: transform 1.05s cubic-bezier(.2,.72,.2,1), filter .55s ease;
}

.bella-project.is-active .bella-project__media img,
.bella-project:focus-within .bella-project__media img {
  filter: saturate(.98) contrast(1) brightness(1);
  transform: scale(1);
}

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

.bella-project__media-label {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.94);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
}

.bella-project__story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 3.5vw, 54px) clamp(32px, 3.9vw, 60px);
  background:
    linear-gradient(150deg, var(--bfp-white) 0%, var(--bfp-white) 76%, rgba(244,245,245,.82) 100%);
}

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

.bella-project__project-no {
  margin: 0 0 10px;
  color: var(--bfp-charcoal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.bella-project__meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--bfp-graphite);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.bella-project__meta-line i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bfp-sage);
}

.bella-project h3 {
  margin: 0;
  color: var(--bfp-charcoal);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.034em;
  text-wrap: balance;
}

.bella-project__customer-context {
  margin: 13px 0 21px;
  color: #434846;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.62;
}

.bella-project__story-block {
  padding-top: 15px;
  border-top: 1px solid rgba(217,221,219,.78);
}

.bella-project__story-block + .bella-project__story-block {
  margin-top: 14px;
}

.bella-project__story-block h4 {
  margin: 0 0 7px;
  color: var(--bfp-deep-sage);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bella-project__story-block p {
  margin: 0;
  color: var(--bfp-graphite);
  font-size: 14px;
  line-height: 1.62;
}

.bella-project__facts {
  margin: 19px 0 0;
  border-top: 1px solid var(--bfp-silver);
}

.bella-project__facts > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bfp-silver);
}

.bella-project__facts dt,
.bella-project__facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.bella-project__facts dt {
  color: var(--bfp-charcoal);
  font-weight: 700;
}

.bella-project__facts dd {
  color: var(--bfp-graphite);
  font-weight: 400;
}

.bella-project__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 365px);
  min-height: 58px;
  margin-top: 21px;
  padding: 16px 20px 16px 22px;
  border: 1px solid var(--bfp-sage);
  background: var(--bfp-deep-sage);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.bella-project__cta svg,
.bella-projects__view-all svg {
  width: 28px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.bella-project__cta:hover,
.bella-project__cta:focus-visible {
  background: var(--bfp-black);
  border-color: var(--bfp-black);
  transform: translateY(-2px);
}

.bella-project__cta:hover svg,
.bella-project__cta:focus-visible svg,
.bella-projects__view-all:hover svg,
.bella-projects__view-all:focus-visible svg {
  transform: translateX(5px);
}

.bella-projects__endcap {
  position: relative;
  display: flex;
  align-items: center;
  width: min(760px, 62vw);
  min-height: clamp(500px, 53vh, 650px);
  margin-right: max(36px, calc((100vw - var(--max, 1480px)) / 2));
  overflow: hidden;
  background: var(--bfp-black);
  color: #fff;
  border: 1px solid var(--bfp-black);
  scroll-snap-align: start;
}

.bella-projects__endcap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(113,128,120,.08), transparent 50%),
    radial-gradient(circle at 88% 10%, rgba(113,128,120,.22), transparent 38%);
  pointer-events: none;
}

.bella-projects__endcap-ring {
  position: absolute;
  border: 1px solid rgba(217,221,219,.16);
  border-radius: 50%;
  pointer-events: none;
}

.bella-projects__endcap-ring--one {
  width: 470px;
  height: 470px;
  right: -250px;
  top: -120px;
}

.bella-projects__endcap-ring--two {
  width: 270px;
  height: 270px;
  right: -74px;
  bottom: -145px;
}

.bella-projects__endcap-content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: clamp(44px, 5vw, 76px);
}

.bella-projects__endcap-eyebrow {
  margin-bottom: 13px;
  color: #aeb8b3;
  font-family: "Parisienne", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.bella-projects__endcap h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.25vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.bella-projects__endcap p {
  max-width: 510px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 17px;
  line-height: 1.72;
}

.bella-projects__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 270px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.42);
  background: var(--bfp-sage);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.bella-projects__view-all:hover,
.bella-projects__view-all:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bfp-black);
  transform: translateY(-2px);
}

.bella-projects__endcap-note {
  max-width: 440px !important;
  margin-top: 18px !important;
  color: rgba(255,255,255,.48) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.bella-projects__nav {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  min-height: 84px;
  position: relative;
}

.bella-projects__counter {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 84px;
  font-size: 14px;
}

.bella-projects__counter strong {
  color: var(--bfp-charcoal);
  font-size: 18px;
  font-weight: 700;
}

.bella-projects__counter span {
  color: var(--bfp-graphite);
  font-weight: 500;
}

.bella-projects__progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: var(--bfp-silver);
}

.bella-projects__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--bfp-deep-sage);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.bella-projects__controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bella-projects__controls button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--bfp-charcoal);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}

.bella-projects__controls button:hover,
.bella-projects__controls button:focus-visible {
  color: var(--bfp-deep-sage);
}

.bella-projects__controls button:disabled {
  opacity: .35;
  cursor: default;
}

.bella-projects__controls svg {
  width: 22px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bella-projects__scroll-hint {
  position: absolute;
  right: 0;
  bottom: -18px;
  color: #89908d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* Entrance and active-project motion. */
.bella-projects.is-enhanced [data-project-head-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.72,.2,1);
}

.bella-projects.is-enhanced.is-visible [data-project-head-reveal] {
  opacity: 1;
  transform: none;
}

.bella-projects.is-enhanced.is-visible [data-project-head-reveal]:nth-child(2) { transition-delay: .08s; }
.bella-projects.is-enhanced.is-visible [data-project-head-reveal]:nth-child(3) { transition-delay: .16s; }

.bella-projects.is-enhanced .bella-project__story > * {
  opacity: .48;
  transform: translateY(8px);
  transition: opacity .46s ease, transform .46s cubic-bezier(.2,.72,.2,1);
}

.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > * {
  opacity: 1;
  transform: none;
}

.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(2) { transition-delay: .03s; }
.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(3) { transition-delay: .06s; }
.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(4) { transition-delay: .09s; }
.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(5) { transition-delay: .12s; }
.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(6) { transition-delay: .15s; }
.bella-projects.is-enhanced .bella-project.is-active .bella-project__story > *:nth-child(7) { transition-delay: .18s; }

@media (min-width: 1181px) and (min-height: 760px) {
  .bella-projects__head {
    padding-top: clamp(88px, 8vw, 124px);
    padding-bottom: clamp(38px, 4vw, 58px);
  }

  .bella-projects__sticky {
    position: sticky;
    top: var(--header-height, 92px);
    height: calc(100svh - var(--header-height, 92px));
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }

  .bella-projects__viewport {
    min-height: 0;
  }

  .bella-project__story {
    justify-content: flex-start;
    padding: clamp(22px, 2.7vh, 34px) clamp(30px, 3.5vw, 52px);
    min-height: 0;
  }

  .bella-project__project-no {
    margin-bottom: 6px;
  }

  .bella-project__meta-line {
    margin-bottom: 11px;
  }

  .bella-project h3 {
    font-size: clamp(26px, 2.15vw, 30px);
    line-height: 1.11;
  }

  .bella-project__customer-context {
    margin: 9px 0 13px;
    font-size: 14px;
    line-height: 1.52;
  }

  .bella-project__story-block {
    padding-top: 10px;
  }

  .bella-project__story-block + .bella-project__story-block {
    margin-top: 9px;
  }

  .bella-project__story-block h4 {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .bella-project__story-block p {
    font-size: 13px;
    line-height: 1.5;
  }

  .bella-project__facts {
    margin-top: 12px;
  }

  .bella-project__facts > div {
    padding: 5px 0;
  }

  .bella-project__facts dt,
  .bella-project__facts dd {
    font-size: 12px;
    line-height: 1.35;
  }

  .bella-project__cta {
    min-height: 50px;
    margin-top: 13px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .bella-projects__track {
    height: 100%;
    align-items: stretch;
  }

  .bella-project,
  .bella-projects__endcap {
    min-height: 100%;
  }

  .bella-project__media img {
    min-height: 100%;
  }

  .bella-projects__nav {
    min-height: 72px;
  }
}

@media (max-width: 1180px) {
  .bella-projects__head {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, .7fr);
    gap: 42px;
  }

  .bella-project {
    grid-template-columns: minmax(0, 1.38fr) minmax(340px, .82fr);
    width: calc(100vw - 72px);
  }

  .bella-project__story {
    padding-inline: 34px;
  }
}

@media (max-width: 1180px), (max-height: 759px) {
  .bella-projects {
    padding-bottom: 92px;
  }

  .bella-projects__scroll,
  .bella-projects__sticky {
    height: auto !important;
  }

  .bella-projects__sticky {
    overflow: visible;
  }

  .bella-projects__head {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 86px;
    padding-bottom: 38px;
  }

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

  .bella-projects__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bfp-sage) var(--bfp-mist);
  }

  .bella-projects__viewport::-webkit-scrollbar { height: 5px; }
  .bella-projects__viewport::-webkit-scrollbar-track { background: var(--bfp-mist); }
  .bella-projects__viewport::-webkit-scrollbar-thumb { background: var(--bfp-sage); }

  .bella-projects__track {
    transform: none !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .bella-project {
    grid-template-columns: 1.28fr .92fr;
    width: min(940px, calc(100vw - 54px));
    min-height: 590px;
    margin-right: 22px;
  }

  .bella-project__media img {
    min-height: 590px;
  }

  .bella-projects__endcap {
    width: min(640px, calc(100vw - 54px));
    min-height: 590px;
    margin-right: 20px;
  }

  .bella-projects__nav {
    margin-top: 16px;
  }

  .bella-projects__scroll-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .bella-projects {
    padding-bottom: 76px;
  }

  .bella-projects__head {
    padding-top: 70px;
    padding-bottom: 32px;
  }

  .bella-projects__eyebrow {
    font-size: 24px;
  }

  .bella-projects h2 {
    font-size: 30px;
    line-height: 1.18;
  }

  .bella-projects__intro {
    font-size: 16px;
    line-height: 1.68;
  }

  .bella-projects__helper p {
    font-size: 14px;
  }

  .bella-projects__track {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bella-project {
    display: block;
    width: calc(100vw - 34px);
    min-height: 0;
    margin-right: 14px;
    box-shadow: none;
  }

  .bella-project__media {
    aspect-ratio: 4 / 3;
  }

  .bella-project__media img {
    min-height: 0;
    height: 100%;
  }

  .bella-project__story {
    padding: 28px 24px 30px;
  }

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

  .bella-project h3 {
    font-size: 24px;
  }

  .bella-project__customer-context {
    font-size: 15px;
  }

  .bella-project__story-block p {
    font-size: 14px;
  }

  .bella-project__facts > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .bella-project__cta {
    width: 100%;
  }

  .bella-projects__endcap {
    width: calc(100vw - 34px);
    min-height: 560px;
    margin-right: 14px;
  }

  .bella-projects__endcap-content {
    padding: 36px 28px;
  }

  .bella-projects__endcap-eyebrow {
    font-size: 26px;
  }

  .bella-projects__endcap h3 {
    font-size: 36px;
  }

  .bella-projects__endcap p {
    font-size: 16px;
  }

  .bella-projects__view-all {
    width: 100%;
    min-width: 0;
  }

  .bella-projects__nav {
    grid-template-columns: auto minmax(100px, 1fr);
    gap: 20px;
    min-height: 74px;
  }

  .bella-projects__controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bella-projects *,
  .bella-projects *::before,
  .bella-projects *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .bella-projects__scroll,
  .bella-projects__sticky {
    height: auto !important;
  }

  .bella-projects__sticky {
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
  }

  .bella-projects__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .bella-projects__track {
    transform: none !important;
  }
}
