/* components */
.card-glass {
  background-color: #FAFAFA;
  border: 1px solid #EEEEEE;
  box-shadow: 2px 4px 6px 0px #33363C14 inset;
  color: var(--black);
}

.card-dark-grey {
  background-color: #333333;
  color: var(--white);

  svg {
    stroke: var(--white);
  };
}

.card-light-grey {
  background-color: #F6F6F6;
  color: var(--black);

  svg {
    stroke: var(--black);
  }
}

.card-border {
  border: 1px solid;
}

.card-border--black {
  background: var(--white);
  border-color: var(--black);
  color: var(--black);

  svg {
    stroke: var(--black);
  }
}

.card-border--white {
  border-color: var(--white);
  color: var(--white);

  svg {
    stroke: var(--white);
  }
}

.card-link:hover {
  .card-link__text {
    background-size: 0 2px, 100% 2px;
  }
}

.card-link__text {
  display: inline;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0), rgb(0, 0, 0));
  background-size: 100% 2px, 0 2px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s;
}

.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation-play-state: running;
  animation: marquee 20s linear infinite;
}

.marquee__item {
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-50%, 0);
  }
}

.list-item {
  position: relative;

  &:before {
    content: '';
    position: absolute;
    left: 0;
    height: 1px;
  }
}

.list-item--sm {
  padding-left: 1.875cqi;

  &:before {
    top: .521cqi;
    width: 1.042cqi;
  }

}

@media (max-width: 1280px) {
  .list-item--sm {
    padding-left: 4.688cqi;

    &::before {
      top: 1.563cqi;
      width: 2.604cqi;
    }
  }
}

@media (max-width: 767px) {
  .list-item--sm {
    padding-left: 9.6cqi;

    &::before {
      top: 3.2cqi;
      width: 5.333cqi;
    }
  }
}

.list-item-md {
  padding-left: 2.396cqi;

  &:before {
    top: .625cqi;
    width: 1.563cqi;
  }
}

@media (max-width: 1280px) {
  .list-item-md {
    padding-left: 5.99cqi;

    &::before {
      top: 1.563cqi;
      width: 3.906cqi;
    }
  }
}

@media (max-width: 767px) {
  .list-item-md {
    padding-left: 12.267cqi;

    &::before {
      top: 3.2cqi;
      width: 8cqi;
    }
  }
}

.list-item--white {
  color: var(--white);

  &::before {
    background-color: var(--white);
  }
}

.list-item--black {
  color: var(--black);

  &::before {
    background-color: var(--black);
  }
}

.tag {
  border-radius: .521cqi;
}

.tag--grey {
  background-color: #EEEEEE;
  color: var(--black);
}

.tag--black {
  background-color: var(--black);
  color: var(--white);
}

.tag--lg {
  padding: .417cqi 1.042cqi;
  font: var(--paragraph-md);
}

.tag--sm {
  padding: .313cqi .625cqi;
  font: 400 .729cqi / 1.35 var(--font);
}

@media (max-width: 1280px) {
  .tag {
    border-radius: 1.302cqi;
  }

  .tag--lg {
    padding: 1.042cqi 2.604cqi 1.172cqi;
    font-size: 1.823cqi;
  }

  .tag--sm {
    padding: .781cqi 1.563cqi;
    font-size: 1.563cqi;
  }
}

@media (max-width: 767px) {
  .tag {
    border-radius: 2.667cqi;
  }

  .tag--lg {
    padding: 1.6cqi 3.2cqi;
    font-size: 3.2cqi;
  }

  .tag--sm {
    padding: 1.6cqi 3.2cqi;
    font-size: 3.2cqi;
  }
}

.highlights {
  display: grid;
  grid-template-columns: 15.364cqi auto;
  gap: .833cqi;
}

.highlights__item {
  width: max-content;
  height: max-content;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .417cqi;
  padding: 1.042cqi 1.25cqi;
  border-radius: var(--card-radius-24);

  &:nth-child(1) {
    grid-column: span 2;
    width: 28.385cqi;
    background-color: #B2E2FC4D;
    transform: rotate(-2deg);
    margin: 0.495cqi 0;
    justify-content: center;
  }

  &:nth-child(2) {
    background-color: #D1B5FF4D;
  }

  &:nth-child(3) {
    background-color: #00D96E1A;
  }
}

@media (max-width: 1280px) {
  .highlights {
    grid-template-columns: max-content max-content;
    gap: 2.083cqi;
  }

  .highlights__item {
    padding: 2.083cqi 3.125cqi;
    gap: 1.042cqi;

    &:nth-child(1) {
      grid-column: unset;
      width: unset;
      margin: .781cqi 0;
    }

    &:nth-child(3) {
      grid-column: span 2;
    }
  }
}

@media (max-width: 767px) {
  .highlights {
    display: flex;
    flex-direction: column;
    gap: 2.133cqi;
  }

  .highlights__item {
    max-width: 100%;
    padding: 4.267cqi 6.4cqi;
    gap: 2.133cqi;

    &:nth-child(1) {
      margin: 1.067cqi 0;
    }
  }
}

.team-slider {
  grid-column: 1/end;
  width: 100%;
  overflow: hidden;
}

.team-slider__btn-container {
  display: flex;
  justify-content: flex-end;
  gap: 1.25cqi;
}

.team-slider__prev, .team-slider__next {
  svg, &:hover svg {
    transform: none;
  }
}

.team-slider__list {
  display: flex;
  align-items: flex-start;
  margin-top: 1.563cqi;
}

.team-slider-list__item, .team-slider__card {
  width: 100%;
}

.team-slider__item {
  flex-shrink: 0;
}

.team-slider__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  &:last-child {
    margin-top: 28px;
  }
}

.team-slider__flip-card {
  perspective: 1000px;
  width: 100%;
}

.team-slider__flip-container {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  position: relative;

  &.flipped {
    transform: rotateY(180deg);

    .team-slider__quote-btn {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
  }
}

.team-slider__img, .team-slider__quote-text {
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.team-slider__popup {
  display: none;
}

.team-slider__img {
  position: relative;
  transform: translateZ(1px);
  background: linear-gradient(180deg, #DDDEE0 0%, #E7E6EB 53.77%, #DADBDF 100%);
  border-radius: var(--card-radius-24);
  overflow: hidden;

  > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.team-slider__name {
  margin-top: .63cqi;
}

.team-slider__status {
  margin-top: .21cqi;
}

.team-slider__quote-btn {
  cursor: pointer;
  position: absolute;
  top: 1.667cqi;
  left: 1.667cqi;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.team-slider__quote-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  color: var(--white);
  border-radius: var(--card-radius-24);
  display: flex;
  flex-direction: column;
  padding: 2.083cqi;
  transform: rotateY(180deg) translateZ(1px);

  svg {
    width: 3.125cqi;
    height: auto;
    margin-bottom: auto;
  }
}

@media (max-width: 1280px) {
  .team-slider__btn-container {
    gap: 3.125cqi;
  }

  .team-slider__list {
    margin-top: 3.125cqi;
  }

  .team-slider__name {
    font-size: 2.08cqi;
    margin-top: 1.3cqi;
  }

  .team-slider__status {
    font-size: 1.82cqi;
    margin-top: 2px;
  }

  .team-slider__quote-btn {
    top: 3.125cqi;
    left: 3.125cqi;
  }
}

@media (max-width: 767px) {
  .team-slider {
    display: flex;
    flex-direction: column;
  }

  .team-slider__btn-container {
    justify-content: center;
    gap: 6.4cqi;
    order: 2;
    margin-top: 6.4cqi;
  }

  .team-slider__list {
    margin-top: 0;
  }

  .team-slider__flip-container, .team-slider__img {
    transform-style: unset;
  }

  .team-slider__flip-card.popup-open .team-slider__quote-text {
    display: flex;
    opacity: 1;
  }

  .team-slider__quote-text {
    display: none;
  }

  .team-slider__popup {
    flex-direction: column;
    justify-content: center;
    gap: 9.867cqi;
    position: fixed;
    top: 0;
    left: 0;
    width: 100cqi;
    height: 100vh;
    padding: 0 14.4cqi;
    background: #000000E5;
    color: var(--white);
    padding: 0 14.4cqi;
    opacity: 0;
    transition: opacity var(--normal);
    z-index: 1000;

    svg {
      width: 12.8cqi;
    }

    &::before {
      content: "";
      position: absolute;
      top: 9.6cqi;
      right: 9.6cqi;
      width: 12.8cqi;
      height: 12.8cqi;
      border-radius: 50%;
      border: 1px solid var(--white);
      padding: 3.733cqi;
      background: url("/https:/rubyroidlabs.com/assets/img/icons/close-white.svg") no-repeat center / 5.333cqi auto;
    }

    &.open {
      display: flex;
      opacity: 1;
    }
  }

  .team-slider__name {
    font-size: 4.27cqi;
    margin-top: 8px;
  }

  .team-slider__status {
    font-size: 2.9cqi;
    margin-top: 4px;
  }

  .team-slider__quote-btn {
    top: 4.267cqi;
    left: 4.267cqi;
  }
}

.card-expand {
  cursor: pointer;
}

.card-expand__toggle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--black);

  svg {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transform: rotate(0);
    transition: transform var(--normal);
  }
}

.card-expand__content {
  transition: height var(--normal);
}

.card-expand__details {
  height: 0;
  overflow: hidden;
  transition: height var(--normal), margin var(--normal);
}

.card-expand.expanded {
  .card-expand__details {
    height: auto;
  }

  .card-expand__toggle-btn svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 1280px) {
  .card-expand.expanded {
    .card-expand__details {
      margin-top: 2.604cqi;
    }
  }
}

@media (max-width: 767px) {
  .card-expand.expanded .card-expand__details {
    margin-top: 5.333cqi;
  }
}

.case-card {
  display: flex;
  justify-content: space-between;
  border-radius: var(--card-radius-32);
  overflow: hidden;
}

.case-card__content {
  max-width: 34.01cqi;
  padding: 2.5cqi;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-card__tags {
  display: flex;
  gap: .833cqi;
}

.case-card__text {
  margin-top: .833cqi;
}

.case-card__img {
  height: 26.667cqi;
  width: auto;
}

@media(max-width: 1280px) {
  .case-card {
    flex-direction: column;
    justify-content: stretch;
  }

  .case-card__content {
    max-width: unset;
    padding: 4.688cqi;
    justify-content: flex-start;
    gap: 3.125cqi;
  }

  .case-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .case-card__tags {
    display: flex;
    gap: 2.083cqi;
  }

  .case-card__text {
    margin-top: 2.083cqi;
  }
}

@media(max-width: 767px) {
  .case-card {
    max-height: calc(100vh - 85px - 3.733cqi * 5); /* 100vh - header height - margin of fifth card */

    picture {
      flex: 1 1 auto;
      min-height: 0;
    }
  }

  .case-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-radius-32);
  }

  .case-card__content {
    padding: 6.4cqi;
    gap: 4.267cqi;
    flex: 0 0 auto;
    order: 2;
  }

  .case-card__tags {
    gap: 2.133cqi;
  }

  .case-card__text {
    margin-top: 2.133cqi;
  }
}

/* sections */
@media (min-width: 1281px) {
  .about, .contact-banner, .our-work, .companies, .industries, .technologies, .why-work, .team-banner, .testimonials, .faq, .form-feedback, .footer {
    margin-top: 4.167cqi;
  }

  .technologies {
    padding: 8.333cqi 1.25cqi 8.333cqi 15.156cqi;
  }
}

.preview {
  padding: 1.25cqi 1.25cqi 8.333cqi 4.74cqi;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3.49cqi;
}

.preview__content-wrap {
  width: 45.26cqi;
  flex-shrink: 0;
}

.preview__subtitle {
  margin-top: 1.25cqi;
}

.preview__button-container {
  display: flex;
  gap: 1.25cqi;
  margin-top: 1.875cqi;
}

.preview__companies-card {
  margin-top: 5.208cqi;
  width: 27.448cqi;
  padding: 1.875cqi;
  color: #777777;
  border-radius: var(--card-radius-24);
}

.preview__companies-logos {
  width: 100%;
  margin-top: .417cqi;
}

.preview__img-wrap {
  overflow: hidden;
  height: 46.563cqi;
  flex-grow: 1;
  display: flex;
  gap: 2.604cqi;
  justify-content: center;
  position: relative;
  background-color: #FAFAFA;
  border-radius: var(--card-radius-32);

  &::before, &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: inherit;
  }

  &::before {
    height: 13%;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
  }

  &::after {
    height: 100%;
    box-shadow: 1px 4px 6px 0px #33363C1F inset;
    z-index: 2;
  }
}

/* CSS columns are the fallback preview; hidden once the WebGL canvas
   (module.js) has drawn its first frame. */
.preview__img-1, .preview__img-2 {
  width: 16.667cqi;
  height: 100%;
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: 0 0;
  --bg-pos: 104.271cqi;
}

.preview__img-1 {
  background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-1-desktop.webp");
  animation: bg-scroll-top 20s linear infinite;
}

.preview__img-2 {
  background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-2-desktop.webp");
  animation: bg-scroll-bottom 20s linear infinite;
}

.preview__img-wrap--gl {
  .preview__img-1, .preview__img-2 {
    display: none;
  }
}

@media (min-width: 1920px) {
  .preview__img-1 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-1.webp");
  }

  .preview__img-2 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-2.webp");
  }
}

@keyframes bg-scroll-top {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 calc(-1 * var(--bg-pos));
  }
}

@keyframes bg-scroll-bottom {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 var(--bg-pos);
  }
}

.page__nav {
  grid-row: 2/auto;
}

#overview, #services {
  overflow: visible;
}

.achievements {
  padding: 5.365cqi 1.25cqi 5.365cqi 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;

  &::before {
    content: "";
    width: calc(100% + 15.156cqi);
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--black);
    border-radius: var(--section-radius);
  }
}

.achievements__badge {
  width: 12.24cqi;
  z-index: 2;

  img {
    width: 100%;
    height: auto;
  }
}

@media (hover: hover) {
  .achievements__badge:hover {
    animation: pulse .8s ease-in-out;
  }
}

.badge-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .833cqi;
  aspect-ratio: 234/261;
  color: var(--white);

  * {
    z-index: 2;
  }

  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

.badge-link--grey .badge-link__contrast-text {
  color: var(--green);
}

.badge-link:hover {
  .badge-link__underline {
    animation: underline-slide 0.8s ease-in-out forwards;
  }
}

.badge-link__underline {
  display: inline;
  background-repeat: repeat-x;
  background-size: 200% 1px;
  background-position: 0 100%;
  background-image: linear-gradient(
    to right,
    var(--white) 0%, var(--white) 50%,
    rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%
  );
}

.about__title {
  width: 39.6cqi;
}

.about__content {
  display: flex;
  justify-content: space-between;
}

.about__cards-container, .services__cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.563cqi 1.563cqi;
}

.about__card {
  position: relative;
  width: 19.688cqi;
  padding: 2.5cqi 1.25cqi;
  border-radius: var(--card-radius-24);
}

.about__card-desc {
  margin-top: .625cqi;
}

.about__card-rating {
  width: 9.792cqi;
  height: auto;
  position: absolute;
  left: 8.594cqi;
  top: -.938cqi;
}

.about__contact-link {
  flex-shrink: 0;
  width: 19.688cqi;
  background: url("/https:/rubyroidlabs.com/assets/img/home/about-link-bg.webp") no-repeat center / cover;
  background-color: var(--black);
  border-radius: var(--card-radius-32);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25cqi;
  text-align: center;
  padding: 0 3.906cqi;
  position: relative;
  overflow: hidden;
}

.services__card {
  padding: 0 4.635cqi 0 1.875cqi;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 14.896cqi;
  transition: color .5s, background-image .5s;

  &:hover {
    color: var(--white);

    .services__card-bg::before {
      opacity: 1;
    }
  }
}

.services__card-bg, .services__card-bg::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.services__card-bg {
  background: url("/https:/rubyroidlabs.com/assets/img/home/services/bg.webp") no-repeat center / 100% 100%;

  &::before {
    content: "";
    background: url("/https:/rubyroidlabs.com/assets/img/home/services/bg-hover.webp") no-repeat center / 100% 100%;
    opacity: 0;
    transition: opacity .5s;
  }
}

.services__card-content {
  position: relative;
}

.services__card-text {
  margin-top: .521cqi;
}

.services__card-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.contact-banner {
  padding: 7.969cqi 11.198cqi 7.969cqi 15.156cqi;
  position: relative;
  color: var(--white);

  &:hover .contact-banner__btn {
    animation: swing .6s ease-in-out infinite;
  }
}

@keyframes swing {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.contact-banner__content {
  max-width: 30.313cqi;
  position: relative;
  z-index: 2;
}

.contact-banner__btn {
  margin-top: 3.333cqi;
  will-change: transform;

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transform: scale(1.138) rotate(-7.19deg);
    background: #3D43FF;
    filter: blur(3.583cqi);
    will-change: filter;
  }

  &:hover .contact-banner__btn-bg {
    background-color: var(--green);
  }
}

.contact-banner__btn-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--white);
  border-radius: 64px;
  transition: background-color var(--normal);
}

.contact-banner__img {
  height: 100%;
  width: auto;
  position: absolute;
  bottom: 0;
  right: 0;
}

.our-work {
  padding-right: 0;
}

.our-work__title, .our-work__highlights {
  padding-left: 15.156cqi;
}

.our-work__highlights {
  margin-top: .833cqi;
}


.our-work__case-cards-container {
  overflow: hidden;
  position: relative;
  padding: 26.25cqi 0;

  &::before, &::after {
    content: "";
    position: absolute;
    left: 0;
    width: 706.667cqi; /* image-width * 2 */
    height: 27.292cqi; /* image-height */
    background-size: auto 100%;
    will-change: transform;
  }

  &::before {
    top: 0;
    background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-1-desktop.webp");
    animation: bg-shift-left 130s linear infinite;
  }

  &::after {
    bottom: 0;
    background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-2-desktop.webp");
    animation: bg-shift-right 130s linear infinite;
  }
}

@media (min-width: 1920px){
  &::before {
    background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-1.webp");
  }

  &::after {
    background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-2.webp");
  };
}

@keyframes bg-shift-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-353.333cqi); /* image-width */
  }
}

@keyframes bg-shift-right {
  0% {
    transform: translateX(-353.333cqi); /* image-width */
  }
  100% {
    transform: translateX(0);
  }
}

.our-work__btn {
  background-color: var(--white);
  margin: 0 auto;
  z-index: 2;
}

.companies {
  padding: 8.333cqi 0;
}

.companies__card {
  width: 13.333cqi;
  height: 8.333cqi;
  border-radius: var(--card-radius-24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.875cqi;
}

.companies__logo-img {
  width: 10.833cqi;
  height: auto;
}

.why-work__title {
  width: 33.907cqi;
}

.why-work__subtitle {
  width: 38.282cqi;
  margin-top: 1.875cqi;
}

.why-work__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25cqi 1.25cqi;
}

.why-work__card {
  padding: 2.5cqi;
  display: flex;
  flex-direction: column;
  border-radius: var(--card-radius-32);
}

.why-work__card-number {
  margin-bottom: auto;
}

.why-work__card-title {
  margin-top: 1.771cqi;
}

.why-work__card-text {
  margin-top: .833cqi;
}

.why-work__card-img {
  width: 100%;

  img {
    width: 100%;
    height: auto;
  }
}

.technologies {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: max-content;

  a {
    font: inherit;
    color: inherit;
  }
}

.technologies__title {
  width: 33.907cqi;
  margin-bottom: 6.25cqi;
  position: sticky;
  top: calc(max(var(--header-height), 80px) + 4.167cqi);
}

.technologies__content {
  max-height: 96.458cqi;
  width: 41.771cqi;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2.083cqi;
}

.technologies__card {
  width: 19.844cqi;
  padding: 2.5cqi;
  border-radius: var(--card-radius-32);
}

.technologies__card--frontend {
  margin-top: 3.021cqi;
}

.technologies__list {
  margin-top: 1.563cqi;
}

.technologies__list-item + .technologies__list-item {
  margin-top: .625cqi;
}

.industries__title-container {
  display: flex;
}

.industries__title {
  width: 33.907cqi;
}

.industries__toggle-btn {
  display: none;
}

.industries__subtitle {
  width: 38.281cqi;
  margin-left: 7.917cqi;
  margin-top: 2.5cqi;
}

.industries__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: .938cqi .938cqi;
}

.industries__card {
  height: 100%;
  border-radius: var(--card-radius-24);
  padding: 2.083cqi;
  display: flex;
  flex-direction: column;
  gap: .833cqi;
  cursor: auto;

  .card-expand__btn {
    display: none;
  }
}

.industries__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .417cqi;
  height: auto;
}

.industries__card-text {
  margin-top: auto;
  height: auto;
}

.industries__card--contact {
  background: url("/https:/rubyroidlabs.com/assets/img/home/industries-card-bg-desktop.webp") no-repeat bottom / cover;
  background-color: var(--black);
  color: var(--white);
}

@media (min-width: 1920px) {
  .industries__card--contact {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/industries-card-bg.webp");
  }
}

.industries__card-btn {
  margin-top: 1.875cqi;
}

.e-container {
  display: flex;
}

.e {
  width: 33.906cqi;
}

.team__title-container {
  display: flex;
}

.team__subtitle {
  width: 38.281cqi;
  margin: 2.5cqi 7.917cqi 0 auto;
}

.team__slider {
  margin-top: 2.5cqi;
}

.team-banner img {
  width: 100%;
  height: auto;
}

.testimonials, .testimonials__content {
  overflow: visible;
}

.testimonials__cards-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.667cqi 1.667cqi;
}

.testimonials__card {
  height: max-content;
  padding: 2.083cqi 3.333cqi;
  border-radius: var(--card-radius-32);
  transition: transform var(--normal);

  svg {
    width: 3.125cqi;
    height: auto;
  }
}

.testimonials__card:not(.testimonials__card--rotate):hover {
  animation: pulse .8s ease-in-out;
}

.testimonials__card--rotate {
  transform: rotate(3deg);
  transition: background-color var(--normal), border-color var(--normal), transform var(--normal);
}

.testimonials__card--rotate, .testimonials__card-bg::before {
  transform-origin: bottom left;
}

.testimonials__card-bg {
  position: relative;

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url("/https:/rubyroidlabs.com/assets/img/home/testimonials/card-bg.webp") no-repeat center top / contain;
    z-index: -1;
    transform: rotate(-5deg) translateX(2%);
    transition: opacity var(--normal), transform var(--normal);
  }

  &:hover {
    .testimonials__card--rotate {
      background-color: #F6F6F6;
      border-color: transparent;
    }

    &::before {
      opacity: 0;
    }

    &::before, .testimonials__card--rotate {
      transform: rotate(0);
    }
  }
}

.testimonials__quote, .testimonials__author {
  margin-top: 1.667cqi;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: .833cqi
}

.testimonials__photo {
  flex-shrink: 0;
  width: 2.5cqi;
  height: auto;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .testimonials__prev, .testimonials__next {
    display: none;
  }
}

.blog-articles__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875cqi;
}

.blog-articles__card {
  flex-grow: 1;
  border-radius: var(--card-radius-24);
}

.blog-articles__img {
  display: block;
  width: 100%;
  height: 15.104cqi;
  object-fit: cover;
  border-radius: var(--card-radius-24);
}

.blog-articles__info {
  padding: 1.25cqi 1.25cqi 1.875cqi;
}

.blog-articles__date {
  color: #777777;
}

.blog-articles__title {
  margin-top: .833cqi;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 1px;
}

@media (max-width: 1280px) {
  .preview {
    padding: 3.125cqi 24px 7.552cqi;
    gap: 2.604cqi;
  }

  .preview__content-wrap {
    width: 46.875cqi;
  }

  .preview__subtitle {
    margin-top: 1.563cqi;
  }

  .preview__button-container {
    gap: 2.344cqi;
    margin-top: 2.083cqi;
  }

  .preview__companies-card {
    margin-top: 4.167cqi;
    width: 100%;
    padding: 3.125cqi;
  }

  .preview__companies-logos {
    margin-top: 1.042cqi;
  }

  .preview__img-wrap {
    height: 100%;
    gap: 2.083cqi;
    padding: 0 3.516cqi;
  }

  .preview__img-1, .preview__img-2 {
    width: 17.578cqi;
    --bg-pos: 109.896cqi;
  }

  .preview__img-1 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-1-tablet.webp");
  }

  .preview__img-2 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-2-tablet.webp");
  }

  .achievements {
    padding: 7.552cqi 24px;
    border-radius: var(--section-radius);
    background-color: var(--black);

    &::before {
      display: none;
    }
  }

  .achievements__badge {
    width: 14.063cqi;
  }

  .badge-link span {
    display: none;
  }

  .about__title, .why-work__title, .why-work__subtitle {
    width: 100%;
  }

  .about__content {
    flex-direction: column;
    gap: 2.604cqi;
  }

  .about__cards-container, .services__cards-container {
    gap: 2.604cqi 2.604cqi;
  }

  .about__card {
    width: 100%;
    padding: 4.688cqi 3.125cqi;
  }

  .about__card-desc {
    margin-top: 1.563cqi;
  }

  .about__card-rating {
    width: 13.542cqi;
    left: 13.021cqi;
    top: -1.302cqi;
  }

  .about__contact-link {
    width: 100%;
    flex-direction: row;
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/about-link-bg-tablet.webp");
    gap: 3.125cqi;
    padding: 6.25cqi 0;
  }

  .services__cards-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .services__card {
    padding: 0 11.328cqi 0 3.125cqi;
    min-height: 28.125cqi;
  }

  .services__card-bg {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/services/bg-tablet.webp");

    &::before {
      background-image: url("/https:/rubyroidlabs.com/assets/img/home/services/bg-tablet-hover.webp");
    }
  }

  .services__card-text {
    margin-top: 1.302cqi;
  }

  .contact-banner {
    padding: 12.63cqi 24px;
    overflow: hidden;
  }

  .contact-banner__content {
    max-width: 43.099cqi;
  }

  .contact-banner__btn {
    margin-top: 3.125cqi;
  }

  .our-work {
    padding-left: 0;
  }

  .our-work__title, .our-work__highlights {
    padding: 0 24px;
  }

  .our-work__highlights {
    margin-top: 2.083cqi;
  }

  .our-work__case-cards-container {
    padding: 32.161cqi 0;

    &::before, &::after {
      width: 883.333cqi; /* image-width * 2 */
      height: 34.115cqi; /* image-height */
    }

    &::before {
      background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-1-tablet.webp");
    }

    &::after {
      background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-2-tablet.webp");
    }
  }

  @keyframes bg-shift-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-441.667cqi); /* image-width */
    }
  }

  @keyframes bg-shift-right {
    0% {
      transform: translateX(-441.667cqi); /* image-width */
    }
    100% {
      transform: translateX(0);
    }
  }

  .companies {
    padding: 6.25cqi 0;
  }

  .companies__card {
    width: 31.25cqi;
    height: 14.583cqi;
    margin-right: 3.125cqi;
  }

  .companies__logo-img {
    width: 27.083cqi;
  }

  .why-work__subtitle {
    margin-top: 3.125cqi;
  }

  .why-work__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.125cqi 3.125cqi;
  }

  .why-work__card {
    padding: 4.688cqi;
    height: max-content;
  }

  .why-work__card-title {
    margin-top: 8.333cqi;
  }

  .why-work__card-text, .technologies__list {
    margin-top: 2.083cqi;
  }

  .technologies {
    display: block;
  }

  .technologies__title {
    width: auto;
    position: static;
    margin-bottom: 0;
  }

  .technologies__content {
    max-height: 114.583cqi;
    width: 100%;
    gap: 2.083cqi;
    margin-top: 6.25cqi;
  }

  .technologies__card {
    width: auto;
    padding: 3.125cqi;
  }

  .technologies__card--devops {
    order: 2;
  }

  .technologies__card--frontend {
    margin-top: 0;
    order: 3;
  }

  .technologies__card--mobile {
    order: 4;
  }

  .technologies__card--testing {
    order: 5;
  }

  .technologies__card--ai {
    order: 6;
  }

  .technologies__card--databases {
    order: 7;
  }

  .technologies__list-item + .technologies__list-item {
    margin-top: 1.042cqi;
  }

  .industries__title-container, .team__title-container {
    display: block;
  }

  .industries__title, .industries__subtitle, .team__title, .team__subtitle {
    width: 46.875cqi;
  }

  .industries__subtitle, .team__subtitle {
    margin: 1.172cqi 0 0 auto;
  }

  .team__slider {
    margin-top: 6.25cqi;
  }

  .industries__content {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 2.083cqi 2.083cqi;
  }

  .industries__card {
    min-height: 42.708cqi;
    padding: 3.125cqi;
    gap: 0;

    &.expanded {
      .industries__card-text {
        margin-top: 3.125cqi;
      }
    }
  }

  .industries__card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .industries__toggle-btn {
    flex-shrink: 0;
    display: flex;
    width: 3.906cqi;
    height: 3.906cqi;
  }

  .industries__tags {
    margin-top: auto;
    gap: 1.042cqi;
  }

  .industries__card-text {
    margin-top: 0;
    height: 0;
  }

  .industries__card--contact {
    height: 42.708cqi;
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/industries-card-bg-tablet.webp");
  }

  .industries__card-btn {
    margin-top: 4.688cqi;
  }

  .testimonials__cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.083cqi 2.083cqi;
  }

  .testimonials__card {
    padding: 4.167cqi;

    svg {
      width: 5.208cqi;
    }
  }

  .testimonials__card-bg {
    min-height: 53.646cqi;


    &:hover {
      min-height: unset;
    }
  }

  .testimonials__card--rotate {
    transform-origin: left center;
    transform: rotate(3deg) translateY(5.208cqi);
  }

  .testimonials__card-bg::before {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/testimonials/card-bg-tablet.webp");
    transform-origin: right center;
    transform: rotate(-5deg);
  }

  .testimonials__quote, .testimonials__author {
    margin-top: 3.125cqi;
  }

  .testimonials__author {
    gap: 2.083cqi
  }

  .testimonials__photo {
    width: 5.208cqi;
  }

  .blog-articles__content {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.604cqi;
  }

  .blog-articles__img {
    height: 26.042cqi;
  }

  .blog-articles__info {
    padding: 3.125cqi 2.083cqi;
  }

  .blog-articles__title {
    margin-top: 1.042cqi;
  }
}

@media (max-width: 767px) {
  .preview {
    padding: 6.4cqi 0 0;
    flex-direction: column;
    gap: 15.467cqi;
    margin-top: 85px;
  }

  .preview__content-wrap {
    width: 100%;
    padding: 0 16px;
  }

  .preview__subtitle {
    margin-top: 2.133cqi;
  }

  .preview__button-container {
    gap: unset;
    justify-content: space-between;
    margin-top: 6.4cqi;
  }

  .preview__companies-card {
    margin-top: 9.6cqi;
    width: 82.4cqi;
    padding: 4.267cqi;
  }

  .preview__companies-logos {
    margin-top: 2.133cqi;
  }

  .preview__img-wrap {
    width: 100vw;
    height: 64vw;
    gap: unset;
    justify-content: space-between;
    padding: 0 6.46cqi;

    &::before {
      height: 18.75%;
    }
  }

  .preview__img-1, .preview__img-2 {
    width: 41.467cqi;
    --bg-pos: 259.2cqi;
  }

  .preview__img-1 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-1-mob.webp");
  }

  .preview__img-2 {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/preview-2-mob.webp");
  }

  .achievements {
    padding: 12.8cqi 16px;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 4.267cqi;
  }

  .achievements__badge {
    width: 27.733cqi;
  }

  .about__content {
    gap: 4.267cqi;
  }

  .about__cards-container {
    gap: 4.267cqi 4.267cqi;
    grid-template-columns: repeat(2, 1fr);
  }

  .about__card {
    padding: 6.4cqi 4.267cqi;
  }

  .about__card-desc {
    margin-top: 2.133cqi;
  }

  .about__card-rating {
    width: 22.4cqi;
    left: 16.533cqi;
    top: -2.667cqi;
  }

  .about__contact-link {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/about-link-bg-mob.webp");
    gap: 6.4cqi;
    padding: 6.4cqi 0;
  }

  .services__cards-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 5.333cqi 0;
  }

  .services__card {
    padding: 6.4cqi 13.6cqi 6.4cqi 6.4cqi;
    min-height: 52.267cqi;
  }

  .services__card-bg {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/services/bg-mob.webp");

    &::before {
      background-image: url("/https:/rubyroidlabs.com/assets/img/home/services/bg-mob-hover.webp");
    }
  }

  .services__card-text {
    margin-top: 2.667cqi;
  }

  .contact-banner {
    padding: 77.333cqi 16px 12.8cqi;
  }

  .contact-banner__content {
    max-width: unset;
  }

  .contact-banner__btn {
    width: 100%;
    margin-top: 6.4cqi;
  }

  .contact-banner__img {
    width: 100%;
    height: auto;
    top: 0
  }

  .our-work__title, .our-work__highlights {
    padding: 0 16px;
  }

  .our-work__highlights {
    margin-top: 4.267cqi;
  }

  .our-work__case-cards-container {
    padding: 47.467cqi 0;

    &::before, &::after {
      width: 1348.267cqi; /* image-width * 2 */
      height: 52.533cqi; /* image-height */
    }

    &::before {
      background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-1-mob.webp");
    }

    &::after {
      background-image: url("/https:/rubyroidlabs.com/assets/img/case-section-marquee/our-work-2-mob.webp");
    }
  }

  @keyframes bg-shift-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-674.133cqi); /* image-width */
    }
  }

  @keyframes bg-shift-right {
    0% {
      transform: translateX(-674.133cqi); /* image-width */
    }
    100% {
      transform: translateX(0);
    }
  }

  .companies {
    padding: 17.067cqi 0;
  }

  .companies__card {
    width: 38.667cqi;
    height: 26.667cqi;
    margin-right: 3.2cqi;
  }

  .companies__logo-img {
    width: 30.133cqi;
  }

  .why-work__subtitle {
    margin-top: 4.267cqi;
  }

  .why-work__content {
    grid-template-columns: 1fr;
    gap: 6.4cqi 0;
  }

  .why-work__card {
    padding: 6.4cqi;
  }

  .why-work__card-title {
    margin-top: 6.4cqi;
  }

  .why-work__card-text {
    margin-top: 2.133cqi;
  }

  .technologies__content {
    max-height: 333.333cqi;
    gap: 4.267cqi;
    margin-top: 9.6cqi;
  }

  .technologies__card {
    padding: 5.333cqi;
  }

  .technologies__card--ai {
    order: 2;
  }

  .technologies__card--mobile {
    order: 3;
  }

  .technologies__card--databases {
    order: 4;
  }

  .technologies__card--frontend {
    order: 5;
  }

  .technologies__card--devops {
    order: 6;
  }

  .technologies__card--testing {
    order: 7;
  }

  .technologies__list {
    margin-top: 4.267cqi;
  }

  .technologies__list-item + .technologies__list-item {
    margin-top: 2.133cqi;
  }

  .industries__title, .industries__subtitle, .team__title, .team__subtitle {
    width: 100%;
  }

  .industries__subtitle, .team__subtitle {
    margin-top: 4.267cqi;
  }

  .team__slider {
    margin-top: 9.6cqi;
  }

  .industries__content {
    grid-template-columns: 1fr;
    gap: 2.467cqi 0;
  }

  .industries__card {
    min-height: unset;
    padding: 6.4cqi;

    &.expanded {
      .industries__card-text, .industries__tags {
        height: auto;
        margin-top: 6.4cqi;
      }
    }
  }

  .industries__toggle-btn {
    width: 8cqi;
    height: 8cqi;
  }

  .industries__tags {
    height: 0;
    margin-top: 0;
    gap: 2.133cqi;
  }

  .industries__card--contact {
    height: 102.933cqi;
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/industries-card-bg-mob.webp");
  }

  .industries__card-btn {
    margin-top: 6.4cqi;
  }

  .testimonials {
    overflow: hidden;
    padding: 15.467cqi 0;
  }

  .testimonials__title, .testimonials__content {
    padding: 0 16px;
  }

  .testimonials__cards-container {
    display: flex;
    gap: 0;
  }

  .testimonials__card {
    width: 100%;
    flex-shrink: 0;
    padding: 8cqi 10.667cqi;

    svg {
      width: 10.667cqi;
    }
  }

  .testimonials__card-bg {
    min-height: unset;
    height: 100%;
    flex-shrink: 0;

    &:not(.swiper-slide-active)  {
      &::before, .testimonials__card--rotate {
        transform: none;
      }

      .testimonials__card--rotate {
        background-color: #F6F6F6;
        border-color: transparent;
      }
    }
  }

  .testimonials__card--rotate {
    transform: rotate(3deg) translateY(8.333cqi);
    margin-bottom: 8.333cqi;
  }

  .testimonials__card-bg::before {
    background-image: url("/https:/rubyroidlabs.com/assets/img/home/testimonials/card-bg-mob.webp");
  }

  .testimonials__quote, .testimonials__author {
    margin-top: 4.267cqi;
  }

  .testimonials__author {
    gap: 4.267cqi
  }

  .testimonials__photo {
    width: 8.533cqi;
  }

  .testimonials__btn-container {
    display: flex;
    justify-content: center;
    gap: 6.4cqi;
    margin-top: 6.4cqi;
  }

  .blog-articles__content {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 6.4cqi;
  }

  .blog-articles__img {
    height: 53.333cqi;
  }

  .blog-articles__info {
    padding: 4.267cqi 4.267cqi 6.4cqi;
  }

  .blog-articles__title {
    margin-top: 2.133cqi;
  }
}
