/* Who it's for, as built on PR #3 (codex/oem-messaging-preserve-experience, uncommitted there on
   2026-11-09): its page rules from PR #3's styles.css. Everything else on the page is main's styles.css. */

/* Who page. The opening fills the first screen: the title and tabs above, what you bring
   and what you get at the bottom of the left half, the photograph the full height on the right. */

.who-hero {
  min-height: calc(100svh - var(--bar-h));
  grid-template-rows: auto auto auto minmax(14rem, 1fr);
}

.who-hero .who-title {
  grid-row: 1;
  font-size: clamp(2.15rem, 0.9rem + 4vw, 4.75rem);
}

:root:lang(es) .who-hero .who-title {
  font-size: clamp(2.15rem, 0.55rem + 3.4vw, 3.75rem);
}

.who-hero .who-tabs {
  grid-row: 2;
}

.who-hero .who-panels {
  grid-row: 3;
}

.who-hero .who-copy {
  display: grid;
  gap: 1.15rem;
  align-content: end;
  padding: 0 var(--gutter) clamp(1.75rem, 4vw, 3rem);
}

.who-hero .who-bring,
.who-hero .who-got {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.who-hero .who-copy p {
  max-width: 34em;
}

.who-hero .who-light {
  display: block;
  grid-row: 4;
  min-height: 16rem;
  background-color: var(--ink);
  background-image: url("../delivery/equipment-manufacturers.jpg");
  background-position: center 30%;
  background-size: cover;
}

.who-hero:has(#tab-si[aria-selected="true"]) .who-light {
  background-image: url("../delivery/system-integrators.jpg");
}

.who-hero:has(#tab-op[aria-selected="true"]) .who-light {
  background-image: url("../delivery/plant-vessel-teams.jpg");
}

.who-hero.who:has(.who-tabs:not([hidden])) .who-light::after {
  content: none;
}

.who-close {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--r);
  background: var(--surface);
}

.who-close h2 {
  font-size: clamp(1.7rem, 1.15rem + 1.1vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.who-close p {
  max-width: 62ch;
}

@media (min-width: 40rem) {
  .who-hero {
    grid-template-rows: auto auto minmax(8rem, 1fr);
  }

  .who-hero .who-title,
  .who-hero .who-tabs {
    grid-column: 1;
  }

  .who-hero .who-light {
    grid-row: 1 / -1;
    min-height: 0;
  }

  .who-hero .who-bring,
  .who-hero .who-got {
    grid-column: auto;
    grid-row: auto;
  }

  .who-tabs:not([hidden]) ~ .who-panels .who-copy {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    padding-left: max(var(--gutter), (100vw - var(--page)) / 2);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }
}
