/* =========================================================
   Tânia Gusmão Arquitetura — folha de estilos
   ========================================================= */

:root {
  --offwhite: #F7F6F2;
  --black: #171717;
  --gray-light: #E8E6E1;
  --beige: #C5B9A7;
  --gray-dark: #555555;

  --beige-deep: #A8987F;
  --line: rgba(23, 23, 23, .12);
  --line-light: rgba(247, 246, 242, .16);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 13vw, 180px);
  --header-h: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
em { font-style: italic; }
::selection { background: var(--beige); color: var(--black); }

:focus-visible { outline: 1px solid var(--beige-deep); outline-offset: 4px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--offwhite);
  padding: 10px 16px; font-size: 14px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 28px;
}
.eyebrow .num {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .04em;
  color: var(--beige-deep);
  padding-right: 14px;
  border-right: 1px solid var(--line);
  line-height: 1;
}
.eyebrow .line { width: 40px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: rgba(247, 246, 242, .82); }
.eyebrow--light .num { color: var(--beige); border-color: var(--line-light); }

.title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.title em { color: var(--beige-deep); font-weight: 300; }
.title--light { color: var(--offwhite); }
.title--light em { color: var(--beige); }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 30px;
  font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn svg { transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--dark { background: var(--black); color: var(--offwhite); }
.btn--dark::before { background: var(--gray-dark); }

.btn--light { background: var(--offwhite); color: var(--black); }
.btn--light::before { background: var(--beige); }

.btn--outline { border: 1px solid currentColor; height: 46px; padding: 0 22px; font-size: 11px; }
.btn--outline::before { background: var(--black); }
.btn--outline:hover { color: var(--offwhite); border-color: var(--black); }

.btn--ghost-light { color: var(--offwhite); border: 1px solid rgba(247, 246, 242, .45); }
.btn--ghost-light::before { background: var(--offwhite); }
.btn--ghost-light:hover { color: var(--black); border-color: var(--offwhite); }

.btn--wide { padding: 0 40px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--black);
  transition: gap .4s var(--ease), color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--beige-deep); border-color: var(--beige-deep); }

.stars { color: var(--beige); letter-spacing: .12em; font-size: 13px; }
.stars--dark { color: var(--beige-deep); font-size: 18px; }

/* ---------- Intro (cortina) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  background: var(--black); color: var(--offwhite);
  display: grid; place-items: center;
  animation: introOut 1s var(--ease-out) 1.25s forwards;
  pointer-events: none;
}
.intro__mark { text-align: center; animation: introMark 1.1s var(--ease) both; }
.intro__name {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: .08em;
}
.intro__sub {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--beige);
}
@keyframes introMark {
  from { opacity: 0; transform: translateY(14px); letter-spacing: .02em; }
  to   { opacity: 1; transform: none; }
}
@keyframes introOut {
  to { transform: translateY(-100%); visibility: hidden; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--offwhite);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: height .5s var(--ease);
}
.header.is-scrolled {
  background: rgba(247, 246, 242, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--black);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__inner { height: 72px; }
.header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 25px; letter-spacing: .06em;
}
.logo__sub {
  margin-top: 5px;
  font-size: 9.5px; letter-spacing: .52em; text-transform: uppercase;
  opacity: .75;
}

.nav__list { display: flex; gap: clamp(22px, 2.6vw, 44px); }
.nav__link {
  position: relative;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__cta { color: inherit; }
.header:not(.is-scrolled) .header__cta::before { background: var(--offwhite); }
.header:not(.is-scrolled) .header__cta:hover { color: var(--black); border-color: var(--offwhite); }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative; z-index: 120;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--offwhite);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 10vw, 56px); line-height: 1.25;
  padding: 6px 0;
  transform: translateY(105%);
  transition: transform .8s var(--ease-out);
}
.mobile-menu__list a span { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; color: var(--beige-deep); }
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) a { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: .25s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: .3s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: .35s; }
.mobile-menu__footer { display: grid; gap: 14px; font-size: 14px; color: var(--gray-dark); }
.mobile-menu__footer .btn { width: 100%; }
.mobile-menu__phone { font-family: var(--font-display); font-size: 24px; color: var(--black); }

body.menu-open .header { color: var(--black); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--offwhite);
  overflow: hidden;
  background: var(--black);
}
.hero__media { position: absolute; inset: -4% 0 -16% 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  filter: saturate(.78) contrast(1.04) brightness(.96);
  transform: scale(1.12);
  animation: heroZoom 2.8s var(--ease-out) 1.2s forwards;
}
@keyframes heroZoom { to { transform: scale(1.02); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,0) 26%),
    linear-gradient(90deg, rgba(23,23,23,.8) 0%, rgba(23,23,23,.5) 50%, rgba(23,23,23,.12) 100%),
    linear-gradient(0deg, rgba(23,23,23,.7) 0%, rgba(23,23,23,0) 55%);
}

.hero__content {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(140px, 17vh, 190px);
}
.hero__eyebrow { margin-bottom: 34px; }
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(46px, 6.6vw, 108px);
  line-height: .98; letter-spacing: -.02em;
}
.hero__title em { color: var(--beige); }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transform: translateY(110%); }
.hero__lead {
  max-width: 470px;
  margin-top: 34px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  color: rgba(247, 246, 242, .86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__aside {
  position: absolute; left: 0; right: 0; bottom: 36px;
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}
.hero__aside > * { pointer-events: auto; }

.rating-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line-light);
  background: rgba(23, 23, 23, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .4s var(--ease);
}
.rating-pill:hover { background: rgba(23, 23, 23, .5); }
.rating-pill__score {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0;
  padding: 0 10px; border-right: 1px solid var(--line-light); line-height: 1;
}
.rating-pill__label { color: rgba(247, 246, 242, .8); }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i {
  display: block; width: 1px; height: 64px;
  background: linear-gradient(var(--offwhite), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--beige);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

.hero__caption {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(247, 246, 242, .6);
}

/* Entrada do hero */
.hero__eyebrow, .hero__lead, .hero__actions, .hero__aside, .hero__caption { opacity: 0; transform: translateY(18px); }
body.is-ready .mask > span { transform: none; transition: transform 1.3s var(--ease-out); }
body.is-ready .mask:nth-child(2) > span { transition-delay: .12s; }
body.is-ready .hero__eyebrow,
body.is-ready .hero__lead,
body.is-ready .hero__actions,
body.is-ready .hero__aside,
body.is-ready .hero__caption {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease-out);
}
body.is-ready .hero__eyebrow { transition-delay: .05s; }
body.is-ready .hero__lead { transition-delay: .45s; }
body.is-ready .hero__actions { transition-delay: .6s; }
body.is-ready .hero__aside { transition-delay: .9s; }
body.is-ready .hero__caption { transition-delay: 1.1s; }

/* ---------- Marquee ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  background: var(--offwhite);
}
.marquee__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  color: var(--gray-dark);
  white-space: nowrap;
}
.marquee i { font-style: normal; color: var(--beige-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal genérico ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* revelação de imagem por "cortina" (não usa clip-path no alvo, para o IntersectionObserver detectar) */
.reveal-img { transform: none; opacity: 1; overflow: hidden; position: relative; transition: none; }
.reveal-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--offwhite);
  transform-origin: top;
  transition: transform 1.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-visible::after { transform: scaleY(0); }
.reveal-img.is-visible img { transform: scale(1); }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--black); color: var(--offwhite); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head--split { align-items: flex-end; }
.section-head__text { max-width: 420px; color: rgba(247, 246, 242, .7); }

/* ---------- Sobre ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.about__visual { grid-column: 1 / span 6; position: relative; padding-bottom: 18%; }
.about__img--main { aspect-ratio: 4 / 5; width: 86%; }
.about__img--main img, .about__img--detail img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main img { object-position: 58% 50%; filter: saturate(.85); }
.about__img--detail {
  position: absolute; right: 0; bottom: 0;
  width: 46%; aspect-ratio: 1 / 1;
  border: 10px solid var(--offwhite);
}
.about__img--detail img { filter: saturate(.85); }
.about__vertical {
  position: absolute; left: calc(86% + 18px); top: 0;
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--gray-dark);
}
.about__text { grid-column: 8 / span 5; }
.about__body { margin-top: 36px; color: var(--gray-dark); display: grid; gap: 18px; }

.principles { margin: 40px 0 46px; border-top: 1px solid var(--line); }
.principles li {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--gray-dark);
}
.principles span { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--beige-deep); line-height: 1.3; }
.principles strong {
  display: block; font-weight: 400; color: var(--black);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px;
}

/* ---------- Projetos ---------- */
.projects { background: var(--offwhite); padding-top: 0; }
.projects .section-head { padding-top: var(--section); border-top: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid transparent;
  color: var(--gray-dark);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.filter:hover { color: var(--black); }
.filter.is-active { border-color: var(--black); color: var(--black); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(56px, 7vw, 110px);
  align-items: start;
}
.project--1 { grid-column: 1 / span 7; }
.project--2 { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.project--3 { grid-column: 1 / span 4; margin-top: clamp(0px, 4vw, 60px); }
.project--4 { grid-column: 6 / span 7; }
.project--5 { grid-column: 1 / span 8; }
.project--6 { grid-column: 9 / span 4; margin-top: clamp(60px, 10vw, 160px); }

.project--1 .project__media { aspect-ratio: 4 / 3; }
.project--2 .project__media { aspect-ratio: 4 / 5; }
.project--3 .project__media { aspect-ratio: 3 / 4; }
.project--4 .project__media { aspect-ratio: 16 / 10; }
.project--5 .project__media { aspect-ratio: 16 / 9; }
.project--6 .project__media { aspect-ratio: 4 / 5; }

/* layout ao filtrar */
.projects__grid.is-filtered .project { grid-column: span 6; margin-top: 0; }
.projects__grid.is-filtered .project__media { aspect-ratio: 4 / 3; }
.project.is-hidden { display: none; }
.project.is-entering { animation: projIn .9s var(--ease-out) both; }
@keyframes projIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.project__link { display: block; width: 100%; text-align: left; }
.project__media { position: relative; overflow: hidden; background: var(--gray-light); }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.02);
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out), filter 1s var(--ease);
}
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,23,23,.35), rgba(23,23,23,0) 50%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.project__view {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--offwhite); color: var(--black);
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease-out);
}
.project__link:hover .project__media img,
.project__link:focus-visible .project__media img { transform: scale(1.06); filter: saturate(1) contrast(1.02); }
.project__link:hover .project__media::after,
.project__link:focus-visible .project__media::after { opacity: 1; }
.project__link:hover .project__view,
.project__link:focus-visible .project__view { transform: translate(-50%, -50%) scale(1); }

.project__info {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline;
  padding-top: 22px;
}
.project__index { grid-row: span 2; font-family: var(--font-display); font-size: 15px; color: var(--beige-deep); }
.project__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1;
  transition: transform .6s var(--ease-out);
}
.project__cat { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-dark); margin-top: 6px; }
.project__link:hover .project__name { transform: translateX(6px); }

.projects__note {
  margin-top: clamp(56px, 6vw, 90px);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-dark); opacity: .8;
  text-align: right;
}

/* ---------- Serviços ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.service {
  position: relative;
  padding: 48px 34px 56px 0;
  min-height: 380px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line-light);
  transition: background-color .6s var(--ease);
}
.service + .service { padding-left: 34px; }
.service:last-child { border-right: 0; }
.service__num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 64px; line-height: 1; color: var(--beige);
  margin-bottom: auto; padding-bottom: 60px;
  transition: transform .8s var(--ease-out);
}
.service__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.1vw, 31px); line-height: 1.12;
  margin-bottom: 16px;
}
.service p { color: rgba(247, 246, 242, .66); font-size: 15.5px; }
.service__line {
  position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--beige);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.service + .service .service__line { left: 0; }
.service:hover .service__line { transform: scaleX(1); }
.service:hover .service__num { transform: translateY(-8px); }

/* ---------- Processo ---------- */
.process { padding-bottom: calc(var(--section) * .7); }
.process__list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative;
  padding-top: 44px;
}
.process__list::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: var(--line);
}
.process__list::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: var(--black);
  transform: scaleX(0); transform-origin: left;
  transition: transform 2.2s var(--ease-out) .3s;
}
.process__list.is-visible::after { transform: scaleX(1); }
.step { position: relative; }
.step__dot {
  position: absolute; top: -44px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--offwhite); border: 1px solid var(--black);
}
.step__num { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--beige-deep); }
.step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(25px, 2vw, 30px); line-height: 1.15;
  margin: 10px 0 12px;
}
.step p { color: var(--gray-dark); font-size: 15.5px; }

/* ---------- Avaliações ---------- */
.reviews { background: var(--gray-light); }
.reviews__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.reviews__score { grid-column: 1 / span 4; position: sticky; top: 120px; }
.score { display: flex; align-items: center; gap: 22px; margin: 6px 0 36px; }
.score__value {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(96px, 11vw, 150px); line-height: .85; letter-spacing: -.03em;
}
.score__label { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dark); }

.reviews__quotes { grid-column: 6 / span 7; display: grid; gap: 24px; }
.quote { background: var(--offwhite); padding: clamp(32px, 4vw, 56px); position: relative; }
.quote--main blockquote {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1;
}
.quote__mark {
  display: block; height: 52px;
  font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--beige);
}
.quote figcaption, .quote__author {
  margin-top: 28px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.quote figcaption span, .quote__author span { color: var(--gray-dark); }
.quote__intro { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-family: var(--font-display); font-size: 24px; font-style: italic;
  padding: 6px 20px; border: 1px solid var(--line); border-radius: 100px;
}
.quote--small { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.quote--small blockquote { font-family: var(--font-display); font-style: italic; font-size: 30px; }
.quote--small figcaption { margin-top: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: center;
  color: var(--offwhite); background: var(--black);
}
.cta__media { position: absolute; inset: -12% 0; will-change: transform; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.9); }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,23,.8), rgba(23,23,23,.35)); }
.cta__content { position: relative; padding-block: 120px; }
.cta__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 6vw, 92px); line-height: 1; letter-spacing: -.015em;
  max-width: 15ch;
}
.cta__title em { color: var(--beige); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
.contact__info { grid-column: 1 / span 5; }
.contact__lead { margin-top: 28px; color: var(--gray-dark); max-width: 440px; }
.contact__list { margin-top: 44px; border-top: 1px solid var(--line); }
.contact__list > div {
  display: grid; grid-template-columns: 170px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact__list dt { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dark); padding-top: 3px; }
.contact__list dd { font-size: 16px; }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--beige-deep); }

.map { margin-top: 40px; aspect-ratio: 16 / 10; background: var(--gray-light); overflow: hidden; }
.map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: filter .8s var(--ease);
}
.map:hover iframe { filter: grayscale(.2); }

.form {
  grid-column: 7 / span 6;
  background: #fff;
  padding: clamp(32px, 4.5vw, 64px);
  align-self: start;
  position: sticky; top: 110px;
  box-shadow: 0 30px 80px -40px rgba(23, 23, 23, .25);
}
.form__row { margin-bottom: 30px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit; font-size: 16.5px; color: var(--black);
  padding: 26px 0 10px;
  border-radius: 0;
  resize: vertical;
  transition: border-color .4s var(--ease);
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: 15px; color: var(--gray-dark);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease-out), color .4s var(--ease), letter-spacing .4s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(.78);
  letter-spacing: .12em; text-transform: uppercase; color: var(--beige-deep);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #9b3b2f; }
.field.is-invalid label { color: #9b3b2f; }

.chips { border: 0; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 14px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px;
  transition: all .35s var(--ease);
}
.chips label:hover span { border-color: var(--black); }
.chips input:checked + span { background: var(--black); color: var(--offwhite); border-color: var(--black); }
.chips input:focus-visible + span { outline: 1px solid var(--beige-deep); outline-offset: 3px; }

.form__footer { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.form__hint { font-size: 13px; color: var(--gray-dark); max-width: 260px; line-height: 1.5; }
.form__status { margin-top: 18px; font-size: 14px; color: var(--beige-deep); min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--offwhite); padding: clamp(80px, 9vw, 130px) 0 34px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  padding-bottom: 60px; border-bottom: 1px solid var(--line-light);
}
.logo--light .logo__name { font-size: 34px; }
.footer__claim {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.1;
  max-width: 18ch; text-align: right;
}
.footer__claim em { color: var(--beige); }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 40px;
  padding: 56px 0;
}
.footer h4 {
  font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--beige); margin-bottom: 18px;
}
.footer__cols p, .footer__cols li { color: rgba(247, 246, 242, .7); font-size: 15px; line-height: 1.9; }
.footer__cols a { transition: color .3s; }
.footer__cols a:hover { color: var(--offwhite); }
.to-top {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.to-top:hover { background: var(--offwhite); color: var(--black); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line-light);
  font-size: 12.5px; color: rgba(247, 246, 242, .5); letter-spacing: .04em;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 0;
  height: 56px; padding: 0 16px;
  border-radius: 100px;
  background: var(--black); color: var(--offwhite);
  border: 1px solid rgba(247, 246, 242, .2);
  box-shadow: 0 14px 40px -12px rgba(23, 23, 23, .5);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease-out), gap .5s var(--ease-out), background-color .4s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float span {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: max-width .6s var(--ease-out);
}
.wa-float:hover { gap: 12px; background: #25D366; color: #fff; }
.wa-float:hover span { max-width: 140px; }

/* ---------- Modais ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  padding: clamp(0px, 3vw, 40px);
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 23, 23, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: 100%; max-width: 1280px;
  max-height: 100%;
  overflow: auto;
  background: var(--offwhite);
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel--story { max-width: 1080px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--offwhite);
  transition: transform .6s var(--ease-out), background-color .3s;
}
.modal__close span {
  position: absolute; left: 16px; right: 16px; top: 50%; height: 1px; background: var(--black);
}
.modal__close span:first-child { transform: rotate(45deg); }
.modal__close span:last-child { transform: rotate(-45deg); }
.modal__close:hover { transform: rotate(90deg); background: var(--gray-light); }

.pm { display: grid; grid-template-columns: 1.55fr 1fr; min-height: min(760px, 88vh); }
.pm > *, .story > * { min-width: 0; }
.pm__gallery { background: var(--black); display: flex; flex-direction: column; }
.pm__stage { flex: 1; position: relative; overflow: hidden; min-height: 320px; }
.pm__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease);
}
.pm__stage img.is-fading { opacity: 0; }
.pm__thumbs { display: flex; gap: 8px; padding: 10px; background: var(--black); }
.pm__thumbs:empty { display: none; }
.pm__thumbs button {
  width: 96px; aspect-ratio: 16 / 10; overflow: hidden;
  opacity: .45; transition: opacity .4s var(--ease);
  outline-offset: 2px;
}
.pm__thumbs button.is-active, .pm__thumbs button:hover { opacity: 1; }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pm__body {
  padding: clamp(36px, 4vw, 64px);
  padding-top: clamp(72px, 7vw, 96px);
  display: flex; flex-direction: column;
}
.pm__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 3.8vw, 58px); line-height: 1.02; letter-spacing: -.01em;
}
.pm__title em { color: var(--beige-deep); }
.pm__desc { margin-top: 24px; color: var(--gray-dark); }
.pm__facts { margin-top: 32px; border-top: 1px solid var(--line); }
.pm__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pm__facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dark); padding-top: 3px; }
.pm__note { margin-top: 18px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-dark); opacity: .8; }
.pm__actions { margin-top: auto; padding-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pm__nav { display: flex; gap: 8px; }
.pm__arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.pm__arrow:hover { background: var(--black); color: var(--offwhite); border-color: var(--black); }

.story { display: grid; grid-template-columns: 1fr 1.2fr; }
.story__img { min-height: 100%; }
.story__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.story__body { padding: clamp(36px, 5vw, 72px); padding-top: clamp(72px, 7vw, 96px); display: grid; gap: 20px; align-content: start; color: var(--gray-dark); }
.story__body .pm__title { color: var(--black); margin-bottom: 8px; }
.story__body .eyebrow { margin-bottom: 0; }
.story__quote {
  font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1.2;
  color: var(--black);
  padding-left: 22px; border-left: 1px solid var(--beige);
  margin: 10px 0 14px;
}
.story__body .btn { justify-self: start; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .nav__list { gap: 24px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 320px; border-bottom: 1px solid var(--line-light); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .process__list { grid-template-columns: repeat(2, 1fr); row-gap: 70px; }
  .process__list::before, .process__list::after { display: none; }
  .step { padding-top: 30px; border-top: 1px solid var(--line); }
  .step__dot { top: -7px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 78px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }

  .about__visual { grid-column: 1 / -1; max-width: 680px; }
  .about__text { grid-column: 1 / -1; max-width: 680px; }
  .about__grid { row-gap: 64px; }

  .reviews__score { grid-column: 1 / -1; position: static; }
  .reviews__quotes { grid-column: 1 / -1; }

  .contact__info, .form { grid-column: 1 / -1; }
  .form { position: static; margin-top: 30px; }

  .pm { grid-template-columns: 1fr; }
  .pm__stage { aspect-ratio: 16 / 10; flex: none; }
  .story { grid-template-columns: 1fr; }
  .story__img { aspect-ratio: 16 / 9; }
  .story__body { padding-top: 40px; }

  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__top-link { display: none; }
}

@media (max-width: 900px) {
  .projects__grid { row-gap: 64px; }
  .projects__grid .project,
  .projects__grid.is-filtered .project { grid-column: 1 / -1; margin-top: 0; }
  .project--2, .project--3, .project--6 { width: 82%; }
  .project--2, .project--6 { margin-left: auto; }
  .project .project__media,
  .projects__grid.is-filtered .project__media { aspect-ratio: 4 / 3; }
  .project--2 .project__media, .project--3 .project__media, .project--6 .project__media { aspect-ratio: 4 / 5; }
  .projects__grid.is-filtered .project { width: 100%; }
  .projects__grid.is-filtered .project__media { aspect-ratio: 4 / 3 !important; }
  .projects__note { text-align: left; }
  .project__view { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__content { padding-bottom: 150px; }
  .hero__title { font-size: clamp(44px, 12.5vw, 64px); }
  .hero__actions .btn { width: 100%; }
  .hero__caption { display: none; }
  .rating-pill__label { display: none; }
  .scroll-cue { display: none; }
  .hero__aside { bottom: 28px; }

  .about__visual { padding-bottom: 24%; }
  .about__img--main { width: 88%; }
  .about__img--detail { width: 50%; border-width: 6px; }
  .about__vertical { display: none; }

  .section-head { margin-bottom: 44px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  .services__grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0 40px; min-height: 0; border-right: 0; }
  .service__num { font-size: 48px; padding-bottom: 28px; }

  .process__list { grid-template-columns: 1fr; row-gap: 44px; }

  .score { gap: 16px; }
  .tags li { font-size: 20px; padding: 4px 16px; }

  .cta { min-height: 70vh; }
  .cta__actions .btn { width: 100%; }

  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .form__row--2 { grid-template-columns: 1fr; gap: 30px; }
  .form .btn { width: 100%; }
  .form__hint { max-width: none; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__claim { text-align: left; }
  .footer__cols { grid-template-columns: 1fr 1fr; }

  .wa-float { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .wa-float:hover { gap: 0; }
  .wa-float:hover span { max-width: 0; }

  .modal { padding: 0; }
  .modal__panel { height: 100%; max-height: none; }
  .pm__body, .story__body { padding: 32px 20px 40px; }
  .pm__thumbs button { width: 72px; }
  .pm__actions .btn { flex: 1; padding: 0 18px; }
  .modal__close { top: 12px; right: 12px; width: 46px; height: 46px; }
  .modal__close span { left: 14px; right: 14px; }
}

/* ---------- Movimento reduzido ---------- */
@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; }
  .intro { display: none; }
  .marquee__track { animation: none; }
  [data-reveal], .reveal-img { opacity: 1; transform: none; }
  .reveal-img::after { display: none; }
  .reveal-img img { transform: none; }
  .mask > span, .hero__eyebrow, .hero__lead, .hero__actions, .hero__aside, .hero__caption { opacity: 1; transform: none; }
}
