/* Retrato em destaque, vizinhas em segundo plano e navegação manual. */
#fundador .altrena-team {
  --portrait-width:450px;
  --portrait-height:650px;
  --portrait-step:570px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  position:relative;
  z-index:2;
  isolation:isolate;
  width:100vw;
  max-width:none;
  margin:0 calc(50% - 50vw);
  padding:96px 0 104px;
  border:0;
  border-radius:0;
  background:#08090b;
  color:#F7F5F8;
  overflow:hidden;
  text-align:center;
}
#fundador .team-heading {grid-area:1/1;position:relative;z-index:4;margin:0 auto 68px;padding:0 24px;max-width:830px}
#fundador .team-heading .eyebrow {display:block;width:auto;min-height:0;margin:0 0 24px;padding:0;border:0;border-radius:0;background:none;color:#d5a5a9;font-size:12px;line-height:1.4;font-weight:500;letter-spacing:.18em}
#fundador .team-heading h2 {max-width:760px;margin:0 auto;color:#F7F5F8;font-size:clamp(40px,4.4vw,64px);font-weight:400;line-height:1.1;letter-spacing:-.045em;text-align:center;text-wrap:balance}
#fundador .team-stage {grid-area:2/1;position:relative;height:var(--portrait-height);width:100%;overflow:hidden;touch-action:pan-y;user-select:none;cursor:grab}
#fundador .team-stage.is-dragging {cursor:grabbing}
#fundador .team-portrait {position:absolute;top:0;left:50%;width:var(--portrait-width);height:var(--portrait-height);margin:0;border-radius:30px;overflow:hidden;background:#120B16;transform:translateX(-50%);transition:transform 500ms cubic-bezier(.25,.46,.45,.94),filter 500ms ease;will-change:transform;filter:grayscale(1) brightness(.13);z-index:1}
#fundador .team-portrait.is-active {z-index:3;transform:translateX(-50%) scale(1);filter:none}
#fundador .team-portrait.is-previous {transform:translateX(calc(-50% - var(--portrait-step))) scale(.84)}
#fundador .team-portrait.is-next {transform:translateX(calc(-50% + var(--portrait-step))) scale(.84)}
#fundador .team-photo {display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%;user-select:none;-webkit-user-drag:none}
#fundador .team-photo-status {position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#120B16;color:#DED6E0;font-size:14px;letter-spacing:0;line-height:1.5;text-align:center}
#fundador .team-portrait.is-loaded .team-photo-status {display:none}
#fundador .team-portrait.is-error .team-photo {visibility:hidden}
#fundador .team-profiles {grid-area:3/1;position:relative;z-index:4;display:grid;align-items:start;max-width:650px;min-height:232px;margin:32px auto 0;padding:0 24px;pointer-events:none}
#fundador .team-profile {grid-area:1/1;visibility:hidden;opacity:0;transition:opacity 220ms ease}
#fundador .team-profile[hidden] {display:block;visibility:hidden;opacity:0}
#fundador .team-profile:not([hidden]) {visibility:visible;opacity:1}
#fundador .team-profile h3 {margin:0 0 18px;color:#F7F5F8;font-size:48px;font-weight:400;line-height:1.1;letter-spacing:-.045em}
#fundador .team-profile p {max-width:none;margin:0;color:#c7c8cc;font-size:16px;font-weight:400;line-height:1.7;text-wrap:pretty}
#fundador .team-controls {grid-area:4/1;position:relative;z-index:4;display:flex;align-items:center;justify-content:center;gap:22px;margin:28px auto 0;width:max-content;max-width:calc(100% - 48px)}
#fundador .team-controls button {display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0;padding:0;border:1px solid #96565d;border-radius:50%;background:#5C1041;color:#F7F5F8;cursor:pointer;transition:background 180ms ease,transform 180ms ease}
#fundador .team-controls button:disabled {opacity:.4;cursor:default}
#fundador .team-controls button:focus-visible {outline:2px solid #F7F5F8;outline-offset:5px}
#fundador .altrena-team:focus-visible {outline:none}
#fundador .altrena-team:focus-visible .team-controls {outline:2px solid #F7F5F8;outline-offset:7px;border-radius:40px}
#fundador .team-counter {min-width:62px;color:#b9b7bd;font-size:12px;font-weight:400;line-height:1;letter-spacing:.12em;font-variant-numeric:tabular-nums}
#fundador .team-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#fundador .altrena-team.is-empty .team-stage {display:none}
#fundador .altrena-team.is-empty .team-profiles {display:block;min-height:0}
#fundador .altrena-team.is-empty .team-profile {margin:0 auto 36px}
#fundador .altrena-team.is-empty .team-controls {display:none}
@media(min-width:1200px) {
  #fundador .altrena-team {--portrait-width:336px;--portrait-height:490px;--portrait-step:430px;padding:80px 0}
  #fundador .team-stage {grid-area:1/1}
  #fundador .team-heading {grid-area:1/1;align-self:start;justify-self:start;width:calc(50% - 286px);max-width:340px;margin:16px 0 0 max(7vw,80px);padding:0;text-align:left}
  #fundador .team-heading .eyebrow {margin-bottom:24px}
  #fundador .team-heading h2 {font-size:50px;line-height:1.1;text-align:left;text-wrap:pretty}
  #fundador .team-profiles {grid-area:1/1;align-self:center;justify-self:start;position:relative;width:calc(50% - 310px);max-width:330px;min-height:0;margin:0 0 0 calc(50% + 222px);padding:0;text-align:left}
  #fundador .team-profile h3 {font-size:44px}
  #fundador .team-profile p {font-size:15px;line-height:1.75}
  #fundador .team-controls {grid-area:2/1;margin-top:32px}
}
@media(max-width:1199px) {
  #fundador .altrena-team {--portrait-step:calc(50vw - 50px);padding-top:80px;padding-bottom:88px}
  #fundador .team-heading {margin-bottom:52px}
  #fundador .team-profiles {min-height:222px}
}
@media(max-width:720px) {
  #fundador .altrena-team {--portrait-width:74vw;--portrait-height:calc(74vw * 1.444444);--portrait-step:70vw;padding:64px 0 64px}
  #fundador .team-heading {max-width:480px;margin-bottom:36px;padding:0 24px}
  #fundador .team-heading .eyebrow {margin-bottom:20px;font-size:11px}
  #fundador .team-heading h2 {font-size:clamp(30px,8.7vw,42px);line-height:1.13;letter-spacing:-.04em}
  #fundador .team-portrait {border-radius:22px}
  #fundador .team-portrait.is-previous,#fundador .team-portrait.is-next {filter:grayscale(1) brightness(.23)}
  #fundador .team-profiles {min-height:0;margin-top:28px;padding:0 27px}
  #fundador .team-profile h3 {font-size:36px;margin-bottom:18px}
  #fundador .team-profile p {font-size:15px;line-height:1.65}
  #fundador .team-controls {margin-top:24px;gap:20px}
}
@media(hover:hover) {
  #fundador .team-controls button:hover {background:#85313a;transform:translateY(-2px)}
}
@media(prefers-reduced-motion:reduce) {
  #fundador .team-portrait,#fundador .team-profile,#fundador .team-controls button {transition:none}
  #fundador .team-controls button:hover {transform:none}
}

#fundador .team-empty-message {margin:0;color:#c7c8cc;font-size:16px;line-height:1.7}

/* O palco continua nos vãos; máscaras locais mantêm a leitura sobre a cena. */
html[data-palco] #fundador .altrena-team {background:transparent}
#fundador .team-heading,#fundador .team-profiles {z-index:auto;isolation:auto}
#fundador .team-heading .eyebrow,#fundador .team-heading h2,#fundador .team-profile {position:relative;z-index:4}
#fundador .team-controls {isolation:isolate}
#fundador .team-heading::before,#fundador .team-profiles::before,#fundador .team-controls::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:-10px;
  border-radius:24px;
  background:#120B16;
  box-shadow:0 0 32px 24px #120B16;
  pointer-events:none;
}
#fundador .team-controls::before {z-index:-1;inset:-3px;border-radius:40px;box-shadow:0 0 20px 12px #120B16}
@media(max-width:720px) {
  #fundador .team-heading::before,#fundador .team-profiles::before {inset:-8px 16px;box-shadow:0 0 26px 18px #120B16}
}

/* Sem movimento, o cabeçalho do fundador acompanha a rolagem e sai antes da equipe. */
@media(prefers-reduced-motion:reduce) {
  html[data-palco] main #fundador .section-wrap > .section-heading.interludio {position:relative;top:auto}
}
