/* SOBRE · variações 2 a 5 (.sb2 … .sb5). A variação 1, "retrato + texto", é a .quem de estilo.css.
   Só tokens de estilo.css. Celular primeiro. */

.sb { padding: 14vh var(--gutter); max-width: var(--largura); margin: 0 auto; }
.sb > h2 { margin-bottom: .3em; }
.sb .sb-intro { max-width: 680px; }
.sb [data-lucide] { width: 20px; height: 20px; }
.sb-reservado { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 16px; color: var(--texto-suave); font-weight: 700; font-size: 13px; background: linear-gradient(160deg, var(--vinho), var(--vinho-escuro)); }
.sb-reservado [data-lucide] { width: 40px; height: 40px; color: rgb(var(--destaque-rgb) / .7); }

/* ── 2 · Marcos da história ─────────────────────────────────────────── */
.sb2-anos { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 28px calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter) 14px; }
.sb2-anos::-webkit-scrollbar { display: none; }
.sb2-anos button { position: relative; flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linha); background: rgb(var(--tinta-rgb) / .05); color: var(--texto); font: 800 15px var(--fonte); cursor: pointer; transition: background .3s, color .3s; }
.sb2-anos button[aria-selected="true"] { background: var(--destaque-fundo); color: var(--sobre-destaque); border-color: var(--amarelo); }
.sb2-trilho { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
.sb2-trilho::-webkit-scrollbar { display: none; }
.sb2-marco { flex: 0 0 min(84vw, 520px); scroll-snap-align: start; display: grid; gap: 12px; padding-bottom: 6px; }
/* marco inativo: a FOTO esmaece e o título fica suave; o texto não perde contraste (AA nos dois temas) */
.sb2-marco .sb2-foto { transition: opacity .5s var(--ease); }
.sb2-marco:not(.ativo) .sb2-foto { opacity: .45; }
.sb2-marco:not(.ativo) h3 { color: var(--texto-suave); }
.sb2-foto { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.sb2-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sb2-marco.ativo .sb2-foto img { transform: scale(1.04); }
.sb2-ano { position: absolute; left: 14px; bottom: 6px; font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--branco); text-shadow: 0 4px 24px rgb(0 0 0 / .6); }
.sb2-marco h3 { margin: 0; }
.sb2-marco p { margin: 0; }
.sb2-controle { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.sb2-barra { flex: 1; height: 4px; border-radius: 4px; background: rgb(var(--tinta-rgb) / .14); overflow: hidden; }
.sb2-barra span { display: block; height: 100%; background: var(--gradiente-marca); transform-origin: left; transform: scaleX(var(--t, .2)); transition: transform .4s var(--ease); }
.sb2-seta { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--texto); background: transparent; border: 2px solid rgb(var(--tinta-rgb) / .45); cursor: pointer; }
.sb2-seta:hover { background: var(--laranja); border-color: var(--laranja); }

/* ── 3 · Manifesto que acende com a rolagem ─────────────────────────── */
.sb3 { position: relative; height: 260vh; }
.sb3-palco { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding: 90px var(--gutter) 6vh; }
.sb3-dentro { width: 100%; max-width: 1000px; margin: 0 auto; }
.sb3-texto { margin: 0; font-weight: 900; font-size: clamp(26px, 4.4vw, 58px); line-height: 1.15; letter-spacing: -.02em; color: var(--texto); text-wrap: pretty; }
.sb3-texto .p { opacity: .16; transition: opacity .35s linear; }
.sb3-texto .p.on { opacity: 1; }
.sb3-assina { display: flex; align-items: center; gap: 14px; margin-top: 4vh; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.sb3--fim .sb3-assina { opacity: 1; transform: none; }
.sb3-assina img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sb3-assina b { display: block; font-size: 18px; }
.sb3-assina small { color: var(--texto-suave); }

/* ── 4 · Equipe ─────────────────────────────────────────────────────── */
.sb4-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.sb4-pessoa { display: grid; gap: 8px; align-content: start; }
.sb4-foto { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.sb4-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--ease), transform .8s var(--ease); }
.sb4-pessoa:hover .sb4-foto img, .sb4-pessoa:focus-within .sb4-foto img { filter: none; transform: scale(1.04); }
.sb4-foto .sb-reservado { position: absolute; inset: 0; }
.sb4-rede { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--fundo-rgb) / .75); }
.sb4-rede img { width: 18px; height: 18px; }
.sb4-pessoa h3 { margin: 4px 0 0; font-size: 19px; }
.sb4-cargo { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amarelo); }
.sb4-mais summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
.sb4-mais summary::-webkit-details-marker { display: none; }
.sb4-mais summary [data-lucide] { width: 16px; height: 16px; color: var(--amarelo); transition: transform .3s var(--ease); }
.sb4-mais[open] summary [data-lucide] { transform: rotate(45deg); }
.sb4-mais p { margin: 0; font-size: 14px; }

/* ── 5 · Carta do fundador ──────────────────────────────────────────── */
.sb5-corpo { display: grid; gap: 28px; margin-top: 28px; }
.sb5-video { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--vinho-medio); }
.sb5-video > button { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.sb5-video img { width: 100%; height: 100%; object-fit: cover; }
.sb5-video > button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--fundo-rgb) / .8), transparent 50%); }
.sb5-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--laranja); color: var(--branco); box-shadow: 0 0 0 12px rgb(var(--acao-rgb) / .25); transition: transform .3s var(--ease); }
.sb5-play [data-lucide] { width: 30px; height: 30px; fill: var(--texto); margin-left: 4px; }
.sb5-video > button:hover .sb5-play { transform: translate(-50%, -50%) scale(1.08); }
.sb5-legenda { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; text-align: left; color: var(--texto); font-weight: 800; font-size: 15px; }
.sb5-legenda small { display: block; font-weight: 600; color: var(--texto-suave); }
.sb5-video video, .sb5-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.sb5-carta p { font-size: 18px; line-height: 1.7; }
.sb5-carta > p:first-of-type::first-letter { float: left; font-weight: 900; font-size: 4.2em; line-height: .82; margin: 6px 10px 0 0; color: var(--amarelo); }
.sb5-assinatura { margin: 26px 0 0; font-weight: 900; font-size: 34px; font-style: italic; letter-spacing: -.02em; color: var(--texto); }
.sb5-assinatura + small { display: block; margin-top: 2px; color: var(--texto-suave); font-weight: 600; }
.sb5-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linha); }
.sb5-numeros dt { font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--amarelo); }
.sb5-numeros dd { margin: 6px 0 0; font-size: 13px; color: var(--texto-suave); }

/* ── Computador ─────────────────────────────────────────────────────── */
@media (min-width: 761px) {
  .sb2-anos, .sb2-trilho { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .sb2-marco { flex-basis: 560px; }
  .sb2-ano { font-size: 96px; }
  .sb4-grade { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sb5-corpo { grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
  .sb5-video { position: sticky; top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .sb3 { height: auto; }
  .sb3-palco { position: relative; height: auto; min-height: 100svh; }
  .sb3-texto .p { opacity: 1; }
  .sb3-assina { opacity: 1; transform: none; }
  .sb2-foto img, .sb4-foto img, .sb2-marco { transition: none; }
}
