/* Team banner section: .team-banner*, .banner.
   Carved from design/style.css (concept approved 23 Oct 2026) in source order; see build/carve/LEDGER.md. */

/* --- Team banner under the numbers (after the client's Framer v2): Sebastian, Yousef and Ruben,
   a still stitched from the closing pan of media/Shortform 3.mp4, with "BEDRI" from the video itself.
   The image is built so the word sits exactly in the middle, so it stays centred at every crop --- */
.banner { padding: clamp(.5rem, 2vw, 1.5rem) 0 0; overflow-x: clip; }
/* The banner straddles the edge into the light section below: a full-width strip in the light section's grey
   (#F1F2F4, the .surface-light --bg) is painted behind the lower half of the card */
.banner .wrap { position: relative; }
.banner .wrap::before { content: ""; position: absolute; z-index: 0; top: 47%; bottom: 0; left: calc(50% - 50vw - 2px); right: calc(50% - 50vw - 2px); background: #F1F2F4; }
.team-banner { z-index: 1; }
.team-banner { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.15 / 1; border-radius: clamp(18px, 2vw, 24px); background: var(--surface); }
.team-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.team-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 32, .1) 0%, rgba(10, 16, 32, .15) 45%, rgba(10, 16, 32, .7) 75%, rgba(10, 16, 32, .92) 100%); }
.team-banner-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2vw, 1.5rem); padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.team-banner-title {
  margin: 0; max-width: 24ch; color: #FFFFFF; text-wrap: balance;
  font-family: var(--font-display); font-weight: var(--display-wght); letter-spacing: var(--display-track);
  font-size: clamp(1.7rem, 1rem + 2.3vw, 3rem); line-height: 1.08;
}
.team-banner .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #FFFFFF; background: rgba(10, 16, 32, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.team-banner .btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(10, 16, 32, .5); }
/* Phones: a square crop is the narrowest that still holds the whole word, so the heading moves under the picture */
@media (max-width: 700px) {
  .team-banner { aspect-ratio: auto; display: flex; flex-direction: column; background: #0A1020; }
  .team-banner img { position: relative; inset: auto; height: auto; aspect-ratio: var(--team-banner-phone-ratio, 1 / 1); }
  /* With its own phone file (the block's imagePhoneId) the picture is that file's width:height, which render.php puts
     on the <picture>: no square, which held only 2½ of the four on the sofa (Jannik, 23 Nov). The <picture> itself
     drops out of the layout, so the <img> stays the column's first item */
  .team-banner picture { display: contents; }
  .team-banner::after { background: linear-gradient(180deg, rgba(10, 16, 32, .08) 0%, rgba(10, 16, 32, .1) 38%, rgba(10, 16, 32, .8) 56%, #0A1020 66%); }
  .team-banner-copy { position: relative; margin-top: -3.5rem; padding-top: 0; }
  .banner .wrap::before { top: 38%; }
}
/* Tablets: at 2.15:1 the card was too short and the heading sat on the "BEDRI" letters (Jannik, 6 Nov). A fixed
   height, a little more than 1024px gets, so the copy hangs clear below the word: the picture (1.95:1) is then cropped
   at the sides, never top or bottom, so the word stays at its own height in the middle. A height, not a min-height:
   with the aspect ratio a min-height would widen the card */
@media (min-width: 701px) and (max-width: 1023px) {
  .team-banner { aspect-ratio: auto; height: 460px; }
}
