/* ==========================================================================
   Elis Gomes — base.css
   Reset + estrutura compartilhada pelos 5 design systems.
   Cores, fontes e tratamento de cada seção vêm de css/ds-N.css (tokens).
   ========================================================================== */

/* ---------- Paleta da marca (fixa em todos os DS) ---------- */
:root {
  --bordo: #3D0A06;
  --bordo-deep: #2A0604;
  --bordo-soft: #55201A;   /* tint de bordô: bordas/fantasmas em fundo escuro */
  --bege: #D8C8C0;
  --bege-light: #EAE1DC;
  --bege-pale: #F3EEEA;
  --bege-white: #FAF7F5;  /* tint máximo de bege: campos de formulário */
  --rosa: #DB9289;

  /* Tipografia (sobrescritas por DS) */
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-accent: "Instrument Serif", Georgia, serif;
  --f-body: "Public Sans", system-ui, sans-serif;

  --d-weight: 400;
  --d-transform: uppercase;
  --d-tracking: 0;
  --d-style: normal;
  --d-lh: .82;

  --title-font: var(--f-accent);
  --title-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.25rem);
  --title-weight: 400;
  --title-style: normal;
  --title-transform: none;
  --title-tracking: -.01em;
  --title-lh: 1.02;
  --title-align: right;

  --hs-font: var(--f-display);
  --hs-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --hs-weight: 400;
  --hs-transform: uppercase;
  --hs-tracking: .01em;
  --hs-style: normal;
  --hs-lh: .98;

  --impact-size: clamp(4rem, 2rem + 9vw, 10rem);

  --body-size: 1.0625rem;
  --body-lh: 1.6;

  --btn-font: var(--f-body);
  --btn-size: .8125rem;
  --btn-weight: 700;
  --btn-transform: uppercase;
  --btn-tracking: .14em;
  --r-btn: 999px;
  --r-img: 0px;
  --r-card: 0px;

  --pad-section: clamp(4.5rem, 3rem + 6vw, 9rem);

  /* Movimento (curvas e durações no padrão Apple HIG; DS podem ajustar reveal) */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-reveal: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-instant: 100ms;
  --dur-fast: 200ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;
  --dur-reveal: 750ms;
  --reveal-y: 16px;
  --stagger: 70ms;
  --gutter: 16px;
  --maxw: 1200px;

  /* Tom padrão (claro) — cada DS redefine por seção */
  --bg: var(--bege);
  --fg: var(--bordo);
  --muted: color-mix(in srgb, var(--bordo) 78%, var(--bege));
  --line: color-mix(in srgb, var(--bordo) 30%, transparent);
  --ghost: var(--bege-light);
  --accent-ink: var(--bordo);
  --mark: var(--rosa);
  --btn-bg: var(--bordo);
  --btn-fg: var(--bege);
  --card-bg: transparent;
  --card-line: var(--line);
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bordo); color: var(--bege); padding: .6rem 1rem; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Cada bloco pinta com o próprio tom */
.site-nav, section, .site-footer { background: var(--bg); color: var(--fg); position: relative; }

/* ---------- Componentes comuns ---------- */
.h-section {
  font-family: var(--hs-font);
  font-size: var(--hs-size);
  font-weight: var(--hs-weight);
  font-style: var(--hs-style);
  text-transform: var(--hs-transform);
  letter-spacing: var(--hs-tracking);
  line-height: var(--hs-lh);
  color: var(--fg);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .9rem 2rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-btn);
  font-family: var(--btn-font); font-size: var(--btn-size); font-weight: var(--btn-weight);
  text-transform: var(--btn-transform); letter-spacing: var(--btn-tracking);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-default), color var(--dur-fast) var(--ease-default), border-color var(--dur-fast) var(--ease-default), transform var(--dur-normal) var(--ease-spring);
}
.btn:active { transform: scale(.97); transition-duration: var(--dur-fast), var(--dur-fast), var(--dur-fast), var(--dur-instant); }
.btn:hover { background: var(--rosa); border-color: var(--rosa); color: var(--bordo); }
.btn-small { min-height: 40px; padding: .6rem 1.4rem; }

.fit {
  display: block; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-weight: var(--d-weight); font-style: var(--d-style);
  text-transform: var(--d-transform); letter-spacing: var(--d-tracking);
  line-height: var(--d-lh);
  font-size: 18vw; /* valor inicial; js/main.js ajusta à largura */
  pointer-events: none; user-select: none;
}

.ghost {
  position: relative; z-index: 0; margin: 0 auto calc(-1 * var(--ghost-overlap, .3em));
  color: var(--ghost); --fit-max: var(--ghost-max, 21);
}

.brand-logo, .brand-symbol {
  display: block; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.brand-logo { --m: url("../assets/brand/logo-horizontal-bordo.png"); aspect-ratio: 1348 / 373; width: clamp(132px, 10vw + 60px, 184px); }
.brand-symbol { --m: url("../assets/brand/simbolo-bordo.png"); aspect-ratio: 848 / 882; }

/* Rabiscos à mão */
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble path, .arrow path { fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round; }
.scribble path { vector-effect: non-scaling-stroke; }
.scribble path { stroke-width: var(--scribble-w, 2.25px); }
.scribble-circle { inset: -22% -7% -16% -6%; width: 113%; height: 138%; }
.scribble-line { left: 0; right: 0; bottom: -.12em; width: 100%; height: .22em; display: none; }
.arrow { width: 64px; height: 52px; }
.arrow path { stroke-width: 2px; }

/* Um único momento de movimento: o rabisco do hero se desenha no carregamento */
@media (prefers-reduced-motion: no-preference) {
  .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .5s cubic-bezier(.6,.1,.3,1) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Nav (fixa) ---------- */
:root { --nav-h: 64px; --nav-h-compact: 56px; }
@media (min-width: 720px) { :root { --nav-h: 96px; --nav-h-compact: 68px; } }
html.js { scroll-padding-top: calc(var(--nav-h-compact) + 12px); }
html.js body { padding-top: var(--nav-h); }            /* reserva a altura da barra: hero não pula */
.site-nav { z-index: 40; }
html.js .site-nav { position: fixed; top: 0; left: 0; right: 0; transition: background-color var(--dur-normal) var(--ease-default), box-shadow var(--dur-normal) var(--ease-default); }
html.js .site-nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.js .site-nav.is-scrolled {
    background-color: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  }
}
.nav-inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding-block: 1.1rem; }
html.js .nav-inner { flex-direction: row; justify-content: space-between; padding-block: 0; height: var(--nav-h); transition: height var(--dur-normal) var(--ease-default); }
html.js .site-nav.is-scrolled .nav-inner { height: var(--nav-h-compact); }
.brand { display: block; text-decoration: none; }
.brand-logo { transform-origin: left center; transition: transform var(--dur-normal) var(--ease-default); }
html.js .site-nav.is-scrolled .brand-logo { transform: scale(.86); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; font-size: .8125rem; }
.nav-links a { text-decoration: none; font-weight: var(--nav-weight, 600); text-transform: var(--nav-transform, uppercase); letter-spacing: var(--nav-tracking, .12em); font-size: var(--nav-size, .75rem); }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hambúrguer (mobile, só com JS) */
.nav-toggle { display: none; }
@media (max-width: 719.98px) {
  html.js .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--fg); cursor: pointer; border-radius: 999px;
    transition: transform var(--dur-instant) var(--ease-out);
  }
  html.js .nav-toggle:active { transform: scale(.94); }
  html.js .nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-normal) var(--ease-spring); }
  html.js .site-nav.is-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  html.js .site-nav.is-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  html.js .site-nav nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    box-shadow: 0 1px 0 var(--line), 0 18px 32px -24px rgba(42, 6, 4, .45);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur-fast) var(--ease-default), transform var(--dur-normal) var(--ease-spring), visibility 0s linear var(--dur-normal);
  }
  html.js .site-nav.is-open nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.js .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  html.js .nav-links a { display: flex; align-items: center; min-height: 48px; font-size: .875rem; border-bottom: 1px solid var(--line); }
}
@media (min-width: 720px) {
  .nav-inner { flex-direction: row; justify-content: space-between; padding-block: 1.5rem; }
  .nav-links { gap: 2rem; }
}

/* ---------- 1. Hero ---------- */
.hero { overflow: hidden; display: flex; flex-direction: column; }
.hero-inner { display: contents; }
.hero-photo { order: 1; position: relative; z-index: 2; width: min(64vw, 300px); margin: .5rem auto 0; }
.hero-photo { mix-blend-mode: var(--hero-blend, multiply); }
.hero-photo img {
  width: 100%;
  filter: var(--hero-filter, brightness(1.1) contrast(1.1));
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 97%);
}
.hero-name { order: 2; position: relative; z-index: 3; margin: -.62em auto 0; color: var(--name-color, var(--fg)); --fit: .94; }
.hero-copy { order: 3; width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 2.25rem auto 4rem; position: relative; z-index: 3; }
.hero-title {
  font-family: var(--title-font); font-size: var(--title-size); font-weight: var(--title-weight);
  font-style: var(--title-style); text-transform: var(--title-transform); letter-spacing: var(--title-tracking);
  line-height: var(--title-lh); text-wrap: balance;
}
.mark { position: relative; display: inline-block; font-style: var(--mark-style, italic); }
.hero-lede { margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.5; max-width: 34ch; }
.hero-meta { margin-top: .75rem; color: var(--muted); font-size: .9375rem; max-width: 46ch; }
.hero-copy .btn { margin-top: 2rem; }

@media (min-width: 900px) {
  .hero { display: block; }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; min-height: clamp(640px, 86vh, 860px); position: relative; }
  .hero-photo { margin: 0 0 0 4%; width: clamp(280px, 25vw, 380px); align-self: end; }
  .hero-copy { width: auto; margin: 0; align-self: center; padding-bottom: var(--copy-pb, 14vw); text-align: var(--title-align); display: flex; flex-direction: column; align-items: var(--copy-align, flex-end); }
  .hero-lede, .hero-meta { margin-left: var(--lede-ml, auto); }
  .hero-name { position: absolute; left: 50%; bottom: var(--name-bottom, -.06em); transform: translateX(-50%); margin: 0; z-index: 1; }
}

/* ---------- 2. Manifesto ---------- */
.manifesto { padding-block: var(--pad-section); }
.manifesto-grid { display: grid; gap: 3rem; }
.manifesto-text { max-width: 60ch; }
.manifesto-text .h-section { margin-bottom: 2rem; max-width: 12ch; }
.manifesto-text p + p { margin-top: 1.25rem; }
.manifesto-text strong { font-weight: 700; color: var(--fg); }
.manifesto-text p { color: var(--muted); }
.manifesto-photo img { width: 100%; aspect-ratio: 1080 / 1020; object-fit: cover; border-radius: var(--r-img); }
@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; align-items: center; }
}

/* Formação (dentro de Quem sou) */
.formacao { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.formacao-title { font-family: var(--f-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.formacao ul { margin-top: 1rem; display: grid; gap: .9rem; }
.formacao li { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.formacao li span { display: block; color: var(--fg); font-weight: 700; }

/* ---------- 3. Impacto ---------- */
.impact { padding-block: var(--pad-section); }
.impact-title { font-family: var(--f-display); font-weight: var(--d-weight); font-style: var(--d-style); text-transform: var(--d-transform); letter-spacing: var(--d-tracking); font-size: var(--impact-size); line-height: .85; }
.impact-sub { margin-top: 1rem; font-family: var(--hs-font); font-style: var(--hs-style); font-weight: var(--hs-weight); text-transform: var(--hs-transform); letter-spacing: var(--hs-tracking); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.1; max-width: 28ch; }
.testimonials { display: grid; gap: 1.25rem; margin-top: 3rem; }
.t-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 1.75rem; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--r-card); }
.t-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--avatar-bg, var(--rosa)); color: var(--avatar-fg, var(--bordo)); }
.t-avatar .brand-symbol { width: 30px; }
.t-card blockquote { flex: 1; }
.t-card blockquote p { font-family: var(--quote-font, var(--f-body)); font-style: var(--quote-style, normal); font-size: var(--quote-size, 1rem); line-height: 1.55; }
.t-name { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 4. Método ---------- */
.method { padding-block: clamp(2rem, 1rem + 3vw, 4rem) var(--pad-section); overflow: hidden; }
.method-inner { position: relative; z-index: 1; }
.method-title { max-width: 22ch; text-wrap: balance; }
.method-stage { display: grid; gap: 2rem; margin-top: 3rem; align-items: center; }
.note p { max-width: 30ch; color: var(--muted); font-size: .9375rem; }
.note .note-title { font-family: var(--f-accent); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.1; color: var(--fg); margin-bottom: .5rem; }
.note .arrow { margin-top: 1rem; }
.note-right .arrow { margin: 0 0 1rem; }
.method-photo { width: min(70vw, 320px); margin-inline: auto; }
.method-photo img { width: 100%; border-radius: var(--r-img); }
.dimensions { margin-top: 4rem; display: grid; border-top: 1px solid var(--line); counter-reset: d; }
.dimensions li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.dim-n { grid-row: span 2; font-family: var(--num-font, var(--f-display)); font-style: var(--num-style, normal); font-size: var(--num-size, 2.25rem); line-height: 1; color: var(--num-color, var(--fg)); }
.dimensions h3 { font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.dimensions p { color: var(--muted); font-size: .9375rem; margin-top: .25rem; }
.dimensions .locked h3, .dimensions .locked p { opacity: .55; }
.dimensions .locked .dim-n { opacity: .4; }
.method-cta { margin-top: 2.5rem; font-family: var(--f-accent); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; }
.method-cta a { color: var(--accent-ink); text-decoration-color: var(--rosa); text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; }
@media (min-width: 900px) {
  .method-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr); gap: 3rem; }
  .note-left { align-self: start; padding-top: 3rem; }
  .note-left .arrow { margin-left: 45%; }
  .note-right { align-self: end; padding-bottom: 3rem; text-align: right; justify-self: end; }
  .note-right p { margin-left: auto; }
  .note-right .arrow { margin-left: 10%; }
  .method-photo { width: 100%; }
  .dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; border-top: 0; }
  .dimensions li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

/* ---------- 5. Serviços ---------- */
.services { overflow: hidden; }
.services-photo { overflow: hidden; }
.services-grid { display: grid; }
.services-text { padding: var(--pad-section) var(--gutter) 3rem; max-width: 640px; }
.rule { border: 0; border-top: 1px solid var(--fg); margin-bottom: 2rem; width: 100%; }
.services-intro { margin-top: 1.25rem; color: var(--muted); }
.services-intro strong { color: var(--fg); }
.service-index { margin: 2rem 0 2.5rem; display: grid; gap: .35rem; border-left: 2px solid var(--rosa); padding-left: 1.25rem; }
.service-index a { text-decoration: none; font-family: var(--svc-font, var(--f-body)); font-style: var(--svc-style, normal); font-weight: var(--svc-weight, 700); font-size: var(--svc-size, 1.125rem); line-height: 1.35; }
.service-index a:hover { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 5px; }

.service-grid { display: grid; gap: 1.25rem; padding-block: 1rem var(--pad-section); }
.service { padding: 2rem 0 0; border-top: 1px solid var(--fg); display: flex; flex-direction: column; scroll-margin-top: 1.5rem; }
.service h3 { font-family: var(--svc-font, var(--f-body)); font-style: var(--svc-style, normal); font-weight: var(--svc-weight, 700); font-size: calc(var(--svc-size, 1.125rem) * 1.25); line-height: 1.15; }
.service-short { margin-top: .5rem; color: var(--muted); }
.service-meta { margin: 1.5rem 0 1.75rem; display: grid; gap: .35rem; font-size: .9375rem; }
.service-meta dt { font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .75rem; color: var(--accent-ink); }
.service-meta dt:first-child { margin-top: 0; }
.service-meta dd { margin: 0; color: var(--muted); }
.service-meta ul { display: grid; gap: .3rem; }
.service-meta li { padding-left: 1.1rem; position: relative; }
.service-meta li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--fg); }
.service-cta { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: .9375rem; color: var(--fg); text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 2px; text-underline-offset: 6px; padding-block: .5rem; }
.service-cta:hover { text-decoration-thickness: 4px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; row-gap: 3.5rem; padding-top: 2rem; } }
.services-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; transform: scale(1.12); transform-origin: 50% 0; }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 860px; }
  .services-text { align-self: center; padding: var(--pad-section) 3rem var(--pad-section) max(var(--gutter), (100vw - var(--maxw)) / 2); max-width: none; }
  .services-photo img { aspect-ratio: auto; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--pad-section); }
.faq-grid { display: grid; gap: 2.5rem; }
.faq-head p { margin-top: 1.25rem; color: var(--muted); max-width: 34ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--faq-font, var(--f-body)); font-style: var(--faq-style, normal); font-weight: var(--faq-weight, 700); font-size: var(--faq-size, 1.125rem); text-transform: var(--faq-transform, none); letter-spacing: var(--faq-tracking, 0); line-height: 1.25; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: .35em; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--faq-icon, var(--fg)); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.faq-answer { padding: 0 2.5rem 1.6rem 0; }
.faq-answer p { color: var(--muted); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h-compact) + 2rem); }
}

/* ---------- Artigos ---------- */
.articles { padding-block: var(--pad-section); }
.eyebrow { font-family: var(--f-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.articles-head { max-width: 40ch; }
.articles-head .h-section { text-wrap: balance; }
.articles-head p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); }
.article-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.a-card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--r-card); overflow: hidden; }
.a-media { aspect-ratio: 3 / 2; overflow: hidden; }
.a-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-default); }
.a-body { flex: 1; display: flex; flex-direction: column; padding: var(--a-pad, 1.5rem 1.5rem 1.75rem); }
.a-title { font-family: var(--a-font, var(--svc-font, var(--f-body))); font-style: var(--a-style, normal); font-weight: var(--a-weight, var(--svc-weight, 700)); font-size: var(--a-size, 1.3125rem); text-transform: var(--a-transform, none); letter-spacing: var(--a-tracking, 0); line-height: 1.2; text-wrap: balance; }
.a-desc { margin-top: .75rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.5rem; }
.a-btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 900px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .a-card:hover .a-media img { transform: scale(1.04); } }

/* ---------- 6. Contato ---------- */
.contact { padding-block: clamp(2rem, 1rem + 3vw, 4rem) var(--pad-section); overflow: hidden; }
.contact-grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.contact-portrait { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin-bottom: 1.5rem; }
.contact-text p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }
.contact-form { display: grid; gap: .5rem; align-content: start; }
.contact-form label { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; margin-top: .75rem; }
.contact-form input { min-height: 52px; padding: .75rem 1rem; background: var(--input-bg, var(--bege-white)); color: var(--bordo); border: 1px solid var(--input-line, transparent); border-radius: var(--r-input, 0); }
.contact-form input::placeholder { color: color-mix(in srgb, var(--bordo) 55%, transparent); }
.contact-form .btn { margin-top: 1.5rem; justify-self: start; }
.form-error { font-size: .875rem; font-weight: 700; color: var(--accent-ink); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } .contact-form .btn { justify-self: center; } }

/* ---------- 7. Rodapé ---------- */
.site-footer { padding-block: 4.5rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.footer-mark { grid-column: 1 / -1; display: block; width: 72px; color: var(--fg); }
.footer-mark .brand-symbol { width: 100%; }
.f-head { font-weight: 700; font-size: .8125rem; text-transform: var(--fhead-transform, uppercase); letter-spacing: .14em; margin-bottom: 1rem; color: var(--accent-ink); }
.footer-col li + li { margin-top: .4rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 4px; }
.promo { grid-column: 1 / -1; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.promo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: var(--r-img); }
.promo-title { font-family: var(--hs-font); font-weight: var(--hs-weight); font-style: var(--hs-style); text-transform: var(--hs-transform); letter-spacing: var(--hs-tracking); font-size: 1.5rem; line-height: 1.05; }
.promo-body p:not(.promo-title) { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.promo .btn { margin-top: 1rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 120px 1fr 1fr minmax(0, 2.2fr); align-items: start; gap: 3rem; }
  .footer-mark { grid-column: auto; width: 84px; }
  .promo { grid-column: auto; grid-template-columns: 150px minmax(0, 1fr); padding: 1.5rem; }
}

/* ==========================================================================
   Movimento — só com html.motion (JS ativo e sem prefers-reduced-motion).
   Somente transform/translate/opacity; nada altera layout (sem CLS).
   ========================================================================== */

/* Hero: entrada em etapas. Foto e nome só se deslocam (sem opacidade) para não atrasar o LCP. */
@keyframes rise { from { translate: 0 var(--from, 28px); } to { translate: 0 0; } }
@keyframes riseFade { from { translate: 0 var(--from, 16px); opacity: 0; } to { translate: 0 0; opacity: 1; } }
html.motion .hero-photo { animation: rise 1s var(--ease-reveal) both; --from: 36px; }
/* Texto do hero e palavras gigantes só aparecem com as fontes carregadas e o tamanho ajustado:
   surgem no lugar certo em vez de trocar de fonte/quebra na frente da usuária (sem CLS). */
html.js:not(.fonts-ready) :is(.hero-copy, .hero-name, .ghost) { visibility: hidden; }
html.motion:not(.fonts-ready) :is(.hero-title, .hero-lede, .hero-meta, .hero-copy .btn, .hero-name) { animation: none; }
html.motion .hero-title { animation: riseFade var(--dur-reveal) var(--ease-reveal) 150ms both; }
html.motion .hero-lede { animation: riseFade var(--dur-reveal) var(--ease-reveal) 300ms both; }
html.motion .hero-meta { animation: riseFade var(--dur-reveal) var(--ease-reveal) 380ms both; }
html.motion .hero-copy .btn { animation: riseFade var(--dur-reveal) var(--ease-reveal) 460ms both; }
html.motion .hero-name { animation: rise 1.2s var(--ease-reveal) 220ms both; --from: .3em; }

/* Revelação ao rolar (uma vez). A lista de seletores é a mesma de js/main.js (REVEAL). */
html.motion :is(.manifesto-text > *, .manifesto-photo, .impact-title, .impact-sub, .t-card, .method-title, .note, .method-photo,
  .dimensions li, .method-cta, .services-text > *, .services-photo, .service, .faq-head, .faq-item, .articles-head, .a-card, .contact-text, .contact-form, .footer-grid > *) {
  opacity: 0; translate: 0 var(--reveal-y);
  transition-property: opacity, translate, transform, box-shadow;
  transition-duration: var(--dur-reveal), var(--dur-reveal), var(--dur-normal), var(--dur-normal);
  transition-timing-function: var(--ease-reveal), var(--ease-reveal), var(--ease-spring), var(--ease-default);
  transition-delay: calc(var(--i, 0) * var(--stagger)), calc(var(--i, 0) * var(--stagger)), 0s, 0s;
}
html.motion .is-in { opacity: 1 !important; translate: 0 0 !important; }

/* Hover/press com mola nos cards (transform separado do translate da revelação) */
@media (hover: hover) {
  html.motion :is(.t-card, .service, .a-card):hover { transform: translateY(-4px); }
  html.motion :is(.t-card, .a-card):hover { box-shadow: 0 18px 40px -28px rgba(42, 6, 4, .55); }
}
html.motion :is(.t-card, .service, .a-card):active { transform: scale(.99); }
.service-cta { transition: text-decoration-thickness var(--dur-fast) var(--ease-default), color var(--dur-fast); }

/* FAQ: pergunta com mola no hover/press; abertura com altura animada (Chrome 131+, nos demais abre sem animação) */
.faq-item summary h3 { transition: transform var(--dur-normal) var(--ease-spring); }
html.motion .faq-item summary:hover h3 { transform: translateX(4px); }
html.motion .faq-item summary:active h3 { transform: translateX(2px) scale(.99); }
.faq-item summary::after { transition: transform var(--dur-normal) var(--ease-spring); }
@supports selector(::details-content) {
  html.motion { interpolate-size: allow-keywords; }
  html.motion .faq-item::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size var(--dur-slow) var(--ease-reveal), opacity var(--dur-normal) var(--ease-default), content-visibility var(--dur-slow) allow-discrete;
  }
  html.motion .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}

/* Setas desenhadas ao entrar na tela */
html.motion .arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-reveal) .35s; }
html.motion .arrow path + path { transition-duration: .35s; transition-delay: 1.15s; }
html.motion .note.is-in .arrow path { stroke-dashoffset: 0; }

/* Palavras-fantasma: paralaxe leve (transform definido em js/main.js) */
html.motion .ghost { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
