/* ==========================================================================
   Blocos inspirados no guillaumezhu.com, refeitos para este site
   (paleta: laranja do 1367, âmbar dos óculos, creme-pêssego e grafite)
   - Manifesto (letras onduladas)
   - "E agora?" (texto em curva)    - Rodapé em gradiente
   ========================================================================== */

:root {
  --peach: #f5e7df;
  --graphite: #1f1d1d;
  --font-display: 'Cabinet Grotesk', Arial, Helvetica, sans-serif;
  --font-body: 'Satoshi', Arial, Helvetica, sans-serif;
  --ls-display: -0.025em;
}

/* ------------------------------------------------ Fonte nos blocos antigos */
.header-link,
#menu-panel a,
.menu-eyebrow,
.menu-secondary-link {
  font-family: var(--font-body);
}
.font-\[Geist_Mono\] { letter-spacing: 0.08em !important; }
.font-\[Geist_Mono\],
.agent-btn.header-link { font-weight: 700; }
#statement-text,
#hero-headline,
#project-content h2 { letter-spacing: var(--ls-display); }
section.bg-\[\#000000\] p,
#site-footer p { font-family: var(--font-body); }

/* =================================================== Manifesto */
.manifesto { background: var(--peach); position: relative; overflow: hidden; }
.manifesto__container {
  transform-origin: top;
  will-change: transform, border-radius;
  align-items: center;
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--peach);
}
.manifesto.is-exiting { background: #000; }
.manifesto__text {
  white-space: nowrap;
  width: max-content;
  color: var(--graphite);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  cursor: default;
  padding: 0 101vw;
  font-size: 12vw;
  line-height: 1;
  margin: 0;
  display: block;
}
.manifesto .word { display: inline-block; }
.manifesto__accent { color: var(--primary); }
.manifesto .letter { display: inline-block; }
@media (max-width: 600px) {
  .manifesto__text { font-size: clamp(52px, 15vw, 72px); }
}

/* =================================================== E agora? (texto em curva + rodapé) */
.next { background: #000; color: var(--peach); position: relative; }
.next__pin-height { height: 260vh; position: relative; }
.next__container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.next__intro {
  z-index: 2;
  letter-spacing: var(--ls-display);
  text-align: center;
  white-space: nowrap;
  will-change: opacity, transform;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.next__intro p { margin: 0; }
.next__link {
  width: max-content;
  color: var(--peach);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  position: absolute;
  top: calc(115% + clamp(12px, 1.5vw, 24px));
  left: 50%;
  transform: translate(-50%);
}
.next__link-arrow { margin-left: 0.35em; display: inline-block; transition: transform 0.3s; }
.next__link:hover .next__link-arrow { transform: translate(3px, -3px); }
.next__svg {
  z-index: 2;
  pointer-events: none;
  width: 300vw;
  height: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  overflow: visible;
  transform: translateY(-50%);
}
.next__text {
  fill: var(--peach);
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 500;
}
.next__orb { opacity: 0; visibility: hidden; pointer-events: none; }

.next-footer {
  z-index: 1;
  clip-path: circle(0);
  will-change: clip-path;
  pointer-events: none;
  background: #f43c05;
  color: #fff;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.next-footer {
  flex-direction: column;
  display: flex;
}
.next-footer__content {
  z-index: 2;
  flex: none;
  padding: clamp(84px, 10vh, 120px) clamp(24px, 4.2vw, 80px) 0;
  position: relative;
}
.next-footer__inner {
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 160px);
  width: 100%;
  display: flex;
}
.next-footer__main {
  flex-direction: column;
  gap: clamp(20px, 3.4vh, 40px);
  min-width: 0;
  display: flex;
  align-items: flex-start;
}
.next-footer__headline {
  max-width: 950px;
  letter-spacing: var(--ls-display);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 78px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}
.next-footer__cta {
  font-family: var(--font-mono, var(--font-body));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: #f43c05 !important;
  background: #fff;
  border-radius: 999px;
  padding: 1.25em 2.1em;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.next-footer__cta:hover { transform: translateY(-2px); opacity: 0.92; }
.next-footer__cta::after { display: none; }
.next-footer__meta {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 400;
  opacity: 0.9;
}
.next-footer__meta p { margin: 0; }
.next-footer__nav {
  flex-shrink: 0;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 72px);
  padding-top: clamp(4px, 1vh, 16px);
  display: flex;
  position: relative;
}
.next-footer__group {
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.3vh, 16px);
  min-width: clamp(110px, 8vw, 160px);
  display: flex;
}
.next-footer__group-title {
  margin: 0 0 clamp(8px, 1.4vh, 16px);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 500;
  line-height: 1;
}
.next-footer a {
  color: inherit;
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  width: fit-content;
  position: relative;
}
.next-footer__group a { font-size: clamp(16px, 1.15vw, 22px); line-height: 1.2; }
.next-footer a::after {
  content: "";
  transform-origin: 0;
  pointer-events: none;
  background: currentColor;
  width: 100%;
  height: 1px;
  transition: transform 0.35s;
  position: absolute;
  bottom: -0.2em;
  left: 0;
  transform: scaleX(0);
}
.next-footer a:hover::after,
.next-footer a:focus-visible::after { transform: scaleX(1); }

.next-footer__row {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(18px, 2vw, 32px);
  display: flex;
}
/* o "rm" gigante: ocupa a largura toda (até passa das bordas), é cortado embaixo e esmaece, como o 1367 do rodapé original.
   A área dele é o que sobra embaixo do texto, então o corte se ajusta sozinho a qualquer altura de tela. */
.next-footer__rm-wrap {
  z-index: 1;
  flex: 1 1 auto;
  min-height: 26vh;
  margin-top: clamp(48px, 9vh, 110px);
  pointer-events: none;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.16) 100%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.16) 100%);
}
.next-footer__rm {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100.6vw;
  height: auto;
  aspect-ratio: 420 / 190;
  transform: translateX(-50%);
}

@media (max-width: 1024px) and (orientation: portrait) {
  .next-footer__content { padding: 92px 24px 0; }
  .next-footer__inner { flex-direction: column; gap: clamp(28px, 4vh, 44px); }
  .next-footer__headline { font-size: clamp(32px, 8.4vw, 56px); }
  .next-footer__nav { justify-content: space-between; gap: 24px; width: 100%; padding-top: 0; }
  .next-footer__group { min-width: 0; }
  .next-footer__group a { font-size: 16px; }
  .next-footer__rm-wrap { margin-top: 40px; }
}
@media (max-height: 620px) and (orientation: landscape) {
  .next-footer__content { padding-top: 76px; }
  .next-footer__headline { font-size: 26px; }
}

/* =================================================== Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .manifesto__text { white-space: normal; width: auto; padding: 0 6vw; font-size: clamp(40px, 8vw, 96px); }
  .manifesto__container { height: auto; min-height: 100vh; }
  .next__pin-height { height: auto; }
  .next__container { position: relative; height: auto; min-height: 100vh; }
  .next__intro, .next__svg { position: static; transform: none; }
  .next-footer { position: relative; clip-path: none; pointer-events: auto; inset: auto; min-height: 100vh; }
}

/* Texto só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================== Arredondamento geral (estilo Guillaume) */
/* cabeçalho: mesmo do 1367 (dá para ver o fundo); só o logo virou o nome */
#site-header .header-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--hc);
  transition: color 0.3s ease, opacity 0.2s ease;
}
#site-header .header-wordmark:hover { opacity: 0.7; }
#hero-aside a { border-radius: 999px !important; }
@media (min-width: 768px) {
  #menu-panel .menu-bg { border-radius: 32px; }
}
@media (max-width: 767px) {
  .menu-topbar { padding-top: 96px !important; }
  .menu-primary { gap: 26px !important; padding-top: 40px !important; }
  .menu-secondary { padding-top: 36px !important; gap: 14px !important; }
}

/* A faixa no topo de cada bloco "dobra" o bloco anterior por cima dele, com cantos redondos:
   laranja do banner sobre o creme, creme da apresentação
   sobre as ferramentas e laranja do último case sobre o "E agora?". */
.manifesto::before,
.next::before {
  content: "";
  height: var(--round);
  border-radius: 0 0 var(--round) var(--round);
  pointer-events: none;
  z-index: 6;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.manifesto::before { background: var(--primary); }
.next::before { background: var(--primary); }

/* =================================================== Bloco da frase (preto + logo RM) */
.statement { color: #fff; background: #000; }
