@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
  }
  .mobile-menu {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: var(--cream-light);
    color: var(--brown);
    transition:
      opacity 0.35s,
      visibility 0.35s;
  }
  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
  }
  .mobile-menu nav {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
  }
  .mobile-menu nav > a:not(.button) {
    font: 300 clamp(2.4rem, 8vw, 4.5rem)/1 var(--serif);
  }
  .menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: 0;
    background: transparent;
    color: var(--brown);
    font-size: 2.5rem;
    cursor: pointer;
  }
  .hero {
    min-height: 90svh;
  }
  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90svh;
    padding-top: 76px;
  }
  .hero-video iframe {
    width: 160vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
    top:38%; 
  }
  .service-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .service-tile,
  .service-feature {
    min-height: 300px;
    grid-row: auto;
  }
  .service-feature {
    grid-column: span 2;
  }
  .split-heading {
    align-items: start;
  }
  .split-heading > p {
    text-align: left;
  }
  .service-feature > span {
    font-size: 3.5rem;
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 40px);
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 90px;
  }
  .hero-logo {
    flex: 0 0 auto;
    align-self: flex-end;
    /* width: clamp(120px, 34vw, 170px); */
    margin: -1rem 0 1.5rem;
    order:-1;
  }
  .header-inner {
    min-height: 70px;
  }
  .brand img {
    width: 80px;
  }
  .hero-copy {
    padding-bottom: 3rem;
  }
  .hero-actions {
    gap: 0.75rem;
  }
  .button {
    padding: 0.78rem 1.2rem;
    font-size: 0.78rem;
  }
  .scroll-indicator {
    bottom: 1.25rem;
  }
  .split-heading {
    display: block;
    margin-bottom: 2.5rem;
  }
  .split-heading > p {
    margin-top: 1.5rem;
  }
  .service-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-tile,
  .service-feature {
    grid-column: auto;
    min-height: 330px;
  }
  .service-tile > span {
    font-size: 3.3rem;
  }
  .service-tile h3,
  .service-feature h3 {
    font-size: 1.65rem;
  }
}
@media (max-width: 900px) {
  .philosophy-grid,
  .about-grid,
  .detail-block,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .philosophy figure {
    min-height: 460px;
  }
  .philosophy-copy {
    padding: 5rem 48px;
  }
  .about-image {
    margin: auto;
  }
  .about-copy {
    max-width: 620px;
    margin: auto;
  }
  .detail-block.reverse figure {
    order: 0;
  }
  .detail-block > div {
    padding: 4.5rem 48px;
  }
  .team-grid {
     grid-auto-flow: column;
  }
  .testimonial-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }
  .contact-info {
    max-width: 520px;
  }
  .contact-form {
    max-width: 650px;
  }
  .cta-copy {
    width: min(calc(100% - 48px), var(--container));
  }
}
@media (max-width: 560px) {
  .philosophy figure {
    min-height: 380px;
  }
  .philosophy-copy {
    padding: 4rem 20px;
  }
  .about-image figcaption {
    right: -0.5rem;
  }
  .detail-block > div {
    padding: 3.5rem 20px;
  }
  .team-grid {
     grid-auto-flow: row;
  }
  .team-grid article {
    max-width: 390px;
  }
  .testimonial-card {
    flex-basis: 100%;
    margin-right: 0;
  }
  .team-heading > p {
    margin-top: 1.5rem;
  }
  .cta-copy {
    width: calc(100% - 40px);
  }
  .cta-copy > div {
    flex-direction: column;
    align-items: center;
  }
  .contact-grid {
    gap: 3rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .details-heading {
    padding-bottom: 3rem;
  }
}
