/* Company profile: opening, operating examples and team.
   Every value comes from fr-system.css. */
.fa-page [id] { scroll-margin-top: 24px; }

/* Team portraits. Without motion: a plain two-column list of every profile.
   With motion (fr-team.js): a vertical wheel that runs the full height of the red block.
   The portrait at the centre is large, the ones above and below flatten into strips
   and slide in and out at the block's edges. */
.fa-portrait-wall { position: relative; min-width: 0; }
.fa-wall-window { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.fa-stream-card { position: relative; display: grid; grid-template-columns: min(31%, 4.2rem) minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; }
.fa-stream-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--pz-r-sm); background: var(--pz-mat); }
.fa-stream-credit { display: grid; gap: 2px; line-height: 1.2; }
.fa-stream-credit strong { letter-spacing: -.02em; }
.fa-stream-credit small { font-size: var(--pz-fs-xs); }
.fa-cover:has(.is-flowing) { padding-top: 0; }
.fa-cover:has(.is-flowing) .pz-pagehead-grid { align-items: stretch; min-height: clamp(560px, 50vw, 760px); padding-bottom: 0; }
.fa-cover:has(.is-flowing) .pz-pagehead-copy { align-self: center; padding-block: calc(80px + clamp(40px, 5.5vw, 88px)) clamp(40px, 5.5vw, 88px); }
.fa-cover:has(.is-flowing) .pz-pagehead-aside { position: relative; }
.fa-portrait-wall.is-flowing { position: absolute; inset: 0; }
.fa-portrait-wall.is-flowing .fa-wall-window { position: absolute; inset: 0; display: block; padding-top: var(--pz-header); overflow: clip; }
.fa-portrait-wall.is-flowing .fa-stream-card { position: absolute; top: 0; left: 50%; display: block; overflow: hidden; width: min(100%, 360px); aspect-ratio: 1; border-radius: var(--pz-r-md); background: var(--pz-mat); transform-origin: 50% 0; will-change: transform, opacity; }
.fa-portrait-wall.is-flowing .fa-stream-card img { height: 100%; aspect-ratio: auto; border-radius: 0; object-position: center 30%; }
.fa-portrait-wall.is-flowing .fa-stream-credit { position: absolute; inset: auto 0 0; padding: 44px 16px 14px; background: var(--pz-scrim); color: var(--pz-white); opacity: var(--fa-focus, 0); }
.fa-portrait-wall.is-flowing .fa-stream-credit strong { font-size: var(--pz-fs-h4); }
.fa-stream-card:focus-visible { outline-offset: -4px; }
.fa-motion-toggle:not([hidden]) { position: absolute; right: 0; bottom: clamp(20px, 3vw, 40px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--pz-r-pill); background: var(--pz-backdrop); color: var(--pz-white); cursor: pointer; }
.fa-motion-toggle span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.fa-motion-toggle[data-paused="true"] span { width: 0; height: 0; margin-left: 2px; border: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }

/* How we work with founders: one card per field. With the script, the fields become a
   vertical list of tabs inside the card: tabs top left, text under them, screen on the right. */
.fa-examples { display: grid; gap: var(--pz-gap); }
.fa-example[inert] { visibility: hidden; }
.fa-example { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; overflow: hidden; border-radius: var(--pz-r-lg); background: var(--pz-paper); }
.fa-example-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 3vw, 48px); }
.fa-example-copy p { max-width: 44ch; margin-top: 8px; color: var(--pz-muted); }
.fa-example-case { margin-block: 24px; }
.fa-example figure { display: grid; align-content: center; padding: clamp(16px, 2.4vw, 40px); overflow: hidden; background: var(--pz-mat); }
.fa-example img { width: 100%; height: auto; max-height: 31rem; object-fit: contain; border-radius: var(--pz-r-sm); background: var(--pz-white); box-shadow: var(--pz-shadow); }
.fa-interactive .fa-examples { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 0; }
.fa-interactive .fa-example { grid-area: 1 / 1 / 3 / 3; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.fa-interactive .fa-example-copy { grid-area: 2 / 1; justify-content: flex-end; }
.fa-interactive .fa-example figure { grid-area: 1 / 2 / 3 / 3; }
.fa-example-controls:not([hidden]) { grid-area: 1 / 1; z-index: 1; display: grid; justify-items: start; align-self: start; margin: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0; border-left: 1px solid var(--pz-line-strong); }
.fa-example-tab { min-height: 40px; margin-left: -1px; padding: 6px 0 6px 18px; border: 0; border-left: 2px solid transparent; background: none; color: var(--pz-muted); font: inherit; font-weight: var(--pz-fw-semi); letter-spacing: -.01em; text-align: left; cursor: pointer; transition: color .15s ease-out, border-color .15s ease-out; }
.fa-example-tab:hover { color: var(--pz-ink); }
.fa-example-tab[aria-selected="true"] { border-left-color: var(--pz-red); color: var(--pz-ink); }
@supports not (grid-template-rows: subgrid) {
  /* Older browsers: the text leaves room for the four tabs above it */
  .fa-interactive .fa-example-copy { padding-top: calc(160px + 2 * clamp(24px, 3vw, 48px)); }
}

/* Team */
.fa-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(24px, 2.6vw, 36px) var(--pz-gap); list-style: none; padding: 0; }
.fa-team li { border-radius: var(--pz-r-md); }
.fa-team li:target { outline: 2px solid var(--pz-red); outline-offset: 6px; }
.fa-team figure { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 20px; }
.fa-team img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--pz-r-md); background: var(--pz-mat); }
.fa-team h3 { font-size: var(--pz-fs-h4); line-height: 1.3; letter-spacing: -.02em; }
.fa-team figcaption p { margin-top: 4px; line-height: 1.35; }
.fa-team small { display: block; margin-top: 2px; color: var(--pz-muted); font-size: var(--pz-fs-small); }
.fa-team-note { margin-top: clamp(28px, 3vw, 44px); color: var(--pz-muted); }
.fa-team-note a { color: var(--pz-ink); }

@media (prefers-reduced-motion: no-preference) {
  .fa-interactive .fa-example[aria-hidden="false"] figure img { animation: fa-example-in .33s ease-out; }
  @keyframes fa-example-in { from { opacity: .55; transform: translateY(4px); } }
}
@media (max-width: 899px) {
  .fa-example { grid-template-columns: minmax(0, 1fr); }
  .fa-interactive .fa-examples { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .fa-interactive .fa-example { grid-area: 1 / 1 / 4 / 2; }
  .fa-interactive .fa-example-copy { grid-area: 2 / 1; }
  .fa-interactive .fa-example figure { grid-area: 3 / 1; }
  .fa-portrait-wall { width: min(100%, 530px); }
}
@media (max-width: 699px) {
  /* Phones: the wheel sits under the text and runs down to the bottom edge of the red block */
  .fa-cover:has(.is-flowing) .pz-pagehead-grid { min-height: 0; }
  .fa-cover:has(.is-flowing) .pz-pagehead-copy { padding-bottom: 0; }
  .fa-portrait-wall.is-flowing { position: relative; inset: auto; width: 100%; height: clamp(340px, 96vw, 480px); }
  .fa-portrait-wall.is-flowing .fa-wall-window { padding-top: 0; -webkit-mask: linear-gradient(transparent, var(--pz-ink) 18%); mask: linear-gradient(transparent, var(--pz-ink) 18%); }
  .fa-motion-toggle:not([hidden]) { bottom: 20px; }
}
@media (min-width: 700px) and (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  /* Tablets keep the desktop header: text on the left, moving portraits on the right */
  .fa-cover .pz-pagehead-grid:has(> .pz-pagehead-aside) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fa-portrait-wall { width: 100%; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .fa-portrait-wall { width: 100%; }
}
@media print {
  .fa-portrait-wall.is-flowing { display: none; }
  .fa-cover:has(.is-flowing) .pz-pagehead-grid { min-height: 0; }
}
