/* Case Study List — Figma Case-Study-List-Page (89:4) */
.cs-list-page {
  --cs-orange: #e5410f;
  --cs-orange-hot: #fa5d2e;
  --cs-ink: #040605;
  --cs-muted: #bababa;
  --cs-cream: #fff1ed;
  background: linear-gradient(270deg, #fff 0%, var(--cs-cream) 100%);
  color: var(--cs-ink);
  font-family: "Poppins", system-ui, sans-serif;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.cs-list-page .brand-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.cs-hero {
  position: relative;
  /* min-height: min(100vh, 980px); */
  padding: clamp(7rem, 12vw, 10rem) 1.25rem 2rem;
  text-align: center;
  overflow: hidden;

  @media(max-width:430px){
    padding-top: 9.5rem!important;
  }
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.68;
}

.cs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero__nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.cs-hero__nav-logo,
.cs-hero__nav-menu,
.cs-hero__nav-search {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.cs-hero__nav-logo img {
  width: 26px;
  height: 48px;
  object-fit: contain;
}

.cs-hero__nav-menu img,
.cs-hero__nav-search img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cs-hero__title {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 14ch;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #000;
}

.cs-hero__title strong {
  font-weight: 500;
}

.cs-hero__fan {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: clamp(120px, 28vw, 220px);
  margin: clamp(1.25rem, 4vw, 2.5rem) auto 0;
  max-width: min(980px, 100%);
  perspective: 900px;
  /* animation: cs-fan-drift 5s ease-in-out infinite; */
}

.cs-hero__fan-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(72px, 16.5vw, 219px);
  height: clamp(72px, 16.5vw, 219px);
  margin-left: calc(clamp(72px, 16.5vw, 219px) / -2);
  border-radius: clamp(8px, 1vw, 12px);
  overflow: hidden;
  box-shadow: -12px 6px 28px rgba(0, 0, 0, 0.18);
  background: transparent;
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    top 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s ease;
  will-change: transform;
}

.cs-hero__fan-card.is-wrapping {
  transition: none;
}

.cs-hero__fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-hero__fan-card.is-fan-exiting img {
  opacity: 0;
  transform: scale(0.94) translateY(8px);
}

.cs-hero__fan-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -45%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.32) 49%,
    rgba(255, 255, 255, 0.12) 53%,
    transparent 64%
  );
  transform: translate3d(-115%, 0, 0) rotate(8deg);
}

.cs-hero__fan-card.is-fan-active::after,
.cs-hero__fan-card:hover::after {
  animation: cs-fan-light-sweep 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-hero__fan-card.is-fan-active img {
  animation: cs-fan-focus 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cs-fan-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes cs-fan-focus {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cs-fan-light-sweep {
  0% {
    opacity: 0;
    transform: translate3d(-115%, 0, 0) rotate(8deg);
  }
  18% {
    opacity: 0.75;
  }
  72% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translate3d(115%, 0, 0) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero__fan,
  .cs-hero__fan-card.is-fan-active img,
  .cs-hero__fan-card.is-fan-active::after,
  .cs-hero__fan-card:hover::after {
    animation: none;
  }
}

.cs-hero__fan-card:nth-child(1) { z-index: 1; transform: translate(-210%, 18px) rotate(-10deg); }
.cs-hero__fan-card:nth-child(2) { z-index: 2; transform: translate(-140%, 8px) rotate(-7deg); top: clamp(-0.5rem, -1.2vw, -1.5rem); }
.cs-hero__fan-card:nth-child(3) { z-index: 3; transform: translate(-70%, 4px) rotate(-4.5deg); }
.cs-hero__fan-card:nth-child(4) { z-index: 4; transform: translate(0, 0) rotate(1.4deg); }
.cs-hero__fan-card:nth-child(5) { z-index: 5; transform: translate(70%, 6px) rotate(10deg); }
.cs-hero__fan-card:nth-child(6) { z-index: 6; transform: translate(140%, 10px) rotate(9.5deg); }
.cs-hero__fan-card:nth-child(7) { z-index: 7; transform: translate(210%, 16px) rotate(15deg); }
.cs-hero__lead {
  position: relative;
  z-index: 2;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  max-width: 34rem;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  line-height: 1.85;
  color: var(--cs-ink);

  @media(max-width:430px){
    margin: 0;
  }
}

.cs-hero__explore {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  text-decoration: none;
  color: var(--cs-ink);

  @media(max-width:430px){
    margin-top: 1rem;
  }
}

.cs-hero__explore-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cs-orange);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(229, 65, 15, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;


  @media(max-width:430px){
    width: 40px;
    height: 40px;
  }
}

.cs-hero__explore-btn.is-bobbing {
  animation: cs-explore-bob 1.3s ease-in-out infinite;
}

@keyframes cs-explore-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero__explore-btn.is-bobbing {
    animation: none;
  }
}

.cs-hero__explore-btn img {
  width: 32px;
  height: 32px;


  @media(max-width:430px){
    width: 18px;
    height: 18px;
  }
}

.cs-hero__explore:hover .cs-hero__explore-btn {
  animation: none;
  transform: translateY(4px);
  background: var(--cs-orange-hot);
}

.cs-hero__explore span {
  font-size: 0.67rem;
  line-height: 1.3;
}

.cs-challenge {
  position: relative;
  margin: 1.25rem clamp(0.75rem, 2vw, 1.25rem) 0;
  border-radius: 40px;
  overflow: hidden;
  min-height: clamp(320px, 40vw, 546px);
  background: #000;
  color: #fff;
  text-align: center;
}

.cs-challenge__bg {
  position: absolute;
  inset: 0;
  opacity: 0.69;
}

.cs-challenge__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-challenge__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: inherit;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.cs-challenge__title {
  margin: 0;

  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 3.125rem);
  line-height: 1.35;
}

.cs-challenge__success {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.15em;
  padding: 0.15em 0.7em 0.2em;
  border-radius: 999px;
  background: linear-gradient(105deg, var(--cs-orange) 6%, var(--cs-orange-hot) 115%);
  font-weight: 500;
  font-size: 0.78em;
  line-height: 1.4;
  vertical-align: middle;
}

.cs-challenge__success-icon {
  position: absolute;
  top: -37px;
  right: -27px;
}

.cs-challenge__copy {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.cs-challenge__people {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.cs-challenge__people img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  margin-left: -20px;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.cs-challenge__people img:nth-child(1) { z-index: 6; }
.cs-challenge__people img:nth-child(2) { z-index: 5; }
.cs-challenge__people img:nth-child(3) { z-index: 4; }
.cs-challenge__people img:nth-child(4) { z-index: 3; }
.cs-challenge__people img:nth-child(5) { z-index: 2; }

.cs-challenge__people img:first-child {
  margin-left: 0;
}

.cs-challenge__count {
  width: 56px;
  height: 56px;
  margin-left: -20px;
  border-radius: 50%;
  background: rgba(32, 32, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 2px;
  font-weight: 500;
  font-size: 1.01rem;
  letter-spacing: -0.02em;
  color: #b3b3b3;
  position: relative;
  z-index: 0;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.04),
    0 0 18px 4px rgba(255, 255, 255, 0.12);
}

.cs-challenge__count small {
  font-size: 0.77em;
  letter-spacing: -0.02em;
}

.cs-challenge__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--cs-muted);
}

.cs-browse {
  /* padding: clamp(3rem, 7vw, 4rem) 1.25rem 0rem; */
  text-align: center;
}

.cs-browse__title {
  margin: 3rem 0 3rem;
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  line-height: 1.2;
  color: var(--cs-ink);

  @media(max-width:430px){
    margin: 1rem 0 1rem;
  }
}

.cs-cards {
  display: flex;
  flex-direction: column;
  gap: 0;

  margin: 0 auto;
  padding: 0 0;
}

.cs-cards.is-stack-active {
  position: relative;
}

.cs-card {
  position: relative;
  display: block;
  min-height: clamp(420px, 55vw, 887px);
  margin: 0 clamp(0.5rem, 1.5vw, 1.25rem);
  border-radius: 50px 50px 0 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  isolation: isolate;
}

.cs-cards.has-project-cursor .cs-card {
  cursor: none;
}

.cs-card.is-project-hovered .cs-card__bg img {
  will-change: transform;
}

.cs-project-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fd4811;
  box-shadow: 0 16px 38px rgba(135, 30, 0, 0.3);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transform: scale(0.72) rotate(-8deg);
  will-change: transform, opacity;
}

.cs-project-cursor::before {
  display: none;
}

.cs-project-cursor__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-project-cursor__arrow {
  display: none;
}

.cs-project-cursor__trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147482999;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #e5410f;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.cs-cards .cs-card {
  --cs-stack-offset: 0px;
}

.cs-cards .cs-card:nth-child(2) {
  --cs-stack-offset: 12px;
}

.cs-cards .cs-card:nth-child(3) {
  --cs-stack-offset: 24px;
}

.cs-cards .cs-card:nth-child(4) {
  --cs-stack-offset: 36px;
}

.cs-cards .cs-card:nth-child(5) {
  --cs-stack-offset: 48px;
}

.cs-cards.is-stack-active .cs-card {
  --cs-stack-base: 14px;
  position: sticky;
  top: calc(var(--cs-stack-base) + var(--cs-stack-offset));
  height: clamp(
    460px,
    calc(100svh - 28px - var(--cs-stack-offset)),
    887px
  );
  min-height: 0;
  contain: paint;
}

.cs-cards.is-stack-active .cs-card:hover {
  transform: none;
}

.cs-card + .cs-card {
  margin-top: -2.9rem;
}

.cs-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cs-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.cs-card__depth {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.cs-card__tags {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  max-width: min(100% - 2rem, 520px);
}

.cs-card__tag {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.samedha-bg{
  position: absolute;
  right: -20rem;
  bottom: -9rem;
}

.cs-card__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  max-width: min(200px, 5vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
.cs-card_gni-logo{
  max-width: min(250px, 9vw);

  @media(max-width:430px){
    max-width: min(250px, 23vw);
  }
}


.cs-card__copy {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4.5rem);
  right: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(1.75rem, 4vw, 6rem);
  z-index: 3;
  text-align: left;

  @media(max-width:786px){
    bottom: clamp(1.75rem, 28vw, 7rem);
  }
}

.cs-card__name {
  margin: 0 0 1rem;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.cs-card__desc {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.cs-card__mobile-view {
  display: none;
}

.cs-card:hover {
  transform: translateY(-4px);
  transition: transform 0.35s ease;
}

.cs-card--samedha .cs-card__bg,
.cs-card--lforlife .cs-card__bg,
.cs-card--gni .cs-card__bg,
.cs-card--clikpay .cs-card__bg {
  background: transparent;
}

.cs-card--redteam .cs-card__bg {
  background: transparent;
}

.cs-card--redteam .cs-card__logo {
  max-width: 120px;
  max-height: 120px;
}

@media (max-width: 991px) {
  .cs-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .cs-hero__fan {
    height: clamp(110px, 32vw, 160px);
    margin-top: 1.5rem;
  }

  .cs-hero__fan-card {
    width: clamp(64px, 18vw, 110px);
    height: clamp(64px, 18vw, 110px);
    margin-left: calc(clamp(64px, 18vw, 110px) / -2);
    box-shadow: -8px 4px 18px rgba(0, 0, 0, 0.16);
  }

  .cs-hero__fan-card:nth-child(1) { transform: translate(-195%, 12px) rotate(-9deg); }
  .cs-hero__fan-card:nth-child(2) { transform: translate(-130%, 6px) rotate(-6deg); top: -0.65rem; }
  .cs-hero__fan-card:nth-child(3) { transform: translate(-65%, 3px) rotate(-3.5deg); }
  .cs-hero__fan-card:nth-child(4) { transform: translate(0, 0) rotate(1deg); }
  .cs-hero__fan-card:nth-child(5) { transform: translate(65%, 4px) rotate(7deg); }
  .cs-hero__fan-card:nth-child(6) { transform: translate(130%, 8px) rotate(9deg); }
  .cs-hero__fan-card:nth-child(7) { transform: translate(195%, 12px) rotate(12deg); }

  .cs-card {
    min-height: 460px;
    border-radius: 28px 28px 0 0;
  }

  .cs-cards.is-stack-active .cs-card {
    --cs-stack-base: 10px;
    height: max(
      460px,
      calc(100svh - 20px - var(--cs-stack-offset))
    );
    min-height: 0;
  }

  .cs-card__tags {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: flex-start;
  }

  .cs-card__logo {
    top: 38%;
    max-height: 100px;
  }

  .cs-card__mobile-view {
    position: absolute;
    right: auto;
    left: 1rem;
    bottom: 3.5rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 42px;
    padding: 5px 6px 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(229, 65, 15, 0.96);
    box-shadow: 0 10px 24px rgba(48, 12, 0, 0.24);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: none;
  }

  .cs-card__mobile-view > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #e5410f;
    font-size: 0.95rem;
    line-height: 1;
  }
}

@media (max-width: 576px) {
  .cs-hero__fan {
    height: 108px;
    overflow: visible;
  }

  .cs-hero__fan-card {
    width: 80px;
    height: 80px;
    margin-left: -29px;
    border-radius: 8px;
  }

  .cs-hero__fan-card:nth-child(1) { transform: translate(-175%, 10px) rotate(-8deg); }
  .cs-hero__fan-card:nth-child(2) { transform: translate(-115%, 5px) rotate(-5deg); top: -0.4rem; }
  .cs-hero__fan-card:nth-child(3) { transform: translate(-55%, 2px) rotate(-2.5deg); }
  .cs-hero__fan-card:nth-child(4) { transform: translate(0, 0) rotate(1deg); }
  .cs-hero__fan-card:nth-child(5) { transform: translate(55%, 3px) rotate(6deg); }
  .cs-hero__fan-card:nth-child(6) { transform: translate(115%, 6px) rotate(8deg); }
  .cs-hero__fan-card:nth-child(7) { transform: translate(175%, 10px) rotate(11deg); }

  .cs-challenge {
    border-radius: 24px;
  }

  .cs-card__tag {
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
  }

  .cs-card__desc {
    font-size: 0.85rem;
  }

  .cs-cards.is-stack-active .cs-card {
    --cs-stack-base: 8px;
    height: max(
      460px,
      calc(80svh - 16px - var(--cs-stack-offset))
    );
  }
}

@media (hover: none), (pointer: coarse) {
  .cs-project-cursor,
  .cs-project-cursor__trail {
    display: none;
  }

  .cs-cards.has-project-cursor .cs-card {
    cursor: pointer;
  }
}
