/* ==========================================================================
   The Creative Society — estilos
   Grid desktop: margem 64 · 12 col · gutter 16 (base 1440)
   Grid mobile:  margem 24 · 6 col · gutter 16 (base ~390)
   ========================================================================== */

:root {
  --lime: #DEF604;
  --black: #131315;
  --white: #FFFFFF;

  --margin: 64px;
  --gutter: 16px;
  --cols: 12;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Wrapper de largura de conteúdo com as margens do grid */
.wrap { padding-inline: var(--margin); }

/* ===================== PRIMEIRA TELA (100vh) ====================== */
.hero-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lime);
}

/* ============================== TOPBAR ============================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--margin) 0;
}
.topbar__logo img { width: auto; height: 51px; }

/* Botão LET'S TALK — efeito cubo 3D no hover (estilo hugeinc.com) */
.btn-talk {
  --btn-h: 46px;
  position: relative;
  display: inline-block;
  height: var(--btn-h);
  perspective: 600px;
  text-decoration: none;
}
.btn-talk__sizer {
  display: block;
  padding: 0 22px;
  line-height: var(--btn-h);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  visibility: hidden;
}
.btn-talk__faces {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: translateZ(calc(var(--btn-h) / -2));
}
.btn-talk:hover .btn-talk__faces,
.btn-talk:focus-visible .btn-talk__faces {
  transform: translateZ(calc(var(--btn-h) / -2)) rotateX(90deg);
}
.btn-talk__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backface-visibility: hidden;
}
.btn-talk__face--front {
  background: var(--black);
  color: var(--lime);
  transform: translateZ(calc(var(--btn-h) / 2));
}
.btn-talk__face--bottom {
  background: var(--lime);
  color: var(--black);
  transform: rotateX(-90deg) translateZ(calc(var(--btn-h) / 2));
}

/* =============================== HERO =============================== */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px var(--margin) 72px;
}
.hero__title {
  margin: 0;
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-size: min(19vw, 31vh);
}

/* =============================== INTRO ============================== */
.intro {
  position: relative;
  background: var(--white);
  padding: 72px var(--margin) 96px;
  overflow: hidden;
}
.intro__bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 260%;
  width: auto;
  z-index: 0;
  pointer-events: none;
}
.intro__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.9vw, 56px);
}

/* ================================ HOW ============================== */
.how {
  position: relative;
  background: var(--lime);
  overflow: hidden;
  padding: 80px var(--margin);
  min-height: 46vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how__word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.01em;
  font-size: 44vw;
  z-index: 0;
  user-select: none;
}
.how__list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 1040px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.5;
}
.how__list li { display: inline; }
.how__list li::after { content: "\00a0\00a0"; }
.how__list li:nth-child(3)::after { content: ""; display: block; height: 0; }

/* ============================ LEADERSHIP =========================== */
.leadership {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 0 var(--margin);
  min-height: 570px;
}
.lw {
  position: absolute;
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.02em;
  font-size: clamp(150px, 15.5vw, 320px);
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}
.lw--lead { top: 40px; left: -8px; }
.lw--ship { top: 300px; right: -8px; }

.lphoto {
  position: absolute;
  z-index: 2;
  width: 172px;
  height: 220px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.lphoto--rodrigo { top: 52px; left: 58.5vw; }
.lphoto--kleber { top: 300px; right: calc(37.5vw + 4px); }

.lbio {
  position: absolute;
  z-index: 2;
  width: 250px;
}
.lbio__name {
  display: inline-block;
  margin: 0 0 6px;
  background: var(--lime);
  color: var(--black);
  font-family: "Helvetica Neue LT Std", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 2px 6px;
}
.lbio__text {
  margin: 0;
  font-family: "Helvetica Neue LT Std", Arial, sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--black);
}
.lbio__text a { text-decoration: underline; }

/* Rodrigo: bio à direita da sua foto (topo) */
.lbio--rodrigo { top: 56px; left: calc(58.5vw + 190px); }
/* Kleber: bio à esquerda da sua foto (embaixo), alinhada à direita */
.lbio--kleber { top: 304px; right: calc(37.5vw + 198px); text-align: right; }
.lbio--kleber .lbio__name { text-align: left; }

/* ============================= CLIENTES ============================ */
.clients {
  background: var(--black);
  padding: 76px var(--margin);
}
.clients__list {
  margin: 0;
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.18;
  font-size: clamp(24px, 3.4vw, 44px);
}

/* ============================== OUTRO ============================== */
.outro {
  background: var(--white);
  padding: 72px var(--margin) 84px;
}
.outro__title {
  margin: 0;
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-size: 16.4vw;
}

/* ============================== FOOTER ============================= */
.footer {
  background: var(--black);
  color: #C9C9C9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--margin);
  font-size: 13px;
}
.footer__copy { margin: 0; }
.footer__credit { display: flex; align-items: center; gap: 10px; }
.footer__credit span { color: #C9C9C9; }
.footer__logo { filter: brightness(0) invert(1); }
.footer__logo--hearting { height: 22px; }
.footer__logo--rooker { height: 13px; }
.footer__divider { color: #6a6a6a; }

/* ==========================================================================
   MOBILE (<= 768px): margem 24 · 6 colunas
   ========================================================================== */
@media (max-width: 768px) {
  :root { --margin: 24px; --cols: 6; }

  .topbar { padding-top: 24px; }
  .topbar__logo img { height: 42px; }
  .btn-talk { --btn-h: 40px; }
  .btn-talk__sizer { font-size: 13px; padding: 0 16px; }
  .btn-talk__face { font-size: 13px; }

  /* HERO — título ancorado embaixo (100vh via .hero-screen) */
  .hero { padding: 40px var(--margin) 48px; }
  .hero__title { font-size: clamp(52px, 18vw, 110px); }

  /* INTRO */
  .intro { padding: 40px var(--margin) 64px; }
  .intro__bolt { height: 200%; }
  .intro__text { max-width: 100%; font-size: clamp(19px, 5.6vw, 30px); line-height: 1.16; }

  /* HOW — lista empilhada e centralizada */
  .how { min-height: 680px; padding: 70px var(--margin); align-items: center; }
  .how__word {
    font-size: 88vw;
    text-align: center;
    line-height: 0.72;
  }
  .how__word span { display: block; }
  .how__list { font-size: clamp(15px, 4.6vw, 20px); line-height: 1.25; }
  .how__list li { display: block; margin-bottom: 16px; }
  .how__list li::after { content: ""; }
  .how__list li:nth-child(3)::after { display: none; }

  /* LEADERSHIP — grid 2 colunas, palavra e foto LADO A LADO:
     bio Rodrigo · LEA/DER + foto · foto + SHIP · bio Kleber */
  .leadership {
    min-height: 0;
    padding: 48px var(--margin) 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: var(--gutter);
    row-gap: 26px;
    grid-template-areas:
      "biorod  biorod"
      "lead    photorod"
      "photokl ship"
      "biokle  biokle";
  }
  .leadership > * { min-width: 0; }
  .lw {
    position: static; inset: auto;
    font-size: 22vw; line-height: 0.9;
    letter-spacing: -0.02em;
    white-space: normal;
  }
  .lw--lead { grid-area: lead; align-self: end; }
  .lw--lead span { display: block; }
  .lw--ship {
    grid-area: ship; align-self: start; justify-self: end; text-align: right;
    white-space: nowrap; word-break: normal; overflow-wrap: normal;
  }

  .lphoto { position: static; width: 130px; height: 165px; z-index: 2; }
  .lphoto--rodrigo { grid-area: photorod; justify-self: start; align-self: center; }
  .lphoto--kleber  { grid-area: photokl; justify-self: start; align-self: center; }

  .lbio { position: static; width: 100%; }
  .lbio--rodrigo { grid-area: biorod; }
  .lbio--kleber  { grid-area: biokle; text-align: right; }

  /* CLIENTES */
  .clients { padding: 48px var(--margin); }
  .clients__list { font-size: clamp(22px, 6.6vw, 30px); line-height: 1.2; }

  /* OUTRO */
  .outro { padding: 48px var(--margin) 56px; }
  .outro__title { font-size: clamp(44px, 15vw, 96px); }

  /* FOOTER — centralizado e empilhado */
  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 28px var(--margin);
  }
  .footer__credit { flex-direction: column; gap: 8px; }
  .footer__credit .footer__divider { display: none; }
  .footer__copy { order: 3; }
}

/* ==========================================================================
   MOTION / REVEAL + SMOOTH SCROLL (Lenis)
   ========================================================================== */

/* Quebra de linha dos títulos por span (substitui os <br>) */
.hero__title span,
.outro__title span { display: block; }

/* Estado inicial escondido — só quando o JS de reveal está ativo */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal-item] {
  opacity: 0;
  will-change: opacity, transform;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
