/* Keep the homepage headline, actions and project photo together on phones. */
@media (max-width: 680px) {
  #top.hero .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 24px 54px;
  }

  #top.hero .hero-copy {
    display: contents;
  }

  #top.hero .hero-copy > .eyebrow {
    order: 0;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.6875rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  #top.hero .hero-copy > .eyebrow > span {
    width: 18px;
    flex: none;
  }

  #top.hero h1 {
    order: 1;
    max-width: 100%;
    font-size: clamp(2.625rem, 12.5vw, 4.25rem);
    line-height: 0.94;
  }

  #top.hero h1 em::after {
    height: 5px;
    bottom: -6px;
  }

  #top.hero .hero-actions {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 24px;
  }

  #top.hero .hero-actions .button {
    min-height: 48px;
    gap: 10px;
    padding: 12px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.055em;
  }

  #top.hero .hero-actions .action-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  #top.hero .hero-actions .text-link {
    min-height: 44px;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.035em;
  }

  #top.hero .hero-visual {
    order: 3;
    min-height: 0;
    height: clamp(210px, 35svh, 360px);
    margin-top: 26px;
    flex: none;
  }

  #top.hero .hero-image-frame {
    inset: 0;
    clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  }

  #top.hero .hero-image-frame img {
    object-position: 50% 48%;
  }

  #top.hero .paint-mark {
    width: 22px;
    left: -8px;
    top: -8px;
    bottom: 14px;
  }

  #top.hero .hero-lead {
    order: 4;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.65;
  }

  #top.hero .trust-row {
    order: 5;
    margin-top: 22px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  #top.hero .hero-visual {
    height: clamp(200px, 32svh, 237px);
  }
}

@media (max-width: 359px) {
  #top.hero .hero-actions {
    gap: 12px;
  }

  #top.hero .hero-actions .button {
    gap: 8px;
    padding-inline: 10px;
  }

  #top.hero .hero-actions .text-link {
    width: 96px;
    line-height: 1.3;
  }
}
