.sfs-showcase {
  position: relative;
  padding: 84px 0;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.76;
  background: #f5f7f9
}

.sfs-showcase,
.sfs-showcase *,
.sfs-showcase *::before,
.sfs-showcase *::after {
  box-sizing: border-box
}

.sfs-showcase-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, .72fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 31px
}

.sfs-showcase-heading h2 {
  margin: 7px 0 0
}

.sfs-showcase-heading p {
  margin: 0;
  max-width: 540px
}

.sfs-showcase-layout {
  align-items: stretch
}

.sfs-showcase-layout>[class*="col-"] {
  min-width: 0
}

.sfs-showcase-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.sfs-showcase-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(7, 32, 54, .06)
}

.sfs-showcase-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 300px;
  flex-shrink: 0;
  background: #142b3c
}

.sfs-showcase-main-image {
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit: cover; */
}

.sfs-showcase-visual::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(3, 23, 42, .34));
  pointer-events: none
}

.sfs-showcase-project-tag {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 17px;
  background: rgba(255, 255, 255, .94);
  color: #17466b;
  padding: 7px 11px;
  border-radius: 3px;
  letter-spacing: .09em;
  font-size: 9.5px;
  font-weight: 650;
}

.sfs-showcase-mini-gallery {
  display: flex;
  gap: 9px;
  position: relative;
  z-index: 5;
  margin: -35px 0 0 20px;
  min-height: 65px;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0
}

.sfs-showcase-mini {
  position: relative;
  display: none;
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  padding: 0;
  border: 3px solid white;
  background: #e4ebf0;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(5, 29, 52, .14);
  transition: box-shadow .25s ease, border-color .25s ease
}

.sfs-showcase-mini.is-ready {
  display: block
}

.sfs-showcase-mini.is-current {
  border-color: #3687bd;
  box-shadow: 0 0 0 1px #3687bd, 0 4px 15px rgba(5, 29, 52, .16)
}

.sfs-showcase-mini:hover,
.sfs-showcase-mini:focus-visible {
  border-color: #72b3dc;
  outline: none
}

.sfs-showcase-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.sfs-showcase-project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 23px 15px;
  /* min-height: 108px; */
}

.sfs-showcase-project-copy h3 {
  margin: 0 0 8px;
  color: #092b49;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.sfs-showcase-project-copy p {
  margin: 0;
  color: #657b8c;
  line-height: 1.55;
  font-size: 13.5px;
  font-weight: 550;
}

/* The reveal is a 4 x 3 mosaic of the next photograph. */
.sfs-showcase-tile-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  pointer-events: none;
  visibility: hidden
}

.sfs-showcase-tile-layer.is-playing {
  visibility: visible
}

.sfs-showcase-tile {
  background-repeat: no-repeat;
  background-size: 400% 300%;
  opacity: 0;
  transform: scale(.74) translateY(9px);
  transition: opacity .34s ease, transform .52s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0ms)
}

.sfs-showcase-tile-layer.is-playing .sfs-showcase-tile {
  opacity: 1;
  transform: scale(1) translateY(0)
}

/* One shared desktop grid row: the project gallery sets both column heights. */
@media (min-width: 992px) {
  .sfs-showcase .sfs-showcase-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 18px;
    margin: 0;
    align-items: stretch;
  }

  .sfs-showcase .sfs-showcase-layout>.col-lg-9,
  .sfs-showcase .sfs-showcase-layout>.col-lg-3 {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    flex: none;
  }

  .sfs-showcase .sfs-showcase-layout>.col-lg-3 {
    position: relative;
    min-height: 0;
  }

  .sfs-showcase .sfs-showcase-brands {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 0;
  }
}

/* Two independent logo lanes. Each duplicated lane loops without gaps. */
.sfs-showcase-brands {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  box-shadow: 0 9px 30px rgba(7, 32, 54, .045);
}

.sfs-showcase-brands::before,
.sfs-showcase-brands::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
}

.sfs-showcase-brands::before {
  top: 0;
  background: linear-gradient(#fff, transparent);
}

.sfs-showcase-brands::after {
  bottom: 0;
  background: linear-gradient(transparent, #fff);
}

.sfs-showcase-window {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  height: 100%;
  overflow: hidden;
  padding: 0 9px;
}

.sfs-showcase-lane {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.sfs-showcase-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
}

.sfs-showcase-lane:first-child .sfs-showcase-track {
  animation: sfsLogoUp 24s linear infinite;
}

.sfs-showcase-lane:last-child .sfs-showcase-track {
  animation: sfsLogoDown 24s linear infinite;
}

.sfs-showcase-set {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 9px;
  padding: 4.5px 0;
}

.sfs-showcase-logo {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 95px;
  background: #fbfcfd;
  border: 1px solid #edf0f3;
  border-radius: 5px;
}

.sfs-showcase-logo img {
  display: block;
  width: 50px;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.sfs-showcase-brands:hover .sfs-showcase-track {
  animation-play-state: paused;
}

@keyframes sfsLogoUp {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes sfsLogoDown {
  from {
    transform: translateY(-50%);
  }

  to {
    transform: translateY(0);
  }
}

@media(max-width:991px) {
  .sfs-showcase-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sfs-showcase .sfs-showcase-layout {
    row-gap: 20px;
  }

  .sfs-showcase .sfs-showcase-layout>[class*="col-"] {
    min-width: 0;
  }

  .sfs-showcase-brands,
  .sfs-showcase-window {
    height: 320px;
  }
}

@media(max-width:575px) {

  .sfs-showcase-brands,
  .sfs-showcase-window {
    height: 260px;
  }

  .sfs-showcase-logo {
    height: 82px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .sfs-showcase-track {
    animation: none !important;
    transform: none !important;
  }

  .sfs-showcase-lane {
    overflow-y: auto;
  }

  .sfs-showcase-set[aria-hidden="true"] {
    display: none;
  }
}

@media(max-width:575px) {
  .sfs-showcase-projects {
    grid-template-columns: 1fr
  }

  .sfs-showcase-visual {
    height: 235px
  }

  .sfs-showcase-mini-gallery {
    margin-left: 15px
  }

  .sfs-showcase-project-copy {
    padding: 14px 17px 22px
  }
}

@media(max-width:390px) {
  .sfs-showcase-mini {
    width: 84px;
    height: 84px;
    flex-basis: 84px
  }

  .sfs-showcase-mini-gallery {
    min-height: 84px;
    margin-top: -34px
  }
}

/* Card-wide link sits under functioning gallery thumbnail controls. */
.sfs-showcase-project {
  position: relative;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s
}

.sfs-showcase-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(7, 32, 54, .13)
}

.sfs-showcase-project .sfs-project-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 8px
}

.sfs-showcase-project .sfs-project-card-link:focus-visible {
  outline: 3px solid #0871d3;
  outline-offset: -3px
}

.sfs-showcase-project .sfs-showcase-mini-gallery {
  z-index: 5
}

.sfs-showcase .sfs-heading {
  color: #062954;
  margin: 7px 0 0;
  font-size: clamp(30px, 3.15vw, 46px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.038em;
  overflow-wrap: break-word;
}

.sfs-showcase-kicker {
  display: inline-flex;
  margin-bottom: 13px;
  color: #0871d3;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.sfs-showcase .sfs-text {
  color: #63748a;
}

.sfs-showcase-all {
  color: #0871d3;
  font-weight: 650;
}

.sfs-showcase :is(.sfs-showcase-heading > *, .sfs-fluid, .sfs-showcase-projects > *) {
  min-width: 0;
}

.sfs-showcase button {
  font: inherit;
}

@media (max-width: 991px) {
  .sfs-showcase {
    padding: 68px 0;
  }

  .sfs-showcase .sfs-showcase-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .sfs-showcase .sfs-showcase-heading p {
    max-width: 720px;
  }

  .sfs-showcase .sfs-showcase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin: 0;
  }

  .sfs-showcase .sfs-showcase-layout>.col-lg-9,
  .sfs-showcase .sfs-showcase-layout>.col-lg-3 {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
    padding: 0;
    margin: 0;
  }

  .sfs-showcase .sfs-showcase-brands {
    position: relative;
    inset: auto;
    width: 100%;
    height: 270px;
    min-height: 0;
    margin: 0;
  }

  .sfs-showcase .sfs-showcase-window {
    height: 100%;
  }

  .sfs-showcase .sfs-showcase-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sfs-showcase .sfs-showcase-visual {
    height: clamp(205px, 29vw, 285px);
  }

  .sfs-showcase .sfs-showcase-mini-gallery {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: -27px 15px 0;
    gap: 8px;
  }

  .sfs-showcase .sfs-showcase-project-copy {
    padding: 17px 19px 21px;
  }
}

@media (max-width: 650px) {
  .sfs-showcase {
    padding: 50px 0 56px;
  }

  .sfs-showcase .sfs-showcase-heading {
    gap: 12px;
    margin-bottom: 25px;
  }

  .sfs-showcase .sfs-showcase-heading .sfs-heading {
    margin-bottom: 0;
  }

  .sfs-showcase .sfs-showcase-layout {
    gap: 17px;
  }

  .sfs-showcase .sfs-showcase-projects {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .sfs-showcase .sfs-showcase-project {
    width: 100%;
    border-radius: 9px;
  }

  .sfs-showcase .sfs-showcase-visual {
    height: clamp(220px, 61vw, 285px);
  }

  .sfs-showcase .sfs-showcase-project-tag {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .sfs-showcase .sfs-showcase-mini-gallery {
    margin: -26px 14px 0;
    min-height: 58px;
    gap: 8px;
  }

  .sfs-showcase .sfs-showcase-mini,
  .sfs-showcase .sfs-showcase-mini.is-ready {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .sfs-showcase .sfs-showcase-project-copy {
    padding: 17px 18px 22px;
  }

  .sfs-showcase .sfs-showcase-project-copy h3 {
    margin-bottom: 7px;
  }

  .sfs-showcase .sfs-showcase-brands {
    height: 245px;
  }

  .sfs-showcase .sfs-showcase-logo {
    height: 80px;
  }
}

@media (max-width: 375px) {
  .sfs-showcase .sfs-showcase-visual {
    height: 214px;
  }

  .sfs-showcase .sfs-showcase-mini,
  .sfs-showcase .sfs-showcase-mini.is-ready {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
  }

  .sfs-showcase .sfs-showcase-mini-gallery {
    min-height: 55px;
  }

  .sfs-showcase .sfs-showcase-project-copy {
    padding: 15px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .sfs-showcase .sfs-showcase-project,
  .sfs-showcase .sfs-showcase-main-image,
  .sfs-showcase .sfs-showcase-mini {
    transition: none;
  }
}

.sfs-showcase .sfs-project-slider-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  touch-action: pan-y
}

.sfs-showcase .sfs-project-slider-viewport .sfs-project-slider-track {
  display: flex;
  gap: 0;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1)
}

.sfs-showcase .sfs-project-slider-viewport .sfs-project-slider-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0
}

.sfs-showcase .sfs-project-slider-viewport .sfs-showcase-projects {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
  align-items: stretch
}

.sfs-showcase .sfs-project-slider-pagination:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px 0 0;
  min-height: 18px
}

.sfs-showcase .sfs-project-slider-pagination button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
  width: 9px;
  height: 9px;
  background: #b6c8d8;
  cursor: pointer;
  transition: background .2s, width .25s
}

.sfs-showcase .sfs-project-slider-pagination button[aria-current="true"] {
  width: 28px;
  background: #0871d3
}

.sfs-showcase .sfs-project-slider-pagination button:focus-visible {
  outline: 2px solid #0871d3;
  outline-offset: 4px
}

@media(max-width:650px) {
  .sfs-showcase .sfs-project-slider-viewport .sfs-showcase-projects {
    grid-template-columns: 1fr !important
  }
}

/* Mobile uses its own one-card pages; desktop keeps the original four-card pages. */
.sfs-showcase .sfs-project-slider-track--mobile {
  display: none !important
}

@media (max-width:650px) {
  .sfs-showcase .sfs-project-slider-viewport:has(.sfs-project-slider-track--mobile) .sfs-project-slider-track--desktop {
    display: none !important
  }

  .sfs-showcase .sfs-project-slider-track--mobile {
    display: flex !important
  }

  .sfs-showcase .sfs-project-slider-viewport .sfs-project-slider-track--mobile .sfs-showcase-projects {
    grid-template-columns: minmax(0, 1fr) !important
  }

  .sfs-showcase .sfs-project-slider-track--mobile .sfs-showcase-mini-gallery {
    justify-content: center !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

@media(prefers-reduced-motion:reduce) {
  .sfs-showcase .sfs-project-slider-track {
    transition: none !important
  }
}
