/* Scale by Design · site v3
   Tipografia: Archivo variável (peso + largura), uma família só.
   Cor: papel + tinta quase pretos, azul de marca #0000FF (do símbolo) como único acento.
   Forma: botões em pílula, todo o resto com cantos retos. */

:root {
  --paper: #fafafa;
  --paper-2: #f0f0ee;
  --ink: #0b0b0d;
  --ink-2: #3c3c43;
  --mute: #6b6b74;
  --line: rgba(11, 11, 13, 0.14);
  --blue: #0000ff;
  --blue-ink: #0000cc;
  --on-dark: #f4f4f2;
  --on-dark-mute: #8a8a93;
  --line-dark: rgba(244, 244, 242, 0.16);
  --night: #000415; /* fundo do vídeo do S */
  --blue-on-dark: #7a7aff; /* azul de marca clareado para contraste no fundo escuro */

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Escala z: nav acima do conteúdo, nada mais */
  --z-nav: 10;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-mute);
}

.h2 {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(40px, 6vw, 96px); font-weight: 750; letter-spacing: -0.045em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--ink); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--ink); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Navegação ---------- */
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.is-scrolled {
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__row { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav__logo img { height: 36px; width: auto; }
/* no topo o logo grande fica no hero; o do menu aparece depois que o hero sai da tela */
.nav__logo { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; }
.nav.has-logo .nav__logo { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__links a {
  position: relative; color: var(--ink-2); padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__row .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(24px, 4vh, 56px)) 0 clamp(48px, 7vh, 88px);
}
.hero__inner { display: flex; flex-direction: column; }
.hero__logo { align-self: flex-start; height: clamp(64px, 7.4vw, 116px); width: auto; margin-bottom: clamp(28px, 5vh, 56px); }

.hero__title {
  font-size: clamp(40px, 5.9vw, 100px);
  font-weight: 800;
  font-stretch: 106%;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__foot {
  margin-top: clamp(32px, 5vh, 56px); padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end;
}
.hero__lede { max-width: 34ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.hero__ctas { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; }
}

/* ---------- Blocos de mídia (vidro iridescente, fundo próprio da imagem) ---------- */
.media { margin: 0; overflow: hidden; background: #ece9e3; }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ---------- Manifesto / Jornada ---------- */
.manifesto { padding: clamp(96px, 12vw, 200px) 0; }
.manifesto__statement {
  font-size: clamp(34px, 5.4vw, 88px);
  font-weight: 650; line-height: 1.04; letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}
.manifesto__grid {
  margin-top: clamp(72px, 9vw, 144px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 112px); align-items: end;
}
.manifesto__figure { aspect-ratio: 4 / 5; }
.manifesto__body { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.manifesto__body .h2 { font-size: clamp(28px, 3vw, 48px); margin-bottom: 8px; }
.manifesto__body p { max-width: 58ch; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; }
}

/* ---------- Jornada da receita (S que se desenha) ---------- */
.journey { position: relative; margin-top: 0; }
.journey__sticky {
  position: sticky; top: 0; height: 100dvh;
  background: var(--night); color: #fff;
  clip-path: inset(0 var(--gutter));
  overflow: hidden;
}
.journey__frame {
  height: 100%; max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(24px, 4vh, 48px)) calc(var(--gutter) * 2) clamp(32px, 6vh, 64px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: stretch;
}
.journey__text { display: flex; flex-direction: column; min-height: 0; container-type: inline-size; }
.journey__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

.jr-stages { position: relative; flex: 1; display: grid; align-items: center; }
.jr-stage { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 20px; }
.jr-stage__n { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.72); }
.jr-stage h3 {
  font-size: clamp(28px, 9.2cqi, 112px); font-weight: 800; font-stretch: 106%; /* cqi: a palavra mais longa cabe na coluna */
  line-height: 0.95; letter-spacing: -0.045em; text-transform: uppercase;
  overflow-wrap: break-word;
}
.jr-stage p { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.35; max-width: 26ch; text-wrap: pretty; }
.jr-stage { opacity: 0; visibility: hidden; transform: translateY(32px); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s linear .6s; }
.jr-stage.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s, visibility 0s; }
.jr-stage.is-past { transform: translateY(-32px); }

.journey__s { position: relative; min-height: 0; }
.journey__s canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Trilhos invisíveis que dão a duração da rolagem: uma tela por etapa */
.journey__steps { margin-top: -100dvh; }
.journey__step { height: 100vh; }
.journey__step:first-child { height: 140vh; }
.journey__step:last-child { height: 60vh; }

@media (max-width: 860px) {
  .journey__frame {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr);
    padding: calc(var(--nav-h) + 20px) calc(var(--gutter) + 16px) 24px;
    gap: 16px;
  }
  .journey__text { order: 1; }
  .journey__s { order: 2; }
  .jr-stages { min-height: 200px; align-items: start; padding-top: 16px; }
  .jr-stage { gap: 12px; }
    }

/* ---------- Método (acordeão) ---------- */
.method { padding: clamp(96px, 12vw, 200px) 0 clamp(80px, 9vw, 140px); }
.method__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.method__figure { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .method__head { grid-template-columns: 1fr; }
  .method__figure { aspect-ratio: 16 / 10; }
}
.method__lede { margin-top: 24px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); text-wrap: pretty; }
.acc { margin-top: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--ink); }
.acc__item { border-top: 1px solid var(--ink); }
.acc__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: clamp(48px, 6vw, 96px) 1fr auto 32px; align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: clamp(22px, 2.6vw, 36px) 0;
}
.acc__n { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--mute); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.acc__title { font-size: clamp(26px, 3.8vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; transition: color .3s ease; }
.acc__tag { font-size: 14px; font-weight: 500; color: var(--mute); }
.acc__icon { position: relative; width: 20px; height: 20px; justify-self: end; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: currentColor;
  transition: transform .4s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__btn:hover .acc__title, .acc__item.is-open .acc__title, .acc__item.is-open .acc__n { color: var(--blue); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p {
  margin-left: calc(clamp(48px, 6vw, 96px) + clamp(12px, 2vw, 32px));
  padding-bottom: clamp(28px, 3vw, 44px);
  max-width: 60ch; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); text-wrap: pretty;
}
@media (max-width: 640px) {
  .acc__btn { grid-template-columns: 32px 1fr 24px; }
  .acc__tag { display: none; }
  .acc__panel p { margin-left: calc(32px + 12px); }
}

/* ---------- Clientes (marquee) ---------- */
.clients { padding: clamp(80px, 9vw, 140px) 0 clamp(96px, 10vw, 160px); border-top: 1px solid var(--line); overflow: hidden; }
.clients .h2 { max-width: 20ch; }
.marquee { margin-top: clamp(48px, 6vw, 88px); display: flex; width: max-content; }
.marquee__track { display: flex; flex: none; align-items: center; }
.marquee__track li { display: flex; align-items: center; height: 96px; }
.marquee__track img {
  height: var(--h); width: auto; display: block;
  opacity: 0.78; transition: opacity .25s ease;
}
.marquee__track li:hover img { opacity: 1; }
/* separador: bolinha azul */
.marquee__track li::after {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); margin: 0 clamp(36px, 4vw, 64px);
}
@media (max-width: 640px) {
  .marquee__track li { height: 72px; }
  .marquee__track img { height: calc(var(--h) * 0.72); }
}

/* ---------- Contato: título, texto e botão cabem numa tela ---------- */
.contact {
  background: var(--blue); color: #fff;
  min-height: calc(100dvh - var(--nav-h));
  display: flex; align-items: stretch;
  padding: clamp(56px, 9vh, 112px) 0 clamp(40px, 7vh, 80px);
}
.contact .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 6vh, 72px); }
.contact__title {
  font-size: clamp(44px, min(7.6vw, 13vh), 136px); font-weight: 800; font-stretch: 106%;
  line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase;
  max-width: 13ch;
}
.contact__foot {
  padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.4);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.contact__foot p { max-width: 40ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; text-wrap: pretty; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 5vw, 72px) 0; }
.footer__row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px 64px; }
.footer__row img { height: 56px; width: auto; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; color: var(--on-dark-mute); }
.footer__links a:hover { color: var(--on-dark); }
.footer__legal { font-size: 14px; color: var(--on-dark-mute); }
@media (max-width: 860px) {
  .footer__row { grid-template-columns: 1fr; align-items: start; }
}

/* =========================================================
   Movimento. Tudo desligado com prefers-reduced-motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Entrada do hero: linhas sobem de dentro da máscara */
  .hero__title .line > span { animation: rise 1s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .08s; }
  .hero__foot { animation: fade 1s var(--ease) .25s both; }
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } }

  /* Revelação genérica ao entrar na tela (classe posta pelo IntersectionObserver) */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* Marquee */
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-100%); } }

  /* Animações ligadas à rolagem, onde o navegador suporta */
  @supports (animation-timeline: view()) {
    /* Bloco azul abre até as bordas da tela ao entrar */
    .journey { view-timeline: --journey block; }
    .journey__sticky {
      animation: open-media linear both;
      animation-timeline: --journey;
      animation-range: entry 15% entry 85%;
    }
    @keyframes open-media { to { clip-path: inset(0 0); } }

    /* Frase-manifesto acende palavra por palavra */
    .manifesto__statement { view-timeline: --statement block; }
    .manifesto__statement .w {
      opacity: 0.14;
      animation: word-on linear both;
      animation-timeline: --statement;
      animation-range: cover calc(18% + var(--i) * var(--step)) cover calc(24% + var(--i) * var(--step));
    }
    @keyframes word-on { to { opacity: 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr-stage, .jr-stage.is-active { transition: none; transform: none; }
}
