/* ==========================================================================
   Oasis Hive Limited - responsive layer
   Mobile-first refinements layered on top of main.css
   ========================================================================== */

/* ---------------------------------------------------- <= 1180px (laptop) */
@media (max-width: 1180px) {
  .mega--cols-5 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    width: min(900px, calc(100vw - 2rem));
  }

  .footer__top {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    row-gap: var(--s-10);
  }
}

/* ------------------------------------------------------ <= 1024px (nav) */
@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .header__actions {
    margin-left: auto;
  }

  .header__actions .btn--primary {
    display: none;
  }

  .topbar__list--secondary {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }

  .hero__copy {
    max-width: none;
  }

  .hero__visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__lead {
    max-width: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }

  .split--visual-first .split__media {
    order: 0;
  }

  .split__media {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .post-feature {
    grid-template-columns: 1fr;
  }

  .post-feature__media {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }

  .g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------- <= 900px */
@media (max-width: 900px) {
  .g-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip .stat {
    border-bottom: 1px solid var(--line-soft);
  }

  .stats-strip .stat:nth-child(2n) {
    border-right: none;
  }

  .stats-strip .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .section {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }

  .collage {
    max-width: 560px;
    margin-inline: auto;
  }

  .sec-head--row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s-5);
  }

  .cta-band__scrim {
    background: linear-gradient(180deg, rgba(26, 25, 25, 0.94) 0%, rgba(26, 25, 25, 0.78) 100%);
  }

  .framed::before {
    display: none;
  }
}

/* ------------------------------------------------------------- <= 720px */
@media (max-width: 720px) {
  h1 {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  }

  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: 1fr;
  }

  .checklist--2 {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .btn-row .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

  .float-card {
    padding: var(--s-3) var(--s-4);
  }

  .float-card--tl {
    top: 0.75rem;
    left: 0.75rem;
  }

  .float-card--br {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .float-card__value {
    font-size: 1.1rem;
  }

  .float-card__label {
    font-size: 0.7rem;
  }

  .deco-ring,
  .deco-hex {
    display: none;
  }

  .collage__badge {
    position: static;
    transform: none;
    margin-top: var(--s-4);
  }

  .collage {
    grid-template-columns: 1fr 1fr;
  }

  .collage__a {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .collage__b,
  .collage__c {
    grid-row: auto;
    aspect-ratio: 1;
  }

  .step-card {
    padding-left: 0;
    padding-top: 3.75rem;
  }

  .step-card__num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.95rem;
  }

  .job {
    align-items: flex-start;
    flex-direction: column;
  }

  .job .btn {
    width: 100%;
  }

  .plan {
    padding: var(--s-6);
  }

  .article-head {
    text-align: left;
  }

  .article-meta {
    justify-content: flex-start;
  }

  .pullquote {
    text-align: left;
  }

  .cta-band {
    padding: var(--s-8) var(--s-6);
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__list {
    justify-content: center;
    gap: var(--s-4);
  }

  .totop {
    right: 1rem;
    bottom: 1rem;
  }

  .trustbar__track {
    gap: var(--s-6) var(--s-8);
  }

  .table-wrap {
    border-radius: var(--r-md);
  }

  table.cmp th,
  table.cmp td {
    padding: var(--s-3) var(--s-4);
    font-size: 0.85rem;
  }

  table.cmp thead th {
    font-size: 0.82rem;
  }

  .tabs {
    gap: 0.4rem;
  }

  .tab {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* ------------------------------------------------------------- <= 460px */
@media (max-width: 460px) {
  :root {
    --header-h: 62px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.02rem;
  }

  .brand__sub {
    font-size: 0.5rem;
    letter-spacing: 0.26em;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip .stat {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .stats-strip .stat:nth-child(2n) {
    border-right: none;
  }

  .stats-strip .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .cred {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }

  .proj-card__results {
    gap: var(--s-4);
  }

  .ibadge {
    --badge: 46px;
  }
}

/* --------------------------------------------------- large screens (2xl) */
@media (min-width: 1500px) {
  .hero__inner {
    gap: 5rem;
  }
}

/* ------------------------------------------------------- touch devices */
@media (hover: none) {
  .card--hover:hover,
  .svc-card:hover,
  .proj-card:hover,
  .post-card:hover,
  .person:hover,
  .plan:hover,
  .job:hover {
    transform: none;
  }

  .float-card {
    animation: none;
  }
}

/* ------------------------------------------- landscape phones / short vp */
@media (max-height: 520px) and (orientation: landscape) {
  .drawer {
    padding-top: var(--s-4);
  }

  .float-card {
    display: none;
  }
}
