/* ==========================================================================
   CasaSul inc — front-end
   Base do layout: 1920px  →  1rem = 10px em 1920 (escala fluida até 1024px)
   Fonte: Acumin Variable (Adobe Fonts / kit pzv4noe) — eixos wdth 50–115, wght 100–900
   ========================================================================== */

:root {
  --c-bg: #f1f4ec;
  --c-bg-alt: #e9eae4;
  --c-white: #ffffff;
  --c-navy: #182442;
  --c-brown: #8d6252;
  --c-gold: #b8a88a;
  --c-ink: #000000;
  --c-gray: #383838;

  --font: "acumin-variable", "Helvetica Neue", Arial, sans-serif;

  /* larguras da Acumin usadas no layout */
  --wide: "wdth" 115;
  --semi: "wdth" 95;
  --cond: "wdth" 50;

  --container: 155.6rem;
  --ease: cubic-bezier(.22, .61, .36, 1);          /* hovers e trocas de cor */
  --ease-out: cubic-bezier(.23, 1, .32, 1);        /* entradas */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);    /* cortinas e movimentos em tela */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);     /* header que esconde/volta */
  --hero-radius: 5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(5.333px, calc(100vw / 192), 10px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-variation-settings: var(--wide);
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1.36;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; font-variation-settings: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--c-brown); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: var(--container); max-width: calc(100% - 4rem); margin-inline: auto; position: relative; }

/* ---------- Ícones (máscara → herdam currentColor) ---------- */
.icon {
  display: inline-block;
  width: 2.63rem; height: 2.63rem;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.icon--instagram { --i: url("../svg/icon-instagram.svg"); }
.icon--linkedin  { --i: url("../svg/icon-linkedin.svg"); }
.icon--whatsapp  { --i: url("../svg/icon-whatsapp.svg"); }
.icon--close     { --i: url("../svg/icon-close.svg"); width: 3.2rem; height: 3.2rem; }
.icon--arrow     { --i: url("../svg/icon-arrow.svg"); width: 12.2rem; height: 1.43rem; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 1.8rem;
  line-height: 2.3rem;
  letter-spacing: .07em;
  font-weight: 300;
}
.eyebrow--light { color: var(--c-white); }

.title {
  font-size: 3.73rem;
  line-height: 5rem;
  font-variation-settings: var(--semi);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--c-navy);
}
.title__accent { color: var(--c-brown); letter-spacing: .037em; }

.display {
  font-size: 10.6rem;
  line-height: 9.9rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-white);
}
.display--sm { font-size: 7.23rem; line-height: 6.76rem; }

.prose {
  font-size: 2.4rem;
  line-height: 3.27rem;
  letter-spacing: .016em;
  text-align: justify;
  -webkit-hyphens: none; hyphens: none;
}
.prose p + p, .prose p + ul, .split__text p + p { margin-top: 3.27rem; }
.prose strong { letter-spacing: 0; }

.card-title {
  font-size: 2.4rem;
  line-height: 2.8rem;
  letter-spacing: .027em;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 7rem;
  min-width: 35.4rem;
  padding: 0 3.2rem;
  border-radius: 2.83rem;
  font-size: 1.77rem;
  line-height: 1;
  letter-spacing: .04em;
  font-weight: 300;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--light { background: var(--c-white); color: var(--c-gray); min-width: 27.7rem; padding: 0 2.4rem; border-radius: 2.5rem; }
.btn--light:hover { background: var(--c-navy); color: var(--c-white); }
.btn--brown { background: var(--c-brown); color: var(--c-white); }
.btn--brown:hover { background: var(--c-navy); }
.btn--outline { background: var(--c-white); color: var(--c-gray); height: 6.9rem; border: 1.13px solid var(--c-gray); }
.btn--outline:hover { background: var(--c-gray); color: var(--c-white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 13.6rem;
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  height: 100%;
  padding-top: 6.3rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: 11.5rem;
  gap: 3.1rem;
}
.site-header__inner > * { pointer-events: auto; }
.site-header__logo {
  position: absolute;
  left: 50%;
  top: 5.6rem;
  transform: translateX(-50%);
  width: 27.2rem;
}
.site-header__logo img { width: 100%; height: auto; }

.social { display: flex; align-items: center; gap: 1.37rem; color: var(--c-gray); }
.social__link { display: block; transition: opacity .25s, transform .25s var(--ease); }
.social__link .icon { display: block; }
.social__link:hover { opacity: .6; }

.menu-toggle {
  position: relative;
  width: 8rem;
  height: 2.63rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--c-gray);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle:hover span:nth-child(2) { transform: scaleX(.8); transform-origin: right; }

/* header fixo após rolar */
.site-header.is-fixed {
  position: fixed;
  height: 9rem;
  background: rgba(241, 244, 236, .9);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(24, 36, 66, .06);
  transition: transform 300ms var(--ease-drawer);
}
.site-header.is-fixed .site-header__inner { padding-top: 3.2rem; }
.site-header.is-fixed .site-header__logo { top: 2.5rem; }
/* some ao rolar para baixo, volta ao rolar para cima (main.js) */
.site-header.is-fixed.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header.is-instant { transition: none !important; }

body.menu-open .site-header { position: fixed; height: 13.6rem; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
body.menu-open .site-header .site-header__inner { padding-top: 6.3rem; }
body.menu-open .site-header .site-header__logo { top: 5.6rem; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Menu overlay
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--c-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu__inner {
  position: relative;
  width: 57.8rem;
  margin: 0 auto;
  padding: 22.6rem 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu__close {
  position: absolute;
  top: 22.4rem;
  right: 0;
  color: var(--c-gray);
  transition: transform .4s var(--ease);
}
.menu__close .icon { display: block; width: 3.22rem; height: 3.22rem; }
.menu__close:hover { transform: rotate(90deg); }
.menu__list {
  margin-top: 4.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.35rem;
  text-align: center;
}
.menu__list a {
  display: block;
  font-size: 2.4rem;
  line-height: 3.1rem;
  letter-spacing: .065em;
  transition: color .25s;
}
.menu__list a:hover { color: var(--c-brown); }
.menu__list li, .menu__mark { opacity: 0; transform: translateY(1.6rem); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu__list li, .menu.is-open .menu__mark { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: .2s; }
.menu.is-open .menu__list li:nth-child(7) { transition-delay: .24s; }
.menu.is-open .menu__mark { transition-delay: .3s; }
.menu__mark { width: 40rem; height: auto; margin-top: 14rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 13.6rem 8rem 5.2rem; }
.hero__frame {
  position: relative;
  height: clamp(56rem, calc(100vh - 18.8rem), 110rem);
  height: clamp(56rem, calc(100svh - 18.8rem), 110rem);
  border-radius: var(--hero-radius);
  overflow: hidden;
  background: #7b7b7b;
  isolation: isolate;
  /* abertura: a moldura "nasce" de um recorte menor (estado inicial em .js:not(.hero-ready)) */
  clip-path: inset(0 round var(--hero-radius));
  transition: clip-path 1400ms var(--ease-in-out);
}
.hero__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  /* transição em cortina: o novo slide é revelado por cima do anterior, que fica parado embaixo */
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0s linear 1.3s, visibility 0s linear 1.3s;
}
.hero__frame.is-reverse .hero__slide:not(.is-active) { clip-path: inset(0 100% 0 0); }
.hero__slide.is-active { visibility: visible; clip-path: inset(0); transition: clip-path 1.3s var(--ease-in-out); z-index: 1; }
/* 8% mais alta para cobrir o parallax de saída; transform = zoom lento, scale = abertura, translate = scroll */
.hero__bg { position: absolute; left: 0; top: -8%; width: 100%; height: 108%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear, scale 1800ms var(--ease-out); }
.hero__slide.is-active .hero__bg { transform: scale(1.02); }
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .23); }
.hero__shade--strong { background: rgba(0, 0, 0, .37); }
.hero__content {
  position: absolute;
  left: 10.2rem;
  right: 12rem;
  bottom: 12.3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}
.hero__lead {
  margin-top: 4.35rem;
  font-size: 2.4rem;
  line-height: 2.87rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-white);
}
.hero__brand { width: 25.6rem; height: auto; margin: 0 0 4.4rem -.8rem; }
.hero__slide + .hero__slide .hero__btn { font-size: 1.63rem; }
.hero__frame { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero__btn { flex: none; }

/* texto do slide: títulos sobem por linha (máscara); logo, subtítulo e botão fazem fade.
   O slide que sai recolhe rápido; o que entra espera a cortina passar da metade. */
.js .hero__slide .line__inner { translate: 0 var(--line-hide, 140%); transition: translate 500ms var(--ease-in-out); }
.js.hero-ready .hero__slide.is-active .line__inner {
  translate: none;
  transition: translate 1000ms var(--ease-out) calc(550ms + var(--d, 0ms));
}
.js .hero__slide :is(.hero__brand, .hero__lead, .hero__btn) {
  opacity: 0;
  translate: 0 1.6rem;
  transition: opacity 400ms var(--ease-out), translate 400ms var(--ease-out);
}
.js.hero-ready .hero__slide.is-active :is(.hero__brand, .hero__lead, .hero__btn) {
  opacity: 1;
  translate: none;
  transition: opacity 800ms var(--ease-out) var(--hd, 900ms), translate 800ms var(--ease-out) var(--hd, 900ms);
}
.hero__brand { --hd: 450ms; }
.hero__btn { --hd: 1050ms; }

/* abertura (1ª carga): moldura recortada, foto ampliada, header e marcadores apagados */
.js:not(.hero-ready) .hero__frame { clip-path: inset(4% round var(--hero-radius)); }
.js:not(.hero-ready) .hero__bg { scale: 1.1; }
.js:not(.hero-ready) :is(.site-header__inner, .hero__mark, .hero__dots) { opacity: 0; }
.js.hero-ready :is(.site-header__inner, .hero__dots) { transition: opacity 400ms var(--ease-out) 1100ms; }
/* bullets do slider (não previstos no layout — mantidos bem discretos) */
.hero__dots {
  position: absolute;
  z-index: 2;
  left: 9.4rem;
  bottom: 7.95rem;
  transform: translateY(50%);
  display: flex;
  align-items: center;
}
/* bullet (hero e galerias dos projetos): ponto branco; o atual se alonga */
.hero__dot, .gallery__dot {
  padding: .8rem;
  line-height: 0;
}
.hero__dot::before, .gallery__dot::before {
  content: "";
  display: block;
  width: max(7px, .8rem);
  height: max(7px, .8rem);
  border-radius: 99px;
  background: rgba(255, 255, 255, .45);
  transition: width .5s var(--ease), background-color .3s;
}
.hero__dot:hover::before, .gallery__dot:hover::before { background: rgba(255, 255, 255, .8); }
.hero__dot[aria-current="true"]::before, .gallery__dot[aria-current="true"]::before { width: max(22px, 2.8rem); background: var(--c-white); }

/* nas galerias: canto inferior esquerdo da foto, alinhado ao texto da legenda (3,8rem);
   sombra leve para não sumir em fotos claras */
.gallery__dots {
  position: absolute;
  z-index: 2;
  left: 3rem;
  bottom: 1.8rem;
  display: flex;
  align-items: center;
}
.gallery__dot::before { box-shadow: 0 0 .6rem rgba(0, 0, 0, .25); }

.hero__mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5.1rem;
  width: 6.15rem;
  transform: translateX(-50%);
  transition: transform .4s var(--ease), opacity 400ms var(--ease-out) 1100ms;
}
.hero__mark img { width: 100%; height: auto; }
.hero__mark:hover { transform: translate(-50%, -.6rem); }

/* ==========================================================================
   Seções
   ========================================================================== */
.section { position: relative; }
.section--alt { background: var(--c-bg-alt); }
.section--white { background: var(--c-white); }

.split { display: grid; grid-template-columns: 80.2rem 1fr; align-items: start; }
.split--end { align-items: end; }
.split__text {
  font-size: 2.4rem;
  line-height: 3.27rem;
  letter-spacing: .016em;
  text-align: justify;
}

/* ---------- Sobre ---------- */
.sobre { padding: 5rem 0 6.3rem; }
.sobre__grid { margin-top: 8rem; display: grid; grid-template-columns: 78.6rem 1fr; }
.sobre .prose { margin-top: 6.4rem; }
.sobre .btn { margin-top: 6.1rem; }
.sobre__visual { position: relative; justify-self: end; width: 67.8rem; aspect-ratio: 678 / 590; margin-top: .3rem; }
.sobre__frame {
  position: absolute; left: 37.46%; top: 0;
  width: 62.54%; height: 73.39%;
  border: 1.58px solid var(--c-white);
  border-radius: 3.91rem;
}
.sobre__delta { position: absolute; left: 69.47%; top: 15.93%; width: 19.69%; height: auto; }
/* invólucro: recebe cortina (clip-path) e parallax (translate); a foto dentro recebe o zoom (scale) */
.sobre__img, .saopietro__img { position: absolute; display: block; overflow: hidden; transform: translateZ(0); }
.sobre__img img, .saopietro__img img { width: 100%; height: 100%; object-fit: cover; }
.sobre__img--1 { left: 0; top: 8.98%; width: 59.73%; height: 34.75%; border-radius: 2.89rem; }
.sobre__img--2 { left: 19.17%; top: 53.22%; width: 70.35%; height: 46.78%; border-radius: 3.63rem; }
.sobre__img--2 img { object-position: 50% 62%; }

/* ---------- Filme ---------- */
.filme { padding: 0 0 7.8rem; }
.filme .eyebrow { margin-bottom: 6.3rem; }
.filme__player {
  position: relative;
  display: block;
  width: 157.2rem;
  max-width: 100%;
  height: 65rem;
  border-radius: 4rem;
  overflow: hidden;
}
.filme__player > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.filme__player:hover > img { transform: scale(1.03); }
.filme__play {
  position: absolute; left: 50%; top: 50%;
  width: 10rem; height: 10rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.filme__play img { width: 100%; height: 100%; }
.filme__player:hover .filme__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 1.2rem rgba(255, 255, 255, .25); }

/* ---------- Cards (base) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 36.1rem); justify-content: space-between; width: 159.1rem; max-width: none; margin-left: -1.2rem; }
.card { border-radius: 4rem; }
.card--outline { border: 1.35px solid var(--c-white); }
.card--solid { background: var(--c-white); }

/* ---------- Mercado ---------- */
.mercado { padding: 7.7rem 0 4.9rem; }
.mercado .split { margin-top: 7rem; }
.mercado .split__text { margin-bottom: .9rem; margin-right: -1.4rem; letter-spacing: .006em; }
.cards--stats { margin-top: 6.5rem; }
.stat { height: 36.8rem; padding: 1.5rem 1rem 0; text-align: center; }
.stat__value {
  color: var(--c-navy);
  font-variation-settings: var(--cond);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}
.stat__num { font-size: 15.27rem; letter-spacing: .01em; font-variation-settings: "wdth" 53; }
.stat__unit { font-size: 10rem; letter-spacing: .03em; }
.stat__text {
  margin-top: .8rem;
  font-size: 2.2rem;
  line-height: 2.9rem;
  letter-spacing: .044em;
}

/* ---------- Razões ---------- */
.razoes { padding: 5.7rem 0 8.4rem; }
.cards--reasons { margin-top: 6.8rem; }
.reason { height: 36.9rem; padding: 3.2rem 2rem 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reason__icon { height: 8rem; width: auto; object-fit: contain; }
.reason .card-title { margin-top: 1.2rem; }
.reason__text { margin-top: 1.7rem; font-size: 2.2rem; line-height: 2.9rem; letter-spacing: .044em; }

/* ---------- Locação compartilhada ---------- */
.locacao { padding: 8rem 0 9.1rem; }
.cards--steps { position: relative; margin-top: 7.8rem; grid-template-columns: repeat(4, 37.5rem); width: 159.8rem; }
/* fio que liga os 4 passos: passa por trás dos cards e aparece nos vãos entre eles */
.cards--steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(12rem + 9.55rem);
  height: 1px;
  background: rgba(24, 36, 66, .3);
  transform-origin: left center;
}
.step { position: relative; z-index: 1; display: grid; grid-template-rows: 12rem auto; }
.step__title { align-self: start; }
.step__text {
  height: 19.1rem;
  padding: 3.7rem 2.2rem 0;
  font-size: 2.2rem;
  line-height: 2.9rem;
  letter-spacing: .044em;
  text-align: center;
}

/* ---------- São Pietro ---------- */
.saopietro { padding: 8.6rem 0 6.5rem; }
.saopietro__grid { margin-top: 4.1rem; display: grid; grid-template-columns: 73.2rem 1fr; }
.saopietro .prose { margin-top: 6.6rem; }
.saopietro .btn { margin-top: 5.9rem; }
.bullets { text-align: left; }
.bullets li { position: relative; padding-left: 3rem; }
.bullets li::before {
  content: "";
  position: absolute; left: .7rem; top: 1.45rem;
  width: .5rem; height: .5rem;
  background: currentColor;
}
.saopietro__visual { position: relative; justify-self: end; width: 74.8rem; aspect-ratio: 748 / 680; margin-right: -3.2rem; }
.saopietro__frame {
  position: absolute; left: 0; top: 0;
  width: 56.68%; height: 63.68%;
  border: 1px solid var(--c-gold);
  border-radius: 3.91rem;
}
.saopietro__logo { position: absolute; left: 9.22%; top: 16.03%; width: 26.87%; height: auto; }
.saopietro__img--1 { left: 45.32%; top: 9.71%; width: 54.68%; height: 34.56%; border-radius: 3.44rem; }
.saopietro__img--2 { left: 14.17%; top: 51.76%; width: 77.41%; height: 48.24%; border-radius: 4.83rem; }

/* ---------- Projetos ---------- */
.projetos { padding: 5.9rem 0 11.2rem; }
.projetos .split { margin-top: 6.2rem; grid-template-columns: 80.4rem 72.9rem; }
.projetos .btn { margin-top: 6.6rem; }
.projetos .split__text { margin-top: .8rem; }
/* Card em destaque (.is-featured) = 612×354; demais = 487×281. O destaque acompanha o hover (main.js).
   Como um card cresce enquanto o outro encolhe com a mesma curva, a largura total da linha não muda. */
.projects {
  --size-ease: cubic-bezier(.65, 0, .35, 1);
  --size-time: .7s;
  margin-top: 14.8rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3.45rem;
}
.project {
  flex: none;
  width: 48.7rem;
  padding-top: 3.65rem;
  transition: width var(--size-time) var(--size-ease), padding-top var(--size-time) var(--size-ease);
}
.project.is-featured { width: 61.2rem; padding-top: 0; }
.project__media {
  position: relative;
  height: 28.1rem;
  border-radius: 5rem;
  overflow: hidden;
  background: var(--c-bg-alt);
  transform: translateZ(0); /* recorte do border-radius estável no Safari */
  transition: height var(--size-time) var(--size-ease);
}
.project.is-featured .project__media { height: 35.4rem; }

/* mini galeria: mesma cortina do hero — a foto que entra é revelada por cima da anterior,
   que fica parada embaixo até a cortina terminar (sem sobreposição translúcida) */
.project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0s linear 1.3s, visibility 0s linear 1.3s, transform 8s linear;
}
.project__media.is-reverse img:not(.is-active) { clip-path: inset(0 100% 0 0); }
.project__media img.is-active {
  visibility: visible;
  clip-path: inset(0);
  z-index: 1;
  transform: scale(1.04);
  transition: clip-path 1.3s var(--ease-in-out), transform 8s linear;
}
.project__name {
  margin-top: 2rem;
  padding-left: 3.8rem;
  font-size: 2.1rem;
  line-height: 3rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.project.is-featured .project__name { margin-top: 2.2rem; }
.project__address { padding-left: 3.8rem; font-size: 2.4rem; line-height: 3.1rem; letter-spacing: .01em; }

/* ---------- Contato ---------- */
.contato { padding: 9.4rem 0 11.2rem; min-height: 99.7rem; color: var(--c-white); overflow: hidden; background: #2b1d10; }
.contato__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contato .container { z-index: 1; }
.contato__grid { margin-top: 7.4rem; display: grid; grid-template-columns: 1fr 71rem; align-items: start; }
.contato__mark { width: 20.4rem; height: auto; margin-left: 1.2rem; }
.contato .display { margin-top: 5.3rem; }
.contato__lead {
  margin-top: 7.6rem;
  font-size: 2.4rem;
  line-height: 2.87rem;
  letter-spacing: .012em;
  font-weight: 400;
  text-transform: uppercase;
}
.contato__lead .icon { width: 12.2rem; margin-left: 2.1rem; vertical-align: .55rem; }
.social--contact { margin-top: 5.9rem; gap: 1.7rem; color: var(--c-white); }
.social--contact .icon { width: 3.45rem; height: 3.45rem; }

.contact-form {
  position: relative;
  justify-self: end;
  width: 71rem;
  margin-top: .3rem;
  margin-right: -4.2rem;
  padding: 7.1rem 6.6rem 5.1rem 6.7rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 4rem;
  background: rgba(24, 14, 4, .3);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
          backdrop-filter: blur(18px) saturate(110%);
  display: flex;
  flex-direction: column;
}
.field { display: block; }
.field + .field { margin-top: 5.42rem; }
.field input {
  display: block;
  width: 100%;
  padding: 0 0 1.75rem;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 0;
  background: transparent;
  color: var(--c-white);
  font-size: 2.1rem;
  line-height: 2.8rem;
  font-weight: 500;
  outline: none;
  transition: border-color .3s;
}
.field input::placeholder { color: var(--c-white); opacity: 1; }
.field input:focus { border-bottom-color: var(--c-white); }
.field input:focus::placeholder { opacity: .5; }
.field.has-error input { border-bottom-color: #ffb4a2; }
.contact-form__submit { align-self: flex-end; margin: 6.9rem -.6rem 0 0; height: 6.9rem; }
.contact-form__status { position: absolute; left: 6.7rem; bottom: 2rem; font-size: 1.6rem; letter-spacing: .04em; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: 8.1rem;
  bottom: 6rem;
  width: 8.55rem;
  height: 8.55rem;
  border-radius: 50%;
  box-shadow: .3rem .5rem 1rem rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.6rem);
  transition: transform .35s var(--ease), box-shadow .35s, opacity .35s, visibility 0s linear .35s;
}
.whatsapp-float.is-visible { opacity: 1; visibility: visible; transform: none; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; }
.whatsapp-float img { width: 100%; height: 100%; }
.whatsapp-float:hover { transform: translateY(-.4rem); box-shadow: .3rem .9rem 1.6rem rgba(0, 0, 0, .3); }

/* ---------- Modal de vídeo ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(10, 14, 26, .88);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.video-modal.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.video-modal__box { width: min(90vw, 160rem); aspect-ratio: 16 / 9; border-radius: 2rem; overflow: hidden; background: #000; }
.video-modal__box iframe, .video-modal__box video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: 3rem; right: 3rem; color: var(--c-white); }
.video-modal__close .icon { width: 4.4rem; height: 4.4rem; display: block; }

/* ==========================================================================
   Movimento — três gestos: máscara de linha, cortina e profundidade.
   Os estados iniciais só valem com JS ativo (html.js); o main.js marca cada
   elemento com data-reveal="…" e adiciona .is-visible ao entrar na tela (uma vez).
   ========================================================================== */
.motion-init [data-reveal], .motion-init [data-reveal] *, .motion-init [data-reveal]::before { transition: none !important; }

/* máscara de linha (títulos): cada linha é um recorte; o texto sobe de dentro dele */
.line { display: block; clip-path: inset(-.4em -.15em -.1em); }
/* títulos grandes: entrelinha < 1, precisam de mais folga embaixo e de um recuo maior para sumir */
.display { --line-hide: 160%; }
.display .line { clip-path: inset(-.4em -.15em -.25em); }
.line__inner { display: block; }
.js [data-reveal="lines"] .line__inner { translate: 0 var(--line-hide, 140%); transition: translate 1000ms var(--ease-out) var(--d, 0ms); }
.js [data-reveal="lines"].is-visible .line__inner { translate: none; }

/* rótulos "Sobre a CasaSul_": o "_" pisca 3× e para, como um cursor */
.js [data-reveal="fade"].is-visible .eyebrow__cursor { animation: cursor-blink 1.2s 300ms both; }
@keyframes cursor-blink {
  0%, 33.33%, 66.66% { opacity: 1; animation-timing-function: steps(1, end); }
  16.66%, 50%, 83.33% { opacity: 0; animation-timing-function: steps(1, end); }
  100% { opacity: 1; }
}

/* fade (texto corrido, rótulos, botões): sem deslocamento, texto de leitura não "sobe" */
.js [data-reveal="fade"] { opacity: 0; transition: opacity 600ms var(--ease-out) var(--delay, 0ms); }
.js [data-reveal="fade"].is-visible { opacity: 1; }

/* sobe + fade (cards, formulário, marca) */
.js [data-reveal="rise"] {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 700ms var(--ease-out) var(--delay, 0ms), translate 700ms var(--ease-out) var(--delay, 0ms);
}
.js [data-reveal="rise"].is-visible { opacity: 1; translate: none; }

/* cortina (imagens): sobe de baixo, a mesma do hero; a foto dentro desamplia */
.js [data-reveal="curtain"] { clip-path: inset(100% 0 0 0); transition: clip-path 1200ms var(--ease-in-out) var(--delay, 0ms); }
.js [data-reveal="curtain"].is-visible { clip-path: inset(0); }
.js [data-reveal="curtain"] > img { scale: 1.15; transition: scale 1600ms var(--ease-out) var(--delay, 0ms); }
.js [data-reveal="curtain"].is-visible > img { scale: 1; }

/* elementos que já tinham transições próprias: a revelação soma, não substitui */
.js .btn[data-reveal] {
  transition: opacity 600ms var(--ease-out) var(--delay, 0ms), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.js .project__media[data-reveal] {
  transition: clip-path 1200ms var(--ease-in-out) var(--delay, 0ms), height var(--size-time) var(--size-ease) 0ms;
}
.js .project__media[data-reveal] > img {
  transition: clip-path 0s linear 1.3s, visibility 0s linear 1.3s, transform 8s linear, scale 1600ms var(--ease-out) var(--delay, 0ms);
}
.js .project__media[data-reveal] > img.is-active {
  transition: clip-path 1.3s var(--ease-in-out), transform 8s linear, scale 1600ms var(--ease-out) var(--delay, 0ms);
}
.js .filme__player[data-reveal] > img {
  transition: scale 1600ms var(--ease-out) var(--delay, 0ms), transform 1.2s var(--ease);
}

/* números do Mercado: cada dígito sobe dentro da própria máscara enquanto conta (main.js); unidades só fazem fade.
   A largura de cada casa é travada no algarismo final e o dígito fica centralizado nela durante a contagem. */
.digit { display: inline-block; text-align: center; clip-path: inset(-.2em -.1em 0); }
.digit__inner { display: inline-block; }
.js .stat .digit__inner { translate: 0 100%; transition: translate 900ms var(--ease-out) calc(var(--delay, 0ms) + 200ms + var(--j, 0) * 60ms); }
.js .stat.is-visible .digit__inner { translate: none; }
.js .stat .stat__unit { opacity: 0; transition: opacity 600ms var(--ease-out) calc(var(--delay, 0ms) + 500ms); }
.js .stat.is-visible .stat__unit { opacity: 1; }

/* locação: o fio se desenha e cada passo entra quando ele passa */
.js [data-reveal="steps"]::before { scale: 0 1; transition: scale 1100ms linear; }
.js [data-reveal="steps"].is-visible::before { scale: 1 1; }
.js [data-reveal="steps"] .step {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
  transition-delay: calc(40ms + var(--i, 0) * 275ms);
}
.js [data-reveal="steps"].is-visible .step { opacity: 1; translate: none; }

/* profundidade amarrada ao scroll — CSS nativo; onde não há suporte (Firefox) fica estático */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sobre__img--1, .saopietro__img--1 { animation: drift-up linear both; animation-timeline: view(); }
    .sobre__img--2, .saopietro__img--2 { animation: drift-down linear both; animation-timeline: view(); }
    .sobre__delta { animation: delta-rise linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
    /* saída do hero: a foto desce mais devagar que a página e o texto se apaga */
    .hero__bg { animation: hero-bg-out linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__content { animation: hero-text-out linear both; animation-timeline: scroll(root); animation-range: 0 45vh; }
  }
}
@keyframes drift-up { from { translate: 0 3rem; } to { translate: 0 -3rem; } }
@keyframes drift-down { from { translate: 0 -2rem; } to { translate: 0 4rem; } }
@keyframes delta-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes hero-bg-out { to { translate: 0 8%; } }
@keyframes hero-text-out { to { opacity: 0; translate: 0 -4rem; } }

/* ---------- Reduzir movimento: menos e mais suave, não zero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* entradas viram fade curto, sem deslocamento, cortina ou zoom */
  .js [data-reveal], .js [data-reveal="steps"] .step {
    translate: none !important;
    clip-path: none !important;
    opacity: 0;
    transition: opacity 300ms ease !important;
  }
  .js [data-reveal].is-visible, .js [data-reveal="steps"] .step { opacity: 1; }
  .js [data-reveal] .line__inner, .js .stat .digit__inner { translate: none !important; transition: none !important; }
  .js [data-reveal] > img { scale: none !important; }
  .js [data-reveal="steps"]::before { scale: 1 1; transition: none; }
  .js .stat .stat__unit { opacity: 1; transition: none; }
  .js [data-reveal].is-visible .eyebrow__cursor { animation: none; }

  /* hero: sem abertura, sem zoom; slides trocam por fade */
  .hero__frame, .js:not(.hero-ready) .hero__frame { clip-path: none; transition: none; }
  .hero__bg, .js:not(.hero-ready) .hero__bg { transform: none; scale: none; transition: none; }
  .js .hero__slide .line__inner, .js .hero__slide :is(.hero__brand, .hero__lead, .hero__btn) { translate: none; }
  .js .hero__slide .line__inner, .js.hero-ready .hero__slide.is-active .line__inner { transition: none; }
  .js .hero__slide :is(.hero__brand, .hero__lead, .hero__btn) { transition: opacity 300ms ease; }
  .js.hero-ready .hero__slide.is-active :is(.hero__brand, .hero__lead, .hero__btn) { transition: opacity 300ms ease; }
  .hero__slide { clip-path: none !important; opacity: 0; transition: opacity 300ms ease, visibility 0s linear 300ms; }
  .hero__slide.is-active { opacity: 1; transition: opacity 300ms ease; }

  /* galerias e destaque dos projetos: mantêm a troca, sem zoom e mais curtas */
  .project__media img, .project__media img.is-active { transform: none; clip-path: none !important; }
  .project__media img { opacity: 0; }
  .project__media img.is-active { opacity: 1; }
  .project__media img, .js .project__media[data-reveal] > img { transition: opacity 0s linear 600ms, visibility 0s linear 600ms !important; }
  .project__media img.is-active, .js .project__media[data-reveal] > img.is-active { transition: opacity 600ms ease !important; }
  .projects { --size-time: 200ms; }
  .js .btn[data-reveal] { transition: opacity 300ms ease, background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease) !important; }

  /* demais deslocamentos */
  .filme__player:hover > img { transform: none; }
  .menu__list li, .menu__mark { transform: none; }
  .site-header.is-fixed { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .site-header.is-fixed.is-hidden { transform: none; opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   Tablet / Mobile  (layout em coluna — referência: arte mobile 1080px)
   ========================================================================== */
@media (max-width: 1023px) {
  html { font-size: 6.25px; }
  body { font-size: 15px; }

  .container { width: auto; max-width: none; margin-inline: 24px; }

  /* header */
  .site-header { height: 72px; }
  .site-header__inner { padding: 22px 24px 0; justify-content: space-between; align-items: center; height: 50px; box-sizing: content-box; gap: 0; }
  .site-header__logo { top: 22px; width: 132px; height: 50px; display: flex; align-items: center; }
  .social--header { gap: 10px; }
  .social--header .icon { width: 18px; height: 18px; }
  .menu-toggle { width: 34px; height: 20px; gap: 5px; }
  .site-header.is-fixed { height: 64px; }
  .site-header.is-fixed .site-header__inner { padding-top: 7px; }
  .site-header.is-fixed .site-header__logo { top: 7px; }
  body.menu-open .site-header { height: 72px; }
  body.menu-open .site-header .site-header__inner { padding-top: 22px; }
  body.menu-open .site-header .site-header__logo { top: 22px; }

  /* menu */
  .menu__inner { width: auto; max-width: 320px; padding: 120px 24px 40px; }
  .menu__close { top: 100px; right: 24px; }
  .menu__close .icon { width: 28px; height: 28px; }
  .menu__list { margin-top: 30px; gap: 22px; }
  .menu__list a { font-size: 19px; line-height: 1.3; }
  .menu__mark { width: 190px; margin-top: 70px; }

  /* tipografia */
  .eyebrow { font-size: 13px; line-height: 18px; }
  .title { font-size: 25px; line-height: 1.3; }
  .title br { display: none; }
  .title__accent { display: block; }
  /* títulos de seção fluem como texto no mobile: linhas viram inline e a entrada é só fade */
  .title .line, .title .line__inner, .title .line .title__accent { display: inline; clip-path: none; }
  .title .line--break::before { content: "\A"; white-space: pre; }
  .js .title[data-reveal="lines"] { opacity: 0; transition: opacity 700ms var(--ease-out); }
  .js .title[data-reveal="lines"].is-visible { opacity: 1; }
  .js .title[data-reveal="lines"] .line__inner { translate: none; transition: none; }
  .display { font-size: 37px; line-height: .935; }
  .display--sm { font-size: 30px; }
  .prose, .split__text { font-size: 15px; line-height: 1.5; letter-spacing: .01em; text-align: left; }
  .prose p + p, .prose p + ul, .split__text p + p { margin-top: 1.1em; }
  .card-title { font-size: 15px; line-height: 1.25; }
  .btn { height: 48px; min-width: 0; padding: 0 26px; font-size: 12px; border-radius: 18px; }
  .btn--outline { height: 48px; }

  /* hero */
  .hero { padding: 72px 18px 18px; }
  :root { --hero-radius: 18px; }
  .hero__frame { height: calc(100svh - 90px); min-height: 520px; max-height: 760px; }
  .hero__content { left: 24px; right: 24px; bottom: 104px; flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__lead { font-size: 12px; line-height: 1.25; margin-top: 18px; }
  .hero__lead br { display: none; }
  .hero__brand { width: 130px; margin-bottom: 22px; }
  .hero__mark { width: 30px; bottom: 30px; }
  .hero__dots { left: 19px; bottom: 44px; }
  .hero__dot, .gallery__dot { padding: 5px; }
  .gallery__dots { left: 9px; bottom: 9px; }
  .hero__bg { object-position: 62% 50%; }

  /* seções */
  .sobre, .mercado, .razoes, .locacao, .saopietro, .projetos { padding: 56px 0; }
  .filme { padding: 0 0 56px; }
  .filme .eyebrow { margin-bottom: 24px; }
  .split, .projetos .split { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .mercado .split { margin-top: 28px; }
  .mercado .split__text { margin: 0; }
  .projetos .split__text { margin-top: 0; }

  /* Sobre e São Pietro: no mobile a composição de imagens vem logo depois do título.
     O bloco de texto "se dissolve" na grade (display: contents) e a ordem é definida aqui — o HTML não muda. */
  .sobre__grid, .saopietro__grid { grid-template-columns: 1fr; margin-top: 28px; gap: 0; }
  .sobre__text, .saopietro__text { display: contents; }
  :is(.sobre, .saopietro) .title { order: 1; }
  :is(.sobre__visual, .saopietro__visual) { order: 2; }
  :is(.sobre, .saopietro) .prose { order: 3; margin-top: 36px; }
  :is(.sobre, .saopietro) .btn { order: 4; justify-self: start; }
  .sobre .btn, .saopietro .btn, .projetos .btn { margin-top: 28px; }
  .projetos .btn { order: 3; }

  /* visuais compostos: mantêm a proporção do layout */
  .sobre__visual, .saopietro__visual { justify-self: stretch; width: 100%; max-width: 560px; margin: 32px auto 0; }
  .sobre__frame, .saopietro__frame { border-radius: 18px; }
  .sobre__img--1 { border-radius: 14px; }
  .sobre__img--2, .saopietro__img--1 { border-radius: 16px; }
  .saopietro__img--2 { border-radius: 20px; }

  .filme__player { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; }
  .filme__play { width: 64px; height: 64px; }

  .cards, .cards--steps { width: auto; margin-left: 0; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards--stats, .cards--reasons, .cards--steps { margin-top: 32px; }
  .card { border-radius: 22px; }
  .stat { height: auto; padding: 18px 12px 22px; }
  .stat__num { font-size: 68px; }
  .stat__unit { font-size: 44px; }
  .stat__text, .reason__text, .step__text { font-size: 13px; line-height: 1.4; letter-spacing: .02em; }
  .stat .stat__text { margin-top: 6px; }
  .stat__text br, .reason__text br, .step__text br { display: none; }
  .reason { height: auto; padding: 22px 14px 24px; }
  .reason__icon { height: 44px; }
  .reason .card-title { margin-top: 10px; }
  .reason__text { margin-top: 10px; }
  .step { grid-template-rows: auto 1fr; gap: 12px; }
  .cards--steps::before { display: none; }
  .js [data-reveal="steps"] .step { transition-delay: calc(var(--i, 0) * 70ms); }
  .step__title br { display: none; }
  .step__text { height: auto; padding: 22px 16px; border-radius: 22px; }

  .bullets li { padding-left: 18px; }
  .bullets li::before { left: 4px; top: .65em; width: 4px; height: 4px; }

  .projects { margin: 40px 24px 0; flex-direction: column; align-items: stretch; gap: 32px; }
  .project, .project.is-featured { width: auto; padding-top: 0; }
  .project__media, .project.is-featured .project__media { height: auto; aspect-ratio: 16 / 10; border-radius: 22px; }
  .project__name, .project.is-featured .project__name { margin-top: 12px; padding-left: 14px; font-size: 14px; line-height: 1.4; }
  .project__address { padding-left: 14px; font-size: 15px; line-height: 1.4; }

  .contato { padding: 56px 0 64px; min-height: 0; }
  .contato__grid { grid-template-columns: 1fr; margin-top: 28px; gap: 40px; }
  .contato__mark { width: 110px; margin-left: 4px; }
  .contato .display { margin-top: 26px; }
  .contato__lead { margin-top: 26px; font-size: 13px; line-height: 1.3; }
  .contato__lead br { display: none; }
  .contato__lead .icon { width: 48px; height: 10px; margin-left: 8px; vertical-align: 1px; }
  .social--contact { margin-top: 26px; gap: 12px; }
  .social--contact .icon { width: 24px; height: 24px; }
  .contact-form { width: auto; justify-self: stretch; margin: 0; padding: 32px 24px 28px; border-radius: 22px; }
  .field + .field { margin-top: 30px; }
  .field input { font-size: 16px; line-height: 1.4; padding-bottom: 10px; }
  .contact-form__submit { margin: 34px 0 0; }
  .contact-form__status { position: static; margin-top: 14px; font-size: 13px; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 599px) {
  .cards--stats, .cards--reasons, .cards--steps { grid-template-columns: 1fr; }
  .stat__num { font-size: 76px; }
  .site-header__logo { width: 104px; }
  .social--header { gap: 8px; }
  .social--header .icon { width: 17px; height: 17px; }
}
