/* Shared internal-page introduction, loaded after page-specific styles. */
.page-intro {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-intro .eyebrow { line-height: 18px; }
.page-intro h1 {
  margin: 16px 0 0;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 800;
}
.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 28px;
  min-height: 200px;
  align-items: start;
}
.page-intro-description {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  color: var(--muted);
}
.page-intro-aside { font-size: 19px; line-height: 1.5; color: var(--muted); }
.page-intro-aside .button { margin-top: 24px; }
.factory-overview { padding-top: 56px; padding-bottom: 56px; }
.factory-overview .factory-description { max-width: 880px; }
.address-panel address + p { margin-top: 20px; line-height: 1.5; }

/* One content edge for the home factory photo and the following document panel. */
.about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; min-height: 0; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.about-copy > .button { margin-top: 8px; }
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  align-self: center;
}
.about-photo img {
  position: absolute;
  width: 100%;
  height: auto;
  max-width: none;
  top: 50%;
  bottom: auto;
  left: 0;
  right: auto;
  transform: translateY(-62%);
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .page-intro h1 { font-size: 64px; }
  .page-intro-grid { gap: 40px; }
}
@media (max-width: 1023px) {
  .page-intro { padding: 40px 0; }
  .page-intro h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -.045em; min-height: 2.1em; }
  .page-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; margin-top: 24px; }
  .page-intro-description, .page-intro-aside { font-size: 19px; line-height: 1.55; }
  .page-intro-aside:empty { display: none; }
  .factory-overview { padding-top: 40px; padding-bottom: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-photo { aspect-ratio: 4 / 3; }
}

/* The factory introduction leads directly into the photographs. */
.factory-page .page-intro { padding-bottom: 32px; }
.factory-page .page-intro-grid { min-height: 0; }
.factory-page .page-intro-aside:empty { display: none; }
.factory-page .factory-gallery { height: auto; padding-top: 32px; }
.factory-page .gallery-grid { padding-top: 0; }

/* Gallery cards share a grid; photographs are cropped, never stretched. */
.factory-page .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 32px 24px;
}
.factory-page .gallery-grid figure {
  position: static;
  width: auto;
  margin: 0 !important;
}
.factory-page .gallery-grid .gallery-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
.factory-page .gallery-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.factory-page .factory-overview { padding-bottom: 56px; }
@media (max-width: 1023px) {
  .factory-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .factory-page .factory-overview { padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .factory-page .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Show the two original laboratory panels, excluding the third panel. */
.factory-page .gallery-laboratory img {
  width: auto;
  max-width: none;
  height: 100%;
  right: auto;
  object-position: left center;
}

.content-link { text-decoration: underline; text-underline-offset: .15em; }

/* Align desktop navigation with the lettering, rather than the logo's upper arc. */
@media (min-width: 1280px) {
  .header-main { gap: 24px; }
  .header-main nav { font-size: 18px; line-height: 24px; gap: 22px; align-items: center; }
  .header-main nav, .header-main .header-contact { transform: translateY(6px); }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .header-main { gap: 16px; }
  .header-main nav { gap: 18px; }
}

/* Fleet descriptions must wrap after copy changes at every viewport. */
.delivery-description { white-space: normal; }
