/* ==========================================================================
   Thay Dominick — Landing page
   Layout: painéis arredondados (36px) sobre fundo creme, no ritmo da referência
   Numera: nav em pílula, hero em bloco de destaque, seções em cartões grandes.
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #f4efd3;          /* fundo principal (creme claro) */
  --bg-soft: #e8e1bf;     /* painéis secundários */
  --paper: #f8f4de;       /* cards e papéis claros */
  --wine: #7a2b40;        /* destaque (bordô) */
  --wine-deep: #5f1f31;   /* bordô para hover */
  --cream: #f8f3dc;       /* texto sobre bordô */
  --ink: #2a1b1f;         /* texto principal sobre creme */
  --muted: #5e4a4f;       /* texto de apoio */
  --line: rgba(42, 27, 31, 0.16);
  --line-cream: rgba(248, 243, 220, 0.22);

  /* Tipografia (mesmas famílias da referência) */
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Raios, espaçamentos e largura */
  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 18px;
  --page-pad: clamp(16px, 2.5vw, 28px);
  --max-w: 1320px;

  /* Movimento */
  --ease-reveal: cubic-bezier(.2, .7, .3, 1);
  --ease-card: cubic-bezier(.4, 0, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

:focus-visible { outline: 2.5px solid var(--wine); outline-offset: 3px; border-radius: 8px; }
.on-wine :focus-visible, .on-wine:focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 100px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
h1 em, h2 em, .em { font-style: italic; font-weight: 600; }

.page { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
section[id] { scroll-margin-top: 24px; }

/* Chamada pequena */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.on-wine .eyebrow { color: var(--cream); }

.lead { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 440px; }
.on-wine .lead { color: rgba(248, 243, 220, 0.82); }

.on-wine { color: var(--cream); }
.on-wine h1, .on-wine h2, .on-wine h3 { color: var(--cream); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 100px;
  font-weight: 600; font-size: 0.96rem; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fffbe9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navegação ---------- */
.nav-wrap { padding: 18px var(--page-pad) 0; max-width: var(--max-w); margin: 0 auto; }
/* Pílula escura com links centralizados e CTA claro (mesma estrutura da referência) */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px 20px 14px 26px;
  background: var(--wine-deep);
  border: 1px solid rgba(248, 243, 220, 0.12);
  border-radius: 100px;
  color: var(--cream);
}
.nav .logo { color: var(--cream); font-size: 1.55rem; justify-self: start; }
.nav .logo::after { background: var(--cream); width: 8px; height: 8px; }
.nav .nav-cta { justify-self: end; }
.nav :focus-visible { outline-color: var(--cream); }
.logo {
  font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.045em;
  color: var(--ink); display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap;
}
.logo::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--wine); display: inline-block;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--cream); font-size: 0.92rem; font-weight: 500; opacity: 0.82; transition: opacity .2s; white-space: nowrap; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--cream); color: var(--wine);
  font-weight: 600; font-size: 0.88rem; padding: 11px 22px; border-radius: 100px;
  transition: background .2s, transform .2s; white-space: nowrap;
}
.nav-cta:hover { background: #fffbe9; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero-wrap { padding: 20px var(--page-pad) 0; max-width: var(--max-w); margin: 0 auto; }
.hero {
  background: var(--wine);
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  min-height: 680px;
  padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column;
}
.hero-grid {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
}
.hero-text { min-width: 0; }
.hero-text h1 { margin-bottom: 28px; }
.hero-sub { font-size: 1.05rem; color: rgba(248, 243, 220, 0.84); line-height: 1.6; max-width: 440px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Composição gráfica do hero */
.hero-art { position: relative; min-height: 470px; min-width: 0; }
.poster {
  position: absolute; top: 4%; left: 8%;
  width: min(74%, 340px); aspect-ratio: 3 / 4;
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-6deg);
  box-shadow: 0 30px 60px -20px rgba(30, 8, 15, 0.55), 0 8px 18px -8px rgba(30, 8, 15, 0.35);
}
.poster-top { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.poster-quote {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.poster-quote em { font-style: italic; font-weight: 600; color: var(--wine); }
.poster-foot { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--wine); }
.tag-card {
  position: absolute; right: 0; bottom: 4%;
  width: min(48%, 210px);
  background: var(--bg); color: var(--ink);
  border-radius: 6px; padding: 22px 22px 26px;
  font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.02;
  transform: rotate(7deg);
  box-shadow: 0 24px 40px -18px rgba(30, 8, 15, 0.6);
}
.tag-card em { font-style: italic; font-weight: 600; color: var(--wine); }
.spark {
  position: absolute; top: 0; right: 4%;
  width: clamp(64px, 7vw, 92px); color: var(--cream);
}

.hero-foot {
  position: relative; z-index: 2;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-cream);
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.hf-logo { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.045em; }
.hf-tagline { font-size: 0.92rem; opacity: 0.85; justify-self: end; text-align: right; }

/* ---------- Faixa de conceitos ---------- */
.concepts {
  padding: clamp(26px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
}
.concepts-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px;
}

/* Letreiro em movimento (ativado pelo script.js; sem JS ou com movimento reduzido fica estático) */
.marquee { overflow: hidden; }
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee.is-running .marquee-track {
  display: flex; width: max-content;
  animation: marquee var(--dur, 30s) linear infinite;
}
.marquee.is-running .concepts-row {
  flex-wrap: nowrap; justify-content: flex-start; flex-shrink: 0;
  gap: 0 clamp(36px, 5vw, 64px); padding-right: clamp(36px, 5vw, 64px);
}
.marquee.is-running .concept { white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(var(--shift, -50%)); } }
.concept {
  font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600;
  font-style: normal; letter-spacing: -0.035em; color: var(--ink);
  opacity: 0.55; transition: opacity .2s;
}
.concept:hover { opacity: 1; }
.concept-sep { width: 16px; color: var(--wine); flex-shrink: 0; }
.concept-sep-end { display: none; }
.marquee.is-running .concept-sep-end { display: block; }

/* ---------- Seções ---------- */
.section {
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px);
  margin-bottom: 16px;
}
.section-soft { background: var(--bg-soft); }
.section-wine { background: var(--wine); }
.section-plain { padding-left: 0; padding-right: 0; }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 48px;
}
.section-head h2 { max-width: 16ch; }
.section-head .lead { justify-self: end; }

/* ---------- Projetos ---------- */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.project-media {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 5 / 4;
  background: var(--bg-soft);
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-card);
}
.project-media.contain { display: flex; align-items: flex-end; justify-content: center; padding: 6% 12% 0; background: #e3dbbc; }
.project-media.contain img { width: auto; height: 100%; object-fit: contain; }
.project:hover .project-media img { transform: scale(1.05); }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.project-meta h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; }
.project-meta p { font-size: 0.86rem; color: var(--muted); }

/* Espaço reservado (quando a imagem não carrega) */
.project-media.is-empty img { display: none; }
.project-media.is-empty::after {
  content: "Imagem do projeto";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: inherit;
}

/* ---------- Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  color: var(--ink);
  transition: transform .35s var(--ease-card), background .35s, border-color .35s;
}
.svc-card:hover { transform: translateY(-8px); }
.svc-card.featured { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.svc-tag { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.svc-icon {
  width: 52px; height: 52px; color: var(--wine);
  transition: transform .35s var(--ease-card);
}
.svc-card.featured .svc-icon { color: var(--cream); }
.svc-card:hover .svc-icon { transform: scale(1.08); }
.svc-card h3 { font-size: 1.55rem; font-weight: 500; }
.svc-card p { font-size: 0.94rem; line-height: 1.62; color: var(--muted); flex: 1; }
.svc-card.featured p { color: rgba(248, 243, 220, 0.84); }
.svc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600;
}
.svc-card.featured .svc-cta { border-top-color: var(--line-cream); }
.arrow-dot {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.arrow-dot svg { width: 15px; height: 15px; }
.svc-card:hover .arrow-dot { transform: rotate(-45deg); background: var(--wine); color: var(--cream); border-color: var(--wine); }
.svc-card.featured .arrow-dot { border-color: var(--line-cream); color: var(--cream); }
.svc-card.featured:hover .arrow-dot { background: var(--cream); color: var(--wine); border-color: var(--cream); }

/* ---------- Posicionamento ---------- */
.manifesto {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start;
  padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 64px);
}
.manifesto .eyebrow { margin-top: 14px; }
.manifesto-copy {
  font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.22; color: rgba(42, 27, 31, 0.42);
  text-wrap: pretty;
}
.manifesto-copy .hl { color: var(--ink); }
.manifesto-copy em { font-style: italic; font-weight: 600; color: var(--wine); }
.manifesto-copy u {
  text-decoration: underline; text-decoration-color: var(--wine);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}

/* ---------- Sobre mim ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.about-card {
  background: var(--wine); color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.5vw, 40px);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-card);
}
.about-card:hover { transform: translateY(-4px); }
.about-card .small { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.about-name {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.92;
  font-size: clamp(3.4rem, 7vw, 6rem);
}
.about-name em { font-style: italic; font-weight: 600; display: block; }
.about-card .spark { top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); width: 46px; opacity: 0.9; }
.about-text { min-width: 0; }
.about-text h2 { margin-bottom: 26px; }
.about-text p { color: var(--muted); line-height: 1.7; max-width: 52ch; }
.about-text p + p { margin-top: 16px; }
.about-text .btn { margin-top: 32px; }

/* ---------- Processo ---------- */
.process-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; margin-top: 56px;
}
.process-flow::before {
  content: ""; position: absolute; top: 25px; left: 12.5%; right: 12.5%; height: 2px;
  background-image: linear-gradient(90deg, rgba(248, 243, 220, 0.55) 0, rgba(248, 243, 220, 0.55) 6px, transparent 6px, transparent 12px);
  background-size: 12px 2px; background-repeat: repeat-x;
  z-index: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.6, 0, .4, 1) .3s;
  animation: marching 1.4s linear infinite;
}
.process.in-view .process-flow::before { clip-path: inset(0); }
@keyframes marching { from { background-position: 0 0; } to { background-position: 12px 0; } }

.proc-step {
  position: relative; z-index: 1; padding-right: 20px; min-width: 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s var(--ease-card), transform .55s var(--ease-card);
}
.process.in-view .proc-step { opacity: 1; transform: translateY(0); }
.process.in-view .proc-step:nth-child(1) { transition-delay: .15s; }
.process.in-view .proc-step:nth-child(2) { transition-delay: .35s; }
.process.in-view .proc-step:nth-child(3) { transition-delay: .55s; }
.process.in-view .proc-step:nth-child(4) { transition-delay: .75s; }

.proc-step .circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); color: var(--wine);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 26px;
  box-shadow: 0 0 0 8px var(--wine);
  transform: scale(.4);
}
.proc-step:nth-child(2) .circle { background: var(--ink); color: var(--cream); }
.proc-step:nth-child(3) .circle { background: var(--bg-soft); color: var(--wine); }
.process.in-view .proc-step .circle { animation: pop .55s var(--ease-pop) forwards; }
.process.in-view .proc-step:nth-child(1) .circle { animation-delay: .25s; }
.process.in-view .proc-step:nth-child(2) .circle { animation-delay: .45s; }
.process.in-view .proc-step:nth-child(3) .circle { animation-delay: .65s; }
.process.in-view .proc-step:nth-child(4) .circle { animation-delay: .85s; }
@keyframes pop {
  0% { transform: scale(.4); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.proc-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 10px; }
.proc-step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.proc-step p { font-size: 0.93rem; line-height: 1.62; color: rgba(248, 243, 220, 0.8); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head h2 { max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px;
  font-family: var(--display); font-size: clamp(1.08rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: -0.02em;
  transition: color .2s;
}
.faq-q:hover { color: var(--wine); }
.faq-icon {
  position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-card), background .2s, border-color .2s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--wine); border-color: var(--wine); color: var(--cream); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-card);
}
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); line-height: 1.7; padding: 0 56px 26px 4px; max-width: 62ch; opacity: 0; transition: opacity .3s; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transition-delay: .08s; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 12ch; margin-bottom: 24px; }
.contact .lead { margin-bottom: 30px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: rgba(248, 243, 220, 0.9); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid transparent; border-radius: 14px;
  padding: 14px 16px; font-size: 0.95rem;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a7a7e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fffbe9; }
.field [aria-invalid="true"] { border-color: #f3c6a5; box-shadow: 0 0 0 3px rgba(243, 198, 165, 0.35); }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: rgba(248, 243, 220, 0.78); }
.form-status { font-size: 0.88rem; color: var(--cream); min-height: 1.2em; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Rodapé ---------- */
.footer {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px var(--page-pad) 36px;
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px 48px; align-items: center;
  font-size: 0.86rem; color: var(--muted);
}
.footer .logo { font-size: 1.35rem; }
.footer .back { font-weight: 600; color: var(--ink); transition: color .2s; }
.footer .back:hover { color: var(--wine); }

/* ==========================================================================
   Animações de entrada (idênticas à referência)
   ========================================================================== */
.js .anim:not(.show),
.js .anim-stagger:not(.show) > * { opacity: 0; transform: translateY(30px); }
.js .anim-scale:not(.show) { opacity: 0; transform: translateY(20px) scale(.96); }

.js .anim.show,
.js .anim-stagger.show > * { animation: reveal-up .75s var(--ease-reveal) backwards; }
.js .anim-scale.show { animation: reveal-scale .8s var(--ease-reveal) backwards; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.js .anim-stagger.show > :nth-child(1) { animation-delay: 0ms; }
.js .anim-stagger.show > :nth-child(2) { animation-delay: 90ms; }
.js .anim-stagger.show > :nth-child(3) { animation-delay: 180ms; }
.js .anim-stagger.show > :nth-child(4) { animation-delay: 270ms; }
.js .anim-stagger.show > :nth-child(5) { animation-delay: 360ms; }
.js .anim-stagger.show > :nth-child(6) { animation-delay: 450ms; }
.js .anim-stagger.show > :nth-child(7) { animation-delay: 540ms; }
.js .anim-stagger.show > :nth-child(8) { animation-delay: 630ms; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .lead { justify-self: start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .svc-card:last-child { grid-column: 1 / -1; }
  .manifesto { grid-template-columns: 1fr; gap: 12px; }
  .about { grid-template-columns: 1fr; }
  .about-card { min-height: 360px; }
  .faq { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .back { justify-self: end; }
}

/* Processo vertical (tablet retrato e celular) */
@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
  .process-flow::before {
    top: 26px; bottom: var(--line-end, 26px); left: 25px; right: auto; width: 2px; height: auto;
    background-image: linear-gradient(180deg, rgba(248, 243, 220, 0.55) 0, rgba(248, 243, 220, 0.55) 6px, transparent 6px, transparent 12px);
    background-size: 2px 12px; background-repeat: repeat-y;
    clip-path: inset(0 0 100% 0);
    animation-name: marching-y;
  }
  .proc-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 22px; padding-right: 0; }
  .proc-step .circle { grid-row: 1 / span 3; margin-bottom: 0; }
  .proc-label { margin-top: 4px; }
}
@keyframes marching-y { from { background-position: 0 0; } to { background-position: 0 12px; } }

@media (max-width: 640px) {
  .nav { padding: 10px 10px 10px 20px; }
  .nav .logo { font-size: 1.25rem; }
  .nav-cta { padding: 11px 16px; font-size: 0.84rem; }

  .hero { padding: 36px 24px 28px; }
  .hero-art { min-height: 410px; }
  .poster { left: 2%; width: 72%; }
  .tag-card { width: 52%; padding: 16px 16px 20px; bottom: 0; }
  .hero-foot { grid-template-columns: 1fr; gap: 8px; }
  .hf-tagline { justify-self: start; text-align: left; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 22px; }
  .section-plain { padding-left: 0; padding-right: 0; }
  .form { grid-template-columns: 1fr; }
  .btn { padding: 15px 22px; }
  .footer { grid-template-columns: 1fr; gap: 10px; }
  .footer .back { justify-self: start; margin-top: 6px; }
  .faq-a p { padding-right: 8px; }
}

/* ==========================================================================
   Movimento reduzido: tudo visível, sem animações
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .js .anim, .js .anim-stagger > *, .js .anim-scale,
  .proc-step, .proc-step .circle, .process-flow::before {
    opacity: 1 !important; transform: none !important; animation: none !important; clip-path: none !important;
  }
  .btn:hover, .nav-cta:hover, .svc-card:hover, .about-card:hover { transform: none; }
  .project:hover .project-media img { transform: none; }
}

/* Ajustes finos */
.process .section-head h2 { max-width: none; }
.poster-quote { max-width: 8ch; }

/* ==========================================================================
   Cards de projeto clicáveis (home)
   ========================================================================== */
a.project { color: inherit; transition: transform .35s var(--ease-card); }
a.project:hover { transform: translateY(-8px); }
a.project:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.project-arrow {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 46px; height: 46px;
  background: var(--paper); border-color: transparent; color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(42, 27, 31, 0.45);
}
a.project:hover .project-arrow { transform: rotate(-45deg); background: var(--wine); color: var(--cream); border-color: var(--wine); }
a.project:hover .project-meta h3 { color: var(--wine); }
.project-meta h3 { transition: color .2s; }

/* ==========================================================================
   Página de projeto (projeto-*.html)
   ========================================================================== */
.case-hero {
  background: var(--wine); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.case-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-size: 0.88rem; font-weight: 600; opacity: 0.85; transition: opacity .2s, transform .2s;
}
.back-link:hover { opacity: 1; transform: translateX(-3px); }
.case-hero h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.05em; line-height: 0.95; }
.case-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 24px; border-top: 1px solid var(--line-cream); }
.case-meta dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
.case-meta dd { font-family: var(--display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.case-hero .project-media { aspect-ratio: 5 / 4; }

.case-block {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start;
  padding: clamp(48px, 6vw, 88px) 0 0;
}
.case-block .eyebrow { margin-top: 10px; }
.case-block-body { min-width: 0; }
.case-block-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: 20px; max-width: 22ch; }
.case-block-body p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 62ch; }
.case-block-body p + p { margin-top: 16px; }

/* Texto ainda não escrito: aparece marcado para ser substituído */
.todo {
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  padding: 18px 22px; color: var(--muted); font-style: italic;
  background: rgba(248, 244, 222, 0.5);
}

.case-gallery { padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-item .project-media { aspect-ratio: 4 / 3; }
.gallery-item.wide .project-media { aspect-ratio: 16 / 9; }
.gallery-item:hover .project-media img { transform: scale(1.05); }
.gallery-item figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

.next-project {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--bg-soft); border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px); margin-bottom: 16px;
  transition: transform .35s var(--ease-card);
}
.next-project:hover { transform: translateY(-4px); }
.next-project h2 { margin-top: 4px; }
.next-project p { color: var(--muted); margin-top: 10px; }
.next-project .project-media { aspect-ratio: 16 / 10; }
.next-project:hover .project-media img { transform: scale(1.05); }
.next-project:hover .arrow-dot { transform: rotate(-45deg); background: var(--wine); color: var(--cream); border-color: var(--wine); }
.next-project .arrow-dot { margin-top: 20px; width: 46px; height: 46px; }

.case-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.case-cta h2 { max-width: 14ch; }
.case-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(248, 243, 220, 0.5); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(248, 243, 220, 0.08); }

@media (max-width: 900px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-block { grid-template-columns: 1fr; gap: 8px; }
  .next-project { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-hero { padding: 32px 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item .project-media, .gallery-item.wide .project-media { aspect-ratio: 4 / 3; }
  .project-arrow { width: 40px; height: 40px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  a.project:hover, .next-project:hover, .back-link:hover { transform: none; }
  .gallery-item:hover .project-media img, .next-project:hover .project-media img { transform: none; }
}
.project-media[data-empty].is-empty::after { content: attr(data-empty); padding: 0 16px; text-align: center; }

/* Celulares bem estreitos (320px, ex.: iPhone SE 1ª geração): menu cabe sem rolar para o lado */
@media (max-width: 360px) {
  .nav { padding: 8px 8px 8px 14px; gap: 8px; }
  .nav .logo { font-size: 1.05rem; }
  .nav-cta { padding: 10px 13px; font-size: 0.78rem; }
}

/* Área de toque maior nos links pequenos, sem mudar o visual */
.back-link, .footer .back { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* Contato: só a chamada e um botão de WhatsApp (sem formulário) */
.contact-cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 12ch; }
.contact-cta .lead { margin-top: 22px; max-width: 46ch; }

/* Destaque em negrito dentro das respostas do FAQ */
.faq-a strong { font-weight: 700; color: var(--ink); }

/* Respostas com mais de um parágrafo: espaço menor entre eles */
.faq-a p:not(:last-child) { padding-bottom: 12px; }

/* Serviços: dois cards (Estratégia de marca completa e Identidade visual) lado a lado */
.services-grid { grid-template-columns: 1fr 1fr; }
.services-grid .svc-card:last-child { grid-column: auto; }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* Texto de card com mais de um parágrafo */
.svc-text { flex: 1; }
.svc-text p { flex: none; }
.svc-text p + p { margin-top: 12px; }

/* Cards de clientes em carrossel (deslizam lado a lado) em todas as telas */
.projects-grid {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  /* encosta nas bordas da página, mas o 1º card começa alinhado ao texto */
  margin-inline: calc(-1 * var(--page-pad));
  padding-inline: var(--page-pad);
  scroll-padding-inline: var(--page-pad);
  /* espaço para o card subir no hover sem ser cortado */
  padding-block: 10px 4px; margin-top: -10px;
}
.projects-grid::-webkit-scrollbar { display: none; }
.projects-grid > .project { flex: 0 0 calc((100% - 20px) / 2.25); scroll-snap-align: start; }

/* bolinhas + setas */
.projects-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.projects-dots { display: flex; justify-content: center; gap: 4px; }
.projects-dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.projects-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 100px;
  background: var(--ink); opacity: .22; transition: width .25s, opacity .25s;
}
.projects-dots button[aria-current="true"]::before { width: 22px; opacity: .85; }
.projects-arrow { background: none; cursor: pointer; padding: 0; }
.projects-arrow svg { transform: rotate(45deg); }
.projects-arrow.prev svg { transform: rotate(-135deg); }
.projects-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.projects-arrow:disabled { opacity: .3; cursor: default; }
.projects-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 1024px) {
  .projects-grid > .project { flex-basis: 62%; }
}
@media (max-width: 640px) {
  .projects-grid { gap: 14px; }
  .projects-grid > .project { flex-basis: 84%; }
  a.project:hover { transform: none; }
  .projects-arrow { display: none; }   /* no celular basta deslizar */
  .projects-nav { margin-top: 14px; }
}

/* Celular: menos espaço acima de "O que guia meu trabalho" */
@media (max-width: 640px) {
  .manifesto { padding-top: 28px; }
  .manifesto .eyebrow { margin-top: 0; }
}

/* Mockup em outro formato e com fundo preto: mostra a imagem inteira,
   e as faixas que sobram ficam pretas (somem no fundo da arte) */
.project-media.fit-dark, html.theme-b .project-media.fit-dark { background: #000; }
.project-media.fit-dark img { object-fit: contain; }
.gallery-item:hover .project-media.fit-dark img { transform: none; }

/* Mockup que não pode ser cortado nas laterais (ex.: grade de logos):
   no celular mantém o formato largo em vez de virar 4:3 */
@media (max-width: 640px) {
  .gallery-item.keep-wide .project-media { aspect-ratio: 16 / 9; }
}

/* Celular: sem o botão "Vamos conversar"; logo à esquerda e o menu à direita, na mesma linha */
@media (max-width: 640px) {
  .nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 24px 6px 16px; border-radius: 100px; }
  .nav .logo { font-size: 0.92rem; flex-shrink: 0; }
  .nav .logo::after { width: 5px; height: 5px; }
  .nav .nav-cta { display: none; }
  .nav-links { display: flex; gap: 8px; }
  .nav-links a { display: block; padding: 12px 0; font-size: 0.74rem; letter-spacing: -0.01em; }
}
@media (max-width: 360px) {
  .nav { padding: 4px 16px 4px 12px; gap: 6px; }
  .nav .logo { font-size: 0.8rem; }
  .nav .logo::after { width: 4px; height: 4px; }
  .nav-links { gap: 6px; }
  .nav-links a { font-size: 0.66rem; }
}
