/* Shared responsive layout refinements */
html {
  scroll-padding-top: 90px;
}
body {
  min-width: 0;
  overflow-x: clip;
}
main,
section,
header,
footer {
  min-width: 0;
}
img,
video,
iframe {
  max-width: 100%;
}
.wrap {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}
.header .inner {
  width: min(1360px, calc(100% - 64px));
}
.page-hero-grid > *,
.about-hero > *,
.wide-copy > *,
.contact-grid > *,
.case-grid > *,
.footer-main > *,
.section-head > *,
.projects-grid > *,
.services-list > * {
  min-width: 0;
}
.footer-main > div:last-child {
  grid-column: auto;
}
.page-hero-copy h1,
.about-hero h1,
.case-header h1,
.section-head h2,
.cta-inner h2 {
  overflow-wrap: break-word;
}
.about-hero .photo {
  position: relative;
  overflow: hidden;
}
.about-hero .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.directory-controls {
  align-items: center;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header .inner {
    width: calc(100% - 48px);
    height: 80px;
  }
  .nav {
    top: 80px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .footer-main > div:last-child {
    grid-column: auto;
  }
  .page-hero-grid {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header .inner {
    width: calc(100% - 40px);
  }
  .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero-copy {
    padding: 44px 0;
  }
  .page-hero-image {
    min-height: 0;
    aspect-ratio: 16/9;
  }
  .about-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .about-hero .copy {
    padding: 48px 20px;
  }
  .about-hero .photo {
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 16/10;
  }
  .about-hero .photo img {
    position: absolute;
    inset: 0;
  }
  .wide-copy,
  .contact-grid,
  .case-grid,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .footer-main > div:first-child,
  .footer-main > div:last-child {
    grid-column: 1/-1;
  }
  .section,
  .category-projects,
  .client-directory,
  .leadership,
  .case-content,
  .related {
    padding-block: 52px;
  }
  .client-page-hero {
    padding: 52px 0 46px;
  }
  .case-header {
    padding: 42px 0;
  }
  .case-gallery {
    margin-top: 32px;
  }
  .cta-section {
    padding: 48px 0;
  }
  .cta-inner .actions {
    justify-self: start;
  }
  .section-head h2 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.15;
  }
  .directory-controls {
    display: flex;
  }
  .search {
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .simple-hero {
    height: auto;
    min-height: 0;
  }
  .simple-hero-copy {
    min-height: clamp(440px, 75svh, 600px);
    padding-block: 64px 75px;
  }
  .simple-hero h1,
  .page-hero-copy h1,
  .about-hero .copy h1,
  .case-header h1 {
    font-size: clamp(34px, 9vw, 43px);
  }
  .simple-hero h1 br,
  .simple-contact h2 br {
    display: none;
  }
  .about-preview-image {
    min-height: 0;
    aspect-ratio: 4/3;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .footer-bottom {
    gap: 10px;
    line-height: 1.6;
  }
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-hero-img {
    height: auto;
    aspect-ratio: 16/10;
  }
  .case-gallery {
    grid-template-columns: 1fr;
  }
  .enquiry-panel,
  .directory-controls {
    min-width: 0;
  }
  .contact-block a,
  .footer-links a {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .wrap,
  .header .inner {
    width: calc(100% - 32px);
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .simple-hero h1 {
    font-size: 34px;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-main > div:first-child,
  .footer-main > div:last-child {
    grid-column: auto;
  }
}
