/* Homepage contacts and orbit controls. The portfolio header stays independent. */
.agency-home .site-header > .agency-socials {
  position: absolute;
  top: 20px;
  right: 4%;
  width: max-content;
  min-width: 0;
  color: #292929;
  text-align: left;
}

.agency-home .agency-socials h2 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
}

.agency-home .agency-social-items {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.agency-home .agency-social-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
  white-space: nowrap;
}

.agency-home .agency-social-item > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agency-home .agency-social-item small {
  display: block;
  margin-top: 1px;
  color: #696969;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.agency-home .hero-art-footer {
  position: absolute;
  width: min(calc(100vw - 88px), 1712px);
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  text-align: left;
}

.agency-home .hero-art-footer .button {
  min-height: 48px;
  min-width: 0;
  padding: 13px 22px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.agency-home .hero-art-footer .hero-quote {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.agency-home .hero-art-footer .orbit-pause {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 82px;
}

.agency-home .hero-art-footer .hero-cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (max-width: 1400px) {
  /* Give contacts their own row before they approach the centered navigation. */
  .agency-home .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 24px;
    height: auto;
    min-height: 96px;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .agency-home .site-header > .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .agency-home .site-header > .desktop-nav {
    position: relative;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    transform: none;
  }

  .agency-home .site-header > .agency-socials {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    width: max-content;
    max-width: 100%;
  }

  .agency-home .site-header > .mobile-nav {
    top: calc(100% + 8px);
  }
}

@media (max-width: 960px) {
  .agency-home .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
  }

  .agency-home .site-header > .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  /* Only the external margin changes: orbit JS reads the same stage dimensions. */
  .agency-home .hero-art-stage {
    margin-bottom: 128px;
  }

  .agency-home .hero-art-footer {
    top: 100%;
    bottom: auto;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding-top: 4px;
  }

  .agency-home .hero-art-footer .button {
    width: 100%;
    align-self: stretch;
    padding: 12px 18px;
    white-space: normal;
  }

  .agency-home .hero-art-footer .hero-quote {
    grid-column: 1;
  }

  .agency-home .hero-art-footer .hero-cta {
    grid-column: 2;
  }

  .agency-home .hero-art-footer .orbit-pause {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .agency-home .site-header {
    row-gap: 12px;
    padding-top: 16px;
    padding-bottom: 18px;
  }
}

@media (max-width: 520px) {
  /* All three labels stay on one row, including at 320px. */
  .agency-home .site-header > .agency-socials {
    width: min(100%, 340px);
  }

  .agency-home .agency-social-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .agency-home .agency-social-item {
    flex-direction: column;
    gap: 4px;
    white-space: normal;
  }

  .agency-home .agency-social-item small {
    white-space: nowrap;
  }

  .agency-home .hero-art-footer {
    column-gap: 10px;
  }

  .agency-home .hero-art-footer .button {
    padding: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  /* The existing reduced-motion rule hides Pause; no empty row is reserved. */
  .agency-home .hero-art-stage {
    margin-bottom: 80px;
  }
}
