/* =========================================================
   Camada de movimento · vida sem agressão
   Princípios: lento, pouca distância, sem flashes,
   easing que desacelera longamente, nada que pisque.
   ========================================================= */

:root {
  --calm: cubic-bezier(.16, 1, .3, 1);      /* chega devagar e assenta */
  --tide: cubic-bezier(.37, 0, .63, 1);     /* vai e volta, como maré */
}

/* ---------- barra de leitura ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(185,141,87,0), var(--honey) 30%, var(--honey-soft));
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ---------- entrada dos blocos: menor, mais lenta ---------- */
html.motion [data-reveal] {
  transform: translateY(14px);
  filter: blur(3px);
  transition:
    opacity 1.6s var(--calm) var(--d, 0s),
    transform 1.9s var(--calm) var(--d, 0s),
    filter 1.4s var(--calm) var(--d, 0s);
}
html.motion [data-reveal].is-in { transform: none; filter: none; }

/* títulos: palavra por palavra, como quem fala com calma */
html.motion [data-split][data-reveal] { opacity: 1; transform: none; filter: none; }
html.motion [data-split] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.32em);
  filter: blur(4px);
  transition:
    opacity 1.5s var(--calm),
    transform 1.8s var(--calm),
    filter 1.3s var(--calm);
  transition-delay: calc(var(--d, 0s) + var(--i) * 55ms);
}
html.motion [data-split].is-in .w { opacity: 1; transform: none; filter: none; }

/* imagens: assentam devagar dentro da moldura */
html.motion .unveil img { scale: 1.1; transition: scale 2.8s var(--calm); }
html.motion .unveil.is-in img { scale: 1; }

/* painéis grandes: respiram para dentro do lugar */
html.motion .settle {
  scale: .975;
  transition: scale 2s var(--calm);
}
html.motion .settle.is-in { scale: 1; }

/* linha do percurso se desenha sozinha */
html.motion .steps__path {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 3.2s var(--tide) .3s;
}
html.motion .steps-wrap.is-in .steps__path { clip-path: inset(0 0 0 0); }

/* números dos passos chegam um a um */
html.motion .step__n { scale: .85; opacity: 0; transition: scale 1.6s var(--calm), opacity 1.2s var(--calm), transform .8s var(--calm), background .5s; }
html.motion .steps-wrap.is-in .step__n { scale: 1; opacity: 1; }
html.motion .steps-wrap.is-in .step:nth-child(2) .step__n { transition-delay: .5s; }
html.motion .steps-wrap.is-in .step:nth-child(3) .step__n { transition-delay: 1s; }
html.motion .steps-wrap.is-in .step:nth-child(4) .step__n { transition-delay: 1.5s; }

/* ---------- ritmos contínuos: mais lentos e com menos amplitude ---------- */
.blob--a { animation: drift 38s var(--tide) infinite alternate; }
.blob--b { animation: drift 46s var(--tide) infinite alternate-reverse; }
.arch--hero img { animation: breathe 32s var(--tide) infinite alternate; }
@keyframes breathe { from { transform: scale(1.03); } to { transform: scale(1.09) translateY(-1%); } }

.float-card { animation: floatSoft 9s var(--tide) infinite alternate; }
.about__circle img { animation: floatSoft 11s var(--tide) infinite alternate; }
@keyframes floatSoft { from { transform: translateY(0); } to { transform: translateY(-6px); } }

.seal__ring { animation-duration: 90s; }
.about__orbit { animation-duration: 140s; }
.dot { animation: pulse 4.8s var(--tide) infinite; }
.scroll-hint span { animation-duration: 3.4s; }

/* elementos que seguem o mouse/scroll: o JS interpola; aqui só preparo */
[data-depth], [data-follow] { will-change: translate; }

/* ---------- respiração na assinatura (≈ 6 respirações/min) ---------- */
.signature__glow { animation: breath 10s var(--tide) infinite; }
@keyframes breath {
  0%   { opacity: .55; transform: scale(.9); }
  40%  { opacity: 1;   transform: scale(1.08); }   /* inspira 4s */
  55%  { opacity: 1;   transform: scale(1.08); }   /* pausa */
  100% { opacity: .55; transform: scale(.9); }     /* expira */
}
.breath-ring {
  position: absolute; left: 50%; top: 42%;
  width: 360px; height: 360px; translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(228, 207, 174, .22);
  z-index: -1; pointer-events: none;
  animation: ring 10s var(--tide) infinite;
}
.breath-ring--2 { width: 470px; height: 470px; border-color: rgba(228, 207, 174, .12); animation-delay: -.6s; }
@keyframes ring {
  0%   { transform: scale(.92); opacity: .4; }
  40%  { transform: scale(1.06); opacity: 1; }
  55%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(.92); opacity: .4; }
}
.breath-hint {
  display: inline-flex; gap: .5em; align-items: center;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(228, 207, 174, .7);
  margin: -6px 0 22px;
}
.breath-hint span { display: inline-grid; }
.breath-hint b, .breath-hint i { grid-area: 1 / 1; font-weight: 500; font-style: normal; animation: wordIn 10s var(--tide) infinite; }
.breath-hint i { animation-name: wordOut; }
@keyframes wordIn  { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wordOut { 0%, 45% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- partículas de luz ---------- */
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .motes { z-index: -1; }
.signature .motes { z-index: -1; }

/* ---------- interações: toques leves ---------- */
.card, .service, .blog { transition: transform 1.2s var(--calm), box-shadow 1.2s var(--calm); }
.card:hover, .service:hover { transform: translateY(-3px); }
.blog:hover { transform: translateY(-2px); }
.service__img img, .blog__img img { transition: transform 2.6s var(--calm), scale 2.8s var(--calm); }
.service:hover .service__img img, .blog:hover .blog__img img { transform: scale(1.03); }
.split__media:hover .arch--tall img { transform: scale(1.025); }
.btn { transition: transform .9s var(--calm), box-shadow .9s var(--calm), background .6s var(--calm), color .6s var(--calm); }
.btn--primary:hover, .btn--ghost:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.chip { transition: background .8s var(--calm), color .6s, transform .9s var(--calm), box-shadow .9s var(--calm); }
.chip[aria-selected="true"] { transform: translateX(3px); }
.answer__body { transition: opacity .7s var(--calm), transform .9s var(--calm), filter .7s var(--calm); }
.answer__body.is-leaving { transform: translateY(6px); filter: blur(3px); }
.gallery { cursor: grab; }
.gallery.is-auto { scroll-snap-type: none; scroll-behavior: auto; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging img { pointer-events: none; }
.gallery figure:hover img { transform: translateY(-2px); }

/* botão flutuante chega como uma folha */
.wa-float { transition: opacity 1.2s var(--calm), transform 1.4s var(--calm), background .5s; }

/* menos movimento: desliga tudo que for decorativo */
@media (prefers-reduced-motion: reduce) {
  .motes, .breath-ring, .progress { display: none; }
  html.motion [data-split] .w, html.motion .unveil img, html.motion .settle,
  html.motion .steps__path, html.motion .step__n { opacity: 1 !important; transform: none !important; filter: none !important; scale: 1 !important; clip-path: none !important; }
}
