@media (max-width: 1140px) {
  .about-grid,
  .about-grid--wide,
  .services-header,
  .process-grid,
  .process-grid--simple,
  .form-layout,
  .insight-grid,
  .article-layout,
  .blog-index-hero__grid,
  .blog-card-grid,
  .projects-intro-grid,
  .project-group,
  .footer-grid,
  .cta-panel,
  .cta-section .cta-panel {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .services-grid--compact,
  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-grid--single {
    grid-template-columns: 1fr;
  }

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

  .article-sidebar {
    position: static;
  }

  .project-group {
    gap: 1.45rem;
    padding: 1.75rem;
  }

  .blog-index-hero__grid {
    min-height: auto;
  }

  .blog-index-hero__copy {
    justify-self: stretch;
    width: 100%;
    padding: 4rem 1rem 2rem;
  }

  .blog-index-hero__media {
    min-height: 360px;
  }

  .about-copy {
    gap: 1.1rem;
  }

  .about-brand img {
    width: min(100%, 300px);
  }
}

@media (max-width: 1180px) {
  :root {
    --header-height: 82px;
  }

  .about-brand {
    justify-content: flex-start;
  }

  .brand {
    width: 176px;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 34px;
    right: 14px;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    gap: 5px;
    transform: translateY(-50%);
    z-index: 1100;
  }

  .header-inner {
    width: 100%;
    padding-inline: 0.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
    justify-content: space-between;
    min-width: 0;
    min-height: 58px;
    gap: 0.75rem;
    padding-right: 3.4rem;
  }

  .brand img {
    margin: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    padding: 0.55rem 0.85rem 0.8rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 244, 239, 0.985));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    z-index: 25;
    grid-column: 1 / -1;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.82rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    font-size: 0.8rem;
    letter-spacing: 0.11em;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .header-actions,
  .header-social,
  .header-cta {
    display: none;
  }

  .main-nav {
    flex-wrap: nowrap;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .header-bar {
    flex-wrap: nowrap;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    padding-inline: 0.7rem;
  }

  .header-bar {
    min-height: 54px;
  }

  .brand {
    width: 164px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .menu-toggle span {
    width: 20px;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-banner__content {
    position: relative;
    inset: auto;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
  }

  .hero-banner__inner {
    position: relative;
    align-items: flex-start;
    text-align: left;
    padding: 2.2rem 0 2rem;
    gap: 0;
  }

  .hero-banner__inner::before {
    content: '';
    width: clamp(120px, 36vw, 172px);
    height: 4px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #d81818 0%, rgba(216, 24, 24, 0.2) 100%);
  }

  .hero-banner__inner h1 {
    max-width: 11.5ch;
    margin: 0 0 0.9rem;
    font-size: clamp(1.95rem, 7.6vw, 2.7rem);
    line-height: 0.93;
    letter-spacing: 0;
  }

  .hero-banner__inner p:not(.section-index) {
    max-width: 24ch;
    font-size: 0.88rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.84);
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
  }

  .hero-actions .btn-secondary--light {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }

  .section-heading h2,
  .about-copy h2,
  .cta-panel h2,
  .form-copy h2 {
    font-size: clamp(2rem, 8vw, 2.9rem);
  }

  .form-layout--contact .form-copy h2 {
    max-width: 12.5ch;
    font-size: clamp(2.45rem, 7.8vw, 3.35rem);
    line-height: 0.94;
  }

  .form-layout--contact .form-copy > p {
    max-width: 62ch;
  }

  .about-copy p {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .about-brand img {
    width: min(100%, 220px);
  }

  .services-header {
    gap: 0.7rem;
    margin-bottom: 1.25rem;
  }

  .services-header p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .services-grid,
  .services-grid--compact,
  .project-card-grid,
  .project-card-grid--single,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .projects-intro-copy h2,
  .project-group__header h2,
  .insight-copy h2,
  .blog-index-hero__copy h1,
  .blog-list-heading h2,
  .blog-article > h2 {
    font-size: 2.35rem;
  }

  .projects-intro-copy p,
  .project-group__header p,
  .insight-copy p,
  .blog-article > p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .insight-copy h2 {
    max-width: 16ch;
  }

  .insight-cards,
  .article-steps,
  .article-metrics,
  .article-split {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .chart-row strong {
    text-align: left;
  }

  .insight-dashboard {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  .insight-card {
    min-height: 190px;
  }

  .blog-card--featured {
    grid-row: auto;
  }

  .project-group {
    gap: 1.2rem;
    padding: 1.55rem;
  }

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

  .services-section .service-card {
    padding: 0 0 1.35rem;
    gap: 0.8rem;
  }

  .services-section .service-card p {
    max-width: none;
    line-height: 1.56;
  }

  .service-icon {
    width: 34px;
    height: 34px;
  }

  .services-section .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .cta-section .cta-panel {
    gap: 1.2rem;
  }

  .cta-panel__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-panel__copy p:last-child {
    line-height: 1.7;
  }

  .contact-card {
    padding: 1rem;
  }

  .footer-grid {
    gap: 1.8rem;
  }

  .internal-hero__content {
    padding: 2rem 0;
  }

  .internal-hero__content p:last-child {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .whatsapp-float {
    min-width: 52px;
    width: 52px;
    height: 52px;
    padding: 0;
    right: 14px;
    bottom: 14px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .brand {
    width: 154px;
  }

  .menu-toggle {
    right: 44px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .about-section,
  .services-section,
  .form-page-section,
  .maintenance-section,
  .process-section,
  .insight-section,
  .article-section,
  .blog-list-section,
  .projects-intro-section,
  .projects-section,
  .capabilities-section,
  .cta-section {
    padding: 4rem 0;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-banner__content {
    min-height: auto;
  }

  .hero-banner__inner {
    padding: 1.7rem 0 1.8rem;
  }

  .hero-banner__inner::before {
    width: 122px;
    margin-bottom: 0.85rem;
  }

  .hero-banner__inner h1 {
    max-width: 11.2ch;
    font-size: clamp(1.82rem, 7vw, 2.35rem);
  }

  .internal-hero__content h1 {
    font-size: clamp(2.05rem, 8vw, 2.95rem);
  }

  .hero-banner__inner p:not(.section-index) {
    max-width: 23ch;
    font-size: 0.84rem;
    line-height: 1.44;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn,
  .cta-panel__actions .btn,
  .maintenance-actions .btn {
    min-height: 50px;
  }

  .about-copy,
  .services-header,
  .form-copy {
    gap: 0.9rem;
  }

  .form-layout--contact .contact-cards {
    height: auto;
    grid-template-rows: none;
  }

  .form-layout--contact .contact-card {
    min-height: auto;
  }

  .form-layout--contact .contact-form {
    grid-template-rows: auto;
  }

  .form-layout--contact .field--message textarea {
    min-height: 190px;
  }

  .about-copy p,
  .services-header p,
  .form-copy p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .about-brand img {
    width: min(100%, 190px);
  }

  .maintenance-card,
  .insight-card,
  .article-highlight,
  .article-checklist,
  .article-source,
  .article-sidebar__block,
  .article-steps div,
  .article-band,
  .article-chart,
  .article-metric,
  .article-split article,
  .project-group,
  .project-card,
  .projects-intro-list div,
  .form-shell,
  .cta-panel,
  .timeline-item {
    padding: 1.45rem;
  }

  .services-section .service-card {
    padding: 0 0 1.25rem;
  }

  .services-section .service-card h3 {
    font-size: 1.03rem;
  }

  .projects-intro-copy h2,
  .project-group__header h2,
  .insight-copy h2,
  .blog-index-hero__copy h1,
  .blog-list-heading h2,
  .blog-article > h2 {
    font-size: 2rem;
  }

  .insight-actions {
    flex-direction: column;
  }

  .insight-actions .btn {
    width: 100%;
  }

  .article-checklist h2 {
    font-size: 1.45rem;
  }

  .capability-grid {
    gap: 0.65rem;
  }

  .capability-grid span {
    min-height: 64px;
    padding: 0.9rem;
  }

  .services-section .service-card p {
    font-size: 0.94rem;
  }

  .field input,
  .field textarea {
    padding: 0.95rem;
  }

  .footer-list,
  .footer-brand-block p {
    font-size: 0.95rem;
  }

  .site-footer {
    padding-bottom: 5.2rem;
  }

  .internal-hero {
    min-height: 230px;
  }

  .maintenance-actions {
    flex-direction: column;
  }

  .maintenance-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .brand {
    width: 144px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    right: 36px;
  }

  .hero-banner__inner h1,
  .internal-hero__content h1,
  .about-copy h2,
  .section-heading h2,
  .cta-panel h2,
  .form-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .form-layout--contact .form-copy h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 0.95;
  }

  .services-section .service-card,
  .maintenance-card,
  .insight-card,
  .article-highlight,
  .article-checklist,
  .article-source,
  .article-sidebar__block,
  .article-steps div,
  .blog-card__body,
  .article-band,
  .article-chart,
  .article-metric,
  .article-split article,
  .project-group,
  .project-card,
  .projects-intro-list div,
  .form-shell,
  .cta-panel,
  .timeline-item {
    padding: 1.2rem 1rem 1.25rem;
  }

  .projects-intro-copy h2,
  .project-group__header h2,
  .insight-copy h2,
  .blog-index-hero__copy h1,
  .blog-list-heading h2,
  .blog-article > h2 {
    font-size: 1.78rem;
  }

  .blog-index-hero__copy {
    padding: 3rem 0 1.5rem;
  }

  .blog-index-hero__media {
    min-height: 260px;
  }

  .blog-card--featured .blog-card__body h3 {
    font-size: 1.35rem;
  }

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

  .whatsapp-float {
    right: 10px;
    bottom: 10px;
  }
}
