/* ============================================================
   BeFood — Parallax site
   Tipografia: Recoleta (display serif) + Causten Round (sans rounded → Nunito fallback)
   Paleta:    #E32738 vermelho · #000 preto · #FFFFFF branco · #F8CDAA peach · #FBE3CE peach light · #4D4D4D gray
   ============================================================ */

/* ============================================================
   FONTES — self-hosted (mais robusto que CDN, sem bloqueios)
   Recoleta Alt (display) + Causten Round (body)
   ============================================================ */
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/RecoletaAlt-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Causten Round — só temos o peso Black. Declaramos faixa ampla
   (100–900) para garantir que qualquer requisição de peso caia neste
   arquivo, evitando que o navegador rejeite font-matching e troque pra
   Nunito. Body com peso 600+ vai exibir o Black como pretendido pela
   marca. */
@font-face {
  font-family: "Causten Round";
  src: url("fonts/CaustenRound-Black.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Mantemos os @import remotos como fallback caso a hospedagem demore
   a entregar os arquivos locais — `local()` é checado primeiro. */
@import url("https://api.fontshare.com/v2/css?f[]=recoleta@400,500,600,700,900&f[]=recoleta-alt@400,500,600,700,900&display=swap");

/* Pré-carregamento explícito via <link> não está disponível em CSS-only,
   mas reforçamos o uso para que cada elemento receba a família — caso
   alguma extensão de privacidade bloqueie o @import, deixamos fallbacks
   tipográficos que mantêm a hierarquia. */
html, body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, select, li {
  font-family: var(--sans);
}
.h-display, .h1, .h2, .h3, .h4,
.hero-title, .manifesto-quote, .pullquote h2,
.editorial-title, .gate-form h3, .contact-form h3,
.step h3, .chip, .chip-quip, .chip-quip-mark,
.brand, .stat .num, .footer-mega, .hero-meta strong,
.italic-serif, blockquote {
  font-family: var(--serif);
}

/* ============================================================
   ACCESSIBILITY — skip link for keyboard / screen-reader users
   ============================================================ */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 999;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================
   ACCESSIBILITY — respect users who request reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .mascote img,
  .ticker-track,
  .hero-mega,
  .editorial-bg-letters {
    animation: none !important;
  }
}

:root {
  /* === CORES OFICIAIS DA MARCA ============================================ */
  --color-primary: #E32738;
  --color-primary-hover: #C71F2E;
  --color-primary-active: #A91A27;
  --color-secondary: #F8CDAA;
  --color-text: #000000;
  --color-background: #FFFFFF;

  /* Neutros funcionais — derivados de #000 com opacidade */
  --color-border-subtle: rgba(0, 0, 0, 0.08);
  --color-border-default: rgba(0, 0, 0, 0.20);
  --color-border-strong: rgba(0, 0, 0, 0.50);
  --color-text-muted: rgba(0, 0, 0, 0.60);
  --color-disabled: rgba(227, 39, 56, 0.40);

  /* === ALIASES (mantém retro-compat com o CSS já escrito) ================== */
  --red:        var(--color-primary);
  --red-deep:   var(--color-primary-active);
  --black:      var(--color-text);
  --ink:        #141414;                 /* tom de cinza-quase-preto editorial */
  --white:      var(--color-background);
  --bone:       #fbf8f3;                 /* fundo bege editorial */
  --peach:      var(--color-secondary);
  --peach-light:#fbe3ce;
  --peach-soft: #fdf1e6;
  --gray:       var(--color-text-muted);
  --line:       var(--color-border-default);
  --line-soft:  var(--color-border-subtle);
  --line-dark:  rgba(255, 255, 255, 0.14);

  /* === TIPOGRAFIA ========================================================= */
  --serif: "Recoleta", "Recoleta Alt", "DM Serif Display", Georgia, serif;
  --sans:  "Causten Round", "Nunito", "Inter", system-ui, -apple-system, sans-serif;
  /* aliases compatíveis com o prompt da identidade */
  --font-display: var(--serif);
  --font-body:    var(--sans);

  /* Pesos */
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* Tamanhos fluidos */
  --fs-h1:      clamp(2rem, 4vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3:      clamp(1.125rem, 2vw, 1.5rem);
  --fs-h4:      clamp(1rem, 1.5vw, 1.125rem);
  --fs-body:    clamp(0.875rem, 1vw, 1rem);
  --fs-caption: 0.75rem;
  --fs-button:  0.875rem;

  --lh-tight:   1.15;
  --lh-base:    1.55;
  --ls-tight:   -0.02em;

  /* === ESTRUTURA ========================================================== */
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --pad-x: clamp(20px, 4vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }
body { overflow-x: clip; }

img, video, iframe { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Typography roles -------------------------------------------------- */
.h-display {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-size: clamp(56px, 11vw, 200px);
}
.h1 {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6vw, 96px);
}
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-size: clamp(32px, 4.4vw, 64px);
}
.h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2vw, 28px);
}
.h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.body {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray);
}
.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

::selection { background: var(--red); color: #fff; }

/* Site frame -------------------------------------------------------- */
.site {
  position: relative;
  isolation: isolate;
}

/* NAV --------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 280ms ease, padding 280ms ease, color 280ms ease;
}
.nav.is-stuck {
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 12px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.nav.is-dark {
  color: #fff;
}
.nav.is-dark.is-stuck {
  background: rgba(10, 10, 10, 0.7);
  border-bottom-color: var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  line-height: 0;
}
.brand svg {
  width: 179px;
  height: 77px;
  display: block;
}
.nav.is-stuck .brand svg { width: 179px; height: 77px; }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn-talk {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 200ms ease, background 200ms ease;
}
.btn-talk:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-talk .arrow {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* HERO -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--bone);
}

.hero-mega {
  position: absolute;
  inset: auto 0 -2vw 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(180px, 28vw, 520px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--peach);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}

.hero-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(40px, 7vw, 100px);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.hero-tag .pulse {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.hero-meta {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.hero-title-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-end;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 184px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero-title .alt {
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 6px;
  background: var(--red);
  border-radius: 4px;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  width: min(38vw, 460px);
  margin-left: auto;
  justify-self: end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #f8cdaa, #fbe3ce);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 30% 25%, rgba(255,255,255,0.4), transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.18));
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}
.hero-video {
  display: block;
  background: var(--peach-light);
}
.hero-image-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-bottom-row {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.hero-lede {
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.hero-lede .red { color: var(--red); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-cue .arrow-down {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* MARQUEE / TICKER -------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--peach);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll-x 32s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
}
.ticker-track > span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track .dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* MANIFESTO --------------------------------------------------------- */
.manifesto {
  background: var(--ink);
  color: #f5f5f5;
  padding: clamp(80px, 12vw, 180px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.manifesto-ghost {
  position: absolute;
  inset: auto -10% 0 -10%;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(220px, 30vw, 560px);
  line-height: 0.78;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: clamp(60px, 8vw, 120px);
  position: relative;
  z-index: 2;
}
.section-head .index {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.section-head .index::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--red);
  margin-top: 8px;
}
.section-head h2 { max-width: 22ch; }

/* Manifesto: header centralizado (não 2 colunas) */
.manifesto .section-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.manifesto .section-head .index { justify-content: center; }
.manifesto .section-head h2 {
  margin: 0 auto;
  max-width: 22ch;
}

.manifesto-quote {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: clamp(80px, 10vw, 140px) auto;
  text-align: center;
}
.manifesto-quote::before {
  content: "“ ";
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 1.2em;
  color: var(--red);
  line-height: 0;
  vertical-align: -0.15em;
  margin-right: 0.05em;
}
.manifesto-quote .red { color: var(--red); font-style: italic; }

.manifesto-grid {
  position: relative;
  z-index: 2;
  margin-top: clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.stat .num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.stat .label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* PROJECTS HORIZONTAL ----------------------------------------------- */
.projects {
  background: var(--bone);
  padding: clamp(80px, 12vw, 160px) 0 0;
  position: relative;
}
.projects-head {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.projects-head .index { color: var(--red); }
.projects-head .right {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.projects-head .right .hint {
  opacity: 0.7;
}
.carousel-nav {
  display: inline-flex;
  gap: 10px;
}
.nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, opacity 220ms ease;
}
.nav-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.nav-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}
.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.projects-head .right .drag-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}

.projects-track {
  display: flex;
  gap: 28px;
  padding: 0 var(--pad-x) 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.projects-track.is-dragging {
  cursor: grabbing;
}
.projects-track.is-dragging .project-card {
  pointer-events: none;
}
.projects-track::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

/* progress + count */
.projects-progress {
  padding: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.projects-progress .bar {
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.projects-progress .bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
  transition: width 200ms ease;
}
.projects-progress .count {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 56px;
  text-align: right;
}

.project-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--peach-light);
}
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18));
}
.project-image .num-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.project-image .year-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #fff;
  z-index: 2;
}
.project-image .ph-fill {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.02);
  transition: filter 600ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}
/* Apenas em dispositivos com mouse — toques no mobile não devem deixar
   hover travado durante o swipe (causa do "rastro" visual no carrossel). */
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .ph-fill {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1);
  }
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project-meta h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.project-meta .tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.project-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 38ch;
}

/* EDITORIAL parallax — 4 imagens em transição por scroll --------------- */
.editorial {
  position: relative;
  background: var(--ink);
  color: #f5f5f5;
  /* altura total = stage 100vh × 4 fases */
  height: 400vh;
}
.editorial-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 4vw, 80px);
  padding: clamp(40px, 8vh, 80px) var(--pad-x);
  align-items: center;
}

/* Background mega type — sutil, desliza horizontal */
.editorial-bg-letters {
  position: absolute;
  inset: auto 0 -2vh 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(180px, 28vw, 460px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
  user-select: none;
}

/* stack de imagens */
.editorial-imgs {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editorial-img {
  position: absolute;
  inset: 6% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.editorial-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 60px -25px rgba(0, 0, 0, 0.55),
    0 12px 24px -10px rgba(227, 39, 56, 0.18);
}

/* copy lateral */
.editorial-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 520px;
}
.editorial-copy-stack {
  position: relative;
  min-height: 280px;
}
.editorial-copy-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.editorial-copy-slide.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.editorial-copy-slide .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 16px;
}
.editorial-title {
  color: #fff;
  margin-bottom: 20px;
  max-width: 14ch;
}
.editorial-body {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38ch;
}

/* progresso */
.editorial-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  margin-top: 16px;
  padding-top: 22px;
}
.editorial-rail-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.editorial-rail-fill {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  background: var(--red);
  transition: width 120ms linear;
}
.editorial-rail-pip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  transition: color 220ms ease;
}
.editorial-rail-pip .pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.editorial-rail-pip.is-on { color: #fff; }
.editorial-rail-pip.is-on .pip {
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 900px) {
  .editorial { height: 320vh; }
  .editorial-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px;
    padding: 40px var(--pad-x);
  }
  .editorial-img { inset: 0; }
  .editorial-img img { max-height: 50vh; }
  .editorial-copy { max-width: none; }
  .editorial-copy-stack { min-height: 200px; }
  .editorial-bg-letters { font-size: clamp(120px, 40vw, 240px); }
}

/* PORTFOLIO GATE ----------------------------------------------------- */
.gate {
  position: relative;
  background: var(--peach-soft);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  overflow: hidden;
}
.gate::before {
  /* big ghost type behind everything */
  content: "PORTFOLIO";
  position: absolute;
  inset: auto 0 -8vw 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(180px, 26vw, 420px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--peach);
  opacity: 0.5;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.gate-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}

.gate-left h2 {
  margin: 12px 0 28px;
  max-width: 14ch;
}
.gate-lede {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 42ch;
  margin-bottom: 28px;
}
.gate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.gate-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.gate-list .bullet {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  color: var(--red);
  font-size: 28px;
  line-height: 0.6;
  flex-shrink: 0;
  width: 14px;
}
.gate-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}
.gate-meta strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.gate-meta span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-top: 4px;
}

/* form card */
.gate-form {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4);
}
.gate-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.gate-form-tag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}
.gate-form h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.gate-form h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--peach);
}
.gate-form .field label { color: rgba(255, 255, 255, 0.7); }
.gate-form .field input,
.gate-form .field select,
.gate-form .field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.gate-form .field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.gate-form .field input:focus,
.gate-form .field select:focus,
.gate-form .field textarea:focus {
  border-color: var(--peach);
  background: rgba(255, 255, 255, 0.1);
}

.gate-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  margin: 4px 0 6px;
  cursor: pointer;
}
.gate-agree input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}

.gate-submit {
  margin-top: 6px;
}
.gate-submit .arrow-cap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.gate-fineprint {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  text-align: center;
}
.gate-fineprint a { color: var(--peach); text-decoration: underline; }

/* dark-form status overrides */
.gate-form .form-status--sending {
  background: rgba(248, 205, 170, 0.12);
  color: var(--peach);
  border-color: rgba(248, 205, 170, 0.3);
}
.gate-form .form-status--sent {
  background: rgba(72, 187, 120, 0.12);
  color: #6fd690;
  border-color: rgba(111, 214, 144, 0.3);
}
.gate-form .form-status--error {
  background: rgba(227, 39, 56, 0.14);
  color: #ff8088;
  border-color: rgba(227, 39, 56, 0.4);
}

@media (max-width: 900px) {
  .gate-wrap { grid-template-columns: 1fr; }
  .gate-meta { grid-template-columns: 1fr; }
}

/* SERVICES CHIPS ---------------------------------------------------- */
.services {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  background: var(--bone);
}
.services-head { margin-bottom: 60px; }

.services-stage {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* Speech bubble that listens to the active chip — breaks the 4th wall */
.chip-quip {
  position: relative;
  align-self: center;
  max-width: 720px;
  min-height: 96px;
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  pointer-events: none;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, background 220ms ease;
}
.chip-quip-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chip-quip-body .chip-quip-text { display: block; }
.chip-quip-question {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  color: var(--gray);
  letter-spacing: 0;
}
.chip-quip-question strong {
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85em;
  display: inline-block;
  margin-right: 6px;
}
.chip-quip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.chip-quip.is-on {
  background: var(--peach-light);
  border-color: var(--peach);
  transform: translateY(-2px);
}
.chip-quip-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  color: var(--red);
  font-size: 1.6em;
  line-height: 0.7;
}
.chip-quip-text { flex: 1; }
.chip-quip-author {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  max-width: 1180px;
  padding: 14px 0;
}

.chip {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 30px);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  transition:
    transform 280ms cubic-bezier(.2,.7,.2,1),
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 240ms ease;
}
.chip:hover, .chip.is-active {
  transform: translateY(-3px);
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 12px 24px -10px rgba(227, 39, 56, 0.5);
  z-index: 2;
}

.chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
  transition: background 220ms ease, transform 320ms ease;
}
.chip:hover .chip-dot, .chip.is-active .chip-dot {
  background: #fff;
  transform: scale(1.4);
}

.chip-front { display: inline; }
.chip-back { display: none; } /* fala vai pro speech bubble; só para acessibilidade SR-only se quiser */

/* Tones intercaladas — sobrepostas pelo hover red */
.chip.--white { background: #fff; color: var(--ink); border-color: var(--line); }
.chip.--peach { background: var(--peach); color: var(--ink); border-color: transparent; }
.chip.--peach .chip-dot { background: var(--red); }
.chip.--ink   { background: var(--ink);   color: #fff; border-color: transparent; }
.chip.--ink .chip-dot { background: var(--peach); }

.services-meta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.services-meta .dash { color: var(--red); }

/* METHOD STICKY ----------------------------------------------------- */
.method {
  background: var(--peach-soft);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  position: relative;
}
.method-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}
.method-sticky {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}
.method-sticky .index { color: var(--red); }
.method-sticky h2 { margin: 20px 0 24px; max-width: 14ch; }
.method-sticky p {
  font-size: 16px;
  color: var(--gray);
  max-width: 38ch;
  line-height: 1.55;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: flex-start;
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.step:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.18); }
.step .step-num {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  min-width: 60px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 50ch;
}
.step .step-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--peach-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  color: var(--red);
  font-size: 20px;
}

/* PULL QUOTE -------------------------------------------------------- */
.pullquote {
  background: var(--red);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.pullquote::before, .pullquote::after {
  content: "“";
  position: absolute;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  line-height: 0.8;
  color: rgba(255,255,255,0.12);
  font-size: clamp(300px, 40vw, 700px);
}
.pullquote::before { top: -0.3em; left: -0.1em; }
.pullquote::after { bottom: -0.85em; right: -0.1em; transform: rotate(180deg); }
.pullquote-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pullquote h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.pullquote .attrib {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pullquote .attrib .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--peach);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 900; color: var(--red);
  font-size: 18px;
}
.pullquote .attrib .avatar-photo {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: var(--peach-light);
}
.pullquote .attrib .avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTACT ----------------------------------------------------------- */
.contact {
  background: var(--bone);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.contact-left h2 {
  margin-bottom: 28px;
  max-width: 14ch;
}
.contact-left .red { color: var(--red); font-style: italic; font-weight: 500; }
.contact-left p {
  font-size: 17px;
  color: var(--gray);
  max-width: 42ch;
  line-height: 1.5;
}
.contact-left .info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-left .info-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-left .info-row .k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-left .info-row .v {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
}

/* Lead paragraph under the form title */
.form-intro {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  margin: -14px 0 24px;
  max-width: 42ch;
}

/* Trust note below submit */
.form-reassurance {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  color: var(--gray);
  letter-spacing: 0.01em;
}
.form-reassurance::before {
  content: "·";
  color: var(--red);
  font-weight: 900;
  margin-right: 6px;
}
.form-reassurance::after {
  content: "·";
  color: var(--red);
  font-weight: 900;
  margin-left: 6px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bone);
  color: var(--ink);
  width: 100%;
  transition: border-color 200ms ease, background 200ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.field textarea { min-height: 100px; resize: vertical; font-family: var(--sans); }

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.budget-chip {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 200ms ease;
}
.budget-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 200ms ease, transform 200ms ease;
}
.submit-btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* schedule block ---------------------------------------------------- */
.schedule-block {
  margin-bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bone);
}
.schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.schedule-head .eyebrow {
  color: var(--red);
}
.schedule-window {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.schedule-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.schedule-grid .field { margin-bottom: 0; }
.schedule-grid input[type="date"].is-invalid,
.schedule-grid input.is-invalid {
  border-color: var(--red);
  background: rgba(227, 39, 56, 0.06);
}
.schedule-warn {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .schedule-grid { grid-template-columns: 1fr; }
}

/* form feedback ----------------------------------------------------- */
.form-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  animation: form-status-in 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes form-status-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-status--sending {
  background: var(--peach-soft);
  color: var(--ink);
  border: 1px solid var(--peach);
}
.form-status--sent {
  background: #e8f5e9;
  color: #1f7a3a;
  border: 1px solid #b6dec3;
}
.form-status--error {
  background: #fdecec;
  color: var(--red-deep);
  border: 1px solid #f4c2c6;
}
.form-status .spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.form-status .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.form-status--sent .check { color: #e8f5e9; }
.form-status--error .check { color: #fdecec; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER ------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: #f5f5f5;
  padding: 80px var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}
.footer-mega {
  margin-bottom: 60px;
  display: block;
  color: var(--red);
  line-height: 0;
}
.footer-mega svg {
  width: 100%;
  height: auto;
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-dark);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--red); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; max-width: 36ch; }

.footer-base {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

/* responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title-row { grid-template-columns: 1fr; }
  .hero-image-wrap { width: 70%; margin-left: 0; }
  .hero-bottom-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .manifesto-grid { grid-template-columns: 1fr 1fr; }
  .method-wrap { grid-template-columns: 1fr; }
  .method-sticky { position: static; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* very small mobile — guarantee everything fits on 320px screens ---- */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }

  /* Carrossel — confiar no momentum nativo do iOS/Android e remover
     custom-effects que geram “rastro” visual ao arrastar com o dedo.       */
  .projects-track {
    scroll-snap-type: x mandatory;        /* trava limpo no mobile */
    scroll-behavior: auto;                /* sem suavização CSS extra */
    -webkit-overflow-scrolling: touch;    /* momentum nativo no Safari iOS */
    overscroll-behavior-x: contain;
    /* desabilita o tap-highlight cinza/azul que o WebKit injeta */
    -webkit-tap-highlight-color: transparent;
  }
  .project-card {
    /* GPU layer estável evita o blur/rastro durante o swipe */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none;                     /* sem transition flutuando */
  }
  .project-card .ph-fill {
    transition: none;                     /* idem para a imagem */
  }
  .projects-track.is-dragging .project-card { transform: translateZ(0); }
  .hero { padding: 110px 16px 60px; }
  .hero-image-wrap { width: 100%; }
  .hero-top-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-meta, .hero-meta[style] { text-align: left !important; }
  .nav { padding: 12px 16px; }
  .brand svg { width: 110px; height: auto; }
  .nav.is-stuck .brand svg { width: 90px; height: auto; }
  .btn-talk { padding: 10px 14px; font-size: 11px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-mega { font-size: clamp(140px, 40vw, 240px); }
  .editorial-stage { padding: 24px 16px; }
  .editorial-img img { max-height: 42vh; }
  .gate-form { padding: 22px; }
  .contact-form { padding: 22px; }
  .step { padding: 18px; grid-template-columns: auto 1fr; }
  .step .step-icon { display: none; }
  .schedule-grid { grid-template-columns: 1fr; }

  /* Min hit target 44x44 per WCAG */
  .nav-btn { width: 44px; height: 44px; }
  .budget-chip { padding: 12px 14px; font-size: 12px; }
  .chip { padding: 10px 16px; font-size: clamp(14px, 4vw, 18px); }
}

/* MASCOTE — uma única instância fixa que acompanha o scroll ---------- */
.mascote {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  bottom: 6vh;
  right: 9vw;
  width: clamp(110px, 12vw, 180px);
  will-change: transform;
  filter: drop-shadow(0 18px 22px rgba(227, 39, 56, 0.28));
  transition: transform 80ms linear;
  transform-origin: center;
}
.mascote img {
  width: 100%;
  height: auto;
  display: block;
  animation: float-y 2.4s ease-in-out infinite;
  transform-origin: center;
}
.mascote-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.7,.2,1), background 200ms ease;
  z-index: 2;
}
.mascote:hover .mascote-close,
.mascote:focus-within .mascote-close {
  opacity: 1;
  transform: scale(1);
}
.mascote-close:hover { background: var(--red); }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); }
  25%      { transform: translateY(-10px) rotate(0deg) scale(1.04); }
  50%      { transform: translateY(-16px) rotate(6deg) scale(1); }
  75%      { transform: translateY(-8px) rotate(2deg) scale(0.98); }
}

@media (max-width: 900px) {
  /* Mascote 20px maior em cada lado (80 → 120) e ancorado dentro do
     viewport, respeitando safe-area do iOS para não cair fora da tela. */
  .mascote {
    width: 120px;
    bottom: max(50px, env(safe-area-inset-bottom, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    max-width: calc(100vw - 24px);
  }
  .mascote-close { opacity: 1; transform: scale(1); width: 28px; height: 28px; font-size: 16px; }
}

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(10,10,10,0.04) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, var(--peach), var(--peach-light));
}
.ph .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(10,10,10,0.45);
  z-index: 1;
}
