@media (max-width: 1024px) {
  .fgrid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .why {
    grid-template-columns: repeat(2, 1fr);
  }
  .why > div,
  .why .w0,
  .why .w3 {
    grid-column: auto;
  }
  .tl {
    grid-template-columns: repeat(3, 1fr);
  }
  .tl:before {
    display: none;
  }
  .strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-direction: row;
    overflow-x: auto;
  }
  .tabs button {
    white-space: nowrap;
  }
}
@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: 0.4s;
    overflow-y: auto;
  }
  .nav.open {
    transform: none;
  }
  .nav ul {
    flex-direction: column;
    gap: 6px;
  }
  .nav li {
    opacity: 0;
    transform: translateX(20px);
    transition: 0.4s;
  }
  .nav.open li {
    opacity: 1;
    transform: none;
  }
  .nav li > a {
    display: block;
    font-size: 1.2rem;
    padding: 10px 0;
  }
  .mega {
    display: none;
  }
  .nav .btn {
    text-align: center;
  }
  .hero-in,
  .split,
  .bn-in,
  .row,
  .calc,
  .pane {
    grid-template-columns: 1fr;
  }
  .hero-vis {
    height: 380px;
  }
  .row.rev img {
    order: 0;
  }
  .trust .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .vals,
  .phil,
  .team,
  .arts,
  .nums {
    grid-template-columns: 1fr 1fr;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento .w {
    grid-column: span 2;
  }
  .masonry {
    columns: 2;
  }
  .sec {
    padding: 56px 0;
  }
  .imgs {
    min-height: 0;
    margin-bottom: 30px;
  }
  .imgs img {
    width: 100%;
    height: 320px;
  }
  .imgs .over {
    display: none;
  }
}
@media (max-width: 576px) {
  .wrap {
    padding: 0 18px;
  }
  .vals,
  .phil,
  .team,
  .arts {
    grid-template-columns: 1fr;
  }
  .why,
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid > div:first-child {
    grid-column: span 2;
  }
  .tl,
  .strip {
    grid-template-columns: 1fr 1fr;
  }
  .res {
    grid-template-columns: 1fr;
  }
  .masonry {
    columns: 1;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .hero-vis {
    height: 300px;
  }
  .f2 {
    display: none;
  }
  .logo img {
    height: 52px;
  }
  .bento {
    grid-auto-rows: 150px;
  }
  .wa {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .strip figure {
    height: 200px;
  }
}
@media (max-width: 400px) {
  .why,
  .tl,
  .strip,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .fgrid > div:first-child {
    grid-column: auto;
  }
}

/* =========================================
   RESPONSIVE TEAM SECTION
   ========================================= */

.team {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.team .tm {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    padding: 0 0 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Image container */
.team .tm .ph {
    width: 100%;
    height: 460px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0;
    display: block;
}

/* Actual team image */
.team .tm .ph img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* Name */
.team .tm h3 {
    margin: 20px 30px 4px;
    padding: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #102957;
    position: static;
}

/* Position */
.team .tm span {
    margin: 0 30px;
    padding: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #b58a00;
    font-weight: 600;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {

    .team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .team .tm .ph {
        height: 400px;
    }

    .team .tm h3 {
        margin: 18px 24px 4px;
        font-size: 24px;
    }

    .team .tm span {
        margin: 0 24px;
        font-size: 18px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .team {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team .tm {
        border-radius: 16px;
        padding-bottom: 24px;
    }

    .team .tm .ph {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .team .tm h3 {
        margin: 16px 20px 4px;
        font-size: 23px;
    }

    .team .tm span {
        margin: 0 20px;
        font-size: 17px;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

    .team {
        gap: 20px;
    }

    .team .tm .ph {
        aspect-ratio: 4 / 5;
    }

    .team .tm h3 {
        margin: 14px 18px 4px;
        font-size: 21px;
    }

    .team .tm span {
        margin: 0 18px;
        font-size: 16px;
    }
}

/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 360px) {

    .team .tm h3 {
        font-size: 20px;
    }

    .team .tm span {
        font-size: 15px;
    }
}