/* =========================================================
   LIVSON TECNOLOGIA — home
   O que é comum a todas as páginas (cores, tipografia, botões, menu,
   rodapé, WhatsApp) está no css/base.css. Aqui fica só o que é da home:
   o cubo do "ponto", a vitrine 3D, os cards do portfólio e as seções.
   ========================================================= */

/* ---------- Hero ---------- */
.hero { min-height: min(92svh, 980px); display: grid; grid-template-rows: 1fr auto; padding-bottom: clamp(32px, 5vw, 64px); }
.hero__title-wrap { position: relative; align-self: center; padding-block: clamp(32px, 6vw, 80px) 24px; }
.title {
  font-family: var(--display); font-stretch: 125%; font-weight: 460;
  font-size: clamp(2.2rem, 6.1vw, 7.4rem); line-height: .98; letter-spacing: -0.012em;
  text-transform: uppercase;
}
.title .ln { display: block; }
.title .ln--in { padding-left: 1.4em; }
#t-back { position: relative; z-index: 1; }
.title--front { position: absolute; left: 0; right: 0; top: 0; padding-block: inherit; z-index: 3; pointer-events: none; color: transparent; }
.title--front b { color: var(--ink); font-weight: inherit; }
/* sem JS o quadrado fica parado no lugar do cubo; com JS o cubo assume */
.slot { display: inline-block; width: .58em; height: .7em; vertical-align: baseline; border-radius: 18%; background: var(--acc); }
html.cube-on .slot { background: transparent; }

.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 32px; align-items: end; }
.hero__hint { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.hero__side { display: grid; gap: 22px; }
.hero__note { font-size: 1.08rem; line-height: 1.5; color: var(--soft); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--soft); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }

.rot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.rot__in { display: inline-block; color: var(--ink); font-weight: 600; transition: transform .42s var(--ease); }
.rot.is-out .rot__in { transform: translateY(110%); }

/* ---------- Frase do ponto final ---------- */
.dot { display: inline-block; width: .21em; height: .21em; margin-left: .05em; border-radius: 18%; background: var(--acc); vertical-align: baseline; }
html.cube-on .dot { background: transparent; }
.stmt { padding-block: clamp(120px, 18vw, 260px) clamp(90px, 12vw, 180px); }

/* ---------- O cubo do hero ---------- */
.stage { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.holder { position: absolute; left: 0; top: 0; width: 100px; height: 100px; perspective: 420px; will-change: transform; display: none; }
html.cube-on .holder { display: block; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube i { position: absolute; inset: 0; border-radius: 18%; backface-visibility: hidden; }
.cube .f1 { background: var(--acc); transform: translateZ(50px); }
.cube .f2 { background: var(--acc); transform: rotateY(180deg) translateZ(50px); }
.cube .f3 { background: color-mix(in srgb, var(--acc) 84%, black); transform: rotateY(90deg) translateZ(50px); }
.cube .f4 { background: color-mix(in srgb, var(--acc) 84%, black); transform: rotateY(-90deg) translateZ(50px); }
.cube .f5 { background: color-mix(in srgb, var(--acc) 72%, white); transform: rotateX(90deg) translateZ(50px); }
.cube .f6 { background: color-mix(in srgb, var(--acc) 68%, black); transform: rotateX(-90deg) translateZ(50px); }

/* ---------- Vitrine 3D das travas ----------
   Sem 3D (sem WebGL ou com movimento reduzido): itens um embaixo do outro.
   Com 3D (html.show-on): seção alta, miolo preso na tela; o item desce do
   topo, para e sai por baixo, e volta ao contrário ao subir. */
.show { position: relative; }
.show__pin { position: relative; }
.item { position: relative; padding-block: 72px; display: grid; gap: 28px; }
.item__stage { display: flex; justify-content: center; }
.item__word {
  font-family: var(--display); font-stretch: 125%; font-weight: 460;
  font-size: min(8.4vw, 10rem); line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap; display: inline-block;
}
.item__info { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px 40px; align-items: end; }
.item__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .95rem; color: var(--soft); }
.item__mid { justify-self: center; }
.item__txt { display: grid; gap: 8px; max-width: 36ch; justify-self: end; }
.item__txt h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.item__txt p { color: var(--soft); font-size: .95rem; }

html.show-on .show__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.show-on .item {
  position: absolute; inset: 0; padding-block: 0 clamp(28px, 6vh, 64px);
  grid-template-rows: minmax(0, 1fr) auto; gap: 0; visibility: hidden; will-change: transform;
}
html.show-on .item__stage { align-items: flex-start; padding-top: 26vh; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; visibility: hidden; }

/* ---------- Todas as soluções ---------- */
.groups { margin-top: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 40px; padding-block: 30px; border-top: 1px solid var(--line); }
.group h3 { font-family: var(--text); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }
.group dl { display: grid; gap: 18px; }
.group dt { font-weight: 600; }
.group dt span { color: var(--soft); font-weight: 400; }
.group dd { color: var(--soft); font-size: .96rem; }
.outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px 0; }
.outro p { color: var(--soft); max-width: 52ch; }

/* ---------- Metodologia ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(48px, 7vw, 96px); }
.step { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.step__num { font-family: var(--display); font-stretch: 125%; font-weight: 460; font-size: 2.2rem; line-height: 1; color: var(--soft); }
.step h3 { font-size: 1.15rem; font-weight: 600; }
.step p { color: var(--soft); font-size: .96rem; }

/* ---------- Compromissos ---------- */
.pactos { margin-top: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.pacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px 40px; padding-block: 28px; border-top: 1px solid var(--line); }
.pacto h3 { font-family: var(--text); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.25; }
.pacto p { color: var(--soft); }

/* ---------- Portfólio: cards de vidro cruzando a tela ---------- */
.team { position: relative; padding-block: clamp(96px, 13vw, 190px) 0; }
.team__grid { align-items: start; }
.team__title { font-size: clamp(2.2rem, 6vw, 6.4rem); line-height: 1; max-width: 10em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.card {
  display: grid; gap: 14px; align-content: start; padding: 20px 20px 18px;
  border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--sf) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); /* o card passa por cima do título: a sombra marca a camada */
}
.card__brand { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: .98rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.card__tag { font-size: .78rem; color: var(--soft); }
.card__quote { font-size: .92rem; line-height: 1.5; }
.card__who { font-size: .8rem; color: var(--soft); }
.card__who a, .card__link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card__link { font-size: .84rem; font-weight: 560; justify-self: start; }
.stars { color: var(--acc); letter-spacing: .1em; }

html.team-on .team { height: 300vh; padding: 0; }
html.team-on .team__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: clamp(96px, 16vh, 170px); }
html.team-on .cards { position: absolute; inset: 0; margin: 0; display: block; perspective: 1400px; pointer-events: none; }
html.team-on .card { position: absolute; left: 0; width: clamp(230px, 21vw, 300px); will-change: transform; pointer-events: auto; }

/* ---------- Manifesto ---------- */
.manifesto__lead em { font-style: normal; color: var(--acc); }
.manifesto__body { display: grid; gap: 18px; color: var(--soft); max-width: 46ch; }
.manifesto__body strong { color: var(--ink); font-weight: 500; }

/* ---------- Fundador ----------
   A foto é um recorte com CORTE RETO na base (ver LEIA-ME). O painel em
   volta, com a borda de baixo rente à foto, é o que justifica o corte. */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.founder__media { border-radius: 14px; overflow: hidden; background: var(--sf); padding-top: 44px; max-width: 520px; }
.founder__copy { display: grid; gap: 18px; }
.founder__name { font-size: 1.2rem; font-weight: 600; }
.founder__role { color: var(--soft); margin-top: -12px; }
.founder__copy > p:not(.big):not(.founder__name):not(.founder__role) { color: var(--soft); max-width: 56ch; }
.founder__badges { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.founder__badges span { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }

/* ---------- Contato ---------- */
.contact { display: grid; border-bottom: 1px solid var(--line); }
.contact li { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); font-size: .98rem; }
.contact svg { width: 20px; height: 20px; flex: none; color: var(--acc); }
.contact a { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__foot, .founder, .group, .pacto { grid-template-columns: minmax(0, 1fr); }
  .hero__hint { display: none; }
  .title { font-size: min(2.3rem, 9.4vw); }
  .title .ln--in { padding-left: 0; white-space: nowrap; } /* mantém EM UM ▢ PONTO na mesma linha; cabe até 320 px */
  .item__info { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .item__mid { justify-self: start; order: 3; }
  .item__txt { justify-self: start; }
  html.show-on .item__stage { padding-top: 22vh; }
  html.show-on .item { padding-bottom: 88px; } /* livre do botão do WhatsApp */
  html.team-on .team__pin { padding-top: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding-block: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rot__in { transition: none; }
}
