/* Shared editorial layout: fluid media, consistent project frames, and roomy narrow screens. */
.hero-home {
  row-gap: 0;
}
.home-media-tile {
  height: clamp(540px, 48vw, 690px);
  min-height: 0;
  align-self: start;
}
.home-service-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.home-service-tile > p {
  flex: 1;
}
.home-service-link {
  align-self: flex-start;
}
.page-hero-board {
  row-gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.page-media-tile {
  height: clamp(480px, 43vw, 610px);
  min-height: 0;
  align-self: start;
}
.page-photo-tile {
  height: auto;
  min-height: 0;
  max-height: 460px;
  aspect-ratio: 4 / 3;
  align-self: start;
}
body[data-page=contact] .page-media-tile img {
  object-position: 50% 60%;
}
.work-project-image {
  aspect-ratio: 3 / 2;
}
.work-project-image img {
  object-position: center;
}
.work-project:nth-child(3) .work-project-image img {
  object-position: 50% 35%;
}
.work-project-meta {
  line-height: 1.6;
}
.work-project h3 {
  overflow-wrap: anywhere;
}
.footer-links a {
  white-space: nowrap;
}

@media (min-width: 701px) and (max-width: 1050px) {
  .work-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
  .work-project-image {
    aspect-ratio: 3 / 2;
  }
  .page-case-tile h2 {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .hero-home,
  .page-hero-board {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 36px;
  }
  .hero-home {
    padding-bottom: 48px;
  }
  .home-title-tile,
  .page-title-tile,
  html[lang^=zh] .home-title-tile,
  html[lang^=zh] .page-title-tile {
    order: 1;
    padding-top: 0;
  }
  .hero-home h1 {
    font-size: clamp(3.8rem, 9.6vw, 6rem);
  }
  html[lang^=zh] .hero-home h1 {
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    line-height: 1.4;
  }
  .page-title-tile h1 {
    font-size: clamp(3.6rem, 8vw, 5.5rem);
  }
  html[lang^=zh] .page-title-tile h1 {
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  }
  .home-copy-cta-tile,
  .page-copy-tile,
  html[lang^=zh] .home-copy-cta-tile {
    order: 2;
    margin-top: 24px;
    padding-bottom: 0;
    max-width: 640px;
    align-self: stretch;
  }
  .home-media-tile,
  .page-media-tile {
    order: 3;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 420px;
    aspect-ratio: 16 / 9;
    margin: 32px 0 0;
  }
  .home-media-tile img {
    object-position: 50% 30%;
  }
  .contact-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .contact-form-tile,
  .contact-side-tile {
    grid-column: auto;
    grid-row: auto;
  }
  .contact-form-tile {
    margin-bottom: 8px;
  }
  .contact-side-tile {
    margin-bottom: 0;
  }
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer-brand {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 24px;
    max-width: 520px;
  }
  .footer-brand img {
    width: 88px;
    margin: 0;
  }
  .footer-links {
    max-width: none;
    margin-top: 0;
    gap: 8px 24px;
  }
}

@media (max-width: 700px) {
  .hero-home,
  .page-hero-board {
    padding-top: 30px;
  }
  .hero-home h1 {
    font-size: clamp(3.4rem, 14vw, 5.3rem);
  }
  html[lang^=zh] .hero-home h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }
  .page-title-tile h1 {
    font-size: clamp(3.2rem, 13vw, 4.5rem);
  }
  html[lang^=zh] .page-title-tile h1 {
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }
  .home-media-tile,
  .page-media-tile {
    aspect-ratio: 4 / 3;
    max-height: 360px;
    margin-top: 28px;
  }
  .audience-photo {
    aspect-ratio: 3 / 2;
  }
  .page-photo-tile {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .work-project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .work-project-image {
    aspect-ratio: 3 / 2;
  }
  .work-project-visit {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .footer-brand {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 20px;
  }
  .footer-brand img {
    width: 78px;
  }
  .footer-links {
    gap: 6px 20px;
  }
}
