/* Base + hero (C — O consultório do jardim) · Dr. Diego Lima · WebForge */
:root {
  /* cor */
  --noite: #18151b;
  --noite-2: #2b2427;
  --terra: #4e3a30;
  --orquidea: #9a6fb0;
  --orquidea-clara: #cfb3dc;
  --creme: #ede4df;
  --creme-2: #e5dcd3;
  --madeira: #c9965a;
  --madeira-clara: #e2b98f;
  --pele: #bd8e78;
  --marinho: #232443;
  --vermelho: #b3262a;
  --texto: #ede4df;
  --texto-2: rgb(237 228 223 / .74);
  --texto-3: rgb(237 228 223 / .52);
  --linha: rgb(237 228 223 / .16);

  /* tipo */
  --serifa: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --t-titulo: clamp(2.9rem, min(6.1vw, 9.6svh), 6.3rem);
  --t-apoio: clamp(1.06rem, 1.02rem + .25vw, 1.22rem);
  --t-mini: .78rem;
  --t-h2: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-corpo: 1.125rem;
  --t-rotulo: .875rem;

  /* superfícies claras das seções */
  --papel: #f1ebe5;
  --papel-2: #e8ddd3;
  --tinta: #241c22;
  --tinta-2: #54474d;
  --tinta-3: #7a6d70;
  --linha-clara: rgb(36 28 34 / .14);
  --madeira-escura: #8a5a2b;
  --sec-y: clamp(5.5rem, 11vw, 10rem);

  /* espaço */
  --margem: clamp(1.4rem, 5.6vw, 6rem);
  --topo: clamp(4.4rem, 9svh, 6rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-suave: cubic-bezier(.45, .05, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noite); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* granulado único, fixo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
img { display: block; max-width: none; }
.hero img { max-width: none; }
main img { height: auto; }
a { color: inherit; }
p { margin: 0; }

/* ---------- navegação ---------- */
.nav {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 3svh, 1.9rem) var(--margem);
}
.marca { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: .32rem; }
.marca-nome { font-family: var(--serifa); font-size: 1.42rem; font-weight: 400; letter-spacing: .005em; }
.marca-area { font-size: .64rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--madeira-clara); }
.nav-links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav-links a {
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--texto-2);
  position: relative;
  padding: .3rem 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--madeira-clara); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--texto); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  overflow: clip;
  isolation: isolate;
}

/* malha de fundo (noite do jardim) */
.malha { position: absolute; inset: 0; background: var(--noite); overflow: clip; }
.malha i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.malha .m1 {
  width: 95vmax; height: 95vmax; left: -38vmax; bottom: -52vmax;
  background: radial-gradient(closest-side in oklch, rgb(78 58 48 / .95), rgb(78 58 48 / .35) 55%, rgb(78 58 48 / 0));
  animation: deriva1 34s var(--ease-suave) infinite alternate;
}
.malha .m2 {
  width: 70vmax; height: 70vmax; left: 4vw; top: -40vmax;
  background: radial-gradient(closest-side in oklch, rgb(154 111 176 / .30), rgb(154 111 176 / .08) 60%, rgb(154 111 176 / 0));
  animation: deriva2 27s var(--ease-suave) infinite alternate;
}
.malha .m3 {
  width: 80vmax; height: 80vmax; left: 22vw; top: 10svh;
  background: radial-gradient(closest-side in oklab, rgb(43 36 39 / .9), rgb(43 36 39 / 0));
  animation: deriva3 39s var(--ease-suave) infinite alternate;
}
@keyframes deriva1 { to { transform: translate3d(9vmax, -6vmax, 0) scale(1.08); } }
@keyframes deriva2 { to { transform: translate3d(-6vmax, 7vmax, 0) scale(.92); } }
@keyframes deriva3 { to { transform: translate3d(-10vmax, -4vmax, 0); } }

/* cena fotográfica em camadas */
.cena { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.quadro {
  position: absolute;
  height: max(106svh, 680px);
  aspect-ratio: 1080 / 980;
  right: -6vw;
  bottom: -6svh;
}
.camada { position: absolute; inset: 0; will-change: transform; translate: var(--px, 0px) var(--py, 0px); }
.camada img { width: 100%; height: 100%; }

.fundo {
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 2%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.fundo img {
  transform: scale(1.07);
  filter: brightness(.7) saturate(1.08) contrast(1.04);
}
/* tinta noturna sobre o jardim (violeta da orquídea + terra) */
.fundo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 24% in oklch, rgb(154 111 176 / .22), rgb(154 111 176 / 0)),
    radial-gradient(70% 60% at 30% 88% in oklch, rgb(78 58 48 / .5), rgb(78 58 48 / 0)),
    linear-gradient(180deg, rgb(43 36 39 / .5), rgb(43 36 39 / 0) 30%);
  mix-blend-mode: multiply;
}

/* luzes desfocadas do jardim (entre o vidro e ele) */
.luzes i {
  position: absolute; display: block; border-radius: 50%;
  mix-blend-mode: screen;
  animation: flutua 22s var(--ease-suave) infinite alternate;
}
.luzes .l1 { width: 13%; aspect-ratio: 1; left: 79%; top: 17%; background: radial-gradient(closest-side, rgb(207 179 220 / .5), rgb(154 111 176 / .18) 55%, rgb(154 111 176 / 0)); }
.luzes .l2 { width: 8%;  aspect-ratio: 1; left: 88%; top: 40%; background: radial-gradient(closest-side, rgb(207 179 220 / .42), rgb(154 111 176 / 0)); animation-duration: 29s; animation-delay: -8s; }
.luzes .l3 { width: 18%; aspect-ratio: 1; left: 22%; top: 8%;  background: radial-gradient(closest-side, rgb(226 185 143 / .26), rgb(226 185 143 / 0)); animation-duration: 33s; animation-delay: -4s; }
.luzes .l4 { width: 6%;  aspect-ratio: 1; left: 33%; top: 34%; background: radial-gradient(closest-side, rgb(207 179 220 / .4), rgb(154 111 176 / 0)); animation-duration: 25s; animation-delay: -12s; }
.luzes .l5 { width: 10%; aspect-ratio: 1; left: 70%; top: 58%; background: radial-gradient(closest-side, rgb(170 200 150 / .16), rgb(170 200 150 / 0)); animation-duration: 37s; animation-delay: -16s; }
@keyframes flutua {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .7; }
  50% { opacity: 1; }
  100% { transform: translate3d(-18%, 22%, 0) scale(1.18); opacity: .55; }
}

.figura {
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
}
.figura picture { position: absolute; inset: 0; }
.figura img { filter: drop-shadow(-18px 24px 40px rgb(10 8 12 / .55)); }
/* luz morna de fim de tarde que passa devagar por ele */
.figura::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: url("../img/hero-figura.webp") center / 100% 100% no-repeat;
  mask: url("../img/hero-figura.webp") center / 100% 100% no-repeat;
  background: radial-gradient(38% 30% at var(--luz-x, 38%) 30%, rgb(255 214 170 / .5), rgb(255 214 170 / 0));
  mix-blend-mode: soft-light;
  animation: luz 26s var(--ease-suave) infinite alternate;
}
@property --luz-x { syntax: "<percentage>"; inherits: false; initial-value: 38%; }
@keyframes luz { from { --luz-x: 34%; } to { --luz-x: 66%; } }

/* primeiro plano: folhas/orquídeas fora de foco, mais perto da câmera que ele */
.frente i { position: absolute; display: block; border-radius: 50%; }
.frente .f1 {
  width: 34%; aspect-ratio: 1; right: -12%; bottom: 8%;
  background: radial-gradient(closest-side in oklch, rgb(154 111 176 / .32), rgb(154 111 176 / .12) 60%, rgb(154 111 176 / 0));
  animation: flutua 31s var(--ease-suave) infinite alternate-reverse;
}
.frente .f2 {
  width: 16%; aspect-ratio: 1; right: 1%; top: 4%;
  background: radial-gradient(closest-side, rgb(226 185 143 / .2), rgb(226 185 143 / 0));
  animation: flutua 27s var(--ease-suave) infinite alternate;
}

/* véu: liga a foto à noite e segura a leitura do título */
.veu {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(24 21 27 / .92) 0%, rgb(24 21 27 / .6) 30%, rgb(24 21 27 / 0) 50%),
    linear-gradient(0deg, rgb(24 21 27 / .9) 0%, rgb(24 21 27 / 0) 22%);
}

/* ---------- conteúdo ---------- */
.conteudo {
  position: relative;
  z-index: 5;
  min-height: max(100svh, 640px);
  width: min(52rem, 52vw);
  padding: calc(var(--topo) + 2.5svh) 0 clamp(4.6rem, 10svh, 6.4rem) var(--margem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sobre {
  display: flex; align-items: center; gap: .9rem;
  font-size: var(--t-mini);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--madeira-clara);
  margin-bottom: clamp(1rem, 2.6svh, 1.7rem);
}
.sobre .traco { width: 2.6rem; height: 1px; background: currentColor; opacity: .7; }

.titulo {
  margin: 0;
  font-family: var(--serifa);
  font-weight: 300;
  font-size: var(--t-titulo);
  line-height: .98;
  letter-spacing: -.012em;
  color: var(--creme);
  text-wrap: balance;
}
.titulo .linha { display: block; padding: 0 .1em .06em 0; }
.titulo .linha > span { display: inline-block; white-space: nowrap; }
.titulo em .risco {
  position: absolute; left: .02em; right: .12em; bottom: -.06em; width: auto; height: .2em;
  overflow: visible; pointer-events: none;
}
.titulo em .risco path {
  fill: none; stroke: var(--madeira-clara); stroke-width: 2.6; stroke-linecap: round;
  opacity: .75;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
}
.js .titulo em .risco path { animation: risca 1.6s 1.5s var(--ease) both; }
@keyframes risca { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.titulo em {
  font-style: italic;
  font-weight: 400;
  color: var(--madeira-clara);
  position: relative;
  padding-right: .04em;
}

.apoio {
  margin-top: clamp(1.1rem, 3svh, 1.9rem);
  max-width: 32rem;
  font-size: var(--t-apoio);
  line-height: 1.55;
  color: var(--texto-2);
}

.acoes {
  margin-top: clamp(1.3rem, 3.6svh, 2.3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.8rem;
}
.botao {
  --bg: var(--creme);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.02rem 1.6rem 1.02rem 1.3rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--noite);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgb(226 185 143 / .45), inset 0 0 0 1px rgb(255 255 255 / .4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.botao svg { width: 1.3rem; height: 1.3rem; fill: #1f7a4c; flex: none; }
.botao:hover { transform: translateY(-2px); background: #f6eee8; box-shadow: 0 16px 36px -12px rgb(226 185 143 / .6), inset 0 0 0 1px rgb(255 255 255 / .5); }
.botao:focus-visible, .link:focus-visible, .nav-links a:focus-visible, .marca:focus-visible, .trilha button:focus-visible {
  outline: 2px solid var(--madeira-clara); outline-offset: 4px;
}
.link {
  font-size: .96rem; font-weight: 400; text-decoration: none; color: var(--texto);
  border-bottom: 1px solid var(--linha); padding-bottom: .2rem;
  transition: border-color .3s;
}
.link span { display: inline-block; transition: transform .4s var(--ease); }
.link:hover { border-color: var(--madeira-clara); }
.link:hover span { transform: translateX(4px); }

.prova {
  margin: clamp(1.6rem, 5svh, 3.2rem) 0 0;
  padding-left: 1.1rem;
  border-left: 1px solid rgb(226 185 143 / .45);
  max-width: 30rem;
}
.prova .nota { font-size: .86rem; color: var(--texto-2); letter-spacing: .01em; }
.prova .nota strong { font-weight: 500; color: var(--texto); }
.estrelas { color: var(--madeira-clara); letter-spacing: .12em; font-size: .8rem; margin-right: .25rem; }
.prova blockquote {
  margin: .35rem 0 0;
  font-family: var(--serifa);
  font-style: italic;
  font-size: clamp(1.18rem, 1.05rem + .4vw, 1.42rem);
  line-height: 1.3;
  color: var(--creme);
}
.prova figcaption { margin-top: .3rem; font-size: .8rem; color: var(--texto-3); }

/* ---------- letreiro dos valores ---------- */
.letreiro {
  position: absolute;
  z-index: 6;
  right: clamp(1.4rem, 3.4vw, 4rem);
  bottom: clamp(1.1rem, 3.2svh, 1.9rem);
  width: clamp(21.5rem, 27vw, 25rem);
  padding: 1.15rem 1.3rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(160deg in oklab, rgb(43 36 39 / .62), rgb(24 21 27 / .74));
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgb(237 228 223 / .12), 0 30px 60px -30px rgb(0 0 0 / .7);
}
.letreiro-topo {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--texto-3);
}
.contador { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.contador b { font-weight: 500; color: var(--madeira-clara); }
.valores { display: grid; margin-top: .55rem; }
.valor { grid-area: 1 / 1; visibility: hidden; }
.valor.ativo { visibility: visible; }
.valor .nome {
  font-family: var(--serifa);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + .9vw, 2.15rem);
  line-height: 1.1;
  color: var(--creme);
  white-space: nowrap;
}
.valor .nome .l { display: inline-block; }
.valor .frase {
  margin-top: .4rem;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--texto-2);
}
.trilha { display: flex; gap: 5px; margin-top: .95rem; }
.trilha button {
  flex: 1; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.trilha button::before, .trilha button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
}
.trilha button::before { background: rgb(237 228 223 / .16); }
.trilha button::after { background: var(--madeira-clara); transform: scaleX(0); transform-origin: left; }
.trilha button.feito::after { transform: scaleX(1); opacity: .55; }
.trilha button.ativo::after { animation: enche var(--dur, 6s) linear forwards; }
.letreiro.pausado .trilha button.ativo::after { animation-play-state: paused; }
@keyframes enche { to { transform: scaleX(1); } }

/* ---------- rodapé do hero ---------- */
.rodape-hero {
  position: absolute; z-index: 6;
  left: var(--margem); right: auto; max-width: calc(52vw - var(--margem)); bottom: clamp(1.1rem, 3.2svh, 1.9rem);
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: baseline;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-3);
}
.rodape-hero .registro { color: var(--texto-2); font-weight: 400; }
.rodape-hero i { font-style: normal; color: var(--madeira-clara); padding: 0 .3em; }

/* ---------- entrada ---------- */
.js .fundo img { animation: foco-fundo 2.6s var(--ease) both; }
.js .figura { animation: chega 2.2s .25s var(--ease) both; }
.js .luzes { animation: aparece 2.4s .6s ease both; }
.js .titulo .linha > span { animation: sobe .8s var(--ease) both; }
.js .titulo .linha:nth-child(1) > span { animation-delay: .12s; }
.js .titulo .linha:nth-child(2) > span { animation-delay: .24s; }
.js .titulo .linha:nth-child(3) > span { animation-delay: .36s; }
.js .titulo em { animation: acende 1.6s 1.1s ease both; }
.js .sobre, .js .apoio, .js .acoes, .js .prova, .js .letreiro, .js .rodape-hero, .js .nav { animation: surge 1s var(--ease) both; }
.js .nav { animation-delay: .1s; }
.js .sobre { animation-delay: .25s; }
.js .apoio { animation-delay: .85s; }
.js .acoes { animation-delay: 1s; }
.js .prova { animation-delay: 1.2s; }
.js .letreiro { animation-delay: 1.45s; }
.js .rodape-hero { animation-delay: 1.5s; }

@keyframes foco-fundo {
  from { transform: scale(1.16); filter: brightness(.95) saturate(1) contrast(1); }
  to { transform: scale(1.07); filter: brightness(.7) saturate(1.08) contrast(1.04); }
}
@keyframes chega {
  from { opacity: 0; transform: translate3d(0, 4%, 0) scale(1.035); filter: blur(12px); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes sobe { from { opacity: 0; transform: translate3d(0, .22em, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes acende { from { color: var(--creme); } to { color: var(--madeira-clara); } }
@keyframes surge { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* troca do valor */
.valor.ativo .nome .l { animation: letra .9s var(--ease) both; animation-delay: calc(var(--i) * 32ms); }
.valor.ativo .frase { animation: frase .9s .25s var(--ease) both; }
.valor.saindo { visibility: visible; animation: sai .45s ease both; }
@keyframes letra { from { opacity: 0; transform: translate3d(0, .35em, 0); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes frase { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes sai { from { opacity: 1; } to { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* ---------- notebooks menores ---------- */
@media (max-width: 1240px) and (min-width: 981px) {
  .quadro { right: -14vw; }
  .conteudo { width: min(40rem, 50vw); }
  :root { --t-titulo: clamp(2.8rem, min(5.7vw, 9.6svh), 5.6rem); }
}
@media (max-height: 760px) and (min-width: 981px) {
  .prova { margin-top: 1.5rem; }
  .prova blockquote { font-size: 1.15rem; }
  .sobre { margin-bottom: .8rem; }
  .apoio { margin-top: 1rem; }
  .acoes { margin-top: 1.3rem; }
}

/* ---------- celular e tablet ---------- */
@media (max-width: 980px) {
  :root { --t-titulo: clamp(2.55rem, 11.4vw, 4.6rem); --margem: clamp(1.25rem, 5.6vw, 2.6rem); }
  .nav-links { display: none; }
  .marca-nome { font-size: 1.28rem; }
  .hero { min-height: 0; }
  .hero { --hq: clamp(440px, 64svh, 720px); }
  .quadro {
    height: var(--hq);
    right: auto; bottom: auto; top: 0;
    left: 50%;
    transform: translateX(-53%);
  }
  .fundo {
    -webkit-mask-image: linear-gradient(0deg, transparent 6%, #000 46%);
    mask-image: linear-gradient(0deg, transparent 6%, #000 46%);
  }
  .figura {
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 58%, transparent 92%);
  }
  .veu {
    background: linear-gradient(180deg,
      rgb(24 21 27 / .55) 0,
      rgb(24 21 27 / 0) calc(var(--hq) * .16),
      rgb(24 21 27 / 0) calc(var(--hq) * .5),
      rgb(24 21 27 / .75) calc(var(--hq) * .78),
      var(--noite) calc(var(--hq) * .98));
  }
  .conteudo {
    min-height: 0;
    width: auto;
    padding: calc(var(--hq) - 7.2rem) var(--margem) 0;
    display: block;
  }
  .titulo { max-width: 11.5em; }
  .titulo .linha > span { white-space: normal; }
  .apoio { font-size: 1.06rem; }
  .acoes { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .botao { justify-content: center; padding: 1.1rem 1.4rem; }
  .link { align-self: center; }
  .letreiro {
    position: relative; right: auto; bottom: auto;
    width: auto;
    margin: 2.2rem var(--margem) 0;
  }
  .rodape-hero {
    position: relative; left: auto; right: auto; bottom: auto; max-width: none;
    flex-direction: column; gap: .5rem;
    padding: 1.8rem var(--margem) 2.2rem;
    letter-spacing: .16em;
  }
  .prova { margin-top: 2rem; }
}
@media (max-width: 380px) {
  .sobre { letter-spacing: .18em; gap: .7rem; }
  .sobre .traco { width: 1.8rem; }
  .letreiro { padding: 1rem 1.05rem .95rem; }
  .valor .nome { font-size: 1.65rem; }
  .rodape-hero { font-size: .66rem; letter-spacing: .12em; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fundo img { transform: scale(1.07); }
  .valor.ativo .frase, .valor.ativo .nome .l { opacity: 1; }
}

/* pausa as derivas quando o hero sai da tela */
.hero.fora .malha i, .hero.fora .luzes i, .hero.fora .figura::after { animation-play-state: paused; }


/* =========================================================
   BASE DAS SEÇÕES (comum a todas)
   ========================================================= */
html { scroll-padding-top: 5.5rem; }
.sec { position: relative; isolation: isolate; overflow: clip; padding: var(--sec-y) var(--margem); }
.sec--clara { background: var(--papel); color: var(--tinta); color-scheme: light; }
.sec--clara ::selection { background: rgb(201 150 90 / .35); }
.sec--escura { background: var(--noite); color: var(--texto); }
.sec-rotulo {
  display: flex; align-items: center; gap: .9rem; margin: 0 0 1.2rem;
  font-size: var(--t-rotulo); font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--madeira-clara);
}
.sec--clara .sec-rotulo { color: var(--madeira-escura); }
.sec-rotulo::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; opacity: .7; }
.sec-titulo {
  margin: 0; font-family: var(--serifa); font-weight: 300; font-size: var(--t-h2);
  line-height: 1; letter-spacing: -.012em; text-wrap: balance;
}
.sec-titulo em { font-style: italic; font-weight: 400; color: var(--madeira-clara); position: relative; white-space: nowrap; }
.sec--clara .sec-titulo em { color: var(--madeira-escura); }
.sec-titulo em .risco { position: absolute; left: .02em; right: .1em; bottom: -.08em; width: calc(100% - .12em); height: .2em; overflow: visible; pointer-events: none; }
.sec-titulo em .risco path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .7; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .sec-titulo em .risco path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s .5s var(--ease); }
.js .visto .sec-titulo em .risco path, .js .sec-titulo.visto em .risco path { stroke-dashoffset: 0; }
.sec-texto { font-size: var(--t-corpo); line-height: 1.6; }
.sec--clara .sec-texto { color: var(--tinta-2); }
.sec--escura .sec-texto { color: var(--texto-2); }

/* revelação por rolagem: só com JS */
.js [data-rev] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--atraso, 0s); }
.js [data-rev].visto { opacity: 1; transform: none; }
.js [data-rev="foco"] { transform: scale(1.03); filter: blur(10px); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease); }
.js [data-rev="foco"].visto { filter: blur(0); transform: none; }

/* botão escuro (para seções claras) */
.botao--escuro { --bg: var(--noite); color: var(--creme); box-shadow: 0 12px 30px -14px rgb(24 21 27 / .7); }
.botao--escuro:hover { background: var(--noite-2); }
.botao--escuro svg { fill: #6fd39b; }
.sec--clara .link { color: var(--tinta); border-color: var(--linha-clara); }
.sec--clara .link:hover { border-color: var(--madeira-escura); }
.sec--clara :is(a, button):focus-visible { outline: 2px solid var(--madeira-escura); outline-offset: 4px; }
.sec--escura :is(a, button):focus-visible { outline: 2px solid var(--madeira-clara); outline-offset: 4px; }

/* navegação fixa depois do hero */
.nav.fixa {
  position: fixed; inset: 0 0 auto 0; padding-top: .8rem; padding-bottom: .8rem;
  background: rgb(24 21 27 / .72); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgb(237 228 223 / .08); animation: desce .5s var(--ease) both;
}
@keyframes desce { from { transform: translateY(-100%); } to { transform: none; } }
.nav-agendar { display: none; }
.nav.fixa .nav-agendar {
  display: inline-flex; align-items: center; margin-left: clamp(1rem, 2vw, 2rem);
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--creme); color: var(--noite);
  font-size: .88rem; font-weight: 500; text-decoration: none;
}
.nav.fixa .nav-agendar::after { display: none; }

/* WhatsApp que acompanha a rolagem no celular */
.zap-fixo {
  position: fixed; z-index: 40; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1.2rem 0 1rem;
  border-radius: 999px; background: var(--creme); color: var(--noite); text-decoration: none; font-weight: 500; font-size: .95rem;
  box-shadow: 0 14px 34px -12px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.zap-fixo svg { width: 1.35rem; height: 1.35rem; fill: #1f7a4c; }
.zap-fixo.ativo { transform: none; }
@media (max-width: 980px) {
  .zap-fixo { display: inline-flex; }
  .nav.fixa { padding-top: .7rem; padding-bottom: .7rem; }
  .nav.fixa .nav-links { display: none; }
}
@media (max-width: 980px) { .nav.fixa .nav-agendar { display: none; } }

/* rodapé do site */
.rp { position: relative; overflow: clip; background: var(--noite); color: var(--texto-2); padding: clamp(4rem, 8vw, 6.5rem) var(--margem) calc(2rem + env(safe-area-inset-bottom)); font-size: 1rem; }
.rp::before { content: ""; position: absolute; inset: auto -20vw -50vw auto; width: 70vw; height: 70vw; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side in oklch, rgb(154 111 176 / .16), rgb(154 111 176 / 0)); pointer-events: none; }
.rp > * { position: relative; z-index: 1; }
.rp-topo { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--linha); }
.rp-marca { font-family: var(--serifa); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 300; color: var(--creme); line-height: 1; }
.rp-marca em { font-style: italic; color: var(--madeira-clara); }
.rp-frase { margin-top: 1rem; max-width: 26rem; line-height: 1.55; }
.rp h2 { margin: 0 0 .9rem; font-size: var(--t-rotulo); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--madeira-clara); }
.rp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rp a { text-decoration: none; color: var(--texto); border-bottom: 1px solid transparent; transition: border-color .3s; }
.rp a:hover { border-color: var(--madeira-clara); }
.rp a:focus-visible { outline: 2px solid var(--madeira-clara); outline-offset: 3px; }
.rp-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.6rem; font-size: .9rem; color: var(--texto-3); }
.rp-registro { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--texto-2); }
.rp-selo a { color: var(--texto-2); border-bottom: 1px solid var(--linha); }
.rp-selo a:hover { color: var(--creme); border-color: var(--madeira-clara); }
@media (max-width: 860px) {
  .rp-topo { grid-template-columns: 1fr; gap: 2.2rem; }
  .rp-base { flex-direction: column; padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rev] { opacity: 1; transform: none; filter: none; }
  .js .sec-titulo em .risco path { stroke-dashoffset: 0; }
}
