@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/playfair-display.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/dm-sans.woff2) format('woff2');
}

@font-face { font-family: 'Newsreader'; src: url(assets/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(assets/fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --site-scale: 1;
  --page-bg: #110d09;
  --panel-bg: #1a140e;
  --gold: #e6bf8a;
  --cream: #f7eddf;
  --muted: #cdbfae;
  --gold-line: rgba(230,191,138,.3);
  --display: 'Newsreader', Georgia, serif;
  --ivory: #faf7f2;
  --ink: #141310;
  --ink-soft: #3a352f;
  --terracotta: #a4502b;
  --terracotta-dark: #8c4222;
  /* #a85c37 sobre #faf7f2 dá 4,62:1 (mínimo WCAG AA para texto é 4,5:1); a cor original (#b0603a) ficava em 4,29:1 */
  --terracotta-text: #a85c37;
  --line: rgba(176, 96, 58, .24);
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* unidade da composição desktop: 1px em 1440×865; escala junto com a tela e mantém a hero inteira na primeira dobra */
  --u: clamp(.72px, min(100vw / 1440, 100svh / 865), 1.4px);
  /* centraliza a composição quando a tela é mais larga que ela; fotos seguem full-bleed */
  --edge: max(0px, (100% - 1440 * var(--u)) / 2);
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-panel: cubic-bezier(.22, 1, .36, 1);
}

/* Escala visual pedida para o site. O zoom do navegador continua livre. */
@supports (zoom: .9) {
  :root { --site-scale: .9; zoom: var(--site-scale); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], #coberturas-lista { scroll-margin-top: 100px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
h1, h2 { letter-spacing: -.01em; }

/* uma gramática de ícones: traço de 1,5px na tela em qualquer tamanho, do 15px ao 44px */
.icon { display: block; flex: none; width: 24px; height: 24px; stroke-width: 1.5; }
.icon-sprite *, .menu-toggle__line { vector-effect: non-scaling-stroke; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- Elementos base ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(18 * var(--u));
  font: 500 max(calc(12px / var(--site-scale)), calc(12 * var(--u)))/calc(16 * var(--u)) var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-text);
}
.eyebrow::after { content: none; }

/* botão único do sistema: cor sólida, cantos arquitetônicos, ícone do WhatsApp + verbo; sem seta redundante */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  height: max(48px, calc(50 * var(--u)));
  padding-inline: calc(24 * var(--u));
  border-radius: 6px;
  background: var(--terracotta);
  color: #fff8f1;
  font: 500 max(14px, calc(15 * var(--u)))/1 var(--sans);
  white-space: nowrap;
  transition: background-color .25s var(--ease), scale .12s var(--ease);
}
.btn .btn__wa { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.btn:hover { background: var(--terracotta-dark); }
.btn:active { scale: .985; }
.btn--lg { height: max(52px, calc(56 * var(--u))); padding-inline: calc(28 * var(--u)); font-size: max(15px, calc(16 * var(--u))); }
.btn--lg .btn__wa { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  min-height: calc(44px / var(--site-scale));
  padding-block: calc(14 * var(--u));
  font: 500 max(14px, calc(15 * var(--u)))/calc(16 * var(--u)) var(--sans);
  color: var(--terracotta-text);
}
.text-link .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  display: flex;
  align-items: center;
  padding: calc(18 * var(--u)) calc(var(--edge) + 66 * var(--u)) calc(12 * var(--u)) calc(var(--edge) + 93 * var(--u));
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.brand { flex: none; }
.brand img { width: auto; height: calc(97 * var(--u)); transition: height .3s var(--ease); }
.site-header__menu { display: contents; }
.nav { position: absolute; left: 50%; display: flex; gap: calc(40 * var(--u)); margin: 0; transform: translateX(-50%); transition: margin .3s var(--ease); }
.nav a { position: relative; font: 500 max(14px, calc(15 * var(--u)))/calc(24 * var(--u)) var(--sans); transition: color .2s; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: calc(-4 * var(--u));
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
/* indicador único que desliza entre os links (desktop com JS); sem JS vale o sublinhado de cada link */
.nav__indicator {
  position: absolute; left: 0; bottom: calc(-4 * var(--u));
  width: 1px; height: 2px;
  background: var(--terracotta);
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  transform-origin: left;
  pointer-events: none;
}
.nav__indicator.is-ready { transition: transform .4s var(--ease-panel); }
@media (min-width: 1180px) { .js .nav a::after { display: none; } }
.menu-toggle { display: none; }
.site-header.is-scrolled {
  align-items: center;
  padding-top: calc(10 * var(--u));
  padding-bottom: calc(10 * var(--u));
  background: rgba(17, 13, 9, .94);
  color: var(--cream);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-line);
}
.site-header.is-scrolled .brand img { filter: brightness(1.7); }
.site-header.is-scrolled .nav__indicator { background: var(--gold); }
.site-header.is-scrolled .nav a:hover { color: var(--gold); }
.site-header.is-scrolled .brand img { height: calc(52 * var(--u)); }
.site-header.is-scrolled .nav { margin-top: 0; }

/* ---------- Hero ---------- */
.site-header:not(.is-scrolled):not(.is-open) { color: var(--ivory); }
.site-header:not(.is-scrolled):not(.is-open) .nav a { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.site-header:not(.is-scrolled):not(.is-open) .nav a:hover { color: #f0cfb7; }
.site-header:not(.is-scrolled):not(.is-open) .nav__indicator { background: #f0cfb7; }
.hero { position: relative; background: #3a2a1e; color: var(--ivory); }
.hero__stage { position: relative; display: grid; align-items: center; min-height: calc(100vh / var(--site-scale)); min-height: calc(100dvh / var(--site-scale)); overflow: hidden; }
.hero__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(28,20,12,.9), transparent 24%), linear-gradient(90deg, rgba(16,12,8,.62), rgba(16,12,8,.38) 38%, transparent 72%); }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
}
.hero__content { position: relative; z-index: 1; padding: calc(120 * var(--u)) 0 calc(120 * var(--u)) calc(var(--edge) + 94 * var(--u)); }
.hero h1 { display: flex; flex-direction: column; margin-top: calc(35 * var(--u)); font-size: calc(80 * var(--u)); line-height: .91; letter-spacing: -.015em; color: var(--ivory); text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.hero .eyebrow { color: #f0cfb7; }
.hero__lead { max-width: 370px; margin-top: 32px; font-size: 18px; line-height: 1.6; color: #f3ede5; }
/* Todas as mensagens compartilham a mesma célula: o espaço reservado impede saltos no botão. */
.hero__headlines, .hero__leads { display: grid; }
.hero__headline, .hero__description { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.hero__headline.is-current, .hero__description.is-current { visibility: visible; }
.hero__headline .line { display: block; }
.hero__message-controls { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - 1280px) / 2)); bottom: 24px; display: flex; align-items: center; gap: 0; }
.hero__message-controls[hidden] { display: none; }
.hero__message-controls button { display: grid; place-items: center; width: calc(44px / var(--site-scale)); height: calc(44px / var(--site-scale)); padding: 0; border: 0; background: transparent; color: #f0cfb7; cursor: pointer; }
.hero__message-dot::after { content: ''; width: 18px; height: 2px; border-radius: 2px; background: #ffffff50; transition: width .5s var(--ease-panel), background .5s; }
.hero__message-dot.is-current::after { width: 30px; background: #f0cfb7; }
.hero__message-dot:hover::after { background: var(--ivory); }
.hero__message-controls .hero__message-toggle { border: 1px solid #ffffff24; border-radius: 50%; margin-left: 8px; }
.hero__message-toggle:hover { background: #ffffff12; }
.hero__message-toggle .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.hero__play, .hero__message-toggle.is-paused .hero__pause { display: none; }
.hero__message-toggle.is-paused .hero__play { display: block; }
.btn--hero {
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  min-height: 64px;
  height: auto;
  padding: 15px 23px;
  border: 1px solid rgba(255, 227, 205, .3);
  border-radius: 999px;
  background: linear-gradient(160deg, #ad613b, #8e4426);
  color: #fff8ef;
  box-shadow: 0 6px 20px rgba(24, 17, 11, .2), inset 0 1px 0 rgba(255, 235, 210, .22);
  backdrop-filter: blur(12px);
  white-space: normal;
  text-align: left;
  margin-top: calc(28 * var(--u));
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn--hero:hover { background: linear-gradient(160deg, #b76b44, #984d2e); box-shadow: 0 8px 24px rgba(24, 17, 11, .24); transform: translateY(-1px); }
.btn--hero .btn__wa { width: 22px; height: 22px; margin-left: 8px; color: #fff1e3; }
.hero__cta-copy { display: grid; gap: 2px; }
.hero__cta-copy strong { font: 500 16px/1.25 var(--sans); }
.hero__cta-copy small { color: #756e66; font: 500 10px/1.25 var(--sans); }
.hero .eyebrow::after { display: none; }
.hero__explore { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: calc(44px / var(--site-scale)); margin-top: 14px; font-size: 14px; }
.hero__explore .icon { width: 18px; height: 18px; transition: transform .2s; }
.hero__explore:hover .icon { transform: translateX(4px); }
.hero__bottom {
  position: absolute; z-index: 1;
  left: calc(var(--edge) + 75 * var(--u));
  right: calc(var(--edge) + 67 * var(--u));
  bottom: calc(44 * var(--u));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(40 * var(--u));
  color: #fbf6ef;
}
/* vídeo de fundo: entra por cima da foto só quando começa a tocar; a foto continua sendo o primeiro quadro (LCP) */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-video-focus, 50%) 50%; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.hero__video.is-playing { opacity: 1; }

/* ---------- Processo ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 72px max(var(--gutter), calc((100% - 1280px) / 2));
  color: var(--cream);
  background: radial-gradient(90% 60% at 20% 0%, rgba(230,191,138,.06), transparent 60%), var(--panel-bg);
}
.process__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-top: 0; }
.process h2 { margin-top: 20px; color: var(--cream); font: 600 clamp(38px, 3.8vw, 60px)/1.04 var(--display); letter-spacing: -.012em; }
.process .eyebrow { color: var(--gold); font-size: calc(12px / var(--site-scale)); line-height: 1.8; letter-spacing: .42em; }
.process__aside { max-width: 340px; }
.process__text { margin-top: 0; padding-left: 24px; border-left: 1px solid var(--gold-line); font-size: 16px; line-height: 1.65; color: var(--muted); }
.process .text-link { color: var(--gold); }
.process .text-link { margin-top: 12px; }
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid #e6bf8a26; border-radius: 16px; overflow: hidden; background: #211a13; transition: border-color .5s, box-shadow .5s, transform .7s var(--ease-panel); }
.step__media { height: auto; aspect-ratio: 6 / 5; overflow: hidden; background: #d9c7b5; }
.step__media picture { display: block; height: 100%; }
.step__media img { width: 100%; height: 100%; object-fit: cover; transform: none; transition: transform 1.2s var(--ease-panel); }
/* assunto no terço inferior da foto: mantém no quadro quando o painel alarga */
.step__media--bottom img { object-position: 50% 88%; }
.step__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 18px 20px 16px; border-left: 0; }
.step__body::before { content: none; }
.step::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--card-x, 50%) var(--card-y, 0%), #e6bf8a19, transparent 60%); transition: opacity .6s; }
/* As informações permanecem visíveis; o hover só reenquadra a fotografia. */
@media (hover: hover) and (pointer: fine) {
  .step:hover .step__media img, .step:focus-within .step__media img { transform: scale(1.04); }
  .step:hover, .step:focus-within { border-color: var(--gold); box-shadow: 0 30px 60px -30px #000b; }
}
.step h3 { color: var(--cream); font: 500 25px/1.15 var(--display); }
.step p { margin: 8px 0 16px; font-size: calc(14px / var(--site-scale)); line-height: 1.55; color: var(--muted); }
.step__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.step__footer > span { color: #b8aa97; font-size: calc(12px / var(--site-scale)); line-height: 1.5; }
.step__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(44px / var(--site-scale)); height: calc(44px / var(--site-scale));
  border: 1px solid #e6bf8a40;
  border-radius: 50%;
  background: #ffffff04;
  color: var(--gold);
  transition: background .3s, border-color .3s, scale .2s;
}
.step__cta .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.step__cta:hover, .step__cta:focus-visible { background: #e6bf8a18; border-color: var(--gold); }
.step__cta:hover .icon, .step__cta:focus-visible .icon { transform: translateX(3px); }

/* ---------- Fotografia de obra integrada ao fundo, como na referência Novato ---------- */
.materials { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; min-height: clamp(500px, 46vw, 760px); overflow: hidden; background: var(--page-bg); color: var(--cream); }
.materials__media { position: absolute; inset: 0 36% 0 0; display: block; overflow: hidden; }
.materials__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, var(--page-bg) 100%), linear-gradient(0deg, #110d0960, transparent 40%); }
.materials__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.materials__content { position: relative; grid-column: 2; padding: 64px max(var(--gutter), calc((100vw - 1280px) / 2)) 64px 0; }
.materials .eyebrow { color: var(--gold); font-size: calc(12px / var(--site-scale)); letter-spacing: .38em; line-height: 1.8; }
.materials h2 { margin-top: 24px; color: var(--cream); font: 600 clamp(38px, 3.7vw, 60px)/1.04 var(--display); letter-spacing: -.012em; }
.materials h2 em { color: var(--gold); font-style: normal; }
.materials__text { max-width: 440px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--gold); font-size: 16px; line-height: 1.65; color: var(--muted); }
.materials__content .text-link { margin-top: 16px; color: var(--gold); }
.materials__caption { position: absolute; bottom: 26px; left: max(var(--gutter), calc((100% - 1280px) / 2)); color: var(--cream); font-size: calc(12px / var(--site-scale)); letter-spacing: .16em; text-transform: uppercase; }
.materials__caption span { display: block; margin-top: 5px; color: var(--muted); font-size: calc(12px / var(--site-scale)); letter-spacing: .04em; text-transform: none; }

/* ---------- Projetos: portfólio com legendas ---------- */
.projects { padding: 100px max(var(--gutter), calc((100% - 1280px) / 2)); background: var(--panel-bg); color: var(--cream); }
.projects__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.projects .eyebrow { color: var(--gold); font-size: calc(12px / var(--site-scale)); line-height: 1.8; letter-spacing: .42em; }
.projects h2 { margin-top: 20px; font: 600 clamp(38px, 4.2vw, 66px)/1.04 var(--display); color: var(--cream); }
.projects__aside { max-width: 340px; }
.projects__text { font-size: 16px; line-height: 1.7; color: #d3c6b9; }
.projects__hint { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: calc(12px / var(--site-scale)); color: #e0ad8b; }
.projects__hint span { font-size: 22px; }
.projects__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.work { min-width: 0; }
.work__open { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 1px solid var(--gold-line); border-radius: 6px; overflow: hidden; background: #2a2119; color: var(--ivory); cursor: zoom-in; }
.work picture { display: block; height: 100%; }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 14px; border: 1px solid #ffffff80; border-radius: 999px; background: #faf7f2ed; color: #33271e; box-shadow: 0 3px 12px #0002; backdrop-filter: blur(8px); font: 500 calc(12px / var(--site-scale))/1 var(--sans); transition: background .2s, transform .2s; }
.work__zoom .icon { width: 17px; height: 17px; stroke-width: 1.6; }
.work__open:hover .work__zoom, .work__open:focus-visible .work__zoom { background: #fff; transform: translateY(-2px); }
.work__caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid #ffffff24; margin-top: 14px; }
.work__caption h3 { color: var(--cream); font: 500 24px/1.2 var(--display); }
.work__caption p { margin-top: 6px; color: #c9b9aa; font-size: calc(12px / var(--site-scale)); line-height: 1.5; }
.work__caption > span { color: #e0ad8b; font-size: calc(12px / var(--site-scale)); letter-spacing: .08em; }
.work--a { grid-column: 1 / 7; grid-row: 1 / 3; }
.work--a .work__open { height: 650px; }
.work--b { grid-column: 7 / 13; grid-row: 1; }
.work--c { grid-column: 7 / 13; grid-row: 2; }
.work--b .work__open, .work--c .work__open { height: 265px; }
.work--b img { object-position: 50% 30%; }
.work--c img { object-position: 50% 40%; }
.work--d { grid-column: 1 / 7; grid-row: 3; }
.work--e { grid-column: 7 / 10; grid-row: 3; }
.work--f { grid-column: 10 / 13; grid-row: 3; }
.work--d .work__open, .work--e .work__open, .work--f .work__open { height: 330px; }
.work--d img { object-position: 50% 55%; }

/* ---------- Fechamento compacto: marca, contato e ação ---------- */
.contact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(32px, 4vw, 64px); padding: 56px max(var(--gutter), calc((100% - 1280px) / 2)); background: var(--page-bg); color: var(--cream); border-top: 1px solid var(--gold-line); }
.contact__brand { display: flex; align-items: center; gap: 16px; width: fit-content; }
.contact__brand img { height: 90px; width: auto; filter: brightness(1.8); }
.contact__brand > span { color: var(--cream); font: 500 32px/1.1 var(--display); }
.contact__brand small { display: block; margin-top: 8px; color: var(--muted); font: 400 calc(12px / var(--site-scale))/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.contact__info { min-width: 0; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--gold-line); }
.contact .eyebrow { margin: 0; color: var(--gold); font: 400 calc(12px / var(--site-scale))/1.8 var(--sans); letter-spacing: .42em; }
.contact__phone { display: inline-flex; align-items: center; gap: 14px; width: fit-content; min-height: calc(48px / var(--site-scale)); padding-block: 10px; margin-top: 10px; color: var(--cream); font-size: 18px; transition: color .3s; }
.contact__phone .icon { width: 28px; height: 28px; color: var(--gold); }
.contact__phone:hover { color: var(--gold); }
.contact__info p { margin-top: 8px; color: var(--muted); font-size: calc(14px / var(--site-scale)); line-height: 1.65; }
.btn--contact { margin: 0; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px max(var(--gutter), calc((100% - 1280px) / 2)); background: var(--page-bg); color: var(--muted); border-top: 1px solid var(--gold-line); font: 400 calc(12px / var(--site-scale))/1.7 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.site-footer__name { color: var(--gold); font-size: calc(12px / var(--site-scale)); letter-spacing: .26em; }
.site-footer__services { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.site-footer__services li + li::before { content: '·'; margin: 0 16px; color: var(--gold); }

/* Vidro escuro e reflexo quente da referência, com a identidade da JBT. */
.btn--glass { position: relative; isolation: isolate; overflow: hidden; gap: 12px; min-height: 58px; padding: 16px 28px; border: 1px solid #e6bf8a80; border-radius: 999px; background: linear-gradient(180deg, #342618a8, #140e09b3); color: #f6e3c2; box-shadow: inset 0 1px 0 #fff0d624, 0 10px 30px -14px #000b; backdrop-filter: blur(14px); transition: transform .6s var(--ease-panel), border-color .5s, box-shadow .5s, background .5s; }
.btn--glass::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(180px circle at var(--button-x, 50%) var(--button-y, 50%), #ffecc942, transparent 62%); transition: opacity .5s; }
.btn--glass .btn__wa { margin: 0; width: 22px; height: 22px; color: var(--gold); }
.btn--glass:hover { background: linear-gradient(180deg, #40301fbd, #20160bbf); border-color: #f0d09ef0; box-shadow: inset 0 1px 0 #fff0d640, 0 18px 40px -16px #000c; }
.btn--glass:hover::before { opacity: 1; }
.btn--glass:focus-visible { outline-color: var(--gold); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .step:hover { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px); }
  .step:hover::after { opacity: 1; }
  .btn--glass:hover { transform: translateY(-2px) scale(1.025); }
}

/* ---------- Ampliação das fotografias ---------- */
.gallery-dialog { position: fixed; inset: 0; width: min(1100px, calc(100% - 48px)); max-width: none; height: min(880px, calc(100dvh / var(--site-scale) - 48px)); max-height: none; padding: 24px; border: 1px solid #7c6654; background: #1c1611; color: var(--ivory); }
.gallery-dialog[open] { display: flex; flex-direction: column; }
.gallery-dialog::backdrop { background: #100d0bea; }
.gallery-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: calc(12px / var(--site-scale)); letter-spacing: .12em; text-transform: uppercase; }
.gallery-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: calc(48px / var(--site-scale)); min-height: calc(48px / var(--site-scale)); padding: 8px 12px; border: 1px solid #ffffff40; background: transparent; color: var(--ivory); font: 400 14px/1 var(--sans); cursor: pointer; }
.gallery-dialog button:hover { background: #ffffff14; }
.gallery-dialog__close span { font-size: 26px; }
.gallery-dialog__image { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.gallery-dialog__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-dialog__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; text-align: center; }
.gallery-dialog__caption { font: 400 23px/1.3 var(--serif); }
.gallery-dialog__counter { margin-top: 6px; font-size: calc(12px / var(--site-scale)); color: #e0ad8b; }
.gallery-dialog__prev .icon { transform: rotate(180deg); }

/* ---------- Tablet e mobile: layout próprio em px ---------- */
@media (max-width: 1179px) {
  :root { --u: 1px; }
  .br-lg { display: none; }

  .site-header, .site-header.is-scrolled { align-items: center; padding: 12px var(--gutter); }
  .brand img, .site-header.is-scrolled .brand img { height: 60px; }
  .menu-toggle {
    display: grid; place-items: center;
    width: calc(48px / var(--site-scale)); height: calc(48px / var(--site-scale));
    margin-left: auto;
    border: 0; border-radius: 6px;
    background: #ffffff14;
    color: var(--cream);
    cursor: pointer;
  }
  /* duas linhas que viram X: o mesmo controle muda de estado, sem trocar de ícone */
  .menu-toggle .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; }
  .menu-toggle__line { transform-box: fill-box; transform-origin: center; transition: transform .22s var(--ease); }
  .site-header.is-open .menu-toggle__line:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header.is-open .menu-toggle__line:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header__menu {
    position: fixed; inset: 0; z-index: -1;
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 120px var(--gutter) 40px;
    background: var(--page-bg);
    color: var(--cream);
    overflow-y: auto;
  }
  .site-header.is-open { background: var(--page-bg); color: var(--cream); backdrop-filter: none; }
  .site-header.is-open .brand img { filter: brightness(1.7); }
  .site-header.is-open .site-header__menu { visibility: visible; opacity: 1; }
  .nav, .site-header.is-scrolled .nav { position: relative; left: auto; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; transform: none; }
  .nav__indicator { display: none; }
  .nav a { padding: 6px 0; font: 400 34px/1.25 var(--serif); }
  .nav a::after { bottom: 4px; height: 1px; }

  .hero__media img { object-position: 18% 50%; }
  .hero__content { padding: 128px var(--gutter); }
  .hero h1 { font-size: clamp(50px, 6.5vw, 72px); }
  /* mesma entrega do desktop: nota e benefícios sobre a foto, nota numa linha acima */

  .process { grid-template-columns: 1fr; row-gap: 56px; padding: 72px var(--gutter); }
  .process__intro { padding-top: 0; }
  .process h2 { font-size: clamp(40px, 5.5vw, 56px); }
  .process__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .step__media { height: auto; aspect-ratio: 6 / 5; }
  .step p { width: auto; }
  .step__body { min-height: 0; padding: 18px 20px 16px; }

  .projects { padding: 72px var(--gutter); }
  .contact { grid-template-columns: 1fr auto; gap: 28px; padding: 48px var(--gutter); }
  .contact__brand { grid-column: 1 / -1; }
  .contact__info { border-left: 0; padding-left: 0; }
  .materials__content { padding: 56px var(--gutter) 56px 0; }

  .site-footer { grid-template-columns: auto 1fr; gap: 20px; padding: 28px var(--gutter); }
  .site-footer__copy { justify-self: end; }
  .site-footer__services { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 767px) {
  /* eyebrows cabem numa linha até 320px */
  .eyebrow { gap: 12px; }
  .btn--lg { height: 54px; font-size: 16px; }
  .eyebrow::after { width: 32px; }
  /* Foto e vídeo sem véu branco; contraste escuro para a tipografia clara. */
  .site-header:not(.is-scrolled):not(.is-open) .menu-toggle { background: rgba(28,20,12,.45); color: var(--ivory); }
  /* A altura acompanha a tela; o conteúdo pode crescer em telas baixas sem ser cortado. */
  .hero__stage::after { background: linear-gradient(0deg, rgba(28,20,12,.92), transparent 25%), linear-gradient(180deg, rgba(16,12,8,.5), rgba(16,12,8,.42) 60%, rgba(16,12,8,.12)); }
  .hero__media { overflow: hidden; }
  .hero__media img { object-position: 62% 50%; }
  /* padding inferior reserva o lugar dos benefícios (posicionados no rodapé do hero): sem sobreposição e sem altura forçada */
  .hero__content { padding: 112px var(--gutter); }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); line-height: .94; }
  .hero__lead { max-width: 330px; margin-top: 24px; font-size: 16px; line-height: 26px; }
  .btn--hero { width: fit-content; max-width: 100%; min-height: 60px; margin-top: 28px; }

  .process { row-gap: 40px; padding-block: 64px; }
  .process .text-link { margin-top: 24px; }
  /* trilho horizontal com snap: o próximo card aparece na borda e sugere o gesto;
     snap-stop faz cada gesto avançar um card, sem arremessar a lista */
  .process__steps {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .process__steps::-webkit-scrollbar { display: none; }
  .gallery-dialog { width: calc(100% - 20px); height: calc(100dvh / var(--site-scale) - 20px); padding: 16px; }
  .gallery-dialog__caption { font-size: 20px; }
  .step { flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: always; }
  .step h3 { font-size: 25px; }
  .process__text { border-left: 0; padding-left: 0; }
  /* progresso do trilho: fio terracota que acompanha o próprio gesto; sem suporte, o trilho segue sem o fio */
  @supports (animation-timeline: scroll()) {
    .process { timeline-scope: --rail; }
    .process__steps { scroll-timeline: --rail x; }
    .process::after {
      content: "";
      height: 2px;
      margin-top: -16px;
      background: linear-gradient(var(--terracotta), var(--terracotta)) 0 0 / 25% 100% no-repeat, var(--line);
      animation: rail-progress linear both;
      animation-timeline: --rail;
    }
  }


  .process__intro, .projects__intro { flex-direction: column; align-items: flex-start; gap: 24px; }
  .process__aside, .projects__aside { max-width: 440px; }
  .materials { grid-template-columns: 1fr; min-height: 0; }
  .materials__media { position: relative; inset: auto; min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .materials__media::after { background: linear-gradient(0deg, var(--page-bg), transparent 55%); }
  .materials__media img { height: 100%; object-position: 50% 48%; }
  .materials__content { grid-column: 1; padding: 8px var(--gutter) 56px; margin-top: -40px; }
  .materials__caption { top: 24px; bottom: auto; left: var(--gutter); }
  .projects { padding-block: 64px; }
  .projects__intro { margin-bottom: 32px; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .work--a { grid-column: 1 / -1; grid-row: auto; }
  .work--b, .work--c, .work--e, .work--f { grid-column: auto; grid-row: auto; }
  .work--d { grid-column: 1 / -1; grid-row: auto; }
  .work--a .work__open { height: auto; aspect-ratio: 4 / 3; }
  .work--b .work__open, .work--c .work__open, .work--e .work__open, .work--f .work__open { height: auto; aspect-ratio: 3 / 4; }
  .work--d .work__open { height: auto; aspect-ratio: 4 / 3; }
  .work__caption h3 { font-size: 19px; }
  .contact { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .contact__brand { grid-column: auto; }
  .contact__brand img { height: 76px; }
  .contact .btn--glass { width: 100%; max-width: none; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .site-footer__copy { justify-self: center; }
  .site-footer__services { grid-column: auto; grid-row: auto; }
  .site-footer__services li + li::before { margin: 0 8px; }
}

@keyframes rail-progress { to { background-size: 100% 100%; } }

/* ---------- Motion ---------- */
/* Uma técnica de revelação por capítulo:
   Hero = escala + máscara tipográfica · Coberturas = cortes horizontais e fotos subindo · Materiais = reenquadramento */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: arquitetura (0–900ms) → contexto (180–600ms) → declaração (260–1080ms) → argumento (500–1100ms) */
  .hero__media img { animation: hero-zoom .9s var(--ease) both; }
  .hero .eyebrow { animation: fade .42s var(--ease) .18s both; }
  .hero .eyebrow::after { transform-origin: left; animation: draw .6s var(--ease-panel) .28s both; }
  /* cada linha sobe dentro da própria máscara; o respiro vertical protege acentos e descendentes */
  .hero h1 .line { overflow: hidden; padding-block: .08em .16em; margin-block: -.08em -.16em; }
  .hero h1 .line > span { display: block; animation: line-up .7s var(--ease-panel) .26s both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .32s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .38s; }
  .hero__lead, .btn--hero { animation: rise .6s var(--ease) .5s both; }

  /* fotos das coberturas sobem de baixo para cima, como a estrutura */
  .js .step__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
  .js .step.is-visible .step__media { clip-path: inset(0); }
  .step:nth-child(2) .step__media { transition-delay: 70ms; }
  .step:nth-child(3) .step__media { transition-delay: 140ms; }
  .step:nth-child(4) .step__media { transition-delay: 210ms; }

  /* intro das coberturas abre na horizontal; a folga negativa preserva o contorno de foco */
  .js .process__intro > * { clip-path: inset(-16px 100% -16px -16px); transition: clip-path .9s var(--ease); }
  .js .process__intro.is-visible > * { clip-path: inset(-16px); }
  .process__intro > :nth-child(2) { transition-delay: 80ms; }
  .process__intro > :nth-child(3) { transition-delay: 160ms; }
  .process__intro > :nth-child(4) { transition-delay: 220ms; }

  /* A foto acompanha o capítulo com uma aproximação lenta, pausada fora da tela. */
  .js .materials__media img { animation: material-drift 26s ease-in-out infinite alternate; animation-play-state: paused; }
  .js .materials.is-in-view .materials__media img { animation-play-state: running; }
  .js .materials__content > * { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .9s var(--ease-panel); }
  .js .materials.is-visible .materials__content > * { opacity: 1; translate: 0; }
  .materials__content h2 { transition-delay: .08s; }
  .materials__content .materials__text { transition-delay: .16s; }
  .materials__content .text-link { transition-delay: .24s; }
  .js .contact__brand, .js .contact__info, .js .btn--contact { opacity: 0; translate: 0 12px; transition: opacity .7s var(--ease), translate .8s var(--ease-panel), transform .6s var(--ease-panel), border-color .5s, box-shadow .5s, background .5s; }
  .js .contact .is-visible { opacity: 1; translate: 0; }
  .contact__info { transition-delay: .08s; }
  .btn--contact { transition-delay: .16s; }

  /* projetos: travelling lateral — cada foto desliza dentro da própria moldura até o enquadramento final.
     Nada começa invisível: a foto já está lá, só muda o enquadramento */
  .js .work img { transform: translate3d(var(--pan, -4%), 0, 0) scale(1.08); transition: transform 1s var(--ease-panel); }
  .js .work:nth-child(even) img { --pan: 4%; }
  .js .work.is-visible img { transform: none; }
  .work--b img, .work--e img { transition-delay: 80ms; }
  .work--c img, .work--f img { transition-delay: 160ms; }
}
/* mobile: mesma hierarquia, montagem mais curta (hero completa em ~820ms) e revelações sem cascata */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .hero__media img { animation-duration: .65s; }
  .hero .eyebrow { animation-duration: .3s; animation-delay: .08s; }
  .hero .eyebrow::after { animation-duration: .4s; animation-delay: .12s; }
  /* título sem máscara no mobile: a foto de fundo cobre o viewport inteiro e por isso o Chrome já a
     descarta como candidata a LCP (heurística de "fullscreen background"); o título precisa existir
     pronto no primeiro paint para assumir esse papel, em vez de ficar preso atrás da revelação */
  .hero h1 .line { overflow: visible; padding-block: 0; margin-block: 0; }
  .hero h1 .line > span { animation: none; transform: none; }
  .hero__lead, .btn--hero { animation-duration: .42s; animation-delay: .38s; }
  .js .step__media { transition-duration: .7s; }
  .js .step .step__media, .js .work img { transition-delay: 0s; }
  .js .process__intro > * { transition-duration: .6s; }
  .js .materials__media img { transition-duration: .65s; }
  .js .work img { transition-duration: .6s; }
}
/* passagem Hero → Coberturas: a foto recua (90% da rolagem, leve aproximação) e a seção seguinte assume a tela */
@media (prefers-reduced-motion: no-preference) and (min-width: 1180px) {
  .hero__media, .hero__video { transform: translate3d(0, calc(var(--hero-p, 0) * 10%), 0) scale(calc(1 + var(--hero-p, 0) * .05)); will-change: transform; }
}
/* menu mobile: extensão do header; abre em 340ms com os links em cascata, fecha em 240ms */
@media (prefers-reduced-motion: no-preference) and (max-width: 1179px) {
  .site-header__menu { transform: translateY(-8px); transition: opacity .24s var(--ease), transform .24s var(--ease), visibility 0s .24s; }
  .site-header.is-open .site-header__menu { transform: none; transition: opacity .34s var(--ease-panel), transform .34s var(--ease-panel), visibility 0s; }
  .site-header__menu .nav a { opacity: 0; transform: translateY(-6px); transition: opacity .24s var(--ease), transform .24s var(--ease), color .2s, background-color .25s var(--ease); }
  .site-header.is-open .site-header__menu .nav a { opacity: 1; transform: none; transition: opacity .34s var(--ease-panel) .06s, transform .34s var(--ease-panel) .06s, color .2s, background-color .25s var(--ease); }
  .site-header.is-open .site-header__menu .nav a:nth-of-type(2) { transition-delay: .1s, .1s, 0s, 0s; }
  .site-header.is-open .site-header__menu .nav a:nth-of-type(3) { transition-delay: .14s, .14s, 0s, 0s; }
  .site-header.is-open .site-header__menu .nav a:nth-of-type(4) { transition-delay: .18s, .18s, 0s, 0s; }
  .site-header.is-open .site-header__menu .nav a:nth-of-type(5) { transition-delay: .22s, .22s, 0s, 0s; }
}
/* toque: resposta imediata ao pressionar controles reais; nada fica "grudado" como hover */
@media (hover: none) {
  .step__cta:active, .text-link:active, .site-footer__social:active { scale: .96; }
}
@keyframes hero-zoom { from { transform: scale(1.025); } }
@keyframes material-drift { from { transform: scale(1.025); } to { transform: scale(1.08) translateX(-.5%); } }
/* Troca editorial: a linha sai por cima da própria máscara e a próxima entra por baixo. */
@media (prefers-reduced-motion: no-preference) {
  .hero.has-copy-rotation .hero__headline .line { overflow: hidden; padding-block: .08em .16em; margin-block: -.08em -.16em; }
  .hero .hero__headline.is-entering .line > span { animation: hero-copy-in .85s var(--ease-panel) both; }
  .hero .hero__headline.is-entering .line:nth-child(2) > span { animation-delay: .07s; }
  .hero .hero__headline.is-entering .line:nth-child(3) > span { animation-delay: .14s; }
  .hero .hero__headline.is-leaving .line > span { animation: hero-copy-out .42s var(--ease) both; }
  .hero .hero__headline.is-leaving .line:nth-child(2) > span { animation-delay: .06s; }
  .hero .hero__headline.is-leaving .line:nth-child(3) > span { animation-delay: .12s; }
  .hero__description.is-entering { animation: rise .8s var(--ease-panel) .2s both; }
  .hero__description.is-leaving { animation: hero-description-out .35s var(--ease) both; }
}
@keyframes hero-copy-in { from { transform: translateY(115%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hero-copy-out { from { transform: none; opacity: 1; } to { transform: translateY(-115%); opacity: 0; } }
@keyframes hero-description-out { to { transform: translateY(-8px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes line-up { from { transform: translateY(115%); } }

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