/* ============================================
   Branding Page — Pixel-perfect overrides
   Shared patterns live in style.css
   ============================================ */

.page-branding .hero-description p:last-child {
  margin-bottom: 0;
}

.services-deliver-label {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.4vw, 1.5vw);
  font-weight: 500;
  color: var(--color-dark);
  margin: 6% 0 3%;
  letter-spacing: -0.32px;
}

.capabilities-intro {
  margin-bottom: 0;
  max-width: 747px;
}

.page-branding .capabilities-section .section-header-row {
  margin-bottom: clamp(48px, 6vw, 6%);
}

.page-branding .capability-card {
  min-height: 320px;
}

.page-branding .cap-icon-box img {
  /* width: 64px;
  height: auto;
  max-width: 64px; */
}

.page-branding .cap-title {
  /* width: min(100%, 470px);
  margin-top: 28px; */
}

/* Service / industry card decorative images — correct crop size */
.page-branding .service-card-img {
  /* width: 170px;
  max-width: 38%;
  height: auto;
  top: 16px;
  right: 18px;
  object-fit: contain; */
}

.case-study-cta {
  margin-top: 6%;
}

.case-study-cta .btn-cta {
  display: inline-flex;
}

.case-study-cta a.btn-cta.btn-cta-primary {
  min-width: auto;
}

/* ============================================
   Formats + Process (Figma 825:851)
   ============================================ */
.formats-process-section {
  background: var(--color-bg-light);
  padding: 3% 0 0;
  margin-bottom: 5%;
}

.formats-panel {
  position: relative;
  /* background: #0c0c0c; */
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: clamp(48px, 6.5vw, 115px) 0 clamp(56px, 7vw, 100px);
  margin-bottom: clamp(64px, 8vw, 5%);
  background-image: url(../webassets/images/branding-clr-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.formats-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.formats-panel::before {
  /* content: '';
  position: absolute;
  top: 8%;
  left: 35%;
  width: 70%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(17, 164, 208, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0; */
}

.formats-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 clamp(20px, 5.5vw, 106px);
  margin-bottom: clamp(48px, 6vw, 90px);
}

.formats-header-copy {
  max-width: 55%;
  flex: 1;
}

.formats-header .section-title {
  margin-bottom: 32px;
}

.formats-title-accent {
  /* color: #7ec8bc !important; */
}

.formats-panel .section-title-white .title-sans {
  color: var(--color-white);
}

.formats-intro {
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.8);
  max-width: 836px;
  margin: 0;
}

/* Nav arrows — active / disabled */
.formats-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 8px;
}

.formats-nav-btn {
  width: 57px;
  height: 57px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.formats-nav-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.formats-nav-img {
  width: 57px;
  height: 57px;
  display: block;
}

.formats-nav-img--active {
  display: none;
}

.formats-nav-img--disabled {
  display: block;
}

.formats-nav-btn:not(.is-disabled) .formats-nav-img--active {
  display: block;
}

.formats-nav-btn:not(.is-disabled) .formats-nav-img--disabled {
  display: none;
}

.formats-nav-btn.is-disabled {
  cursor: default;
  pointer-events: none;
}

/* Full-bleed stroke — left edge to right edge of panel */
.formats-timeline {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 6px;
  margin: 0;
  display: block;
}

.formats-timeline-stroke-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

/* Swiper + edge fade — dots sit on the stroke */
.formats-swiper-wrap {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  padding: 0 0 0 clamp(20px, 5.5vw, 106px);
}

.formats-swiper {
  overflow: hidden;
  padding-top: 0;
}

.formats-swiper .swiper-slide {
  height: auto;
}

.formats-slide {
  position: relative;
  text-align: center;
  padding: 0 8px 8px;
  max-width: 525px;
  margin: 0 auto;
}

.formats-slide-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.formats-slide-dot {
  position: relative;
  z-index: 3;
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.formats-slide-line {
  width: 1px;
  height: 100px;
  object-fit: fill;
  object-position: top center;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
}

.formats-item-title {
  font-size: 2.2vw;
  line-height: 1.15;
  color: #ffffff !important;
  margin: 0 0 24px;
}

.formats-item-title .title-serif,
.formats-item-title .title-sans-medium {
  color: #ffffff !important;
  display: inline;
}

.formats-item-text {
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
  max-width: 440px;
}

/* Right fade overlay like Figma (node 825:870) */
.formats-edge-fade {
  position: absolute;
  top: unset;
  right: 0;
  bottom: 0;
  width: clamp(120px, 10.5vw, 183px);
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 0.45) 35%, #0c0c0c 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.formats-edge-fade.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.process-cards-block {
  padding: 0 clamp(0px, 0vw, 0px);
}

.process-cards-block .section-header-row {
  margin-bottom: clamp(48px, 6vw, 5%);
}

/* ============================================
   Awards / Outcomes — sticky stack (vt-cards)
   ============================================ */
.awards-section {
  background: var(--color-bg-light);
  position: relative;
  overflow: visible;
  padding: 0;
}

.awards-sticky {
  position: sticky;
  top: -40%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(20px, 3vh, 40px) 0;
  box-sizing: border-box;
}

.awards-sticky-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.awards-header {
  max-width: 1075px;
  margin: 0 auto clamp(20px, 3vh, 40px);
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 3%;
}

.awards-header .section-title {
  width: 65%;
  margin: auto;
  margin-bottom: 3%;
}

section#awards .section-title-stack .title-serif,
section#awards .section-title-stack .title-sans {
  display: inline;
}

.awards-subtitle {
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0 0 2%;
}

.awards-lead {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin: 0;
}

.awards-cards {
  position: relative;
  width: 90%;
  height: clamp(360px, 90vh, 630px);
  flex: none;
}

.awards-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 -10px 27px rgba(15, 88, 109, 0.04), 0 18px 40px rgba(0, 0, 0, 0.06);
  padding: clamp(24px, 3.5vw, 56px);
  overflow: hidden;
  opacity: 1;
  transform: translateY(100vh) rotate(var(--rot, 0deg));
  transform-origin: center;
  z-index: calc(var(--i, 0) + 1);
  will-change: transform;
  box-sizing: border-box;
}

.awards-card-row {
  height: 100%;
  margin: 0;
}

.awards-card-row>[class*='col-'] {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
}

.awards-index {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 2.4px;
  color: #b0b7c3;
  margin-bottom: 10px;
}

.awards-card-title {
  font-size: clamp(26px, 2.6vw, 2.5vw);
  line-height: 121%;
  margin: 0 0 4%;
  color: var(--color-dark);
}

.awards-card-title .title-serif,
.awards-card-title .title-sans-medium {
  display: inline;
}

.awards-card-text {
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
  max-width: 550px;
}

.awards-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #061018;
  aspect-ratio: 16 / 10;
  width: 100%;
}

.awards-visual-video,
.awards-visual-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Industry carousel — light bg (override index #industry dark bg) */
.industry-carousel-section,
#industry-solutions {
  background: var(--color-bg-light) !important;
  background-image: none !important;
}

.industry-carousel-section .section-header-row {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.page-branding .services-section .section-header-row {
  margin-bottom: 0;
}

.page-branding #services .services-carousel-wrapper,
.page-branding #industry-solutions .services-carousel-wrapper {
  margin-top: 2%;
}

.hero-title-sans {
  margin-left: 32%;
}


.capabilities-section {
  padding-top: 3%;
}

section#case-studies {
  padding-top: 2%;
}

#faq {
  background-size: 30% auto;
  background-position: right bottom;
  background-repeat: no-repeat;
}


section#contact h2.section-title.section-title-white.cta-title.section-title-stack {
  margin-bottom: 18%;
}

button#formatsNext img.formats-nav-img.formats-nav-img--disabled,
button#formatsPrev img.formats-nav-img.formats-nav-img--active {
  transform: rotate(180deg);
}

#faq h2.section-title span.title-serif span.title-sans {
  display: inline;
  font-style: normal;
}

/* ============================================
   Responsive
   ============================================ */

@media (min-width:1024px) {
  .service-card {
    justify-content: flex-start;
    padding: 40% 32px 32px;
  }

  .cap-title {
    width: 76%;
  }

  .case-studies-intro {
    /* max-width: 1226px; */
    width: 67%;
  }

  section#contact .col-lg-5 {
    width: 43.666667%;
  }

  .awards-sticky {
    height: auto;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    min-height: 140vh;
  }

  .hero-content {
    padding-bottom: 125px;
  }

  .service-card {
    min-height: 490px;
  }
}

@media (min-width: 1550px) {
  .hero-section {
    min-height: 138vh !important;
  }

  .hero-content {
    padding-bottom: 140px;
  }

  .service-card {
    min-height: 630px;
  }

  .page-branding .capability-card {
    min-height: 400px;
  }

  .awards-header .section-title {
    width: 80%;
    margin-bottom: 4%;
  }
}

@media (min-width: 1650px) {
  .hero-section {
    min-height: 120vh !important;
  }

  .page-branding .capability-card {
    min-height: 440px;
  }
}

@media (max-width: 1199.98px) {
  .page-branding .service-card-img {
    /* width: 140px; */
  }

  .formats-item-title {
    font-size: 32px;
  }
}

@media (max-width: 991.98px) {
  .services-deliver-label {
    font-size: 18px;
    margin: 28px 0 20px;
  }

  .formats-panel {
    padding: 44px 0 48px;
    margin-bottom: 56px;
  }

  .formats-header {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 24px;
  }

  .formats-nav {
    align-self: flex-end;
    margin-top: 0;
  }

  .formats-swiper-wrap {
    padding-left: 24px;
    margin-top: -13px;
  }

  .formats-slide {
    text-align: center;
    padding: 0 4px 8px;
  }

  .formats-slide-line {
    height: 80px;
  }

  .formats-item-text {
    max-width: none;
  }

  .formats-edge-fade {
    width: 72px;
  }

  .page-branding .capability-card {
    min-height: 0;
  }

  .page-branding .cap-icon-box img {
    /* width: 56px; */
  }

  .awards-header {
    margin-bottom: 20px;
  }

  .awards-header .section-title {
    width: 90%;
  }

  .awards-cards {
    height: clamp(420px, 58vh, 620px);
  }

  .awards-card {
    padding: 22px 20px;
  }

  .awards-visual {
    margin-top: 0;
    aspect-ratio: 16 / 11;
  }

  .case-study-cta {
    margin-top: 32px;
  }
}

@media (max-width: 767.98px) {

  .formats-process-section {
    padding-top: 40px;
    padding-bottom: 48px;
    margin-bottom: 0;
  }

  .awards-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 800px;
    /* same trick as Mudumalai */
    justify-content: flex-start;
    padding: 20px 0 16px;
    overflow: hidden;
  }

  .awards-sticky-inner {
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .awards-header {
    margin-bottom: 16px;
    flex-shrink: 0;
    padding: 0 15px;
  }

  section#contact h2.section-title.section-title-white.cta-title.section-title-stack {
    margin-bottom: 6%;
  }

  .awards-cards {
    position: relative;
    width: 100%;
    height: 550px;
    /* Mudumalai uses 550–600px */
    flex: none;
    max-height: none;
  }

  .awards-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .awards-header .section-title {
    width: 100%;
    margin-bottom: 10px;
    font-size: clamp(26px, 7vw, 32px);
  }

  /* .awards-cards {
    width: 100%;
    flex: 1 1 auto;
    min-height: 340px;
    height: calc(100dvh - 210px);
    max-height: 520px;
  }

  .awards-card {
    padding: 16px 14px;
    border-radius: 6px;
  } */

  .awards-card-row {
    align-content: flex-start;
  }

  .awards-card-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .awards-card-text {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .awards-index {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .awards-visual {
    aspect-ratio: 16 / 10;
  }

  .awards-subtitle {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .awards-lead {
    font-size: 16px;
  }

  .formats-panel {
    display: flex;
    flex-direction: column;
    padding: 32px 0 36px;
    margin-bottom: 40px;
  }

  /* Flatten header so nav can be ordered below the swiper */
  .formats-header {
    display: contents;
  }

  .formats-header-copy {
    order: 1;
    padding: 0 18px;
    margin-bottom: 28px;
    /* text-align: center; */
    max-width: 100%;
  }

  .formats-timeline {
    order: 2;
  }

  .formats-swiper-wrap {
    order: 3;
    padding-left: 18px;
    padding-right: 0;
  }

  .formats-nav {
    order: 4;
    align-self: center;
    justify-content: center;
    margin: clamp(28px, 8vw, 48px) auto 0;
    gap: 12px;
  }

  .formats-intro {
    font-size: 16px;
  }

  .formats-item-title {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .formats-item-text {
    font-size: 15px;
  }

  .formats-nav-btn,
  .formats-nav-img {
    width: 48px;
    height: 48px;
  }

  .formats-slide-line {
    height: 64px;
  }

  .formats-edge-fade {
    width: 56px;
  }

  .page-branding .service-card {
    min-height: 440px;
    padding-top: 125px;
  }

  .page-branding .service-card-img {
    /* width: 120px;
    top: 12px;
    right: 12px; */
  }

  .page-branding .cap-icon-box img {
    /* width: 48px;
    max-width: 30%; */
  }

  .page-branding .cap-title {
    /* width: 100%;
    margin-top: 20px; */
  }

  .hero-title-sans {
    margin-left: 0;
  }

  .formats-process-section .container-custom {
    width: 100%;
  }

  .formats-process-section .container-custom div#process {
    width: 90%;
    margin: auto;
  }

  .awards-section {
    height: auto !important;
  }

  .awards-sticky {
    position: unset;
    height: auto;
    overflow: visible;
  }

  .awards-card {
    position: unset;
    transform: none !important;
  }

  .awards-cards {
    height: auto;
    min-height: auto;
    max-height: max-content;
  }
}

@media (min-width: 1400px) {
  .formats-panel {
    padding-bottom: 120px;
  }

  .formats-header {
    margin-bottom: 140px;
  }
}

@media (max-width:1439px) and (min-width: 768px) {
  .awards-subtitle {
    font-size: clamp(18px, 1.35vw, 20px);
  }

  .formats-item-text {
    font-size: 16px;
    line-height: 141%;
  }

  .formats-edge-fade {
    height: 55%;
  }
}

@media (max-height: 720px) and (max-width: 767.98px) {
  .awards-sticky {
    padding: 8px 0 12px;
  }

  .awards-header {
    margin-bottom: 0;
  }

  .awards-subtitle {
    /* display: none; */
  }

  .awards-cards {
    /* height: calc(100dvh - 160px);
    min-height: 300px;
    max-height: 420px; */
  }

  .formats-header-copy {
    max-width: 100%;
  }
}

/* Entrance motion */
.formats-slide {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.formats-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.formats-swiper .swiper-slide:nth-child(2) .formats-slide {
  transition-delay: 0.1s;
}

.formats-swiper .swiper-slide:nth-child(3) .formats-slide {
  transition-delay: 0.2s;
}

@media (min-width:768px) and (max-width: 1024px) {
  .btn-cta {
    font-size: 18px;
  }

  .hero-title-sans {
    margin-left: 30%;
  }

  .service-card {
    padding: 120px 28px 28px;
  }

  .awards-section {
    height: auto !important;
  }

  .awards-sticky {
    position: unset;
    height: auto;
  }

  .awards-cards {
    height: auto;
  }

  .awards-card {
    padding: 22px 20px;
    transform: none !important;
    position: unset;
  }

  .cta-description {
    font-size: 20px;
  }

  section#contact h2.section-title.section-title-white.cta-title.section-title-stack {
    margin-bottom: 6%;
  }

  .footer-inner {
    font-size: 16px;
  }
}

@media (max-width: 1200px) and (min-width: 1024px) {
  .hero-section {
    min-height: 75vh;
  }

  .service-card {
    padding: 160px 28px 28px;
  }
}

@media (min-width: 767px) {
  .awards-visual {
    background: unset;
    transform: scale(1.5);
    position: relative;
    left: -10%;
    top: -7%;
  }

  section#case-studies .case-study-cta a.btn-cta.btn-cta-primary:hover {
    border: 2.65px solid #000;
  }

  section#case-studies .case-study-cta a.btn-cta.btn-cta-primary:hover img {
    border: 1px solid #000;
  }
}