/* About (/ueber-uns) — Kakadu about template (C07–C12, C17, C19). */

/* ---------- C08 hero photo bento: portrait | 2 squares over 1 wide ---------- */
.ab-hero-bento {
  margin-top: 120px; display: grid; gap: var(--gap); aspect-ratio: 1185 / 691;
  grid-template-columns: minmax(0, 474fr) minmax(0, 336fr) minmax(0, 336fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas: "p a b" "p w w";
}
.ab-portrait { grid-area: p; } .ab-sq1 { grid-area: a; } .ab-sq2 { grid-area: b; } .ab-wide { grid-area: w; }

/* no one-word widow ("Europe") on the 1440-wide title at ≥1920 */
.hero-c h1 { text-wrap: balance; }

/* intro paragraph sits between the hero section and the partner band */
.ab-intro p { text-wrap: pretty; }

/* ---------- C09 partner ticker ---------- */
.ab-partners h2 { margin-bottom: 60px; }
/* logo SVGs carry only a viewBox: max-height:100% does not resolve inside the tile's auto grid row, so they
   rendered 92px tall in the 60px tile box and were cut at the tile edge. Give the tile a definite 1fr track
   and let the logo fill it with object-fit: cover (Kakadu C09), which trims only the empty viewBox margin. */
.ab-partners .ticker-logo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.ab-partners .ticker-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- C10 title + C11 feature bento ---------- */
.ab-forward-title { display: flex; flex-direction: column; align-items: flex-start; max-width: 948px; }
.ab-forward-title .line { display: block; }
.ab-bento { margin-top: 80px; display: flex; flex-direction: column; gap: var(--gap); }
/* columns stretch to the same height; the last tile of each column absorbs any difference so both stacks end flush */
.ab-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.ab-o3, .ab-o4 { flex-grow: 1; }
.ab-col { display: flex; flex-direction: column; gap: var(--gap); }
.ab-statement, .ab-photo, .ab-list { aspect-ratio: 1; }
/* C12a coral statement card (Kakadu value card 3: hover grows the gradient, kernel) */
.ab-statement p { max-width: 452px; overflow-wrap: break-word; }
/* C12b cream checklist card */
.ab-list h3 { max-width: 452px; overflow-wrap: break-word; }
.ab-list .checklist { max-width: 452px; margin-top: 40px; }

/* ---------- team teaser: C19 intro left, three C17 cards right ---------- */
.ab-team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); }
.ab-team-head { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 40px; padding-right: 20px; }
.ab-team-head .t-eyebrow { margin-bottom: 20px; }
.ab-team-head h2 { overflow-wrap: break-word; }
.ab-team-head > div { min-width: 0; }
.ab-team-head .btn { flex: none; }
.ab-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
/* no social chip in the teaser, so the C17 hover (well shrinks to reveal the chip) has nothing to reveal */
@media (hover: hover) and (min-width: 1280px) { .ab-people .person:hover .well { aspect-ratio: 342 / 429; } }

/* ---------- careers teaser (green value card, Kakadu value card 2: shadow, --ry 75.915 -> 93 %, ease-framer) ---------- */
.ab-careers-sec { padding-top: 0; }
.ab-careers {
  min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; gap: 80px;
  box-shadow: 0 1px 5px 1px color-mix(in srgb, var(--ink) 20%, transparent);
  transition: --ry 400ms var(--ease-framer);
}
@media (hover: hover) and (min-width: 1280px) { .ab-careers:hover { --ry: 93%; } }
/* the kernel teal focus ring disappears on the green/teal gradient */
.ab-careers :focus-visible { outline-color: var(--ink); }
.ab-careers-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.ab-careers-body h2 { overflow-wrap: break-word; }
.ab-careers-text { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; max-width: 593px; }

/* ---------- tablet ---------- */
@media (max-width: 1279.98px) {
  .ab-hero-bento { margin-top: 80px; }
  /* Kakadu tablet (about template @1024/768): photos stay square, the cream card hugs its content, the coral card
     stretches to keep both stacks flush, heading 32/35.2 */
  .ab-statement, .ab-list { aspect-ratio: auto; }
  .ab-o1 { flex-grow: 1; } .ab-o3 { flex-grow: 0; }
  .ab-statement .t-h4 { font-size: 32px; }
  .ab-team-grid { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .ab-team-head { flex-direction: row; align-items: flex-end; padding-right: 0; }
  .ab-careers { min-height: 400px; }
}

/* ---------- phone ---------- */
@media (max-width: 767.98px) {
  .ab-hero-bento {
    margin-top: 60px; aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none;
    grid-template-areas: "p p" "a b" "w w";
  }
  .ab-portrait { aspect-ratio: 335 / 301; } .ab-sq1, .ab-sq2 { aspect-ratio: 1; } .ab-wide { aspect-ratio: 335 / 158; }

  .ab-partners h2 { margin-bottom: 40px; }
  .ab-partners .ticker { margin-right: calc(-1 * var(--gutter)); }

  .ab-bento { margin-top: 40px; }
  /* one column, Kakadu order: coral card, photo, then the two lists */
  .ab-cols { display: flex; flex-direction: column; }
  .ab-col { display: contents; }
  .ab-o1 { order: 1; } .ab-o2 { order: 2; } .ab-o3 { order: 3; } .ab-o4 { order: 4; }
  .ab-statement, .ab-list { aspect-ratio: auto; }
  .ab-statement { padding: 40px 20px; }
  .ab-statement .t-h4 { font-size: 28px; line-height: 1.1; }

  .ab-team-grid { gap: 40px; }
  .ab-team-head { flex-direction: column; align-items: flex-start; gap: 20px; } /* button 20 under its title, 40 above the cards */
  .ab-people { grid-template-columns: minmax(0, 1fr); }
  /* compact horizontal cards (C18 proportions) so the teaser stays short on phones */
  .ab-people .person { flex-direction: row; }
  .ab-people .person .well { width: 40%; flex: none; aspect-ratio: 1; }
  .ab-people .person .info { padding: 10px 10px 10px 20px; }

  .ab-careers { min-height: 0; gap: 20px; } /* eyebrow -> title 20, like every eyebrow */
  .ab-careers-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ab-careers-text { gap: 40px; }
}
