html,
body {
  overflow-x: visible;
}

.page {
  overflow-x: clip;
}

/* ============================================================
    HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 155vh;
  overflow: hidden;
  background: #0a0a0a;
}

/* Video background */
.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(160deg, #0d0d0d 0%, #111827 40%, #0a0a14 100%);
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__first-screen {
  min-height: calc(100vh - var(--spacing-nav-h));
  display: flex;
  align-items: flex-start;
  padding: clamp(60px, 9vw, 130px) clamp(24px, 10vw, 150px) clamp(40px, 5vw, 80px);
}

.hero__title {
  padding-top: clamp(32px, 5vw, 72px);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0px;
  max-width: var(--hero-title-mw);
}

.hero__second-screen {
  min-height: calc(100vh - var(--spacing-nav-h));
  display: flex;
  align-items: flex-start;
  padding: clamp(40px, 5vw, 80px) clamp(24px, 10vw, 150px) clamp(40px, 5vw, 80px);
}

.hero__body {
  font-size: clamp(22px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  max-width: var(--hero-body-mw);
  padding-left: clamp(0px, 5vw, 100px);
}


.cap-intro__title {
  font-size: var(--fs-section-title);
  line-height: 1;
  letter-spacing: clamp(-3px, -0.2vw, -1px);
  max-width: 12ch;
}

.capabilities-intro .split-footer {
  margin-top: 0;
  align-items: flex-end;
}

.capabilities-intro .split-body {
  max-width: min(28vw, 420px);
}

@media (max-width: 768px) {
  .cap-intro__title {
    font-size: 44px;
    letter-spacing: -1px;
    max-width: 100%;
  }

  .capabilities-intro .split-footer {
    align-items: flex-start;
  }
}

/* ============================================================
       CASE STUDY CAROUSEL
    ============================================================ */
.case-study {
  background: var(--color-bg);
  padding: 190px 0 120px;
  overflow: hidden;
  position: relative;
}

/* Carousel viewport */
.case-study__carousel {
  overflow: hidden;
  position: relative;
}

.cs-carousel-controls {
  position: absolute;
  bottom: 40px; 
  right: 130px; 
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

/* Auto-scrolling track */
.case-study__track {
  display: flex;
  align-items: flex-end;
  gap: 80px;
  padding: 80px 130px 20px;
  width: max-content;
  will-change: transform;
}

/* Individual card wrapper */
.cs-item {
  flex: 0 0 1022px;
  position: relative;
}

.cs-item__title {
  position: absolute;
  top: -72px;
  left: 32px;
  z-index: 2;

  font-size: var(--cs-heading-sm);
  font-weight: 600;
  line-height: 1.2;
  max-width: 902px;
  margin: 0;
}

.cs-item__card {
  display: block;
  height: 482px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.cs-item__img-wrap {
  position: absolute;
  inset: 0;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.55s ease;
}

.cs-item__card:hover .cs-item__img-wrap {
  transform: scale(1.06);
  filter: brightness(0.80) saturate(1.1);
}

.cs-item__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cs-item__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(0, 0, 0, 0.08) 55%,
      transparent 100%);
  transition: background 0.5s ease;
  z-index: 1;
}

.cs-item__card:hover .cs-item__card-overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.80) 50%,
      rgba(255, 255, 255, 0.03) 100%);
}

.cs-item__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 44px;
  z-index: 2;
}

/* Tag */
.cs-item__card-tag {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cs-item__card:hover .cs-item__card-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Description */
.cs-item__card-desc {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.70);
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.45s ease,
    opacity 0.45s ease,
    transform 0.45s ease;
}

.cs-item__card:hover .cs-item__card-desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

/* "View case study" link */
.cs-item__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.07s ease,
    transform 0.4s 0.07s ease,
    gap 0.2s ease;
  text-decoration: none;
}

.cs-item__card:hover .cs-item__card-link {
  opacity: 1;
  transform: translateY(0);
}

.cs-item__card-link:hover {
  gap: 10px;
}

/* ============================================================
       TRUSTED BY 
    ============================================================ */
.trusted {
  background: var(--color-bg);
  padding: 120px 60px 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 75px;
}

.trusted__heading {
  padding: 60px;
  font-size: 70px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.trusted__logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 40px;
  width: 100%;
  max-width: 1300px;
}

.trusted__logo-cell {
  width: 100%;
  min-width: 0;
  height: clamp(60px, 8vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trusted__logo-cell img {
  width: 100%;
  max-width: clamp(100px, 15vw, 160px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.7s ease;
}

/* ============================================================
       CAPABILITIES INTRO
    ============================================================ */
.capabilities-intro {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 12vw, 140px) clamp(24px, 15vw, 180px) clamp(100px, 20vw, 220px);
  background: var(--color-bg);
}


/* ============================================================
       CAPABILITY CARDS
    ============================================================ */
.capabilities {
  background: var(--color-bg);
  padding: 80px 0px 120px;
  display: flex;
  justify-content: center;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
}

/* CAP CARDS  */
.cap-card {
  position: relative;
  overflow: hidden;
  height: var(--card-height-fluid);
  cursor: pointer;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Image wrapper */
.cap-card__bg-wrap {
  position: absolute;
  inset: 0;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.55s ease;
}

.cap-card:hover .cap-card__bg-wrap {
  transform: scale(1.06);
  filter: brightness(0.45) saturate(1.2);
}

.cap-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay */
.cap-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.10) 60%,
      transparent 100%);
  transition: background 0.5s ease;
  z-index: 1;
}

.cap-card:hover .cap-card__overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.82) 50%,
      rgba(255, 255, 255, 0.04) 100%);
}

/* Bottom content area */
.cap-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px;
  z-index: 2;
}

.cap-card__title {
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-white);
}

/* Description */
.cap-card__desc {
  font-size: var(--fs-label);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.45s ease,
    opacity 0.45s ease,
    transform 0.45s ease;
}

.cap-card:hover .cap-card__desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

/* "Learn more" link */
.cap-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.07s ease,
    transform 0.4s 0.07s ease,
    gap 0.2s ease;
  text-decoration: none;
}

.cap-card:hover .cap-card__link {
  opacity: 1;
  transform: translateY(0);
}

.cap-card__link:hover {
  gap: 10px;
}

/* ============================================================
    TECH PARTNERS
============================================================ */
.tech-partners {
  background: var(--color-bg);
  padding: 140px 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;

}

.tech-partners__heading {
  padding: 50px;
  font-size: 70px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.tech-partners__marquee-wrap {
  width: 100%;
  overflow: hidden;
}

@keyframes tech-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tech-partners__marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tech-marquee 30s linear infinite;
  gap: clamp(20px, 5vw, 80px);
}

.tech-logo-cell {
  width: clamp(120px, 20vw, 300px);
  height: clamp(100px, 15vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-logo-cell:last-child {
  border-right: none;
}

.tech-logo-cell img {
  width: clamp(80px, 10vw, 200px); 
  height: auto;
  object-fit: contain; 
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tech-logo-cell:hover img {
  opacity: 1;
}

/* ============================================================
  OUR CULTURE
============================================================ */

.career__header {
    padding: 80px 160px 40px;
    height: auto;
    min-height: unset;
  }

.career__label {
  font-size: var(--fluid-label);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.career__title {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  max-width: 932px;
}

.culture-stage {
  position: relative;
  height: 400vh;
  background: var(--color-bg);
  margin-bottom: 150px;
}

.culture-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--color-bg);
  overflow: hidden;
}

.culture-img-pane {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  overflow: hidden;
  will-change: width;
}

.culture-img-pane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  display: block;
}

.culture-text-pane {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  opacity: 0;
  transform: translateY(44px);
  will-change: opacity, transform;
  pointer-events: none;
}

.culture-text-pane.is-visible {
  pointer-events: auto;
}

.culture-text-pane__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.culture-sticky__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.culture-sticky__text p {
  font-size: clamp(20px, 1.5vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-white);
}

.culture-sticky__text .muted {
  color: var(--color-muted);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .career__header {
    padding: 80px 60px 40px;
    height: auto;
    min-height: unset;
  }

  .culture-text-pane {
    padding: 0 48px;
  }

  .culture-sticky__title {
    font-size: clamp(36px, 4vw, 60px);
  }
}


@media (max-width: 1024px) {
  .case-study {
    padding: 100px 0 80px;
  }

  .case-study__nav {
    padding: 0 30px 24px;
  }

  .case-study__drag-track {
    padding: 60px 30px 20px;
  }

  .cs-item {
    flex: 0 0 680px;
  }

  .cs-item__card {
    height: 380px;
  }

  .cs-item__title {
    font-size: 48px;
  }

 .trusted {
    padding: 80px 60px 100px;
  }

  .trusted__heading {
    font-size: 48px;
  }

  .trusted__logos {
    grid-template-columns: repeat(5, 1fr);
    gap: 36px 24px;
  }

  .capabilities-intro {
    padding: clamp(60px, 10vw, 120px) clamp(24px, 12vw, 100px) clamp(80px, 15vw, 180px);
  }

  /* Capability Cards - Tablet (2 columns, no scroll) */
  .capabilities {
    padding: 60px 30px 80px;
  }

  .capabilities__grid {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cap-card__content {
    padding: 32px;
  }

  .cap-card__title {
    font-size: clamp(24px, 3.5vw, 36px);
  }

  .capabilities__grid {
    justify-content: center;
  }
  
  .capabilities__grid .cap-card:last-child {
    grid-column: span 1;
    justify-self: center;
    width: 100%;
  }


  .tech-partners {
    padding: 80px 0;
  }

  .tech-partners__heading {
    font-size: 48px;
  }

  .case-study__header {
    padding: 0 60px 60px;
  }

  .case-study__track {
    padding: 60px 60px 20px;
    gap: 32px;
  }

  .cs-item {
    flex: 0 0 680px;
  }

  .cs-item__card {
    height: 380px;
  }

  .cs-item__title {
    font-size: 48px;
  }

  .section-header {
    padding: 120px 60px 20px;
  }

  .section-header__title {
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 155vh;
  }
  
  .hero__first-screen {
    min-height: calc(100vh - var(--spacing-nav-h));
    padding: 40px 24px 32px;
    align-items: flex-start;
  }

  .hero__title {
    padding-top: 100px;
    line-height: 1.1;
  }

  .hero__second-screen {
    min-height: calc(100vh - var(--spacing-nav-h));
    padding: 32px 24px 48px;
  }

  .hero__body {
    padding-left: 0;
    line-height: 1.3;
  }


  /* Case Study carousel */
  .case-study {
    padding: 80px 0 60px;
  }

  .case-study__header {
    padding: 0 24px 24px;
  }

  .case-study__header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .case-study__header-title {
    text-align: center; 
    font-size: 40px;
    letter-spacing: -1px;
  }

  .cs-carousel-controls {
    position: static;
    order: 2;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    margin: 20px auto 0;
    padding-bottom: 8px;
  }

  .case-study__track {
    order: 1;
    gap: 16px;
    padding: 40px 24px 20px;
  }

  .case-study__carousel {
    display: flex;
    flex-direction: column;
  } 

  .case-study__nav {
    padding: 0 24px 20px;
    justify-content: flex-end;
  }

  .cs-nav-btn {
    width: 44px;
    height: 44px;
  }

  .case-study__drag-track {
    padding: 40px 24px 20px;
    gap: 24px;
  }

  .cs-item {
    flex: 0 0 365px;
  }

  .cs-item__card {
    height: 250px;
  }

  .cs-item__title {
    font-size: 20px;
    top: -24px;
    left: 16px;
    max-width: 320px;
  }

  .cs-item__card-content {
    padding: 20px;
  }

  .cs-item__card-tag {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    opacity: 1;
    transform: translateY(0);
  }

  .cs-item__card-name {
    font-size: 15px;
    line-height: 1.3;
  }

  .cs-item__card-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 5px;
    max-height: 64px;
    opacity: 1;
    transform: translateY(0);
  }

  .cs-item__card-link {
    font-size: 12px;
    margin-top: 8px;
    opacity: 1;
    transform: translateY(0);
  }

  /* Strengthen overlay so text stays legible */
  .cs-item__card-overlay {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        transparent 100%);
  }

  .trusted {
    padding: 60px 24px 80px;
  }

  .trusted__heading {
    padding: 0px;
    font-size: 36px;
  }

  .trusted__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
    max-width: 100%;
  }

  .trusted__logo-cell {
    height: clamp(50px, 6vw, 60px);
    min-width: 0;
  }

  .trusted__logo-cell img {
    width: 100%;
    max-width: clamp(80px, 12vw, 120px);
    height: auto;
    max-height: 100%;
  }

   .capabilities-intro {
    display: block;
    min-height: unset;
    padding: clamp(50px, 8vw, 70px) 24px clamp(40px, 10vw, 80px);
    justify-content: flex-start;
  }


  /* Capability Cards - Mobile (1 column, no scroll) */
  .capabilities {
    padding: 40px 24px 60px;
  }

  .capabilities__grid {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cap-card__content {
    padding: 28px;
  }

  .cap-card__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .cap-card__desc {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
  }

  .cap-card__link {
    opacity: 1;
    transform: translateY(0);
  }

  .cap-card__desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .cap-card__link {
    font-size: 14px;
  }

  .tech-partners {
    padding: 60px 0;
  }

  .tech-partners__heading {
    padding: 24px 0 24px;
    font-size: 36px;
  }

  .tech-logo-cell {
    width: clamp(120px, 20vw, 300px);
    height: clamp(100px, 15vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tech-logo-cell img {
    width: clamp(80px, 10vw, 200px); 
    height: auto; 
    object-fit: contain;
  }

  .career__header {
    padding: 48px 24px 32px;
    height: auto;
  }

  .career__title {
    font-size: clamp(32px, 10vw, 120px);
    letter-spacing: -1px;
  }

  .culture-stage {
    height: auto;
  }

  .culture-sticky {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 24px 60px;
  }

  .culture-img-pane {
    position: relative;
    width: 100% !important;
    height: 260px;
  }

  .culture-img-pane img {
    position: absolute;
  }

  .culture-text-pane {
    position: relative;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    padding: 0;
    pointer-events: auto;
  }

  .culture-sticky__title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .culture-sticky__text p {
    font-size: 18px;
  }
}

