@media (max-width: 1240px) {
  .site-header {
    isolation: isolate;
    z-index: 1000;
  }

  .site-header__bar {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-navigation {
    position: fixed;
    top: 144px;
    right: 0;
    left: 0;
    z-index: 1001;
    display: none;
    max-height: calc(100vh - 144px);
    overflow: auto;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 18px var(--gutter) 28px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .primary-navigation > a,
  .services-dropdown__trigger {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .services-dropdown__trigger {
    justify-content: space-between;
  }

  .services-menu {
    position: static;
    display: none;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    padding: 28px 0 10px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .services-menu.is-open {
    display: grid;
  }

  .services-menu ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-menu__heading {
    display: none;
  }

  .site-header__actions {
    justify-self: end;
  }

  .header-phone {
    display: none;
  }

  .primary-navigation > .header-phone--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
  }

  .intro__grid,
  .trust__details,
  .faq-layout,
  .quote__grid {
    grid-template-columns: 1fr 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clients-grid li:nth-child(3) {
    border-right: 0;
  }

  .clients-grid li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

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

  .process-card:nth-child(2) {
    border-right: 0;
  }

  .process-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 820px) {
  :root {
    --gutter: 20px;
    --section: 84px;
  }

  body {
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .hero__content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero--long-title h1 {
    max-width: 100%;
    font-size: clamp(27px, 8.5vw, 34px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .site-header__bar {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand img {
    width: 190px;
    height: auto;
  }

  .primary-navigation {
    top: 96px;
    max-height: calc(100dvh - 96px);
  }

  .site-header__actions .button {
    display: none;
  }

  .site-header__actions {
    display: none;
  }

  .nav-toggle {
    justify-self: end;
  }

  .services-menu ol {
    grid-template-columns: 1fr;
  }

  .services-menu__link {
    min-height: 66px;
  }

  .hero {
    min-height: 820px;
  }

  .hero__media img,
  .hero__media video {
    object-position: 66% 50%;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(4, 10, 15, 0.78), rgba(4, 10, 15, 0.3)),
      linear-gradient(180deg, rgba(4, 10, 15, 0.34), rgba(4, 10, 15, 0.18) 44%, rgba(4, 10, 15, 0.9));
  }

  .hero__content {
    padding-top: 110px;
    padding-bottom: 170px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__shortcuts {
    bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero__shortcuts::-webkit-scrollbar {
    display: none;
  }

  .hero__shortcuts a {
    flex: none;
  }

  .hero__scroll {
    display: none;
  }

  .intro__grid,
  .capacity-tool,
  .equipment-card,
  .trust__details,
  .faq-layout,
  .quote__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .intro__media {
    margin-top: 20px;
  }

  .intro__media img,
  .equipment-card__media,
  .equipment-card__media img {
    min-height: 390px;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading--split > p,
  .section-heading--split > a {
    justify-self: start;
  }

  .capacity-tool__control,
  .capacity-tool__results {
    padding: 34px 24px;
  }

  .capacity-tool__results li {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .capacity-tool__results li em {
    display: none !important;
  }

  .equipment-card:nth-child(even) .equipment-card__media {
    order: initial;
  }

  .equipment-card dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .projects-grid {
    display: flex;
    min-height: auto;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 14px;
    scroll-snap-type: x mandatory;
  }

  .project-card,
  .project-card--1,
  .project-card--4 {
    min-width: min(86vw, 430px);
    min-height: 500px;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
  }

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

  .clients-grid li {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line);
  }

  .clients-grid li:nth-child(even) {
    border-right: 0 !important;
  }

  .clients-grid li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .process-card,
  .process-card:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .process-card:last-child {
    border-bottom: 0;
  }

  .process-card h3 {
    margin-top: 30px;
  }

  .faq-layout {
    gap: 20px;
  }

  .quote__grid {
    gap: 50px;
  }

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

  .form-grid__full {
    grid-column: auto;
  }

  .site-footer__grid {
    gap: 38px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 82px;
  }

  .whatsapp-float > span {
    display: none;
  }

  .whatsapp-float img {
    width: 54px;
    height: 54px;
  }

  .mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: grid;
    height: 70px;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px;
    background: rgba(16, 16, 16, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
  }

  .mobile-actions a,
  .mobile-actions button {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-actions button {
    border-color: var(--red);
    background: var(--red);
  }

  .quote-modal {
    align-items: start;
    padding: 12px;
  }

  .quote-modal__header,
  .quote-form--modal {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 760px;
  }

  .hero__lead {
    font-size: 16px;
  }

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

  .stat,
  .stat:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .capacity-tool__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .capacity-tool__results li {
    grid-template-columns: 26px 1fr;
  }

  .capacity-tool__results li small {
    grid-column: 2;
  }

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

  .clients-grid li,
  .clients-grid li:nth-child(even),
  .clients-grid li:nth-last-child(-n + 2) {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .clients-grid li:last-child {
    border-bottom: 0;
  }

  .faq button {
    grid-template-columns: 26px 1fr 24px;
  }

  .faq.is-open .faq__answer > p {
    padding-left: 40px;
  }
}
