/* Layout: cenas fixadas (sticky) que se transformam com o scroll — hero que atravessa o "4", manifesto que acende, trilha horizontal de serviços, método em 4 etapas, CTA.
   Identidade monocromática deliberada (preto e branco da 4Hub), sem tema claro/escuro alternativo. */
:root {
  --ink: #0b0b0c;
  --ink-2: #161618;
  --paper: #f3f3f1;
  --white: #ffffff;
  --smoke: #8d8d8f;
  --smoke-dark: #5b5b5e;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(11, 11, 12, .14);

  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; line-height: 1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.eyebrow--dark { color: var(--smoke-dark); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }
.btn--full { width: 100%; }

/* ---------- Logo (texto de reserva até subir o arquivo oficial) ---------- */
.mark { display: inline-flex; flex-direction: column; line-height: .9; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.mark b { font-weight: 900; }
.mark small { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 7.5px; letter-spacing: .42em; margin-left: 18px; }
.custom-logo { height: 34px; width: auto; display: block; }
.foot__brand .custom-logo { height: 30px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 22px;
  background: rgba(16, 16, 18, .72); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav__brand { text-decoration: none; display: flex; align-items: center; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; color: #cfcfd1; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 240vh; background: var(--ink); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: grid; place-items: center; }
.hero__grid {
  position: absolute; inset: -6%;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 104px;
  place-items: center; opacity: calc(.55 - var(--p, 0) * .55);
  transform: scale(calc(1 + var(--p, 0) * .35));
}
.hero__grid span {
  width: 76px; height: 80px;
  background: url("../img/four-outline.png") center / contain no-repeat;
  opacity: .28; transition: opacity .6s;
}
.hero__grid span.lit { opacity: .85; }
.hero__four {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.hero__four span {
  display: block; height: min(72vh, 64vw); aspect-ratio: 855 / 900; max-width: 100%;
  background: url("../img/four-outline.png") center / contain no-repeat;
  transform: translateY(4%) scale(var(--zoom, 1));
  transform-origin: 44% 40%;
  will-change: transform;
  opacity: .55;
}
.hero__copy {
  position: relative; z-index: 2; width: 100%; max-width: 1080px;
  padding: calc(var(--nav-h) + 40px) var(--gutter-r) 40px var(--gutter);
  display: grid; gap: 22px; justify-items: center; text-align: center;
  opacity: var(--copy-o, 1); transform: translateY(var(--copy-y, 0));
}
.hero h1 { font-size: clamp(38px, 7vw, 96px); text-transform: uppercase; }
.hero__lead { max-width: 56ch; color: #c9c9cb; font-size: clamp(16px, 1.6vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.hero__hint {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke);
  opacity: var(--copy-o, 1);
}
.hero__hint span { width: 1px; height: 28px; background: linear-gradient(var(--white), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }
.hero__flash { position: absolute; inset: 0; background: var(--paper); opacity: var(--flash, 0); pointer-events: none; z-index: 3; }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; height: 220vh; background: var(--paper); color: var(--ink); }
.manifesto__stage {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; gap: 28px;
  max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter-r) 60px var(--gutter);
}
.manifesto__text {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(28px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch;
}
.manifesto__text .w { color: rgba(11, 11, 12, .16); transition: color .35s; }
.manifesto__text .w.on { color: var(--ink); }

/* ---------- SERVIÇOS ---------- */
.services { position: relative; background: var(--ink); }
.services__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 36px; }
.services__head { max-width: var(--wrap); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; gap: 14px; }
.services__head h2 { font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; }
.services__track {
  display: flex; gap: 20px; align-items: stretch; margin-top: 40px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 16px));
  padding-right: var(--gutter-r);
  transform: translate3d(var(--tx, 0), 0, 0); will-change: transform; min-width: 0;
}
.svc {
  position: relative; overflow: hidden; flex: 0 0 min(440px, 82vw);
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2);
  transition: border-color .3s, background .3s;
}
.svc:hover { border-color: rgba(255, 255, 255, .4); }
.svc__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.svc__name { font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; }
.svc__desc { color: #c4c4c6; max-width: 40ch; }
.svc__list { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; position: relative; z-index: 1; }
.svc__list li::before { content: "+"; font-family: var(--mono); color: var(--smoke); margin-right: 10px; }
.svc__ghost {
  position: absolute; right: -10px; bottom: 54px;
  font: 900 120px/1 var(--display); font-stretch: 125%; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09); pointer-events: none;
}
.services__bar { max-width: var(--wrap); width: calc(100% - 32px); margin: 28px auto 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__bar span { display: block; height: 100%; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- MÉTODO ---------- */
.method { background: var(--paper); color: var(--ink); }
.method__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 120px var(--gutter-r) 120px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start;
}
.method__head { position: sticky; top: calc(var(--nav-h) + 48px); display: grid; gap: 20px; }
.method__head h2 { font-size: clamp(32px, 4.4vw, 58px); text-transform: uppercase; }
.method__note { color: var(--smoke-dark); max-width: 42ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 36px 0; border-top: 1px solid var(--line-dark); }
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step__n {
  font: 900 88px/.8 var(--display); font-stretch: 125%; color: transparent;
  -webkit-text-stroke: 1.5px var(--ink); min-width: 1.1ch; transition: color .5s;
}
.step.in .step__n { color: var(--ink); }
.step h3 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: #3d3d40; max-width: 52ch; }
[data-reveal] { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s; }
.js [data-reveal]:not(.in) { opacity: .35; transform: translateY(24px); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--ink); overflow: hidden; }
.cta__lines {
  position: absolute; left: -4%; top: 90px; width: min(1500px, 140vw); aspect-ratio: 1800 / 1273; max-width: none;
  background: url("../img/four-lines.png") left top / contain no-repeat;
  opacity: .4; pointer-events: none; transform: translateY(var(--ly, 0));
}
.cta__marquee, .cta__inner { position: relative; z-index: 1; }
.cta__marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.cta__row {
  display: inline-block; font: 900 clamp(56px, 10vw, 150px)/1 var(--display); font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
  transform: translateX(var(--mx, 0)); will-change: transform;
}
.cta__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 100px var(--gutter-r) 120px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start;
}
.cta__copy { display: grid; gap: 22px; }
.cta__copy h2 { font-size: clamp(34px, 5vw, 68px); text-transform: uppercase; }
.cta__copy p:not(.eyebrow) { color: #c4c4c6; max-width: 44ch; }
.cta__copy .cta__phone { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; color: var(--white); }
.cta__phone a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cta__phone a:hover { border-color: var(--white); }

.form { display: grid; gap: 20px; padding: 32px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.opt { color: var(--smoke); font-weight: 400; }
.field input[type="text"] {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px;
  background: var(--ink); color: var(--white); border: 1px solid var(--line);
  font: 400 16px var(--body); transition: border-color .2s;
}
.field input::placeholder { color: #6c6c70; }
.field input[type="text"]:focus { outline: none; border-color: var(--white); }
.field input[aria-invalid="true"] { border-color: #ff8a80; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form__msg { font-size: 14px; color: #c4c4c6; min-height: 1.4em; }
.form__msg a { font-weight: 600; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--smoke); font-size: 14px;
}
.foot__brand { text-decoration: none; color: var(--white); }
.foot__ig { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot__ig:hover { border-color: var(--white); }
.foot__legal { margin-left: auto; }

/* ---------- Páginas internas (WordPress) ---------- */
.page-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 90px) var(--gutter-r) 100px var(--gutter); }
.page-wrap h1 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin-bottom: 32px; }
.page-wrap .entry { color: #d4d4d6; }
.page-wrap .entry > * + * { margin-top: 1.1em; }
.page-wrap .entry h2 { font-size: 28px; margin-top: 1.8em; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: grid; gap: 4px; position: absolute; left: var(--gutter); right: var(--gutter-r); top: calc(env(safe-area-inset-top, 0px) + 84px);
    padding: 12px; background: rgba(16, 16, 18, .96); border: 1px solid var(--line); border-radius: 20px; margin: 0;
  }
  .nav.is-open .nav__links a { padding: 14px 12px; font-size: 18px; }
  .method__inner, .cta__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 88px; padding-bottom: 88px; }
  .method__head { position: static; }
}
/* No celular a trilha horizontal vira lista vertical */
@media (max-width: 720px) {
  .services { height: auto !important; }
  .services__stage { position: static; height: auto; min-height: 0; padding-top: 88px; padding-bottom: 72px; }
  .services__track { flex-direction: column; transform: none; padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .svc { flex: 1 1 auto; }
  .services__bar { display: none; }
  .step { gap: 18px; }
  .step__n { font-size: 64px; }
  .form { padding: 22px; }
  .foot__legal { margin-left: 0; }
  .hero__grid span { width: 58px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .manifesto { height: auto; }
  .hero__stage, .manifesto__stage { position: relative; }
  .hero__four { display: none; }
  .services { height: auto !important; }
  .services__stage { position: static; height: auto; }
  .services__track { flex-wrap: wrap; transform: none; padding-right: var(--gutter-r); }
  .services__bar { display: none; }
  .manifesto__text .w { color: var(--ink); }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .hero__hint span { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
