@font-face{font-family:WayEquipePoppins;src:url(poppins-400.woff2);font-weight:400}
@font-face{font-family:WayEquipePoppins;src:url(poppins-600.woff2);font-weight:600}
@font-face{font-family:WayEquipePoppins;src:url(poppins-700.woff2);font-weight:700}

.way-team {
  font: 16px/1.6 WayEquipePoppins, sans-serif;
  color: #1d2d40;
  width: 100%;
  & *, & *::before, & *::after { box-sizing: border-box; }
  .wrap { margin-inline: auto; }
  h1, h2 { font-family: inherit; font-weight: 600; color: inherit; }
  h1 { letter-spacing: -1px; }
  a { color: inherit; }
  .team-intro-links { display: flex; font-size: 15px; font-weight: 600; }
  .team-intro h2::after, .ebook-gallery h2::after { content: ''; display: block; background: #b99b32; width: 56px; height: 3px; margin-top: 13px; }
  .profile-copy p { margin: 0; color: #475769; }
  .profile-series { scroll-margin-top: 115px; }

  .team-banner { padding: 0; background: #fff; color: #1d2d40; }
  .team-banner-photo img { display: block; width: 100%; height: auto; }
  & { --team-text-inset: clamp(40px, 5vw, 78px); }
  :is(.team-banner, .ebook-gallery, .team-intro) > .wrap {
    width: 100%;
    max-width: none;
    padding-inline: var(--team-text-inset);
  }
  .team-banner-copy { padding: 42px 0; }
  .team-banner h1 { margin: 0 0 20px; font-size: clamp(38px, 3.35vw, 54px); line-height: 1.16; }
  .team-banner h1::after { content: ""; display: block; width: 88px; height: 4px; margin-top: 24px; background: #c69a0b; }
  .team-banner p { max-width: 75ch; margin: 0; font-size: clamp(16px, 1.35vw, 20px); }
  .team-banner p + p { margin-top: 12px; }
  .ebook-gallery { padding: 64px 0 56px; background: #f4f4f1; }
  .ebook-gallery h2 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 42px); }
  .ebook-gallery p { margin: 0 0 26px; }
  .ebook-panels {
    width: min(100%, 90vw, 1180px);
    margin-inline: auto;
    display: flex;
    min-height: clamp(320px, 30vw, 440px);
    gap: 4px;
    padding: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: #10283b;
  }
  .ebook-panel {
    position: relative;
    isolation: isolate;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 18px;
    border: 0;
    border-radius: 6px;
    background: #1d2d40;
    color: #fff;
    text-align: left;
    font: 600 15px/1.4 WayEquipePoppins, sans-serif;
    cursor: pointer;
    transition: flex-grow 500ms cubic-bezier(.22, 1, .36, 1), background-color 220ms ease;
  }
  .ebook-panel[aria-expanded="true"] { flex-grow: 4; }
  .ebook-panel:hover, .ebook-panel:focus-visible { background-color: #253b50; }
  .ebook-cover {
    position: absolute;
    z-index: -1;
    inset: 14% 19% 26%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-bottom: 4px solid #c69a0b;
    border-radius: 3px 6px 6px 3px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 62%), #1d2d40;
    box-shadow: -6px 0 rgba(7, 20, 31, .22), 0 12px 24px rgba(7, 20, 31, .24);
    color: #f0c34a;
    font-size: clamp(16px, 2vw, 32px);
    letter-spacing: .08em;
  }
  .ebook-panel[aria-expanded="true"] .ebook-cover { inset-inline: 30%; }
  .ebook-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(10, 27, 42, .96), rgba(10, 27, 42, .28) 46%, transparent 72%);
    box-shadow: inset 0 -3px transparent;
    transition: box-shadow 250ms ease;
  }
  .ebook-panel:hover::after, .ebook-panel:focus-visible::after { box-shadow: inset 0 -3px #c69a0b; }
  .ebook-panel:focus-visible { outline: 3px solid #f0c34a; outline-offset: -5px; }
  @media (prefers-reduced-motion: reduce) {
    .ebook-panel, .ebook-panel::after { transition: none; }
  }
  .team-intro { padding: 80px 0; background: #fff; }
  .team-intro h2 { margin: 0 0 20px; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
  .team-intro p { max-width: 65ch; margin: 0; color: #475769; font-size: 18px; }
  .team-intro-links { justify-content: flex-start; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
  .team-intro-links a { display: inline-block; padding: 5px 0; text-decoration: underline; text-decoration-color: #b99b32; text-underline-offset: 5px; }
  .team-intro-links a:hover { text-decoration-thickness: 2px; }
  .team-intro-links a:focus-visible { outline: 2px solid #1d2d40; outline-offset: 4px; }
  .profile-series { padding: 0; }
  & { padding-bottom: 64px; background: #fff; }
  .profile { display: grid; grid-template-columns: 1fr 1fr; background: #f4f4f1; }
  .profile-copy { grid-area: 1 / 1; align-self: center; padding: 40px var(--team-text-inset); }
  .profile img { grid-area: 1 / 2; display: block; width: 100%; height: clamp(380px, 32vw, 460px); object-fit: cover; object-position: center 22%; }
  .profile:nth-of-type(even) img { grid-column: 1; }
  .framed-portrait {
    grid-area: 1 / 2;
    position: relative;
    overflow: hidden;
    height: clamp(380px, 32vw, 460px);
    background: url("./fundo-equipe.jpg") center 23% / cover no-repeat;
  }
  .profile:nth-of-type(even) .framed-portrait { grid-column: 1; }
  .profile .framed-portrait img {
    position: absolute;
    left: 65.2149%;
    top: max(2px, calc(36% - 22.7867cqw));
    width: var(--portrait-width);
    height: auto;
    max-width: none;
    transform: translate(var(--edge-x), var(--crown-y));
    mask: var(--silhouette) center / 100% 100% no-repeat;
    mask-mode: luminance;
  }
  .profile:nth-of-type(even) .profile-copy { grid-column: 2; }
  .profile-copy h2 { font-size: clamp(32px, 3vw, 46px); margin: 6px 0 22px; line-height: 1.15; letter-spacing: -.03em; }
  .profile-copy h2::after { display: none; }
  .portrait-pending {
    grid-area: 1 / 1;
    min-height: clamp(380px, 32vw, 460px);
    display: grid;
    place-items: center;
    background: #e4e9ea;
    color: #506473;
    font-size: clamp(64px, 6vw, 92px);
    font-weight: 600;
  }
  :is(#consultoria, #financeiro) .profile:nth-of-type(odd) .profile-copy { grid-column: 2; }
  :is(#consultoria, #financeiro) .profile:nth-of-type(even) .profile-copy { grid-column: 1; }
  :is(#consultoria, #financeiro) .profile:nth-of-type(even) .portrait-pending { grid-column: 2; }
  .profile-role { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
  .profile-role::before { content: ""; width: 32px; height: 3px; background: #b99b32; }
  .profile-bio { line-height: 1.8; }
  .profile-bio + .profile-bio { margin-top: 1em; }

  #operacoes .portrait-pending { grid-column: 2; }
  #operacoes .profile:nth-of-type(even) .portrait-pending { grid-column: 1; }

  .framed-portrait[data-portrait-entrance] { background: none; }

  .portrait-motion {
    container-type: inline-size;
    position: absolute;
    inset: 0;
    background: url("./fundo-equipe.jpg") center 23% / cover no-repeat;
    transform-origin: 50% 36%;
  }
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .portrait-motion { transition: scale 320ms ease-out; }
    .framed-portrait[data-portrait-entrance]:hover .portrait-motion { scale: 1.02; }
  }

  @media (max-width: 767px) {
    & { --team-text-inset: clamp(20px, 5vw, 38px); padding-bottom: 36px; }
    .team-banner h1 { font-size: clamp(28px, 7.6vw, 38px); }
    .team-intro, .ebook-gallery { padding-block: 36px; }
    .team-banner-copy { padding-block: 30px; }
    .ebook-panels { flex-direction: column; min-height: 380px; }
    .ebook-panel { min-height: 56px; padding: 12px; }
    .ebook-cover { display: none; }
    .ebook-panel[aria-expanded="true"] .ebook-cover { display: grid; inset: 12% 32% 29%; }
    .profile { grid-template-columns: minmax(0, 1fr); }
    .profile-series .profile:nth-of-type(n) .profile-copy { grid-area: 2 / 1; padding-block: 30px; }
    .profile-series .profile:nth-of-type(n) .framed-portrait { grid-area: 1 / 1 !important; height: clamp(260px, 74vw, 400px); }
    .profile-copy h2 { font-size: clamp(25px, 6.5vw, 34px); }
  }
}
