/* ==========================================================================
   Open House — digital real estate
   Paleta tirada da logo: fundo #0b0b0a, traço #c8c5b5 (cor de maquete).
   Um único acento: a luz âmbar de uma janela acesa.
   Regra de layout: cada bloco vive dentro da sua seção. Nada se sobrepõe.
   ========================================================================== */

:root {
  --noite: #0b0b0a;
  --grafite: #121110;
  --grafite-2: #1a1916;
  --concreto: #8e8b7f;
  --maquete: #c8c5b5;
  --gesso: #ebe8dc;
  --luz: #f3c98b;

  --linha: rgba(200, 197, 181, 0.12);
  --linha-forte: rgba(200, 197, 181, 0.28);

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 3.6vw, 52px);
  --nav-h: 68px;
  --sec-pad: clamp(72px, 11vh, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* escala tipográfica (menor e mais contida) */
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-h3: clamp(1.1rem, 1.35vw, 1.4rem);
  --t-h2: clamp(1.45rem, 2.2vw, 2.3rem);
  --t-h1: clamp(1.75rem, 2.75vw, 3.05rem);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--noite);
  scrollbar-width: thin;
  scrollbar-color: #3a3934 var(--noite);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--noite);
  color: var(--maquete);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 350;
  font-stretch: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* sem ancoragem de rolagem: quando algo muda de tamanho dentro de uma seção travada (o título
   do Thomaz some ao começar a conversa), o navegador rolava a página e soltava a trava */
html { overflow-anchor: none; }

/* grão de papel / concreto */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  /* textura gerada uma vez em js/main.js (--grao); 64px por bloco = 1 grão por pixel na tela Retina */
  background-image: var(--grao, none);
  background-size: 64px 64px;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--maquete); color: var(--noite); }
:focus-visible { outline: 1px solid var(--gesso); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 400;
  padding: 10px 16px; background: var(--maquete); color: var(--noite);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

.display {
  font-size: var(--t-h2);
  font-weight: 250;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gesso);
  text-wrap: balance;
}

/* cabeçalho padrão de seção: título à esquerda, apoio à direita, linha embaixo */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px clamp(32px, 6vw, 96px);
  padding-bottom: clamp(18px, 2.6vh, 28px);
  margin-bottom: clamp(18px, 2.6vh, 28px);
  border-bottom: 1px solid var(--linha);
}
.sec-head p {
  justify-self: end;
  max-width: 44ch;
  font-size: var(--t-base);
  color: var(--concreto);
}

/* moldura das cenas 3D: o canvas nunca sai daqui */
.frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--linha);
  background: var(--noite);
  isolation: isolate;
}
.frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.frame__marks {
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
  --m: var(--maquete);
  background:
    linear-gradient(var(--m), var(--m)) top left / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) top left / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 1px 12px no-repeat;
}
.no-webgl .frame {
  background: radial-gradient(60% 60% at 50% 45%, rgba(200, 197, 181, 0.08), transparent 70%), var(--noite);
}

/* ---------- botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--linha-forte);
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 400;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--maquete);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn > span { display: inline-block; }
.btn:hover { color: var(--noite); border-color: var(--maquete); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--maquete); border-color: var(--maquete); color: var(--noite); }
.btn--solid::before { background: var(--gesso); }
.btn--small { height: 38px; padding: 0 16px; font-size: var(--t-xs); }

.round {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--linha-forte);
  border-radius: 50%;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.round:hover { background: var(--maquete); color: var(--noite); border-color: var(--maquete); }

/* ---------- abertura ---------- */

.loader { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--noite); }
.is-loading .loader { pointer-events: all; }
html.is-loading, .is-loading body { overflow: hidden; }
.loader__fachada { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__logo {
  --d: 1;
  --f: 0;
  position: absolute;
  left: 50%; top: 50%;
  width: min(440px, 72vw);
  transform: translate(-50%, -50%);
  overflow: visible;
  color: var(--maquete);
  fill: currentColor;
  fill-opacity: var(--f);
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--d);
}
.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 200;
  font-stretch: 62%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--concreto);
}
/* "Entrar": fim da abertura quando o navegador ainda não deixou tocar som. A tela inteira
   vale como clique; o botão diz o que acontece */
.is-entrada .loader { pointer-events: all; cursor: pointer; }
html.is-entrada, .is-entrada body { overflow: hidden; }
.is-entrada .cursor { z-index: 310; }
.loader__porta {
  position: absolute;
  inset-inline: 0;
  /* logo centrada (altura = 19,2% da largura) + respiro */
  top: calc(50% + min(440px, 72vw) * 0.096 + clamp(32px, 6vh, 60px));
  display: flex;
  justify-content: center;
}
.loader__porta[hidden] { display: none; }
.loader__entrar { gap: 10px; min-width: 156px; color: var(--maquete); background: rgba(11, 11, 10, 0.55); }
.loader__entrar .som-toggle__bars { display: inline-flex; }
.loader__entrar .som-toggle__bars i { animation: eq 1.1s ease-in-out infinite; }
.loader__entrar .som-toggle__bars i:nth-child(2) { animation-delay: -0.35s; }
.loader__entrar .som-toggle__bars i:nth-child(3) { animation-delay: -0.7s; }
.loader__entrar .som-toggle__bars i:nth-child(4) { animation-delay: -0.2s; }
@media (prefers-reduced-motion: reduce) { .loader__entrar .som-toggle__bars i { animation: none; height: 7px; } }
.failsafe .loader { display: none; }
.failsafe .hero__title .line { opacity: 1 !important; }

/* ---------- cursor ---------- */

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gesso); mix-blend-mode: difference; }
.cursor__ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 232, 220, 0.45);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s;
}
.cursor__label {
  font-size: 0.6875rem;
  font-weight: 450;
  font-stretch: 112%;
  color: var(--noite);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(235, 232, 220, 0.8); }
.cursor.is-label .cursor__ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--maquete); border-color: var(--maquete); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* cortina dos atalhos: escurece a tela enquanto a página pula direto para uma seção
   (fica abaixo do grão, do menu e da navegação) */
.cortina {
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  opacity: 0;
  background: var(--noite);
}

/* ---------- navegação ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 36px;
  padding-inline: var(--gutter);
  /* fundo quase opaco no lugar do desfoque: o blur por cima das cenas 3D custava caro, principalmente no Safari */
  background: rgba(11, 11, 10, 0.95);
  border-bottom: 1px solid var(--linha);
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo svg { width: 128px; fill: var(--maquete); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-sm); font-stretch: 112%; }
.nav__links a { position: relative; padding: 6px 0; color: var(--concreto); transition: color 0.3s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--gesso); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--noite);
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu a { font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 250; font-stretch: 125%; line-height: 1.2; color: var(--gesso); }

main, .footer { position: relative; }

/* ==========================================================================
   Fachada
   ========================================================================== */

.hero { padding-top: var(--nav-h); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(24px, 4.5vh, 48px);
}
.hero__text { align-self: center; padding-block: 24px; }
.hero__title {
  font-size: var(--t-h1);
  font-weight: 200;
  font-stretch: 125%;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--gesso);
}
.hero__title .line { display: block; white-space: nowrap; clip-path: inset(-0.25em -100vw -0.25em -100vw); }
.hero__title .line__in { display: inline-block; }
.is-loading .hero__title .line { opacity: 0; }
.hero__lede { max-width: 40ch; margin-top: clamp(18px, 3vh, 28px); font-size: var(--t-base); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3.6vh, 36px); }
.hero__stage { min-height: 420px; }

/* ---------- clientes ---------- */

.clientes { border-block: 1px solid var(--linha); }
.clientes__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: 18px;
}
.clientes__label { font-size: var(--t-xs); font-stretch: 105%; color: var(--concreto); white-space: nowrap; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  width: max-content;
  animation: marquee 57s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(20px, 2.5vw, 40px))); } }

/* todas as logos ocupam a mesma caixa; dentro dela, cada uma tem a mesma área visual
   (a mais larga e fina ocupa a largura toda, a mais alta fica um pouco mais estreita) */
.cliente {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(140px, 13vw, 190px);
  aspect-ratio: 190 / 40;
  color: var(--maquete);
  opacity: 0.72;
  transition: opacity 0.3s;
}
.cliente:hover { opacity: 1; }
.cliente svg { display: block; width: var(--w); height: auto; overflow: visible; }
.cliente--artconcept svg { --w: 100%; aspect-ratio: 169.5 / 17.3; }
.cliente--fixx svg { --w: 89%; aspect-ratio: 457.5 / 58.5; }
.cliente--acelera svg { --w: 74%; aspect-ratio: 637 / 118.8; }
.cliente--nexus svg { --w: 53%; aspect-ratio: 1105.1 / 404.6; }

/* ==========================================================================
   Corte (serviços andar por andar)
   ========================================================================== */

.corte__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 3.5vh, 36px));
  padding-bottom: clamp(20px, 3vh, 32px);
}
.corte__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px) 60px;
  gap: clamp(20px, 3vw, 44px);
}
.corte__info { position: relative; align-self: center; min-height: 300px; }
.andar {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.45s;
}
.andar.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.55s var(--ease) 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s;
}
.andar__pav { font-size: var(--t-xs); font-stretch: 112%; color: var(--luz); margin-bottom: 8px; }
.andar h3 {
  font-size: var(--t-h3);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1.15;
  color: var(--gesso);
  margin-bottom: 12px;
}
.andar > p:not(.andar__pav) { font-size: var(--t-base); max-width: 40ch; }
.andar ul { margin-top: 18px; border-top: 1px solid var(--linha); }
.andar li { padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: var(--t-sm); font-stretch: 105%; color: var(--gesso); }

.elevador {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 16px;
  border: 1px solid var(--linha);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(200, 197, 181, 0.06), rgba(200, 197, 181, 0.015));
}
.elevador__visor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: #080807;
  box-shadow: inset 0 0 0 1px rgba(200, 197, 181, 0.08);
  color: var(--luz);
  text-shadow: 0 0 10px rgba(243, 201, 139, 0.6);
  font-variant-numeric: tabular-nums;
}
.elevador__visor b { font-size: 1.1rem; font-weight: 500; font-stretch: 62%; line-height: 1; }
.elevador__seta { font-size: 0.45rem; transition: transform 0.4s var(--ease); }
.elevador__seta.is-down { transform: rotate(180deg); }
.elevador button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--linha-forte);
  font-size: var(--t-xs);
  font-weight: 450;
  color: var(--maquete);
  background: radial-gradient(circle at 50% 35%, rgba(200, 197, 181, 0.08), transparent 70%);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.5s var(--ease);
}
.elevador button:hover { border-color: var(--maquete); color: var(--gesso); }
.elevador button[aria-current="true"] {
  color: var(--luz);
  border-color: var(--luz);
  box-shadow: 0 0 0 3px rgba(243, 201, 139, 0.1), 0 0 18px rgba(243, 201, 139, 0.3), inset 0 0 10px rgba(243, 201, 139, 0.2);
}

.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; }
.leader path { fill: none; stroke: var(--maquete); stroke-width: 1; stroke-opacity: 0.55; }
.leader circle { fill: var(--luz); }
.leader .leader__halo { fill: none; stroke: var(--luz); stroke-opacity: 0.45; }

/* ==========================================================================
   Obras entregues (tambor 3D)
   ========================================================================== */

.obras { border-top: 1px solid var(--linha); }
.obras__pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 3.5vh, 36px));
  padding-bottom: clamp(20px, 3vh, 32px);
}
.drum-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}
.drum-space {
  --cw: min(34vw, 540px);
  --ch: calc(var(--cw) * 0.64);
  --r: 700px;
  position: relative;
  width: var(--cw);
  height: var(--ch);
  transform-style: preserve-3d;
  transform: rotateX(-3deg);
}
.drum { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }

.obra { --dim: 0; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.obra::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  background: var(--noite);
  opacity: var(--dim);
  pointer-events: none;
}
.obra--phone::after { left: 50%; right: auto; width: calc(var(--ch) * 0.54); transform: translateX(-50%); border-radius: 24px; }

.obra__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--linha-forte);
  border-radius: 8px;
  background: var(--grafite);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}
.obra--phone .obra__frame {
  left: 50%;
  right: auto;
  width: calc(var(--ch) * 0.54);
  transform: translateX(-50%);
  border-radius: 24px;
  border: 5px solid #1e1d1a;
  box-shadow: 0 0 0 1px var(--linha-forte), 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}
.obra--phone .obra__frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 7px; left: 50%;
  width: 30%; height: 12px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #050505;
}
.obra__bar {
  position: relative;
  z-index: 2;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid var(--linha);
  background: #121110;
  font-size: 10px;
  color: var(--concreto);
}
.obra__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(200, 197, 181, 0.22); }
.obra__bar span {
  margin-inline: auto;
  padding: 1px 12px;
  border-radius: 4px;
  background: rgba(200, 197, 181, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obra__screen {
  position: absolute;
  inset: 26px 0 0;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(200, 197, 181, 0.04) 0 1px, transparent 1px 12px), var(--grafite-2);
}
.obra--phone .obra__screen { inset: 0; }
.obra__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 2.4s var(--ease);
}
.obra__screen img.is-ready { opacity: 1; transform: none; }

.obra__ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 5% 6% 6%;
  color: #f4f1e6;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 55%, rgba(0, 0, 0, 0.55));
  font-stretch: 112%;
}
.obra--claro .obra__ui { color: #1a1916; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%, transparent 55%, rgba(255, 255, 255, 0.5)); }
.obra--phone .obra__ui { padding: 26% 9% 10%; }
.obra__nav { display: flex; align-items: center; justify-content: space-between; }
.obra__nav b { font-size: clamp(8px, 0.65vw, 11px); font-weight: 600; letter-spacing: 0.16em; }
.obra__nav span { width: 16px; height: 6px; border-block: 1px solid currentColor; opacity: 0.8; }
.obra__h { font-size: clamp(12px, 1.5vw, 24px); font-weight: 250; font-stretch: 125%; line-height: 1.05; margin-bottom: 0.4em; }
.obra--phone .obra__h { font-size: clamp(11px, 1vw, 16px); }
.obra__s { font-size: clamp(7px, 0.6vw, 10px); opacity: 0.85; max-width: 32ch; }
.obra__search { display: inline-block; padding: 0.6em 1em; border: 1px solid currentColor; border-radius: 99px; min-width: 60%; }
.obra__ui em { align-self: flex-start; padding: 0.7em 1.3em; border: 1px solid currentColor; border-radius: 99px; font-style: normal; font-size: clamp(7px, 0.6vw, 10px); }
.obra__ui--sys { background: linear-gradient(90deg, rgba(11, 11, 10, 0.78), rgba(11, 11, 10, 0.25) 70%); }
.obra__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 60%; }
.obra__grid i { aspect-ratio: 1.6; border: 1px solid rgba(244, 241, 230, 0.4); }
.obra__grid i.v { background: rgba(244, 241, 230, 0.75); }
.obra__grid i.r { background: var(--luz); border-color: var(--luz); }

.obra-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px clamp(24px, 4vw, 64px);
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--linha);
}
.obra-info__cliente { font-size: var(--t-xs); font-stretch: 112%; color: var(--concreto); }
.obra-info__nome { margin: 2px 0 6px; font-size: var(--t-h3); font-weight: 300; font-stretch: 125%; line-height: 1.15; color: var(--gesso); }
.obra-info__tipo { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--t-sm); }
.obra-info__ano { color: var(--concreto); font-variant-numeric: tabular-nums; }
.obra-info__resultado { padding-left: 12px; border-left: 1px solid var(--luz); font-size: var(--t-sm); color: var(--gesso); max-width: 36ch; }
.obra-info__ctrl { display: flex; align-items: center; gap: 10px; }
.obra-info__count { margin-right: 10px; font-size: var(--t-xs); color: var(--concreto); font-variant-numeric: tabular-nums; }
.obra-info__count b { font-weight: 400; color: var(--gesso); }

/* ==========================================================================
   Números (dados reais, guiados pela rolagem)
   ========================================================================== */

.numeros { border-top: 1px solid var(--linha); }
.numeros__pin {
  --mark: #c4862c;       /* âmbar validado para marcas de dados no fundo escuro */
  --mark-lo: #6b675e;    /* cinza de contexto */
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 3.5vh, 36px));
  padding-bottom: clamp(20px, 3vh, 32px);
}

.numeros__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(16px, 2.6vh, 28px);
}
.numeros__rail button {
  --p: 0;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 10px;
  text-align: left;
  font-size: var(--t-sm);
  font-stretch: 105%;
  color: var(--concreto);
  transition: color 0.3s;
}
.numeros__rail button b { font-weight: 400; font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.numeros__rail button i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--maquete) calc(var(--p) * 100%), var(--linha-forte) 0);
}
.numeros__rail button:hover, .numeros__rail button[aria-current="true"] { color: var(--gesso); }

.numeros__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
}

.numeros__text { position: relative; align-self: center; min-height: 340px; }
.cap {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.45s;
}
.cap.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.55s var(--ease) 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s;
}
.cap__stat {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 200;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gesso);
  margin-bottom: 18px;
}
.cap h3 {
  font-size: var(--t-h3);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--gesso);
  margin-bottom: 12px;
  max-width: 26ch;
}
.cap > p:not(.cap__stat):not(.cap__fonte) { max-width: 42ch; }
.cap__fonte {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--linha);
  font-size: var(--t-xs);
  color: var(--concreto);
  max-width: 46ch;
}
.cap__fonte a { color: var(--maquete); text-decoration: underline; text-decoration-color: var(--linha-forte); text-underline-offset: 3px; }
.cap__fonte a:hover { color: var(--gesso); }

/* painel do gráfico */
.numeros__chart {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--grafite);
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--linha);
}
.chart-head__title { font-size: var(--t-sm); color: var(--maquete); }
.chart-head__toggle {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--linha-forte);
  border-radius: 99px;
  font-size: var(--t-xs);
  color: var(--maquete);
  transition: border-color 0.3s, color 0.3s;
}
.chart-head__toggle:hover { border-color: var(--maquete); color: var(--gesso); }

.charts { position: relative; flex: 1; min-height: 0; container-type: size; }
.chart {
  --d: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.chart.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease) 0.1s, visibility 0s; }
.chart__table { display: none; }
.is-table .chart__plot, .is-table .chart__legend { display: none; }
.is-table .chart__table { display: table; }

.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--t-xs); color: var(--maquete); }
.chart__legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 2px; background: var(--mark-lo); }
.sw--hi { background: var(--mark); }
.sw--est { background: transparent; box-shadow: inset 0 0 0 1px var(--maquete); }

.chart__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.chart__table caption { text-align: left; padding-bottom: 10px; color: var(--concreto); font-size: var(--t-xs); }
.chart__table th, .chart__table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--linha); text-align: left; font-weight: 400; }
.chart__table td { color: var(--gesso); font-variant-numeric: tabular-nums; }
.chart__table thead th { color: var(--concreto); font-size: var(--t-xs); }

/* barras horizontais */
.hbar { --lab: 36%; --val: 58px; position: relative; flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 26px; }
.hbar__grid, .hbar__axis { position: absolute; left: calc(var(--lab) + 14px); right: var(--val); }
.hbar__grid { top: 0; bottom: 26px; }
.hbar__grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--linha); }
.hbar__grid i.is-zero { background: var(--linha-forte); }
.hbar__axis { bottom: 0; height: 18px; }
.hbar__axis span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: var(--concreto);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hbar__rows { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(22px, 42px); align-content: center; }
.hbar__row {
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  height: 100%;
  outline: none;
  cursor: default;
}
.hbar__label { font-size: var(--t-sm); color: var(--maquete); line-height: 1.25; }
.hbar__row.is-hi .hbar__label { color: var(--gesso); }
.hbar__track { position: relative; height: 100%; min-height: 20px; margin-right: var(--val); }
.hbar__bar {
  position: absolute;
  top: 50%;
  left: var(--x0);
  height: 14px;
  width: calc(var(--w) * var(--d));
  transform: translateY(-50%);
  border-radius: 0 4px 4px 0;
  background: var(--mark-lo);
  transition: filter 0.25s;
}
.hbar__row.is-neg .hbar__bar { left: auto; right: calc(100% - var(--x0)); border-radius: 4px 0 0 4px; }
.hbar__row.is-hi .hbar__bar { background: var(--mark); }
.hbar__val {
  position: absolute;
  top: 50%;
  left: calc(var(--x0) + var(--w) * var(--d) + 8px);
  transform: translateY(-50%);
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--maquete);
  white-space: nowrap;
  opacity: var(--d);
}
.hbar__row.is-neg .hbar__val { left: auto; right: calc(100% - var(--x0) + var(--w) * var(--d) + 8px); }
.hbar__row.is-hi .hbar__val { color: var(--gesso); }
.hbar__row:hover .hbar__bar, .hbar__row:focus-visible .hbar__bar { filter: brightness(1.25); }
.hbar__row:focus-visible .hbar__label { text-decoration: underline; text-underline-offset: 4px; }

/* colunas */
.vbar { position: relative; flex: 0 1 auto; height: min(100cqh - 60px, 340px); min-height: 170px; padding-left: 40px; padding-bottom: 28px; }
.vbar__grid { position: absolute; left: 40px; right: 0; top: 24px; bottom: 28px; }
.vbar__grid i { position: absolute; left: 0; right: 0; height: 1px; background: var(--linha); }
.vbar__grid i:first-child { background: var(--linha-forte); }
.vbar__grid span {
  position: absolute;
  right: calc(100% + 10px);
  top: -7px;
  font-size: 0.6875rem;
  color: var(--concreto);
  font-variant-numeric: tabular-nums;
}
.vbar__cols { position: absolute; left: 40px; right: 0; top: 24px; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.vbar__col { position: relative; display: flex; flex-direction: column; align-items: center; outline: none; }
.vbar__area { position: relative; flex: 1; width: 100%; }
.vbar__bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  height: calc(var(--h) * var(--d));
  transform: translateX(-50%);
  border-radius: 4px 4px 0 0;
  background: var(--mark-lo);
  transition: filter 0.25s;
}
.vbar__col.is-hi .vbar__bar { background: var(--mark); }
.vbar__col.is-est .vbar__bar { background: transparent; box-shadow: inset 0 0 0 1px var(--maquete); }
.vbar__val {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) * var(--d) + 8px);
  transform: translateX(-50%);
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--maquete);
  white-space: nowrap;
  opacity: var(--d);
}
.vbar__col.is-hi .vbar__val { color: var(--gesso); }
.vbar__label { height: 28px; display: grid; place-items: center; font-size: var(--t-xs); color: var(--concreto); }
.vbar__col:hover .vbar__bar, .vbar__col:focus-visible .vbar__bar { filter: brightness(1.25); }

/* semana de trabalho: 1 quadrado = 1 hora */
.week { display: grid; gap: 8px; flex: 0 1 auto; min-height: 0; }
.week__grid, .week__hours { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 2px; }
.week__day { display: grid; align-items: center; font-size: var(--t-xs); color: var(--concreto); }
.week__cell {
  aspect-ratio: 1.35;
  max-height: min(46px, calc((100cqh - 96px) / 5 - 2px));
  border-radius: 3px;
  background: rgba(107, 103, 94, 0.28);
  outline: none;
  transition: background 0.35s var(--ease), filter 0.25s;
}
.week__cell.is-on { background: var(--mark-lo); }
.week__cell.is-hi.is-on { background: var(--mark); }
.week__cell:hover, .week__cell:focus-visible { filter: brightness(1.3); }
.week__hours span { font-size: 0.6875rem; color: var(--concreto); text-align: center; font-variant-numeric: tabular-nums; }

.chart-tip {
  position: absolute;
  left: 0; top: 0;
  z-index: 4;
  display: grid;
  gap: 2px;
  max-width: 240px;
  padding: 9px 12px;
  border: 1px solid var(--linha-forte);
  background: rgba(11, 11, 10, 0.94);
  font-size: var(--t-xs);
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { font-weight: 450; font-size: var(--t-base); color: var(--gesso); }
.chart-tip span { color: var(--maquete); }

/* ---------- botão de som ---------- */

.som-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--linha);
  border-radius: 99px;
  font-size: var(--t-xs);
  font-stretch: 105%;
  color: var(--maquete);
  transition: border-color 0.3s, color 0.3s;
}
.nav__links + .som-toggle { margin-left: 4px; }
.som-toggle:hover { border-color: var(--linha-forte); color: var(--gesso); }
.som-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.som-toggle__bars i {
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  transition: height 0.3s var(--ease);
}
.som-toggle.is-live .som-toggle__bars i { animation: eq 1.1s ease-in-out infinite; }
.som-toggle.is-live .som-toggle__bars i:nth-child(2) { animation-delay: -0.35s; }
.som-toggle.is-live .som-toggle__bars i:nth-child(3) { animation-delay: -0.7s; }
.som-toggle.is-live .som-toggle__bars i:nth-child(4) { animation-delay: -0.2s; }
.som-toggle[aria-pressed="false"] { color: var(--concreto); }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
/* som ligado esperando o primeiro toque: as barras respiram devagar, num tom de luz */
.som-toggle.is-espera { color: var(--gesso); }
.som-toggle.is-espera .som-toggle__bars i { animation: espera 2.4s ease-in-out infinite; }
.som-toggle.is-espera .som-toggle__bars i:nth-child(2) { animation-delay: -0.6s; }
.som-toggle.is-espera .som-toggle__bars i:nth-child(3) { animation-delay: -1.2s; }
.som-toggle.is-espera .som-toggle__bars i:nth-child(4) { animation-delay: -1.8s; }
@keyframes espera { 0%, 100% { height: 3px; } 50% { height: 7px; } }

/* ==========================================================================
   Thomaz (assistente virtual)
   ========================================================================== */

.thomaz { border-top: 1px solid var(--linha); }
/* trava na tela como as outras seções: tudo cabe em uma tela */
.thomaz__pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 3.5vh, 36px));
  padding-bottom: clamp(20px, 3vh, 32px);
}
.thomaz__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

/* palco do rosto: canvas em cima, legenda embaixo, sem sobreposição */
.thomaz__stage {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.thomaz__canvas { position: relative; flex: 1; min-height: 0; }
.thomaz__canvas canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.thomaz__stage.is-ready .thomaz__canvas canvas { opacity: 1; }
.thomaz__stage.is-sem-3d .thomaz__canvas {
  background: radial-gradient(40% 45% at 50% 45%, rgba(200, 197, 181, 0.12), transparent 70%);
}
.thomaz__legenda {
  flex: none;
  min-height: 92px;
  display: grid;
  align-items: center;
  padding: 16px clamp(18px, 3vw, 40px) 22px;
  border-top: 1px solid var(--linha);
  text-align: center;
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--concreto);
}
.thomaz__fala span { color: rgba(200, 197, 181, 0.38); transition: color 0.18s; }
.thomaz__fala span.is-dita { color: var(--maquete); }
.thomaz__fala span.is-agora { color: var(--luz); }

/* painel da conversa */
.thomaz__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--linha);
  background: var(--grafite);
}
.thomaz__intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(24px, 3vw, 44px);
}
.thomaz__quem { display: grid; gap: 2px; }
.thomaz__quem b { font-size: var(--t-h3); font-weight: 300; font-stretch: 125%; color: var(--gesso); }
.thomaz__quem span { font-size: var(--t-sm); color: var(--luz); }
.thomaz__desc { max-width: 40ch; }
.thomaz__nota { font-size: var(--t-xs); color: var(--concreto); }

.thomaz__chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.thomaz__chat[hidden], .thomaz__intro[hidden] { display: none; }
.thomaz__topo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--linha);
}
.thomaz__passo { margin-right: auto; font-size: var(--t-xs); color: var(--maquete); font-variant-numeric: tabular-nums; }
.thomaz__pular, .thomaz__voz {
  padding: 4px 10px;
  border: 1px solid var(--linha-forte);
  border-radius: 99px;
  font-size: var(--t-xs);
  color: var(--maquete);
  transition: border-color 0.3s, color 0.3s;
}
.thomaz__pular:hover, .thomaz__voz:hover { border-color: var(--maquete); color: var(--gesso); }
.thomaz__voz[aria-pressed="false"] { color: var(--concreto); }
.thomaz__barra {
  --p: 0;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--luz) calc(var(--p) * 100%), transparent 0);
  transition: --p 0.6s;
}

/* centro do painel: na tela, o Thomaz só fala. Aqui aparece o indicador enquanto ele fala,
   o campo quando ele pergunta e o cartão no fim (a conversa escrita fica só para leitores de tela) */
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.thomaz__centro {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.thomaz__ouvindo {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: var(--t-sm);
  color: var(--maquete);
}
.thomaz__chat[data-etapa="falando"] .thomaz__ouvindo { display: flex; animation: msg-in 0.5s var(--ease) both; }
.thomaz__ondas { display: flex; align-items: center; gap: 4px; height: 28px; }
.thomaz__ondas i { width: 3px; height: 6px; border-radius: 2px; background: var(--maquete); opacity: 0.5; transition: height 0.4s var(--ease), opacity 0.4s; }
/* as barras só ondulam enquanto a voz está saindo */
.thomaz__chat.is-falando .thomaz__ondas i { opacity: 1; animation: ondas 1.1s ease-in-out infinite; }
.thomaz__chat.is-falando .thomaz__ondas i:nth-child(2) { animation-delay: -0.2s; }
.thomaz__chat.is-falando .thomaz__ondas i:nth-child(3) { animation-delay: -0.45s; }
.thomaz__chat.is-falando .thomaz__ondas i:nth-child(4) { animation-delay: -0.7s; }
.thomaz__chat.is-falando .thomaz__ondas i:nth-child(5) { animation-delay: -0.9s; }
@keyframes ondas { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.thomaz__rotulo { font-size: var(--t-xs); color: var(--luz); }
.thomaz__final { display: grid; gap: 12px; }
.thomaz__final:empty { display: none; }
.thomaz__status { text-align: center; font-size: var(--t-sm); color: var(--concreto); animation: status-pulsa 1.4s ease-in-out infinite; }
@keyframes status-pulsa { 50% { opacity: 0.45; } }

.reuniao {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--luz);
  background: rgba(243, 201, 139, 0.05);
}
.reuniao__rot { font-size: var(--t-xs); color: var(--luz); }
.reuniao__dia { font-size: var(--t-h3); font-weight: 300; font-stretch: 125%; color: var(--gesso); line-height: 1.2; }
.reuniao__hora { font-size: var(--t-sm); color: var(--maquete); }
.reuniao__convite { font-size: var(--t-xs); color: var(--concreto); }
.reuniao__txt { font-size: var(--t-sm); color: var(--maquete); line-height: 1.55; }
.reuniao { animation: msg-in 0.5s var(--ease) both; }
.reuniao__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thomaz__recomecar { justify-self: start; margin-top: 6px; font-size: var(--t-xs); color: var(--concreto); text-decoration: underline; text-underline-offset: 3px; }
.thomaz__recomecar:hover { color: var(--gesso); }

/* área de resposta: opções + caixa de texto */
.thomaz__resposta { display: grid; gap: 12px; animation: msg-in 0.45s var(--ease) both; }
.thomaz__resposta[hidden] { display: none; }
.thomaz__opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.thomaz__opcoes:empty { display: none; }
.thomaz__op {
  padding: 7px 14px;
  border: 1px solid var(--linha-forte);
  border-radius: 99px;
  font-size: var(--t-sm);
  font-stretch: 105%;
  color: var(--maquete);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.thomaz__op:hover { border-color: var(--maquete); color: var(--gesso); }
.thomaz__op[aria-pressed="true"] { background: var(--maquete); border-color: var(--maquete); color: var(--noite); }
.thomaz__op--ok { border-color: var(--luz); color: var(--luz); }
.thomaz__op--ok:disabled { opacity: 0.4; pointer-events: none; }
.thomaz__campo { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--linha-forte); transition: border-color 0.3s; }
.thomaz__campo[hidden] { display: none; }
.thomaz__campo:focus-within { border-color: var(--maquete); }
.thomaz__input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--gesso);
  font: inherit;
  font-size: var(--t-base);
  outline: none;
}
.thomaz__input::placeholder { color: var(--concreto); }
.thomaz__enviar {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--maquete);
  color: var(--noite);
  transition: background 0.3s;
}
.thomaz__enviar:hover { background: var(--gesso); }
.thomaz__enviar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.thomaz__erro { font-size: var(--t-xs); color: var(--luz); }
.thomaz__erro:empty { display: none; }

.thomaz__direto { padding: 14px 18px; border-top: 1px solid var(--linha); font-size: var(--t-xs); color: var(--concreto); }
.thomaz__direto a { color: var(--maquete); text-decoration: underline; text-underline-offset: 3px; }
.thomaz__direto a:hover { color: var(--gesso); }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.footer { padding-top: clamp(56px, 9vh, 104px); padding-bottom: 24px; border-top: 1px solid var(--linha); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: clamp(56px, 10vh, 112px); }
.footer__tag { max-width: 36ch; font-size: var(--t-sm); color: var(--concreto); }
.footer nav { display: grid; gap: 4px; align-content: start; font-size: var(--t-sm); }
.footer nav a { width: fit-content; color: var(--maquete); transition: color 0.3s; }
.footer nav a:hover { color: var(--gesso); }
.footer__logo {
  --d: 1;
  --f: 0;
  width: min(100%, 980px);
  overflow: visible;
  color: var(--maquete);
  fill: currentColor;
  fill-opacity: var(--f);
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--d);
}
.footer__base { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linha); font-size: var(--t-xs); color: var(--concreto); }
.footer__top:hover { color: var(--gesso); }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1100px) {
  .corte__body { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px) 56px; }
  .obra-info { grid-template-columns: minmax(0, 1fr) auto; }
  .obra-info__resultado { grid-column: 1; }
  .obra-info__ctrl { grid-row: 1 / 3; grid-column: 2; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav { gap: 16px; }
  .nav__logo svg { width: 116px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex;
    height: 36px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--linha-forte);
    border-radius: 99px;
    font-size: var(--t-sm);
  }

  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sec-head p { justify-self: start; font-size: var(--t-sm); }

  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 24px; }
  .hero__text { padding-block: 16px 0; }
  .hero__title { font-size: clamp(1.55rem, 7vw, 2.2rem); font-stretch: 112%; }
  .hero__title .line { display: inline; white-space: normal; clip-path: none; }
  .hero__title .line::after { content: " "; }
  .hero__stage { min-height: 0; height: 62vh; height: 62svh; }

  .clientes__row { grid-template-columns: 1fr; gap: 12px; }

  .corte__body { grid-template-columns: minmax(0, 1fr) 50px; grid-template-rows: minmax(0, 1fr) auto; gap: 14px 12px; }
  .corte__stage { grid-column: 1; grid-row: 1; }
  .elevador { grid-column: 2; grid-row: 1; align-self: center; gap: 6px; padding: 10px 5px 12px; }
  .elevador__visor { width: 36px; height: 28px; }
  .elevador button { width: 34px; height: 34px; }
  .corte__info { grid-column: 1 / -1; grid-row: 2; align-self: start; min-height: 168px; }
  .andar ul { display: none; }
  .andar h3 { margin-bottom: 8px; }
  .andar > p:not(.andar__pav) { font-size: var(--t-sm); }
  .leader { display: none; }

  .drum-space { --cw: 74vw; --ch: calc(var(--cw) * 0.8); }
  .drum-stage { perspective: 1100px; }
  .obra-info { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .obra-info__resultado { grid-column: 1 / -1; grid-row: 2; }
  .obra-info__ctrl { grid-row: 1; grid-column: 2; }
  .obra-info__count { display: none; }

  .numeros__rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
  .numeros__rail::-webkit-scrollbar { display: none; }
  .numeros__rail button { flex: none; padding-bottom: 8px; }
  .numeros__rail button b { display: none; }
  .numeros__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
  .numeros__chart { grid-row: 1; padding: 14px; }
  .chart-head { padding-bottom: 10px; }
  .chart-head__title { font-size: var(--t-xs); }
  .numeros__text { grid-row: 2; align-self: start; min-height: 168px; }
  .cap__stat { font-size: 1.9rem; margin-bottom: 6px; }
  .chart { gap: 10px; }
  .hbar { padding-bottom: 22px; }
  .hbar__grid { bottom: 22px; }
  .hbar__rows { grid-auto-rows: minmax(17px, 34px); }
  .vbar { min-height: 130px; height: min(100cqh - 44px, 280px); }
  .cap h3 { margin-bottom: 6px; }
  .cap > p:not(.cap__stat):not(.cap__fonte) { display: none; }
  .cap__fonte { margin-top: 8px; padding-top: 8px; }
  .hbar { --lab: 40%; --val: 46px; }
  .hbar__bar { height: 10px; }
  .hbar__label { font-size: var(--t-xs); }
  .hbar__val { font-size: var(--t-xs); }
  .vbar__bar { width: 18px; }
  .week__cell { aspect-ratio: 1.1; }
  .som-toggle__label { display: none; }
  .som-toggle { height: 36px; padding: 0 11px; margin-left: auto; }
  .som-toggle + .nav__cta + .nav__toggle { margin-left: 0; }

  /* celular: o rosto num quadrado grande em cima, o painel embaixo, tudo dentro da tela travada */
  .thomaz__pin { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 12px; }
  .thomaz .sec-head p { display: none; }
  .thomaz__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
  }
  .thomaz__stage {
    position: relative;
    width: min(100%, 50svh);
    aspect-ratio: 1 / 1;
    justify-self: center;
  }
  .thomaz__canvas { position: absolute; inset: 0; }
  /* a legenda fica por cima da base do quadrado, sobre os ombros, e não come espaço do rosto */
  .thomaz__legenda {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    min-height: 0;
    padding: 34px 16px 14px;
    border-top: 0;
    background: linear-gradient(to top, rgba(11, 11, 10, 0.94) 45%, rgba(11, 11, 10, 0));
    font-size: var(--t-sm);
    pointer-events: none;
  }
  /* durante a conversa, o foco é o Thomaz: o título da seção e os contatos saem de cena */
  .thomaz.is-conversa .sec-head,
  .thomaz.is-conversa .thomaz__direto { display: none; }
  /* antes da conversa: o nome já está na legenda sob o rosto; nada encolhe (o botão chegava a sumir) */
  .thomaz__quem { display: none; }
  .thomaz__intro { gap: 10px; padding: 18px; overflow-y: auto; }
  .thomaz__intro > * { flex-shrink: 0; }
  .thomaz__centro { padding: 16px 18px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__tag { grid-column: 1 / -1; }
}

/* celulares baixos (iPhone SE e parecidos): o título da seção do Thomaz sai para o rosto e as respostas caberem */
@media (max-width: 860px) and (max-height: 720px) {
  .thomaz .sec-head { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 160s; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
