/* Homepage art direction. Loaded after the existing responsive layout. */
body.pn-home {
  --home-paper: #f7f3ed;
  --home-rule: #dfd7cc;
  --home-ink: #251f1d;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
}

body.pn-home main > .hero {
  background: #fff !important;
  border-bottom: 1px solid var(--home-rule);
}

body.pn-home .hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr) !important;
  gap: clamp(28px, 4vw, 68px) !important;
  padding-block: clamp(36px, 6vw, 90px) !important;
  align-items: center;
}

body.pn-home .hero .hero-copy h1 {
  color: var(--home-ink);
  font-size: clamp(40px, 5.05vw, 80px) !important;
  line-height: 1 !important;
  letter-spacing: -.067em !important;
}

body.pn-home .hero .hero-photo {
  width: 100%;
  max-width: none;
  order: initial !important;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--home-rule) !important;
  border-radius: 6px !important;
  background: #fff;
}

body.pn-home .hero .hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  mix-blend-mode: normal;
}

body.pn-home .hero .hero-actions .hero-whatsapp {
  color: #fff !important;
  background: #168a46 !important;
  border: 1px solid #168a46 !important;
}

body.pn-home .hero .hero-actions .hero-whatsapp:hover {
  background: #11763b !important;
  border-color: #11763b !important;
}

body.pn-home #equipment {
  background: #fffdfa;
}

body.pn-home #equipment .equipment-category-grid .equipment-overview-card {
  border-radius: 6px;
  border-color: var(--home-rule);
  box-shadow: none;
}

body.pn-home #factory.factory-overview {
  background: var(--home-paper);
  border-block: 1px solid var(--home-rule);
  padding-block: clamp(44px, 6vw, 88px);
}

body.pn-home #factory .factory-overview-grid {
  gap: 10px;
}

body.pn-home #factory .factory-overview-tile,
body.pn-home #factory .factory-overview-tile img {
  height: 100%;
  min-height: 0;
  border-radius: 4px;
}

body.pn-home #factory .factory-overview-tile img {
  object-fit: cover;
}

body.pn-home #factory .factory-overview-tile {
  aspect-ratio: 3 / 2;
}

body.pn-home main a:focus-visible {
  outline: 2px solid #9d1f26;
  outline-offset: 3px;
}

@media (min-width: 1000px) {
  body.pn-home #factory .factory-overview-grid {
    grid-template-columns: 2fr 1fr 1fr !important;
  }

  body.pn-home #factory .factory-overview-lead {
    grid-row: span 2;
    aspect-ratio: auto;
  }

  body.pn-home #factory .factory-overview-tile:last-child {
    grid-column: 2 / -1;
    aspect-ratio: 3 / 1;
  }
}

@media (max-width: 767px) {
  body.pn-home .hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  body.pn-home .hero .hero-copy h1 {
    font-size: clamp(40px, 8.4vw, 72px) !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.pn-home .hero-copy {
    animation: paras-home-enter 440ms var(--home-ease) both;
  }

  body.pn-home .hero-photo {
    animation: paras-home-enter 500ms 45ms var(--home-ease) both;
  }

  body.pn-home #equipment .equipment-overview-card,
  body.pn-home #equipment .equipment-overview-media img {
    transition: transform 160ms var(--home-ease);
  }

  @media (hover: hover) {
    body.pn-home #equipment .equipment-overview-card:hover {
      transform: translateY(-2px);
    }

    body.pn-home #equipment .equipment-overview-card:hover img {
      transform: scale(1.025);
    }
  }
}

@keyframes paras-home-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
