/* =========================================================
   Infinity Acústica
   Paleta: #ffffff (base) · #101010 (contraste) · #b52626 (destaque)
   Tipografia: Jost (textos e títulos) + Allura (destaques, como o
   "Acústica" da logo)
   ========================================================= */

:root {
  --red: #b52626;
  --red-dark: #8e1c1c;
  --black: #101010;
  --white: #ffffff;
  --paper: #f5f4f1;
  --gray: #5c5c5c;
  --gray-light: #8a8a8a;
  --line: #e4e1dc;

  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
ul, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Elementos da marca ---------- */

/* palavra em destaque com a letra cursiva da logo */
.script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.5em;
  line-height: .7;
  letter-spacing: 0;
  color: var(--red);
  display: inline-block;
  padding: 0 .08em 0 .02em;
  vertical-align: -.04em;
}

/* rótulo pequeno com losango (o losango da logo) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-bottom: 1.2rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gray);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

.title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.6rem;
}

/* losango decorativo com linha pontilhada interna, como na logo */
.diamond {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid var(--red);
  pointer-events: none;
}
.diamond::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dotted rgba(181, 38, 38, .55);
}

/* onda sonora da logo */
.wave {
  display: block;
  stroke: var(--red);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1em 1.7em;
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
/* preenchimento que "varre" o botão no hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(.98); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red::before { background: var(--black); }

.btn--line-light { border: 1px solid rgba(255, 255, 255, .5); color: var(--white); }
.btn--line-light::before { background: var(--white); }
.btn--line-light:hover { color: var(--black); border-color: var(--white); }

.btn--sm { padding: .8em 1.2em; font-size: .75rem; }
.btn--lg { padding: 1.15em 2em; }
.btn--xl { padding: 1.35em 2.4em; font-size: .9rem; }

.icon--arrow { transition: transform .4s var(--ease-out); }
.btn:hover .icon--arrow,
.link-arrow:hover .icon--arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: .6rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out);
}
.header.is-solid,
.header.is-open {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.header__logo { position: relative; display: block; width: 62px; height: 62px; }
.header__logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .4s var(--ease);
}
/* sobre o hero escuro usa a logo branca; no header branco, a colorida */
.header__logo::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../imagens/web/logo-branca.webp") center / contain no-repeat;
  transition: opacity .4s var(--ease);
}
.header__logo img { opacity: 0; }
.header.is-solid .header__logo img,
.header.is-open .header__logo img { opacity: 1; }
.header.is-solid .header__logo::before,
.header.is-open .header__logo::before { opacity: 0; }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  position: relative;
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.header.is-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease-out); }
.is-loaded .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,.78) 0%, rgba(16,16,16,.6) 45%, rgba(16,16,16,.92) 100%);
}

.hero__inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 40px;
}
.hero .kicker { color: rgba(255,255,255,.75); }

.hero__title {
  font-size: clamp(2.6rem, 10vw, 5.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.hero__title .line { display: block; overflow: hidden; padding: .12em 0 .2em; margin: -.12em 0 -.2em; }
.hero__title .line > span { display: block; }
.script--hero { font-size: 1.6em; padding-right: .12em; }

.wave--hero { width: 210px; height: 26px; margin: .4rem 0 1.4rem; }
.hero__subtitle { max-width: 470px; font-size: 1.08rem; font-weight: 300; color: rgba(255,255,255,.82); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__frame { display: none; }

.hero__strip {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding-top: 20px; padding-bottom: 26px;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero__strip::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgba(255,255,255,.14);
}
.hero__strip li { display: flex; align-items: center; gap: .45em; }
.hero__strip strong { color: var(--red); font-size: 1.25em; font-weight: 600; letter-spacing: 0; }

/* entrada do hero (dispara quando a abertura sai) */
.js .hero-anim {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.js .hero__title .line > .hero-anim { opacity: 1; transform: translateY(110%); }
.js .hero .script--hero { clip-path: inset(-30% 100% -30% 0); transition: clip-path 1.4s var(--ease) 1s; }
.js .wave--hero { transition: opacity .6s, stroke-dashoffset 2s var(--ease) 1s; }
.is-loaded .hero-anim { opacity: 1 !important; transform: none !important; }
.is-loaded .hero .script--hero { clip-path: inset(-30% -10% -30% 0); }
.is-loaded .wave--hero { stroke-dashoffset: 0; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }

/* ---------- Sobre ---------- */
.about__grid { display: grid; gap: 64px; align-items: center; }
.about__text > p { color: var(--gray); font-size: 1.05rem; max-width: 560px; }
.about__text strong { color: var(--black); font-weight: 500; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 2.4rem 0 2.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 1.4rem .8rem 1.3rem 0; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 9vw, 3.8rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--black); margin-bottom: .5rem; }
.stat dd { font-size: .78rem; line-height: 1.35; color: var(--gray); letter-spacing: .02em; }

.about__media { position: relative; margin: 0; padding: 26px 26px 0 0; }
.about__photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: #d9d6d0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.diamond--about { width: 56%; top: 0; right: 9%; transform: rotate(45deg); z-index: 0; opacity: .9; }
.about__media figcaption {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .8em;
  margin-top: 1rem;
  font-size: .85rem; color: var(--gray);
}
.about__media figcaption::before { content: ""; width: 28px; height: 1px; background: var(--red); flex-shrink: 0; }

.perks { margin-top: 110px; }
.perks__heading {
  font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gray);
  margin-bottom: 2rem;
}
.perks__list { display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.perk {
  position: relative;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 18px;
  padding: 1.8rem 0 1.6rem;
  border-top: 1px solid var(--line);
}
.perk::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 36px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out) .2s, width .6s var(--ease-out);
}
.perk.is-visible::before { transform: scaleX(1); }
.perk:hover::before { width: 100%; transition-delay: 0s; }
.perk__icon { grid-row: span 2; width: 30px; height: 30px; color: var(--red); margin-top: 2px; transition: transform .5s var(--ease-out); }
.perk:hover .perk__icon { transform: translateY(-3px); }
.perk h4 { font-size: 1.18rem; font-weight: 500; margin-bottom: .45rem; }
.perk p { margin: 0; font-size: .95rem; color: var(--gray); line-height: 1.55; }

/* ---------- Portfólio ---------- */
.portfolio { background: var(--paper); }
.portfolio__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; margin-bottom: 2.2rem; }
.portfolio__head .title { margin-bottom: .6rem; }

.filters {
  display: flex; gap: 26px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative; flex-shrink: 0;
  padding: .3rem 0;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-light);
  transition: color .3s var(--ease);
}
.filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.filter:hover { color: var(--black); }
.filter.is-active { color: var(--black); }
.filter.is-active::after { transform: scaleX(1); transform-origin: left; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.work { margin: 0; cursor: zoom-in; }
.work.is-hidden { display: none; }
.work__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e2dfd9; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work__img::after {
  /* "+" que aparece ao passar o mouse */
  content: "+";
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--white); color: var(--black);
  font-size: 1.4rem; font-weight: 300; line-height: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), background-color .3s, color .3s;
}
.work:hover .work__img img { transform: scale(1.06); }
.work:hover .work__img::after { opacity: 1; transform: none; background: var(--red); color: var(--white); }
.work figcaption { padding-top: .85rem; font-size: .92rem; line-height: 1.35; }
.work figcaption span {
  display: block; margin-bottom: .3rem;
  font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}

/* entrada das fotos: cortina de baixo para cima */
.js .work .work__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .work .work__img img { transform: scale(1.18); transition: transform 1.4s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .work figcaption { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease-out); transition-delay: calc(var(--delay, 0ms) + 250ms); }
.js .work.is-visible .work__img { clip-path: inset(0 0 0 0); }
.js .work.is-visible .work__img img { transform: scale(1); }
.js .work.is-visible:hover .work__img img { transform: scale(1.06); transition-delay: 0s; transition-duration: 1.1s; }
.js .work.is-visible figcaption { opacity: 1; transform: none; }
.work.is-entering { animation: workIn .6s var(--ease-out) both; }
@keyframes workIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* bloco de chamada dentro da grade: ocupa as colunas que sobram na última linha */
.portfolio__cta {
  grid-column: span var(--span, 2);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem;
  min-height: 240px;
  padding: 36px 28px;
  background: var(--black); color: var(--white);
}
.portfolio__cta p { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 300; line-height: 1.2; max-width: 440px; }
.portfolio__cta .script { font-size: 1.45em; }
.portfolio__cta .wave { position: absolute; right: -40px; bottom: 26px; width: 340px; height: 42px; opacity: .55; }
.portfolio__cta.is-visible .wave { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) .4s; }
.portfolio__cta.is-compact { padding: 24px 18px; min-height: 0; gap: 1rem; }
.portfolio__cta.is-compact p { font-size: 1.25rem; }
.portfolio__cta.is-compact .btn { width: 100%; padding: 1em .8em; font-size: .72rem; letter-spacing: .06em; }
.portfolio__cta .btn--red::before { background: var(--white); }
.portfolio__cta .btn--red:hover { color: var(--black); }

/* botão "ver mais" do portfólio */
.more { display: flex; justify-content: center; margin-top: 56px; }
.more[hidden] { display: none; }
.more__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .8em;
  padding: 1.1em 2.2em;
  border: 1px solid var(--black);
  border-radius: 2px;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.more__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--black);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.more__btn:hover { color: var(--white); }
.more__btn:hover::before { transform: scaleX(1); transform-origin: left; }
.more__count { color: var(--red); letter-spacing: .05em; }
.more__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.more__btn.is-loading { pointer-events: none; }
.more__btn.is-loading .more__count { display: none; }
.more__btn.is-loading .more__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contato ---------- */
.contact__grid { display: grid; gap: 56px; align-items: stretch; }
.contact__text > p { color: var(--gray); font-size: 1.05rem; max-width: 500px; margin-bottom: 2rem; }
.contact .title { max-width: 560px; }

.contact__info { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.contact__info li { display: flex; gap: 16px; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact__info .icon { width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.contact__info small { display: block; margin-bottom: .2rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-light); }
.contact__info address { color: var(--black); line-height: 1.55; }
.contact__phone { font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 400; letter-spacing: -.01em; transition: color .3s var(--ease); }
.contact__phone:hover { color: var(--red); }

.contact__map { position: relative; min-height: 340px; margin-right: 14px; margin-bottom: 14px; }
.contact__map::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--red); pointer-events: none;
}
.contact__map iframe {
  position: relative; display: block; width: 100%; height: 100%; min-height: 340px; border: 0;
  background: var(--paper);
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s var(--ease);
}
.contact__map:hover iframe { filter: none; }

/* ---------- Rodapé ---------- */
.footer { position: relative; background: var(--black); color: rgba(255,255,255,.66); padding-top: 72px; }
.wave--footer {
  position: absolute; top: -13px; left: 0; width: 100%; height: 26px;
  stroke-width: 1; opacity: .9;
}
.wave--footer.is-visible { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease); }
.footer__grid { display: grid; gap: 44px; padding-bottom: 52px; }
.footer__logo { width: 132px; height: auto; margin-left: -10px; }
.footer__brand p { margin: .8rem 0 0; max-width: 300px; font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,.85); line-height: 1.45; }
.footer__col h4 {
  margin-bottom: 1.2rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--white);
}
.footer__col li { margin-bottom: .55rem; }
.footer__col li a { position: relative; transition: color .3s var(--ease); }
.footer__col li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.footer__col li a:hover { color: var(--white); }
.footer__col li a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__phone { display: inline-block; font-size: 1.45rem; color: var(--white); margin-bottom: .6rem; transition: color .3s; }
.footer__phone:hover { color: var(--red); }
.footer__col address { font-size: .9rem; line-height: 1.6; margin-bottom: 1.4rem; }
.footer .btn--red::before { background: var(--white); }
.footer .btn--red:hover { color: var(--black); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 22px 0 100px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }
.to-top { color: rgba(255,255,255,.66); transition: color .3s; }
.to-top:hover { color: var(--white); }
.to-top span { display: inline-block; color: var(--red); transition: transform .4s var(--ease-out); }
.to-top:hover span { transform: translateY(-3px); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.js .wa-float { transform: scale(0); }
.is-loaded .wa-float { transform: scale(1); transition-delay: 1.4s; }
.is-loaded .wa-float:hover { transform: scale(1.08); transition-delay: 0s; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366;
  animation: ring 2.6s var(--ease) 3s infinite;
  opacity: 0;
}
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: .55em .9em;
  background: var(--black); color: var(--white);
  font-size: .78rem; white-space: nowrap; border-radius: 2px;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .96);
  opacity: 0; transition: opacity .35s var(--ease);
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; padding: 70px 12px 60px; }
.lightbox__stage img {
  /* foto inteira, sem cortes */
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
}
.lightbox__stage img.is-loading { opacity: 0; transform: scale(.985); }
.lightbox__stage figcaption { display: flex; gap: 14px; align-items: baseline; color: rgba(255,255,255,.85); font-size: .95rem; text-align: center; }
#lbCounter { color: var(--red); font-size: .78rem; font-weight: 500; letter-spacing: .14em; }

.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--next { right: 14px; }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
/* o recorte vai nos filhos: o Chrome não "vê" um elemento recortado por inteiro */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > :not(.diamond) {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
}
.js [data-reveal="clip"] img { transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.js [data-reveal="clip"] .diamond { opacity: 0; transform: rotate(0deg) scale(.7); transition: opacity 1s var(--ease) .5s, transform 1.6s var(--ease-out) .5s; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-visible > :not(.diamond) { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-visible img { transform: none; }
.js [data-reveal].is-visible .diamond { opacity: .9; transform: rotate(45deg); }

/* a palavra cursiva "se escreve" depois que o título aparece */
.js [data-reveal] .script { clip-path: inset(-30% 100% -30% 0); transition: clip-path 1.4s var(--ease) .45s; }
.js [data-reveal].is-visible .script { clip-path: inset(-30% -10% -30% 0); }

.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-stagger] > .is-visible { opacity: 1; transform: none; }

/* se o JS falhar, nada fica escondido */
.no-anim [data-reveal], .no-anim [data-reveal] > *, .no-anim [data-stagger] > *, .no-anim .work .work__img, .no-anim .work figcaption, .no-anim .hero-anim {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
}

/* =========================================================
   Responsivo (mobile first)
   ========================================================= */
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100svh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter) 32px;
    background: var(--white); color: var(--black);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility .6s;
  }
  .header.is-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__link {
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
    font-size: 1.9rem; font-weight: 300; letter-spacing: -.01em; text-transform: none;
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .6s var(--ease-out);
  }
  .nav__link::after { display: none; }
  .header.is-open .nav__link { opacity: 1; transform: none; }
  .header.is-open .nav__link:nth-child(1) { transition-delay: .15s; }
  .header.is-open .nav__link:nth-child(2) { transition-delay: .22s; }
  .header.is-open .nav__link:nth-child(3) { transition-delay: .29s; }
  .nav__cta { margin-top: 2rem; padding: 1.2em; font-size: .85rem; }

  .hero__actions .btn { width: 100%; }

  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__stage { padding-bottom: 84px; }
  .lightbox__stage img { max-height: calc(100svh - 200px); }
}

@media (max-width: 480px) {
  .btn { letter-spacing: .07em; }
  .btn--lg { padding: 1.15em 1.2em; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn--xl { width: 100%; padding: 1.3em 1.2em; }
  .stat dd { font-size: .72rem; }
  .work figcaption { font-size: .84rem; }
}

@media (min-width: 600px) {
  .perks__list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 44px 24px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 92px; }
  .header__logo { width: 76px; height: 76px; }
  .section { padding: 140px 0; }

  .hero__media { display: none; }
  .hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; padding-bottom: 56px; }
  .hero__frame { display: block; position: relative; margin: 0; padding: 0 6% 0 10%; }
  .hero__photo {
    position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: #222;
  }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; }
  .diamond--hero { width: 92%; left: 4%; top: 50%; margin-top: -46%; transform: rotate(45deg); z-index: 0; }
  .hero__tag {
    position: relative; z-index: 1; margin-top: 14px;
    font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5);
  }
  /* entrada da foto do hero */
  .js .hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out) .35s; }
  .js .hero__photo img { transform: scale(1.25); transition: transform 2.2s var(--ease-out) .35s; }
  .js .diamond--hero { opacity: 0; transform: rotate(0deg) scale(.6); transition: opacity 1.2s var(--ease) .8s, transform 2s var(--ease-out) .8s; }
  .js .hero__tag { opacity: 0; transition: opacity 1s var(--ease) 1.6s; }
  .is-loaded .hero__photo { clip-path: inset(0 0 0 0); }
  .is-loaded .hero__photo img { transform: scale(1); }
  .is-loaded .diamond--hero { opacity: 1; transform: rotate(45deg); }
  .is-loaded .hero__tag { opacity: 1; }

  .hero__strip { gap: 0; padding-top: 24px; padding-bottom: 30px; }
  .hero__strip li + li::before { content: ""; width: 5px; height: 5px; margin: 0 24px; border: 1px solid var(--red); transform: rotate(45deg); }

  .about__grid { grid-template-columns: 1.1fr .9fr; gap: 96px; }
  .about__media { padding: 40px 40px 0 0; }
  .diamond--about { width: 62%; top: -4%; right: -6%; }
  .perks__list { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }

  .filters { margin: 0 0 .9rem; padding: 6px 0 10px; }

  .contact__grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .contact__map { min-height: 520px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { padding-bottom: 26px; }

  .lightbox__nav--prev { left: 28px; }
  .lightbox__nav--next { right: 28px; }
  .lightbox__close { top: 24px; right: 28px; }
  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
}

@media (min-width: 1200px) {
  .gallery { gap: 56px 32px; }
}

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