/* ============================================================
   RESIDENCIAL — 100% Fiel à Jornada Residencial v2 (1920x1080 Canvas)
   ============================================================ */

.res {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #2A2622;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* 1. CAMADA DE FUNDO FULL-BLEED (100% DA TELA REAL / VIEWPORT) */
.res__bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.res__bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}
.res__bg-item.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 0s;
}

.res__bg-item video,
.res__bg-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. CAMADA DE UI/UX — 100% FIEL AO CANVAS 1920x1080 */
.res__canvas {
  position: relative;
  flex: none;
  width: 1920px;
  height: calc(1080px + 2 * var(--res-bleed-y, 0px));
  overflow: hidden;
  background: transparent;
  font-family: 'Hanken Grotesk', var(--font-body), sans-serif;
  color: #2A2622;
  z-index: 2;
  transform: var(--res-scale, scale(1));
  transform-origin: center center;
}

/* ------------------------------------------------------------ palco */

.res__stage {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--res-bleed-y, 0px);
  height: 1080px;
}

.res__tela {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}
.res__tela.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 0s;
}

.res__brand-top {
  position: absolute;
  left: 96px;
  top: calc(56px + var(--res-bleed-y, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
}

.res__brand-img {
  height: 15px;
  width: auto;
  opacity: .92;
}

.res__acoes {
  position: absolute;
  right: 96px;
  top: calc(48px + var(--res-bleed-y, 0px));
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.res__close,
.res__contato {
  background: transparent;
  border: 1px solid rgba(244, 241, 233, 0.4);
  color: #F4F1E9;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.res__close:hover,
.res__contato:hover {
  background: rgba(244, 241, 233, 0.12);
  border-color: #F4F1E9;
}

/* Global Bottom Navigation */
.res__nav-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 56px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 28px;
}
.res__nav-bar--portal {
  bottom: 46px;
}

.res__nav-btn-mapa {
  appearance: none;
  cursor: pointer;
  background: #A98F63;
  border: 0;
  color: #1A1715;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 16px rgba(169,143,99,.4);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.res__nav-btn-mapa:hover {
  background: #C5AB7F;
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 24px rgba(169,143,99,.6);
}

.res__nav-prev {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 6px;
  color: #EDE9DE;
  font-size: 22px;
  line-height: 1;
  transition: opacity 200ms ease;
}
.res__nav-prev:hover { opacity: .65; }

.res__nav-nums {
  display: flex;
  align-items: center;
  gap: 16px;
}

.res__nav-num {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  padding: 4px 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  color: rgba(237, 233, 222, .55);
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.res__nav-num.is-active {
  color: #F4F1E9;
  border-bottom-color: #F4F1E9;
}
.res__nav-num:hover { color: #A98F63; }

.res__nav-next {
  appearance: none;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #A98F63;
  border: 0;
  color: #F4F1E9;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
.res__nav-next--portal {
  width: 76px;
  height: 76px;
  font-size: 26px;
  animation: fbrPulse 2s ease-in-out infinite;
}
.res__nav-next:hover { background: #C5AB7F; transform: scale(1.05); }

/* ------------------------------------------------------- 01 PORTAL */

.res__portal-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  z-index: 2;
}

.res__portal-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__portal-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 68px;
  line-height: 1.06;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #F4F1E9;
}

.res__portal-lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  color: #DDD8CA;
  max-width: 640px;
  text-align: center;
}

.res__portal-bottom-bar {
  position: absolute;
  left: calc(-1 * var(--res-bleed-x, 0px));
  right: calc(-1 * var(--res-bleed-x, 0px));
  bottom: calc(-1 * var(--res-bleed-y, 0px));
  height: calc(270px + var(--res-bleed-y, 0px));
  background: #2A2622;
  z-index: 2;
}

.res__portal-chips-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  padding: 10px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.res__portal-chip-item {
  font-family: 'Archivo FBR', 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #EDE9DE;
  opacity: 0.72;
  text-align: center;
}

.res__portal-chip-sep {
  width: 1px;
  height: 14px;
  background: rgba(237,233,222,.2);
}

/* ------------------------------------------------------- 02 CLUB HOUSE */

.res__club-left {
  position: absolute;
  left: 96px;
  top: 160px;
  bottom: calc(120px - var(--res-bleed-y, 0px));
  width: 34%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

.res__club-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__club-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 80px;
  line-height: .98;
  text-transform: uppercase;
  color: #F4F1E9;
}

.res__club-arq-box {
  display: flex;
  background: #F4F1E9;
  overflow: hidden;
  height: 210px;
  margin-top: 8px;
}

.res__club-arq-img-wrap {
  width: 48%;
  height: 100%;
  flex: none;
  position: relative;
  overflow: hidden;
}
.res__club-arq-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.res__club-arq-info {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #2A2622;
}
.res__club-arq-info img {
  height: 28px;
  width: auto;
  align-self: flex-start;
}
.res__club-arq-info span {
  font-size: 14px;
  line-height: 1.45;
  color: #4D422F;
  font-weight: 400;
}

.res__club-list {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid rgba(244,241,233,.12);
}

.res__club-item-btn {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244,241,233,.12);
  border-left: 3px solid transparent;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: all 200ms ease;
}
.res__club-item-btn.is-active {
  background: rgba(244,241,233,.08);
  border-left-color: #A98F63;
}

.res__club-item-num {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 13px;
  color: #6E675E;
  flex: none;
}
.res__club-item-btn.is-active .res__club-item-num {
  color: #A98F63;
}

.res__club-item-label {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9C2B6;
}
.res__club-item-btn.is-active .res__club-item-label {
  color: #F4F1E9;
  font-weight: 600;
}

.res__club-right-gallery {
  position: absolute;
  top: 160px;
  right: 96px;
  bottom: calc(195px - var(--res-bleed-y, 0px));
  left: calc(34% + 144px);
  overflow: hidden;
  background: #1A1715;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.res__club-gallery-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
  z-index: 5;
}

.res__club-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res__club-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244,241,233,.35);
  cursor: pointer;
  transition: all 200ms ease;
}
.res__club-dot.is-active {
  background: #F4F1E9;
  width: 26px;
  border-radius: 6px;
}

.res__club-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.res__club-arrow-btn {
  appearance: none;
  border: 1px solid rgba(244,241,233,.4);
  background: rgba(20,18,16,.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #F4F1E9;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}
.res__club-arrow-btn:hover {
  background: rgba(169,143,99,.6);
  border-color: #A98F63;
}

/* ------------------------------------------------------- 03 SLOW ESCAPE */

.res__slow-left {
  position: absolute;
  left: 96px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 3;
}

.res__slow-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__slow-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 96px;
  line-height: .92;
  text-transform: uppercase;
  color: #F4F1E9;
}

.res__slow-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.58;
  color: #DDD8CA;
}

.res__slow-right {
  position: absolute;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 3;
}

.res__slow-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(244,241,233,.2);
  padding-top: 20px;
}

.res__slow-block-h {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__slow-block-p {
  font-size: 17px;
  line-height: 1.48;
  color: #EDE9DE;
}

@keyframes fbrPan {
  0% { object-position: left center; }
  50% { object-position: right center; }
  100% { object-position: left center; }
}

.res__club-right-gallery img.is-pan {
  animation: fbrPan 14s ease-in-out infinite !important;
}

/* ------------------------------------------------------- 04 THERA WINEMAKER */

.res__vin-badge {
  position: absolute;
  right: 96px;
  bottom: calc(0px - var(--res-bleed-y, 0px));
  width: 220px;
  height: 220px;
  background: #685331;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.res__vin-badge img {
  width: 100%;
  height: auto;
}

.res__vin-left {
  position: absolute;
  left: 96px;
  top: 40%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  z-index: 3;
}

.res__vin-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.7);
  background: rgba(20,18,16,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
  z-index: 3;
}
.res__vin-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(169,143,99,.6);
}

/* ------------------------------------------------------- 05 CONFRARIA */

.res__conf-head {
  position: absolute;
  left: 96px;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.res__conf-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__conf-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.02;
  text-transform: uppercase;
  color: #F4F1E9;
}

.res__conf-play-btn {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.75);
  background: rgba(20,18,16,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
  z-index: 3;
}
.res__conf-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(169,143,99,.6);
}

.res__conf-cols {
  position: absolute;
  left: 96px;
  bottom: calc(260px - var(--res-bleed-y, 0px));
  display: flex;
  align-items: flex-start;
  gap: 28px;
  z-index: 3;
}

.res__conf-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 26px;
  border-left: 1px solid #A98F63;
  width: 230px;
}

.res__conf-col-h {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #F4F1E9;
}

.res__conf-col-p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #DDD8CA;
}

/* ------------------------------------------------------- 06 PRIVATE RESIDENCES */

.res__private-eyebrow {
  position: absolute;
  left: 102px;
  top: calc(50% - 195px);
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__private-main {
  position: absolute;
  left: 96px;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res__private-row-a {
  display: flex;
  align-items: center;
  gap: 36px;
}

.res__private-title-a {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 180px;
  line-height: .88;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: #F4F1E9;
  white-space: nowrap;
}

.res__private-sobretitulo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.res__private-sobretitulo span {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #A98F63;
}

.res__private-title-b {
  margin: 0;
  width: 100%;
  text-align: right;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 180px;
  line-height: .88;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: #F4F1E9;
  white-space: nowrap;
}

.res__private-bottom {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: calc(220px - var(--res-bleed-y, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.res__private-col-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res__private-col-name {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #F4F1E9;
  white-space: nowrap;
}

.res__private-col-text {
  font-size: 20px;
  line-height: 1.5;
  color: #DDD8CA;
}

.res__private-cta {
  appearance: none;
  cursor: pointer;
  background: #A98F63;
  border: 0;
  color: #1A1715;
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 30px;
  transition: background 200ms ease, transform 200ms ease;
}
.res__private-cta:hover {
  background: #C5AB7F;
  transform: scale(1.04);
}

@keyframes fbrFromLeft {
  from { opacity: 0; transform: translateX(-140px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fbrFromRight {
  from { opacity: 0; transform: translateX(140px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Keyframes */
@keyframes fbrUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fbrZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

@keyframes fbrZoomPingPong {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes fbrPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(169,143,99,.7); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 16px rgba(169,143,99,0); }
}


/* ------------------------------------------------------- FAB de contato

   A jornada tem botão de contato PRÓPRIO, pareado com o FECHAR e só nas
   Coleções (telas 7 e 8). O FAB flutuante redondo sai da jornada inteira.
   `:has(#res-root)` cobre as três rotas que abrem esta tela (residencial,
   private e thera) sem precisar avisar o contact.js. */
body:has(#res-root) .contact-fab {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   07/08 COLEÇÕES — Casas do Bosque / Casas do Lago
   Medidas da "Jornada Residencial v2" do Design System. A citação do
   arquiteto usa a fonte de corpo em itálico: o Design System pede Playfair
   Display, que é do Google Fonts, e o app roda offline no totem.
   ============================================================ */

.res__col-head {
  position: absolute;
  left: 96px;
  right: 96px;
  top: 185px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.res__col-eyebrow {
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #A98F63;
}
.res__col-title {
  margin: 0;
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: .94;
  text-transform: uppercase;
  color: #F4F1E9;
}

/* ---------------------------------------------------------- arquiteto */

.res__col-arq {
  position: absolute;
  left: 96px;
  right: 960px;
  top: 420px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.res__col-arq-foto {
  flex: none;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  background: #3A342E;
  border: 1px solid rgba(244,241,233,.3);
}
.res__col-arq-foto img { width: 100%; height: 100%; object-fit: cover; }

.res__col-arq-txt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  text-align: left;
}
.res__col-arq-aspa {
  position: absolute;
  left: -38px;
  top: -18px;
  font-size: 80px;
  line-height: 1;
  color: #A98F63;
}
.res__col-arq-cit {
  margin: 0;
  padding-left: 4px;
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.34;
  color: #F4F1E9;
}
.res__col-arq-aspa-fim { font-size: 28px; color: #A98F63; }
.res__col-arq-nome {
  margin-top: 6px;
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A98F63;
}

/* ------------------------------------------------------------- abas */

.res__col-rule {
  position: absolute;
  left: 920px;
  top: 420px;
  width: 3px;
  height: 210px;
  background: rgba(244,241,233,.6);
}
.res__col-tabs {
  position: absolute;
  left: 960px;
  top: 390px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.res__col-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .3s ease;
}
.res__col-tab:hover { transform: translateX(4px); }
.res__col-tab-dash {
  width: 10px;
  height: 1px;
  background: #A98F63;
  transition: width .35s cubic-bezier(.22,.61,.36,1);
}
.res__col-tab.is-active .res__col-tab-dash { width: 22px; }
.res__col-tab-label {
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F4F1E9;
  transition: color .3s ease;
}
.res__col-tab.is-active .res__col-tab-label { font-weight: 700; color: #A98F63; }

/* --------------------------------------------------- características */

.res__col-caract {
  position: absolute;
  right: 96px;
  top: 190px;
  bottom: calc(120px - var(--res-bleed-y, 0px));
  width: 480px;
  padding: 34px;
  background: rgba(26,23,21,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: fbrColPainel .45s cubic-bezier(.16,.84,.24,1) both;
}
.res__col-caract-item {
  padding: 14px 0;
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #DDD8CA;
  line-height: 1.5;
}
.res__col-caract-item + .res__col-caract-item {
  border-top: 1px solid rgba(244,241,233,.15);
}

@keyframes fbrColPainel {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------- galeria e plantas */

.res__col-media {
  position: absolute;
  right: 96px;
  top: 150px;
  bottom: calc(100px - var(--res-bleed-y, 0px));
  width: 560px;
  animation: fbrColPainel .45s cubic-bezier(.16,.84,.24,1) both;
}
.res__col-media--plantas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.res__col-media-palco { position: absolute; inset: 0; }
.res__col-media--plantas .res__col-media-palco {
  position: relative;
  inset: auto;
  width: 100%;
  height: 330px;
  flex: none;
}
.res__col-media-palco img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.res__col-media-palco img.is-on { opacity: 1; }

.res__col-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.7));
}

.res__col-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.5);
  background: rgba(20,18,16,.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.res__col-seta--prev { left: 14px; }
.res__col-seta--next { right: 14px; }

.res__col-nota {
  margin: 0;
  text-align: center;
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(244,241,233,.72);
  /* a nota cai sobre a foto de fundo, que nesta tela é clara */
  text-shadow: 0 1px 3px rgba(20,18,16,.95), 0 0 14px rgba(20,18,16,.8);
}

/* ------------------------------------------------------- tela cheia */

.res__lightbox {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15,13,11,.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: fbrColPainel .35s ease both;
}
.res__lb-quadro { position: relative; width: 82%; height: 76%; }
.res__lb-palco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none; /* a pinça é nossa, não do navegador */
  transform-origin: center center;
}
.res__lb-palco.is-zoomed { cursor: grab; }
.res__lb-palco img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.res__lb-palco img.is-on { opacity: 1; }

.res__lb-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.5);
  background: rgba(20,18,16,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.res__lb-seta--prev { left: -10px; }
.res__lb-seta--next { right: -10px; }

.res__lb-nota {
  margin: 0;
  max-width: 70%;
  text-align: center;
  font-family: 'Archivo FBR', var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(244,241,233,.6);
}

/* Botões +/− porque o painel infravermelho do totem pode ser de um toque só
   e nesse caso a pinça não existe (regra 8 do briefing). */
.res__lb-zoom {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}
.res__lb-zoom button {
  appearance: none;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.5);
  background: rgba(20,18,16,.5);
  color: #F4F1E9;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res__lb-fechar {
  position: absolute;
  top: 32px;
  right: 32px;
  appearance: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,233,.5);
  background: rgba(20,18,16,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tela cheia é tela cheia: a navegação de passos e os botões do topo saem. */
body:has(.res__lightbox.is-open) .res__nav-bar,
body:has(.res__lightbox.is-open) .res__acoes,
body:has(.res__lightbox.is-open) .res__close {
  opacity: 0;
  pointer-events: none;
}


/* ============================================================
   ENTRADA DAS TELAS — dinâmica da "Jornada Residencial v2"
   ============================================================

   Tudo aqui pende de `.is-entrando`, posta pelo JS SÓ na tela que acabou de
   entrar. As 8 telas coexistem no DOM e `renderApp()` refaz tudo a cada troca
   de aba ou batida do carrossel: sem essa trava as animações rodavam no boot
   (e o visitante chegava na tela com elas já terminadas) e depois reiniciavam
   a cada ajuste interno.
   ============================================================ */

@keyframes fbrLeft  { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fbrLine  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fbrIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fbrImg   { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------- 01 Portal */
.res__tela.is-entrando .res__portal-eyebrow    { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .18s both; }
.res__tela.is-entrando .res__portal-title      { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .28s both; }
.res__tela.is-entrando .res__portal-lead       { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .40s both; }
.res__tela.is-entrando .res__portal-chips-wrap { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .52s both; }

/* ------------------------------------------------ 02 Club House */
.res__tela.is-entrando .res__club-left          { animation: fbrLeft 1s cubic-bezier(.22,.61,.36,1) both; }
.res__tela.is-entrando .res__club-eyebrow       { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .12s both; }
.res__tela.is-entrando .res__club-title         { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .24s both; }
.res__tela.is-entrando .res__club-arq-box       { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .36s both; }
.res__tela.is-entrando .res__club-list          { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .48s both; }
.res__tela.is-entrando .res__club-right-gallery { animation: fbrImg 1.1s cubic-bezier(.22,.61,.36,1) .2s both; }

/* ----------------------------------------------- 03 Slow Escape */
.res__tela.is-entrando .res__slow-eyebrow { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .25s both; }
.res__tela.is-entrando .res__slow-title   { animation: fbrUp 1s  cubic-bezier(.22,.61,.36,1) .35s both; }
.res__tela.is-entrando .res__slow-lead    { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .50s both; }
.res__tela.is-entrando .res__slow-block:nth-child(1) { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .85s both; }
.res__tela.is-entrando .res__slow-block:nth-child(2) { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .95s both; }
.res__tela.is-entrando .res__slow-block:nth-child(3) { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) 1.05s both; }

/* -------------------------------------------- 04 Thera Winemaker */
.res__tela.is-entrando .res__vin-left     { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .15s both; }
.res__tela.is-entrando .res__vin-play-btn { animation: fbrIn .6s ease .50s both; }
.res__tela.is-entrando .res__vin-badge    { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .65s both; }

/* ------------------------------------------------- 05 Confraria */
.res__tela.is-entrando .res__conf-head     { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .15s both; }
.res__tela.is-entrando .res__conf-cols     { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .40s both; }
.res__tela.is-entrando .res__conf-play-btn { animation: fbrIn .6s ease .50s both; }

/* ---------------------------------------- 06 Private Residences */
.res__tela.is-entrando .res__private-eyebrow     { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .10s both; }
.res__tela.is-entrando .res__private-title-a     { animation: fbrFromLeft 1s cubic-bezier(.22,.61,.36,1) .15s both; }
.res__tela.is-entrando .res__private-sobretitulo { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .25s both; }
.res__tela.is-entrando .res__private-title-b     { animation: fbrFromRight 1s cubic-bezier(.22,.61,.36,1) .30s both; }
.res__tela.is-entrando .res__private-bottom      { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .45s both; }

/* ------------------------------------------- 07/08 Coleções
   O filete e as abas surgem depois de 8s (pedido do Cesar, 27/08): a tela
   respira primeiro no render e na frase do arquiteto, e só então oferece a
   navegação. O contador vale a partir da ENTRADA na tela, não do boot. */
.res__tela.is-entrando .res__col-eyebrow { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .15s both; }
.res__tela.is-entrando .res__col-title   { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .25s both; }
.res__tela.is-entrando .res__col-arq     { animation: fbrUp .9s cubic-bezier(.22,.61,.36,1) .40s both; }
.res__tela.is-entrando .res__col-rule    { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) 8s both; }
.res__tela.is-entrando .res__col-tabs    { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) 8s both; }

/* Fora da tela, na barra de passos */
.res.is-entrando .res__nav-btn-mapa { animation: fbrUp .8s cubic-bezier(.22,.61,.36,1) .3s both; }
