/* Sokio, site institucional. Um motivo só: o S do símbolo. A luz do S é o caminho do site inteiro. */
:root {
  --grafite: #050506;
  --chapado: #141518;
  --metal-a: #4A4E55;
  --metal-b: #050506;
  --prata: #C9CCD1;
  --texto: #EDEEF0;
  --texto-2: #9A9EA6;
  --lida: #B4B8BF;
  --linha: rgba(237, 238, 240, 0.12);
  --verde: #3FB57A;
  --f-titulo: "Manrope", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, sans-serif;
  --ease-saida: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-costura: cubic-bezier(0.77, 0, 0.175, 1);
  --lateral: clamp(16px, 5vw, 72px);
  /* O símbolo "Lados" em máscara: quadrado arredondado cortado pelo S */
  --simbolo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cmask id='m'%3E%3Crect width='256' height='256' fill='white'/%3E%3Cpath d='M196 0C120 24 76 76 128 128S136 232 60 256' stroke='black' stroke-width='24' fill='none'/%3E%3C/mask%3E%3Crect x='16' y='16' width='224' height='224' rx='56' mask='url(%23m)'/%3E%3C/svg%3E");
  /* O corte em S no canto dos cartões (o mesmo traço do símbolo, em miniatura) */
  --corte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M66 -6C46 0 34 14 48 30S56 62 36 86' stroke='black' stroke-width='7' fill='none'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--grafite); color-scheme: dark; scrollbar-color: #2a2d32 var(--grafite); }
body {
  margin: 0; position: relative;
  background: var(--grafite);
  color: var(--texto);
  font: 400 1rem/1.55 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--prata); color: #0B0D10; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--prata); outline-offset: 4px; border-radius: 6px; }

/* Camadas fixas: cena 3D, vinheta, grão */
#cena { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vinheta { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.65) 100%); }
.grao { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.movimento .grao { animation: grao 0.9s steps(6) infinite; }
@keyframes grao {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.topo, main, .rodape { position: relative; z-index: 3; }

/* Topo */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--lateral);
  background: linear-gradient(to bottom, rgba(5,5,6,0.75), transparent);
}
.marca img { height: 26px; width: auto; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 0.875rem; }
@media (max-width: 767.98px) { .menu .elo { display: none; } }

/* Sublinhado que nasce das duas pontas e se encontra no meio */
.elo {
  text-decoration: none; color: var(--texto-2); padding: 10px 0;
  background:
    linear-gradient(var(--prata), var(--prata)) left bottom / 0 1px no-repeat,
    linear-gradient(var(--prata), var(--prata)) right bottom / 0 1px no-repeat;
  background-origin: content-box;
  transition: color 300ms var(--ease-saida), background-size 450ms var(--ease-costura);
}
.elo:hover, .elo:focus-visible { color: var(--texto); background-size: 50% 1px, 50% 1px; }

/* Botões em metal */
.botao {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 500 0.95rem/1 var(--f-texto); text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform 300ms var(--ease-saida), border-color 300ms, color 300ms;
}
.botao:active { transform: scale(0.97); }
.botao-p { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.botao-metal {
  color: #0B0D10;
  background: linear-gradient(180deg, #F2F3F5 0%, #C9CCD1 48%, #9DA1A8 52%, #D9DBDF 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.25);
}
.botao-linha { color: var(--texto); border: 1px solid rgba(237,238,240,0.28); background: rgba(5,5,6,0.35); }
@media (hover: hover) and (pointer: fine) { .botao-linha:hover { border-color: rgba(237,238,240,0.6); } }
/* Reflexo que segue o mouse */
.botao::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.55), transparent 60%);
}
.botao-linha::after { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(201,204,209,0.18), transparent 60%); }
.botao:hover::after { opacity: 1; }

/* Abertura */
.abertura { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--lateral) clamp(56px, 10vh, 110px); }
.abertura-texto { max-width: 820px; }
.titulo-hero { font-size: clamp(2.75rem, 7.4vw, 6rem); line-height: 1.02; letter-spacing: -0.035em; }
.titulo-hero .linha { display: block; overflow: hidden; padding-bottom: 0.06em; }
.titulo-hero .linha > span { display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 10%, #C9CCD1 55%, #8E929A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; max-width: 34ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--lida); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dica-rolar { position: absolute; right: var(--lateral); bottom: clamp(56px, 10vh, 110px); font-size: 0.75rem; color: var(--texto-2); display: flex; align-items: center; gap: 12px; letter-spacing: 0.02em; }
.dica-rolar span { width: 1px; height: 44px; background: linear-gradient(var(--prata), transparent); transform-origin: top; }
.movimento .dica-rolar span { animation: desce 2.2s var(--ease-costura) infinite; }
@keyframes desce { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 767.98px) {
  .dica-rolar { display: none; }
  .abertura { padding-bottom: 48px; }
}
.logo-estatico { display: none; }

/* Estado inicial da entrada (só com movimento) */
.movimento.antes .titulo-hero .l-esq > span { transform: translateX(-110%); }
.movimento.antes .titulo-hero .l-dir > span { transform: translateX(110%); }
.movimento.antes .surge, .movimento.antes .topo { opacity: 0; }
.movimento .titulo-hero .linha > span { transition: transform 1.3s var(--ease-saida); }
.movimento .titulo-hero .l-dir > span { transition-delay: 0.08s; }
.movimento .surge, .movimento .topo { transition: opacity 1s var(--ease-saida) 0.35s; }

/* Atos 1 a 3: um palco fixo. A altura vem do ritmo da leitura (calculada no script). */
.leitura { position: relative; height: 560vh; }
.palco { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--lateral); overflow: hidden; }
.palco::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 48% 42% at 50% 50%, rgba(5,5,6,0.86) 0%, rgba(5,5,6,0.55) 55%, transparent 100%);
}
.lugar-simbolo { position: absolute; left: 50%; top: 50%; width: min(44vh, 66vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.texto-leitura {
  grid-area: 1 / 1; position: relative; max-width: 22ch; text-align: center;
  font: 600 clamp(1.6rem, 3.4vw, 3.1rem)/1.2 var(--f-titulo); letter-spacing: -0.025em; color: var(--lida);
}
.texto-leitura .f { color: #DDDFE3; }
.movimento .texto-leitura .p { display: inline-block; margin: 0 0.06em; transform-origin: 50% 75%; opacity: 0.16; }
.movimento .texto-leitura.t2 { opacity: 0; }
@media (min-width: 768px) { .texto-leitura { max-width: 24ch; } }

.luz-texto { position: absolute; left: 50%; bottom: 10vh; transform: translateX(-50%); width: calc(100% - 32px); max-width: 760px; text-align: center; }
.luz-texto h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; }
.luz-texto p { margin: 16px auto 0; max-width: 36ch; color: var(--lida); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.movimento .luz-texto .ll { opacity: 0; }

/* A linha de luz: sai da ponta do S e desce o site */
.trilho { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; overflow: visible; }
.trilho path { fill: none; stroke-linecap: round; }
.trilho-luz { stroke: #F2F3F5; stroke-width: 2.5; }
.trilho-halo { stroke: rgba(201,204,209,0.22); stroke-width: 12; filter: blur(6px); }
.trilho-ponta { fill: #FFFFFF; filter: drop-shadow(0 0 8px rgba(255,255,255,0.9)); }

/* Marco: o símbolo em miniatura; acende quando a linha passa */
.marco {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  background: #3a3d43; -webkit-mask: var(--simbolo) center / contain no-repeat; mask: var(--simbolo) center / contain no-repeat;
  transition: background-color 500ms var(--ease-saida), transform 500ms var(--ease-saida);
}
.aceso > .marco { background: #F2F3F5; transform: scale(1.15); }

/* Ato 4: os passos, um de cada lado da linha */
.estrada { position: relative; padding: 16vh var(--lateral) 8vh; }
.passos { list-style: none; margin: 0; padding: 0; }
.passo { position: relative; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 36rem; padding-left: 56px; }
.passo.lado-dir { margin-left: auto; padding: 0 56px 0 0; text-align: right; align-items: flex-end; }
.passo .marco { left: 12px; top: calc(50% - 0.6em); }
.passo.lado-dir .marco { left: auto; right: 0; }
.passo h3 { font-size: clamp(3rem, 8.4vw, 6rem); letter-spacing: -0.04em; line-height: 0.98; }
.passo p { margin-top: 20px; max-width: 30ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--texto); }
.movimento .passo h3, .movimento .passo p { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-saida), transform 700ms var(--ease-saida); }
.movimento .passo p { transition-delay: 80ms; }
.movimento .passo.aceso h3, .movimento .passo.aceso p { opacity: 1; transform: none; }
.passo h3, .passo p { text-shadow: 0 2px 24px rgba(5,5,6,0.95); }

/* Costura: título revelado do centro para fora */
.costura { clip-path: inset(0 0 0 0); }
.movimento .costura { clip-path: inset(0 50% 0 50%); transition: clip-path 1.1s var(--ease-costura); }
.movimento .costura.visto { clip-path: inset(0 0 0 0); }

/* Ato 5: os caminhos */
.caminhos { position: relative; padding: 18vh var(--lateral) 14vh; }
.caminhos-topo h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
.caminhos-topo p { margin-top: 16px; color: var(--lida); max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.paineis { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 900px) { .paineis { grid-template-columns: 1.15fr 1fr; align-items: end; } }
.painel {
  position: relative; padding: 32px; border-radius: 28px; background: var(--chapado);
  -webkit-mask: var(--corte) top right / 80px 80px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: var(--corte) top right / 80px 80px no-repeat exclude, linear-gradient(#000 0 0);
}
.painel-on { background: #1a1b1f; }
.painel-on .marco { left: 32px; top: 0; }
.painel-off { background: #0d0e10; }
.painel-off h3, .painel-off > p:not(.estado) { color: var(--texto-2); }
.painel h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 12px; }
.painel > p:not(.estado) { margin-top: 12px; color: var(--lida); max-width: 46ch; }
.painel .acoes { margin-top: 24px; }
.estado { font-size: 0.875rem; color: var(--texto-2); display: inline-flex; align-items: center; gap: 8px; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--texto-2); }
.estado-on { color: var(--verde); }
.estado-on::before { background: var(--verde); box-shadow: 0 0 0 4px rgba(63,181,122,0.18); }
.movimento .painel-off .estado::before { animation: pisca 2.4s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: 0.25; } }
/* O cartão só aparece; quem sobe é o conteúdo (o marco fica parado onde a linha passa) */
.movimento .painel { opacity: 0; transition: opacity 800ms var(--ease-saida); }
.movimento .painel > :not(.marco) { transform: translateY(24px); transition: transform 800ms var(--ease-saida); }
.movimento .painel-off, .movimento .painel-off > * { transition-delay: 120ms; }
.movimento .paineis.aceso .painel { opacity: 1; }
.movimento .paineis.aceso .painel > :not(.marco) { transform: none; }

/* Ato 6: o convite */
.convite { min-height: 120svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12vh var(--lateral) 14vh; }
.lugar-final { width: min(32vh, 52vw); aspect-ratio: 1; margin-bottom: 7vh; flex: none; }
.convite h2 { font-size: clamp(2.3rem, 6vw, 5.2rem); letter-spacing: -0.035em; max-width: 16ch; }
.convite .acoes { justify-content: center; }
.assinatura { margin-top: 36px; font: 500 0.9375rem/1.4 var(--f-titulo); color: var(--texto-2); letter-spacing: 0.01em; }

/* Rodapé com a marca gigante revelada */
.rodape { padding: 0 var(--lateral) 28px; border-top: 1px solid var(--linha); background: var(--grafite); overflow: hidden; }
.rodape-marca {
  font: 600 clamp(6rem, 27vw, 26rem)/0.9 var(--f-titulo); letter-spacing: -0.06em; text-align: center; margin: 0.08em 0 0.05em;
  background: linear-gradient(180deg, #4A4E55 0%, #1a1c20 60%, #050506 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.movimento .rodape-marca { clip-path: inset(0 50% 0 50%); transition: clip-path 1.4s var(--ease-costura); }
.movimento .rodape-marca.visto { clip-path: inset(0 0 0 0); }
.rodape-linha { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8125rem; color: var(--texto-2); }
.rodape-linha .elo { padding: 6px 0; }

/* Cursor: você e o sócio */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .movimento .cursor { display: block; }
  .movimento, .movimento a, .movimento button { cursor: none; }
}
.cursor i { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; border-radius: 50%;
  transition: width 300ms var(--ease-saida), height 300ms var(--ease-saida), margin 300ms var(--ease-saida), background 300ms, border-color 300ms; }
.cursor .c1 { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.cursor .c2 { width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1px solid rgba(201,204,209,0.55); }
.cursor.junto .c2 { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.cursor.junto .c1 { width: 4px; height: 4px; margin: -2px 0 0 -2px; }

/* Chave de movimento (para quem pediu menos animação no sistema) */
.chave-movimento {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: 500 0.8125rem/1 var(--f-texto); color: var(--texto); background: rgba(20,21,24,0.92);
  border: 1px solid rgba(237,238,240,0.22); cursor: pointer;
}

/* Versão calma e versão sem 3D: tudo legível, sem coreografia */
.calmo .leitura { height: auto !important; }
.calmo .palco { position: relative; height: auto; display: block; padding: 18vh var(--lateral); text-align: center; }
.calmo .palco::before, .calmo .lugar-simbolo, .calmo .lugar-final { display: none; }
.calmo .texto-leitura { margin: 0 auto; }
.calmo .texto-leitura + .texto-leitura { margin-top: 10vh; }
.calmo .luz-texto { position: static; transform: none; margin: 14vh auto 0; }
.calmo .passo { min-height: 56vh; }
.calmo #cena { opacity: 0.45; }
.sem3d #cena { display: none; }
.sem3d .logo-estatico { display: block; position: absolute; top: 18vh; left: 50%; width: min(38vw, 260px); transform: translateX(-50%); opacity: 0.9; }

@media (max-width: 767.98px) {
  .passo, .passo.lado-dir { padding-left: 44px; padding-right: 0; text-align: left; align-items: flex-start; margin-left: 0; }
  .passo.lado-dir { padding: 0 44px 0 0; margin-left: auto; text-align: right; align-items: flex-end; }
  .passo { min-height: 64vh; }
  .painel { padding: 24px; }
  .painel-on .marco { left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .movimento .painel-off .estado::before { animation: none; }
}
