/* Five internal heroes: one capped proportional canvas and explicit mobile layout. */
.page-hero {
  --ph-title-size: min(4.8vw, 98.3px);
  --ph-focal-x: 50%;
  --ph-focal-y: 50%;
  width: min(88.8889vw, 1820.445px);
  height: auto;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(40px, 4vw, 82px) 0;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: min(3.5vw, 71.68px);
  overflow: visible;
}
.page-hero::before, .page-hero::after { content: none; }
.page-hero > img {
  position: static;
  order: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--ph-focal-x) var(--ph-focal-y);
  border: 5px solid #e5f3f2;
  border-radius: min(5vw, 102px) 12px min(5vw, 102px) 12px;
  box-shadow: 7px 7px 0 var(--blue);
  transform: none;
}
.page-hero .shell {
  order: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
}
.page-hero .shell > * { width: 100%; max-width: 100%; }
.page-hero .shell > h1 {
  margin-bottom: clamp(20px, 2vw, 36px);
  font-size: var(--ph-title-size);
  line-height: 1.08;
}
.page-hero .shell > p:last-child {
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  line-height: 1.65;
}
.page-hero-line { display: block; white-space: nowrap; }
.page-hero--products { --ph-title-size: min(4.7vw, 96.256px); --ph-focal-y: 44%; }
.page-hero--lithium { --ph-title-size: min(4.6vw, 94.208px); --ph-focal-x: 54%; --ph-focal-y: 48%; }
.page-hero--contact { --ph-title-size: min(4.4vw, 90.112px); --ph-focal-y: 45%; }

@media (max-width: 820px) {
  .page-hero {
    width: var(--shell);
    padding: 24px 0 48px;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .page-hero > img {
    order: 0;
    position: static;
    width: calc(100% - 7px);
    height: auto;
    border-radius: 42px 10px 42px 10px;
  }
  .page-hero .shell { padding: 0; }
  /* Same specificity as desktop: these mobile dimensions must win. */
  .page-hero .shell > h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 4rem);
    margin-bottom: 22px;
  }
  .page-hero .shell > p:last-child { font-size: 1.08rem; }
}
