html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 769px) and (max-width: 1080px) {
  .section {
    padding-block: 90px;
  }

  .hero .trustbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .expertise .service-grid,
  .projects .project-gallery {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --wrap: calc(100% - 32px);
  }

  .section {
    padding-block: 76px;
  }

  /* Mobile header */
  .site-header .topbar {
    display: none;
    height: 0;
  }

  .site-header .nav {
    height: 86px;
  }

  .site-header .brand {
    width: 188px;
  }

  .site-header .nav-actions {
    order: 2;
    gap: 10px;
  }

  .site-header .lang-switch {
    min-width: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    font-size: 12px;
  }

  .site-header .lang-switch::before {
    content: "◎";
    color: #fff;
    font-size: 22px;
  }

  .site-header .lang-switch::after {
    display: none;
  }

  .site-header .menu-toggle {
    order: 3;
    margin-inline-start: auto;
    width: 48px;
    height: 48px;
  }

  .site-header .menu-toggle span {
    width: 30px;
  }

  .site-header .navlinks {
    inset: 86px 0 0;
    padding: 44px 24px;
  }

  .site-header.scrolled .nav {
    height: 68px;
  }

  .site-header.scrolled .brand {
    width: 142px;
  }

  .site-header.scrolled .navlinks {
    inset: 68px 0 0;
  }

  /* Mobile hero */
  .hero {
    min-height: auto;
    padding-top: 86px;
    overflow: hidden;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(2, 15, 24, 0.22) 0%, rgba(2, 15, 24, 0.38) 48%, rgba(2, 15, 24, 0.9) 100%),
      url("images/hero-mobile-web.jpg");
    background-position: center top;
    background-size: cover;
  }

  .hero-grid {
    min-height: auto;
    align-items: start;
    padding-top: clamp(56px, 16vw, 82px);
    padding-bottom: 48px;
  }

  .hero-copy {
    width: 100%;
    max-width: 520px;
    padding-top: 0;
  }

  .hero .eyebrow {
    max-width: 330px;
    margin-bottom: 34px;
    font-size: 11px;
    line-height: 1.65;
  }

  .hero .eyebrow::after {
    content: "";
    width: 48px;
    height: 2px;
    display: block;
    margin-top: 20px;
    background: var(--blue2);
  }

  .hero h1 {
    max-width: 510px;
    margin-bottom: 28px;
    font-size: clamp(43px, 12vw, 58px);
    line-height: 1.02;
  }

  .hero-lead {
    max-width: 390px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-ctas {
    width: 100%;
    max-width: 390px;
    align-items: stretch;
    gap: 14px;
    margin-top: 34px;
  }

  .hero-ctas .button,
  .hero-ctas .text-link {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .hero-ctas .text-link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.68);
  }

  .hero .trustbar {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 32px);
    max-width: none;
    height: auto;
    margin-inline: auto;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(3, 20, 31, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
  }

  .hero .trustbar div,
  .hero .trustbar div:first-child {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 24px 14px;
    border: 0;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero .trustbar div:last-child {
    border: 0;
  }

  .hero .trustbar div::before {
    display: block;
    color: #fff;
    font-size: 25px;
    line-height: 1;
  }

  .hero .trustbar div:nth-child(1)::before { content: "✺"; }
  .hero .trustbar div:nth-child(2)::before { content: "▥"; }
  .hero .trustbar div:nth-child(3)::before { content: "◇"; }

  .hero .trustbar strong {
    color: var(--blue2);
    font-size: clamp(23px, 7vw, 32px);
  }

  .hero .trustbar span {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Experience */
  .intro {
    min-height: auto;
    padding: 78px 0 70px;
    background:
      linear-gradient(90deg, rgba(2, 15, 24, 0.98) 0%, rgba(2, 15, 24, 0.82) 48%, rgba(2, 15, 24, 0.28) 100%),
      url("images/experience-building.jpg") 63% center / cover no-repeat;
  }

  .intro::before {
    opacity: 0.45;
  }

  .intro .intro-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
  }

  .intro .section-copy {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .intro .section-copy h2 {
    max-width: 520px;
    margin-bottom: 30px;
    font-size: clamp(44px, 12.5vw, 58px);
    line-height: 1.08;
  }

  .intro .section-copy p:not(.eyebrow) {
    max-width: 440px;
    color: #b9c5cb;
    font-size: 16px;
    line-height: 1.75;
  }

  .intro .section-copy .text-link {
    margin-top: 18px;
  }

  .intro-visual {
    height: 555px;
  }

  .intro .intro-small {
    top: 0;
    width: 100%;
    height: 315px;
    border: 1px solid rgba(57, 184, 236, 0.45);
    border-radius: 7px;
  }

  .intro .year-seal {
    top: -50px;
    right: 16px;
    width: 145px;
    height: 145px;
    z-index: 4;
  }

  .intro .year-seal strong {
    font-size: 36px;
  }

  .intro-benefits {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 200px;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 7px;
  }

  .intro-benefits div,
  .intro-benefits div:first-child {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px 10px;
    text-align: center;
    border-bottom: 0;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
  }

  .intro-benefits div:last-child {
    border: 0;
  }

  .intro-benefits div::before {
    width: 43px;
    height: 43px;
    display: block;
    flex: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .intro-benefits div:nth-child(1)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2339b8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='29' r='18'/%3E%3Cpath d='m24 29 6 6 11-13M22 45l-3 13 13-7 13 7-3-13'/%3E%3C/svg%3E");
  }

  .intro-benefits div:nth-child(2)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2339b8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='15' r='6'/%3E%3Cpath d='M32 21v34M19 55l13-34 13 34M23 43h18M13 55h38'/%3E%3C/svg%3E");
  }

  .intro-benefits div:nth-child(3)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2339b8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m25 8 3-5h8l3 5 6 2 5-2 6 6-2 5 2 6 5 3v8l-5 3-2 6 2 5-6 6-5-2-6 2-3 5h-8l-3-5-6-2-5 2-6-6 2-5-2-6-5-3v-8l5-3 2-6-2-5 6-6 5 2z'/%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3C/svg%3E");
  }

  .intro-benefits div:nth-child(4)::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2339b8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 5c7 6 14 8 22 9v17c0 14-8 23-22 28C18 54 10 45 10 31V14c8-1 15-3 22-9z'/%3E%3Cpath d='m22 32 7 7 14-15'/%3E%3C/svg%3E");
  }

  .intro-benefits strong {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: var(--blue2);
    font-size: 14px;
    line-height: 1.25;
  }

  .intro-benefits span {
    color: #b9c5cb;
    font-size: 10px;
    line-height: 1.45;
  }

  /* Remaining sections */
  .expertise {
    min-height: auto;
    padding-top: 76px;
    background-position: 68% top;
  }

  .expertise .section-heading {
    margin-bottom: 34px;
  }

  .expertise .service-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 500px;
  }

  .featured .featured-grid {
    gap: 38px;
  }

  .featured .featured-image {
    height: 470px;
  }

  .featured .featured-copy {
    padding-top: 88px;
  }

  .featured .tags {
    gap: 8px;
  }

  .projects .projects-head {
    display: block;
  }

  .projects .projects-head .button {
    width: 100%;
    margin-top: 28px;
  }

  .projects .project-gallery {
    grid-template-columns: 1fr;
  }

  .projects .project-gallery figure,
  .projects .project-gallery figure:nth-child(3),
  .projects .project-gallery .project-wide {
    grid-column: 1;
    height: 350px;
  }

  .process {
    gap: 48px;
    padding: 68px 16px;
  }

  .process .process-image {
    height: 460px;
  }

  .process .steps li {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

  .process .steps b {
    width: 56px;
    height: 56px;
  }

  .profile .profile-grid {
    gap: 24px;
  }

  .profile .profile-stat,
  .profile .profile-cta {
    min-height: 360px;
    padding: 32px;
  }

  .profile .trust-lines {
    grid-template-columns: 1fr;
  }

  .profile .trust-lines span {
    min-height: 130px;
  }

  .contact-cta {
    min-height: 780px;
  }

  .contact-cta .contact-inner {
    padding-block: 76px;
  }

  .contact-cta .contact-direct {
    flex-direction: column;
  }

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

  .footer .footer-brand,
  .footer .footer-contact {
    grid-column: 1 / -1;
  }

  .footer .footer-brand img {
    width: 280px;
  }
}

@media (max-width: 390px) {
  .site-header .brand {
    width: 165px;
  }

  .site-header .lang-switch {
    min-width: 56px;
    padding-inline: 4px;
  }

  .hero h1 {
    font-size: 41px;
  }

  .hero .trustbar div,
  .hero .trustbar div:first-child {
    padding-inline: 9px;
  }

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

  .footer .footer-links,
  .footer .footer-contact,
  .footer .footer-brand {
    grid-column: 1;
  }
}
