/* ==========================================================================
   Cris Porto | Arquitetura e interiores
   Sistema visual: a geometria do logo (linhas retas, traço grosso, ângulos
   retos) em preto e branco. Toda a cor vem das fotos dos projetos.
   Fonte única: Archivo variável. Títulos em largura estendida (wdth 125),
   texto em largura normal (wdth 100), ecoando as letras largas do logo.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --sand: #ecece8;          /* concreto claro */
  --ink: #000000;           /* preto do logo */
  --grey: #4d4d49;          /* texto secundário */
  --grey-on-ink: #bdbdb7;
  --wa: #11793c;            /* verde do WhatsApp, escurecido para contraste */
  --wa-hover: #0c6230;
  --rule-w: 1px;            /* linhas de estrutura: finas e suaves */
  --rule-color: #d3d3ce;
  --stroke: 2px;            /* contornos de botões e indicadores de estado */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --fs-h1: clamp(2.25rem, 0.9rem + 5.2vw, 5rem);

  --pad: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --max: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ----- Tipografia ------------------------------------------------------- */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 34em; color: var(--grey); }

/* ----- Botões ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .75rem 1.5rem;
  font-weight: 600; font-stretch: 110%; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: var(--stroke) solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--small { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; }
.btn--big { min-height: 3.75rem; padding-inline: 2rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.icon { width: 1.4em; height: 1.4em; flex: none; }

/* ----- Cabeçalho -------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .25s, color .25s, border-color .25s;
  border-bottom: var(--rule-w) solid transparent;
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / .5), transparent);
  transition: opacity .25s;
}
.header.is-solid { background: var(--white); color: var(--ink); border-bottom-color: var(--rule-color); }
.header.is-solid::before { opacity: 0; }

.header__bar {
  display: flex; align-items: center; gap: 1.5rem; height: var(--header-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__mark { height: 34px; width: auto; aspect-ratio: 385 / 285; fill: none; stroke: currentColor; stroke-width: 23; stroke-linejoin: miter; }
.brand__name { font-weight: 600; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; font-size: .9375rem; }

.nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-size: var(--fs-small); font-weight: 500; padding-block: .35rem;
  border-bottom: var(--rule-w) solid transparent; transition: border-color .2s;
}
.nav a:hover { border-bottom-color: currentColor; }

.header__wa { border-color: currentColor; }
.header.is-solid .header__wa { border-color: var(--wa); }

/* Redes sociais: ícones pequenos que herdam a cor do cabeçalho */
.social { display: flex; align-items: center; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; opacity: .8; transition: opacity .2s;
}
.social a:hover { opacity: 1; }
.social .icon { width: 1.125rem; height: 1.125rem; }
.header__social { margin-inline: -.5rem; }
.nav__social { display: none; }

.menu-btn {
  display: none; background: none; border: var(--stroke) solid currentColor; padding: .45rem .9rem;
  font-weight: 600; font-size: .9375rem; cursor: pointer; min-height: 2.75rem;
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
}
.hero__slides { position: absolute; inset: -12% 0 auto 0; height: 124%; z-index: -2; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .9s ease; }
.hero__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .45) 38%, rgb(0 0 0 / 0) 68%),
    linear-gradient(to right, rgb(0 0 0 / .3), rgb(0 0 0 / 0) 60%);
}
.hero__mark {
  position: absolute; right: var(--pad); bottom: clamp(4.5rem, 10vh, 7rem);
  width: clamp(150px, 21vw, 300px); height: auto; aspect-ratio: 385 / 285; overflow: visible;
  fill: none; stroke: var(--white); stroke-width: 11; stroke-linejoin: miter; stroke-linecap: butt;
  filter: drop-shadow(0 0 8px rgb(0 0 0 / .35));
}
.hero__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.65, 0, .25, 1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__content {
  position: relative; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--pad) clamp(4.5rem, 10vh, 7rem);
}
.hero__title {
  max-width: 15em; font-size: var(--fs-h1); font-weight: 500; font-stretch: 125%;
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.hero__lead { max-width: 32em; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.5; color: rgb(255 255 255 / .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero__copies { display: grid; }
.hero__copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.hero__copy.is-active { opacity: 1; visibility: visible; transition: none; }

.hero__controls { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.hero__pause {
  min-width: 5.5rem; padding: .35rem 0; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid rgb(255 255 255 / .5); color: var(--white); font-weight: 600; font-size: .875rem;
}
.hero__pause:hover { border-bottom-color: var(--white); }
.hero__dots { display: flex; gap: .25rem; }
.hero__dot { position: relative; width: 3.25rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--white); }
.hero__dot span { position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%; background: rgb(255 255 255 / .35); overflow: hidden; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left center; }
.hero__dot.is-active span::after { transform: scaleX(1); }
.hero.has-autoplay .hero__dot.is-active span::after { animation: dot-fill var(--slide-time, 7.5s) linear both; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: .5rem; margin-left: auto; }
.hero__arrow {
  min-height: 2.25rem; padding: .35rem .85rem; cursor: pointer; transition: background-color .2s, color .2s;
  background: transparent; color: var(--white); border: 1px solid rgb(255 255 255 / .55); font-weight: 600; font-size: .875rem;
}
.hero__arrow:hover { background: var(--white); color: var(--ink); }

/* ----- Seções ----------------------------------------------------------- */
.section { padding-block: var(--space-section); background: var(--white); }
.section--sand { background: var(--sand); }
.section--ink { --rule-color: rgb(255 255 255 / .22); background: var(--ink); color: var(--white); }
.section--ink .section__lead { color: var(--grey-on-ink); }
.section__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ----- Portfólio -------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-bottom: 2rem; padding-bottom: .5rem; border-bottom: var(--rule-w) solid var(--rule-color); }
.filter {
  background: none; border: 0; padding: .6rem 0; cursor: pointer; font-weight: 500; font-size: 1rem; color: var(--grey);
  border-bottom: var(--stroke) solid transparent; margin-bottom: calc(-.5rem - var(--rule-w));
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.grid { columns: 3; column-gap: 1.5rem; }
.tile { break-inside: avoid; margin-bottom: 1.75rem; }
.tile[hidden] { display: none; }
.tile a { display: block; text-decoration: none; cursor: zoom-in; }
.tile img { width: 100%; height: auto; background: var(--sand); }
.tile__cap { display: block; margin-top: .6rem; font-size: var(--fs-small); line-height: 1.4; color: var(--grey); }
.tile a:hover .tile__cap { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ----- Do projeto à obra ------------------------------------------------ */
.compare { display: grid; grid-template-columns: 2.41fr 1fr; gap: 1.5rem; align-items: start; }
.compare__item img { width: 100%; height: auto; }
.compare__item figcaption { margin-top: .75rem; font-weight: 600; font-stretch: 112%; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.details__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* ----- Sobre ------------------------------------------------------------ */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.about__photo { position: relative; z-index: 0; margin: 0 1.25rem 1.25rem 0; }
.about__photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: var(--rule-w) solid #b7b7b1; translate: 1.25rem 1.25rem;
}
.about__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--sand); }
.about__text { display: grid; gap: 1.25rem; max-width: 40rem; }
.about__text .h2 { margin-bottom: 0; }
.about__role { font-size: var(--fs-lead); color: var(--grey); margin-bottom: .75rem; }
.about__text p:not(.about__role) { line-height: 1.75; max-width: 38em; }
.facts { display: grid; grid-template-columns: minmax(6rem, 1fr) 2fr; gap: .35rem 1.5rem; margin-top: 1.5rem; padding-block: 1.25rem; }
.facts dt { font-weight: 600; font-stretch: 112%; }
.facts dd { color: var(--grey); grid-column: 2; }
.facts dd + dd { margin-top: .15rem; }

/* ----- Serviços --------------------------------------------------------- */
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: .5rem 3rem; align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
}
.service__name { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; font-stretch: 118%; line-height: 1.2; letter-spacing: -0.01em; }
.service__text { color: var(--grey-on-ink); max-width: 34em; }

/* ----- Contato ---------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__intro { display: grid; gap: 1.5rem; justify-items: start; }
.contact__number { font-size: 1.5rem; font-weight: 500; font-stretch: 115%; }
.contact__number a { text-decoration: none; border-bottom: 1px solid currentColor; }
.steps__title { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; font-stretch: 118%; }
.steps { counter-reset: passo; display: grid; gap: 0; width: 100%; max-width: 34rem; margin-top: -.5rem; }
.steps li { counter-increment: passo; position: relative; padding: .9rem 0 .9rem 2.75rem; }
.steps li::before { content: counter(passo); position: absolute; left: 0; top: .9rem; font-weight: 700; font-stretch: 125%; }
.steps strong { font-weight: 600; }

.brief { background: var(--white); border: var(--rule-w) solid var(--rule-color); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.4rem; }
.brief__title { font-size: 1.5rem; font-weight: 500; font-stretch: 120%; line-height: 1.2; }
.brief__hint { color: var(--grey); font-size: var(--fs-small); margin-top: -.75rem; }
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-small); padding: 0; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; background: var(--white); border: 1px solid #8c8c87; border-radius: 0; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #b00020; box-shadow: inset 0 0 0 1px #b00020; }
.field__error { color: #b00020; font-size: var(--fs-small); font-weight: 500; }
.field__error[hidden] { display: none; }
.field--choice { grid-template-columns: 1fr 1fr; column-gap: .75rem; }
.field--choice legend { grid-column: 1 / -1; margin-bottom: .45rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; text-align: center; padding: .75rem .5rem; border: 1px solid #8c8c87; font-weight: 600; font-size: 1rem; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ----- Rodapé ----------------------------------------------------------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; border-top: 1px solid rgb(255 255 255 / .18); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: center; }
.footer__logo { width: clamp(200px, 22vw, 280px); height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: flex-end; font-weight: 500; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border-bottom: var(--rule-w) solid transparent; padding-block: .25rem; }
.footer__links .icon { width: 1.125rem; height: 1.125rem; }
.footer__links a:hover { border-bottom-color: var(--white); }
.footer__copy { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--grey-on-ink); padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .18); }

/* ----- Botão flutuante -------------------------------------------------- */
.fab {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .5rem 1.15rem;
  background: var(--wa); color: var(--white); text-decoration: none; font-weight: 600; font-stretch: 110%;
  border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--wa);
  translate: 0 140%; opacity: 0; pointer-events: none; transition: translate .3s, opacity .3s, background-color .2s;
}
.fab.is-visible { translate: 0 0; opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--wa-hover); }
.fab .icon { width: 1.6rem; height: 1.6rem; }

/* ----- Lightbox --------------------------------------------------------- */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(0 0 0 / .94); color: var(--white); overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: lb-in .25s ease-out; }
.lightbox::backdrop { background: rgb(0 0 0 / .94); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: grid; justify-items: center; align-content: center; gap: .9rem; min-width: 0; height: 100dvh; padding: 4.5rem 0 1.25rem; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { display: flex; gap: 1.5rem; justify-content: space-between; width: min(100%, 75rem); padding-inline: 1rem; font-size: var(--fs-small); }
.lightbox__count { color: var(--grey-on-ink); white-space: nowrap; }
.lightbox__close, .lightbox__nav {
  background: transparent; color: var(--white); border: 1px solid rgb(255 255 255 / .55); cursor: pointer;
  padding: .6rem 1rem; font-weight: 600; font-size: .9375rem; min-height: 2.75rem;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--white); color: var(--ink); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lightbox__nav { margin-inline: 1rem; }

/* ----- Linhas finas que se desenham ------------------------------------- */
.rule-t, .rule-b { position: relative; }
.rule-t::before, .rule-b::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--rule-w);
  background: var(--rule-color); transform-origin: left center; pointer-events: none;
}
.rule-t::before { top: 0; }
.rule-b::after { bottom: 0; }

/* ----- Progresso de leitura --------------------------------------------- */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; opacity: .5;
  transform-origin: left center; transform: scaleX(var(--p, 0)); pointer-events: none;
}

/* ----- Movimento ligado à rolagem (só com .anim, definido no <head>) ---- */
/* banner: a nova imagem entra como cortina, a anterior se afasta e o símbolo se redesenha (JS) */
.anim .hero__slide { transition: none; }
.anim .hero__slide.is-entering { animation: slide-wipe 1.3s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes slide-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.anim .hero__slide.is-active img { animation: hero-in 3.2s cubic-bezier(.2, .7, .2, 1) both; }
.anim .hero__slide.is-leaving img { animation: hero-out 1.4s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes hero-in { from { scale: 1.12; } to { scale: 1; } }
@keyframes hero-out { from { scale: 1; translate: 0 0; } to { scale: 1.05; translate: -3% 0; } }
.anim .hero__copy.is-active .hero__title { animation: rise .95s cubic-bezier(.2, .7, .2, 1) .35s both; }
.anim .hero__copy.is-active .hero__lead { animation: rise .95s cubic-bezier(.2, .7, .2, 1) .6s both; }
.anim .hero__actions { animation: rise .95s cubic-bezier(.2, .7, .2, 1) .85s both; }

/* símbolo desenhado no início de cada seção */
.draw-mark {
  justify-self: start; width: 56px; height: auto; aspect-ratio: 385 / 285; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 14; stroke-linejoin: miter; stroke-linecap: butt;
}
.draw-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.65, 0, .25, 1) .1s; }
.draw-mark.is-in path { stroke-dashoffset: 0; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

.anim .rv--up {
  opacity: 0; translate: 0 34px;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 90ms), translate .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 90ms);
}
.anim .rv--up.is-in { opacity: 1; translate: 0 0; }

/* cortina: a imagem aparece como uma parede sendo revelada */
.anim .rv--wipe img, .anim .rv--photo img { clip-path: inset(0 100% 0 0); }
.anim .rv--tile img, .anim .compare__item--tall img { clip-path: inset(100% 0 0 0); }
.anim .rv--wipe img, .anim .rv--photo img, .anim .rv--tile img {
  transition: clip-path 1.25s cubic-bezier(.65, 0, .25, 1) calc(var(--d, 0) * 90ms);
}
.anim .rv--wipe.is-in img, .anim .rv--photo.is-in img, .anim .rv--tile.is-in img { clip-path: inset(0 0 0 0); }
.anim .rv--wipe figcaption, .anim .rv--tile .tile__cap { opacity: 0; transition: opacity .8s ease .55s; }
.anim .rv--wipe.is-in figcaption, .anim .rv--tile.is-in .tile__cap { opacity: 1; }

/* moldura do retrato desliza até a posição */
.anim .rv--photo::after { translate: 0 0; transition: translate 1.2s cubic-bezier(.2, .7, .2, 1) .55s; }
.anim .rv--photo.is-in::after { translate: 1.25rem 1.25rem; }

/* linhas finas se desenham da esquerda para a direita */
.anim .rule-t::before, .anim .rule-b::after {
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.65, 0, .25, 1) calc(var(--d, 0) * 90ms + .1s);
}
.anim .is-in.rule-t::before, .anim .is-in.rule-b::after { transform: scaleX(1); }

/* ----- Responsivo ------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid { columns: 2; }
  .nav { gap: 1rem; }
  .nav a:nth-child(2) { display: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .header__wa span { display: none; }
  .header__wa { padding: .5rem .75rem; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); color: var(--ink); border-bottom: var(--rule-w) solid var(--rule-color);
    padding: .5rem var(--pad) 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav a:nth-child(2) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule-color); font-size: 1.0625rem; }
  .nav .social a { display: inline-flex; padding: 0; border-bottom: 0; }
  .nav__social { display: flex; padding-top: .75rem; margin-left: -.5rem; }
  .header__social { display: none; }

  .about { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { grid-column: 1; }
  .about__photo { max-width: 26rem; }
  .compare { grid-template-columns: 1fr; }
  .compare__item--tall { max-width: 24rem; }
  .service { grid-template-columns: 1fr; gap: .4rem; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .grid { columns: 1; }
  .hero__slide img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .hero__controls { bottom: 1rem; }
  .hero__arrows { display: none; }
  .hero__dot { width: 2.75rem; }
  .hero__pause { min-width: 5rem; }
  .hero__mark { right: var(--pad); bottom: auto; top: 1.25rem; width: 84px; }
  .brand { gap: .6rem; }
  .brand__name { font-size: .8125rem; letter-spacing: .1em; white-space: nowrap; }
  .brand__mark { height: 28px; }
  .header__bar { gap: .75rem; }
  .contact__intro { justify-items: stretch; }
  .btn--big { font-size: 1.0625rem; padding-inline: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .details { grid-template-columns: 1fr 1fr; }
  .details__item:last-child { display: none; }
  .fab__text { display: none; }
  .fab { padding: .5rem .9rem; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__nav { position: absolute; bottom: 1rem; margin: 0; z-index: 2; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__figure { padding-bottom: 5rem; }
  .lightbox__cap { flex-direction: column; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero__mark path { stroke-dashoffset: 0; }
}
