/* ===================== SOBRE — PAGE INTRO ===================== */

/* Curtain — overlay que cobre o viewport e fade-out no load,
   dando a sensação de "cortina abrindo". */
.sb-curtain {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  animation: curtain-out 1.05s cubic-bezier(0.7, 0, 0.2, 1) .05s forwards;
}
@keyframes curtain-out {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

#sobre-head {
  position: relative;
  padding: 170px 0 60px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
#sobre-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,204,255,.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(123,45,255,.06), transparent 70%);
  pointer-events: none;
}
#sobre-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 44px);
  opacity: 0;
  pointer-events: none;
  animation: grid-fade-in 1.6s ease-out .9s forwards;
}
@keyframes grid-fade-in {
  to { opacity: .55; }
}

/* Aurora — luz suave que pulsa atrás do título, dando dimensão. */
.sb-aurora {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,204,255,.10), transparent 60%),
    radial-gradient(ellipse 30% 25% at 30% 60%, rgba(123,45,255,.08), transparent 60%),
    radial-gradient(ellipse 30% 25% at 70% 40%, rgba(0,102,255,.08), transparent 60%);
  filter: blur(20px);
  opacity: 0;
  transform: scale(0.85);
  animation: aurora-bloom 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) .15s forwards,
             aurora-drift 16s ease-in-out 2.4s infinite alternate;
}
@keyframes aurora-bloom {
  to { opacity: 1; transform: scale(1); }
}
@keyframes aurora-drift {
  0%   { transform: scale(1) translateX(0)    translateY(0); }
  50%  { transform: scale(1.04) translateX(20px) translateY(-10px); }
  100% { transform: scale(1) translateX(-12px)  translateY(8px); }
}

.sb-head-inner {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto; padding: 0 32px;
}

/* Eyebrow: desce com fade + dot acende após */
.sb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,204,255,.06);
  border: 1px solid rgba(0,204,255,.2);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-8px);
  animation: eyebrow-in .8s cubic-bezier(0.2, 0.7, 0.2, 1) .55s both;
}
@keyframes eyebrow-in {
  to { opacity: 1; transform: translateY(0); }
}
.sb-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,204,255,0);
  opacity: 0;
  animation: dot-on .4s ease-out 1.1s both,
             pulse 1.8s ease-in-out 1.5s infinite;
}
@keyframes dot-on {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(0,204,255,.6); }
}

/* Título: mask reveal palavra por palavra */
.sb-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300; line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff; margin: 0 0 18px;
}
.sb-title .accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sb-title .sw-line {
  display: inline-block;
  vertical-align: top;
}
.sb-title .sw-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: word-rise .9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* Cada palavra com delay próprio — 6 palavras */
.sb-title .sw-line:nth-child(1) .sw-word:nth-child(1) { animation-delay: .75s; }
.sb-title .sw-line:nth-child(1) .sw-word:nth-child(2) { animation-delay: .82s; }
.sb-title .sw-line:nth-child(1) .sw-word:nth-child(3) { animation-delay: .89s; }
.sb-title .sw-line:nth-child(3) .sw-word:nth-child(1) { animation-delay: 1.05s; }
.sb-title .sw-line:nth-child(3) .sw-word:nth-child(2) { animation-delay: 1.12s; }
.sb-title .sw-line:nth-child(3) .sw-word:nth-child(3) { animation-delay: 1.19s; }
@keyframes word-rise {
  to { transform: translateY(0); opacity: 1; }
}

.sb-sub {
  font-size: 16px; font-weight: 300;
  color: #a9aebf; line-height: 1.7;
  max-width: 580px; margin: 0 auto;
  opacity: 0;
  filter: blur(6px);
  animation: sub-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s both;
}
@keyframes sub-in {
  to { opacity: 1; filter: blur(0); }
}

/* ===================== MISSION CARD ===================== */
.sb-mission {
  max-width: 900px; margin: 0 auto;
  padding: 56px 48px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,102,255,.06), transparent 70%),
    radial-gradient(ellipse at 80% 50%, rgba(123,45,255,.05), transparent 70%),
    var(--l-card);
  border: 1px solid var(--l-border);
  border-radius: 24px;
  position: relative; overflow: hidden;
  text-align: center;
  /* Estado inicial — entrada por scroll */
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition:
    opacity .9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform .9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sb-mission.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* "Cantos" tipográficos — desenham-se quando o card aparece. */
.sb-mission-corner {
  position: absolute;
  display: block;
  width: 18px; height: 18px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease .5s;
}
.sb-mission-corner.tl { top: 14px; left: 14px; right: auto; bottom: auto;
  border-top: 1px solid var(--blue); border-left: 1px solid var(--blue); }
.sb-mission-corner.tr { top: 14px; right: 14px; left: auto; bottom: auto;
  border-top: 1px solid var(--purple); border-right: 1px solid var(--purple); }
.sb-mission-corner.bl { bottom: 14px; left: 14px; right: auto; top: auto;
  border-bottom: 1px solid var(--purple); border-left: 1px solid var(--purple); }
.sb-mission-corner.br { bottom: 14px; right: 14px; left: auto; top: auto;
  border-bottom: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.sb-mission.is-revealed .sb-mission-corner { opacity: .8; }

/* Texto interno faz fade staggerado depois do card */
.sb-mission p.lead,
.sb-mission p:not(.lead) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sb-mission.is-revealed p.lead { transition-delay: .25s; }
.sb-mission.is-revealed p:not(.lead) { transition-delay: .45s; }
.sb-mission.is-revealed p.lead,
.sb-mission.is-revealed p:not(.lead) {
  opacity: 1;
  transform: translateY(0);
}
.sb-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0, rgba(0,0,0,.025) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0, rgba(0,0,0,.025) 1px, transparent 1px, transparent 32px);
  opacity: .55;
  pointer-events: none;
}
/* Conteúdo de texto fica em camada acima dos backgrounds.
   Os corner markers (.sb-mission-corner) precisam ser excluídos pra manter
   seu position:absolute próprio — senão `*` os força a position:relative
   e eles colapsam no centro do card. */
.sb-mission > *:not(.sb-mission-corner) { position: relative; z-index: 1; }
.sb-mission p.lead {
  font-size: 20px; font-weight: 500;
  color: var(--l-text); line-height: 1.5;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.sb-mission p.lead strong {
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.sb-mission p {
  font-size: 15px; font-weight: 400;
  color: var(--l-muted); line-height: 1.8;
  max-width: 640px; margin: 0 auto;
}

/* ===================== TEAM ===================== */
.sb-team-head {
  text-align: center;
  margin-bottom: 64px;
}
/* Label editorial — sem badge colorido, só uma linha + texto.
   Posicionado abaixo do título como kicker/legenda. */
.sb-team-head .label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--l-muted);
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .6s ease, transform .6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sb-team-head .label::before,
.sb-team-head .label::after {
  content: '';
  width: 18px; height: 1px;
  background: var(--l-border);
}
.sb-team-head.is-revealed .label {
  opacity: 1; transform: translateY(0);
  transition-delay: .9s;  /* entra depois que o título termina o clip-reveal */
}
.sb-team-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; color: var(--l-text);
  letter-spacing: -.02em;
  line-height: 1.2;
  display: block;
  position: relative;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s cubic-bezier(0.7, 0, 0.2, 1) .15s;
}
.sb-team-head.is-revealed h2 {
  clip-path: inset(0 0 0 0);
}
.sb-team-head h2 .accent {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  color: var(--l-text);
  font-weight: 500;
  position: relative;
}
/* Underline editorial sutil sob o accent */
.sb-team-head h2 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--l-text);
  opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(0.7, 0, 0.2, 1) 1.1s,
              opacity .4s ease 1.1s;
}
.sb-team-head.is-revealed h2 .accent::after {
  opacity: .6; transform: scaleX(1);
}
.sb-team-head h2 .accent {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sb-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px; margin: 0 auto;
  /* Linha vertical entre os cards substitui borda dura — sensação editorial */
  border-top: 1px solid var(--l-border);
  border-bottom: 1px solid var(--l-border);
}
.sb-member {
  position: relative;
  padding: 56px 36px 48px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--l-border);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  transition: background-color .35s ease;
  opacity: 0;
  transform: translateY(28px);
}
.sb-member:last-child { border-right: 0; }
.sb-team.is-revealed .sb-member {
  animation: member-rise .85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(.18s + var(--i, 0) * .12s);
}
@keyframes member-rise {
  to { opacity: 1; transform: translateY(0); }
}
.sb-member:hover {
  background: rgba(0, 0, 0, 0.018);
  transform: none;
  box-shadow: none;
  border-color: var(--l-border);
}

/* Avatar: monocromático com inicial elegante. Anel fino concêntrico. */
.sb-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 400;
  letter-spacing: .04em;
  position: relative;
  background: #f4f4f6;
  color: #2a2d36;
  box-shadow: none;
  transition: transform .5s var(--ease);
}
/* Anel externo fino sutil — dá presença sem chamar atenção */
.sb-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--l-border);
  opacity: 1;
  transition: inset .4s var(--ease), opacity .3s ease;
}
.sb-member:hover .sb-avatar { transform: translateY(-2px); }
.sb-member:hover .sb-avatar::after { inset: -10px; opacity: .6; }

/* Cada avatar com tom monocromático ligeiramente diferente — distingue
   sem virar carnaval. Tons neutros frios. */
.sb-avatar.a1 { background: #eef0f4; color: #1d2330; }
.sb-avatar.a2 { background: #ecedf2; color: #2a2540; }
.sb-avatar.a3 { background: #edf1ef; color: #1f2e2a; }

.sb-member h3 {
  font-size: 17px; font-weight: 500;
  color: var(--l-text); margin-bottom: 8px;
  letter-spacing: -.005em;
}
.sb-member-role {
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--l-muted); margin-bottom: 20px;
}
/* Divider — linha fina sólida, neutra */
.sb-member-divider {
  width: 0; height: 1px;
  background: var(--l-text);
  opacity: .25;
  margin: 0 auto;
  transition: width .8s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity .3s ease;
}
.sb-team.is-revealed .sb-member .sb-member-divider {
  width: 28px;
  transition-delay: calc(.55s + var(--i, 0) * .12s);
}
.sb-member:hover .sb-member-divider {
  width: 44px;
  opacity: .5;
}

/* ===================== CLOSING ===================== */
.sb-closing {
  max-width: 900px; margin: 0 auto;
  text-align: center;
  padding: 60px 32px;
}
.sb-closing h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400; line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--l-text);
  max-width: 780px; margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition:
    opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sb-closing.is-revealed h2 {
  opacity: 1; transform: translateY(0); filter: blur(0);
}
.sb-closing h2 .accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
/* Glow no .accent quando revelado, sutil mas memorável */
.sb-closing h2 .accent::after {
  content: '';
  position: absolute;
  inset: -6px -8px;
  background: radial-gradient(ellipse, rgba(0,204,255,.18), transparent 70%);
  opacity: 0;
  z-index: -1;
  filter: blur(14px);
  transition: opacity 1s ease .8s;
}
.sb-closing.is-revealed h2 .accent::after { opacity: 1; }

@media (max-width: 1024px) {
  .sb-team { grid-template-columns: repeat(3, 1fr); }
  .sb-member { padding: 44px 20px 36px; }
}
@media (max-width: 768px) {
  #sobre-head { padding: 130px 0 40px; }
  .sb-head-inner { padding: 0 20px; }
  .sb-title { font-size: 40px; }
  .sb-mission { padding: 40px 24px; margin: 0 20px; }
  .sb-mission p.lead { font-size: 17px; }
  .sb-team { grid-template-columns: 1fr; margin: 0 20px; }
  .sb-member { border-right: 0; border-bottom: 1px solid var(--l-border); padding: 40px 20px; }
  .sb-member:last-child { border-bottom: 0; }
  .sb-closing { padding: 40px 20px; }
}

/* Acessibilidade: usuários com prefers-reduced-motion recebem só fade
   simples, sem stagger, blur, mask reveal ou aurora drift. */
@media (prefers-reduced-motion: reduce) {
  .sb-curtain { animation: none; opacity: 0; visibility: hidden; }
  .sb-aurora { animation: none; opacity: 1; transform: none; }
  #sobre-head::after { animation: none; opacity: .55; }
  .sb-eyebrow,
  .sb-eyebrow .dot,
  .sb-title .sw-word,
  .sb-sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .sb-mission, .sb-team-head .label, .sb-team-head h2,
  .sb-mission p, .sb-member, .sb-member-divider,
  .sb-closing h2 {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    animation: none !important;
  }
  .sb-team.is-revealed .sb-avatar::before { animation: none; opacity: .25; }
  .sb-member-divider { width: 40px !important; }
}
