/* =========================================================
   Matéria — v5
   Superfícies minerais · luz · casa inteligente
   Base 8. Archivo variável. Mono só em dados e etiquetas.
   ========================================================= */

@font-face {
  font-family: Archivo;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("../fonts/mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f2f0ea;
  --paper-2: #e7e4db;
  --ink: #14140f;
  --ink-2: #34342c;
  --mid: #5b5b50;
  --hair: rgba(20, 20, 15, .14);
  --hair-2: rgba(20, 20, 15, .32);
  --dark: #14140f;
  --accent: #8f3a22;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: 64px; --s7: 96px; --s8: 128px;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1560px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --mono: Mono, ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow, .section-n, .note, .row-n, .row-m, .cap, .st-n,
.end-list span, .foot, figcaption, .pills li {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow { color: var(--mid); }
.section-n { color: var(--accent); letter-spacing: .14em; }
.section-n.light { color: #d99a80; }
.note { color: var(--mid); text-transform: none; letter-spacing: .01em; font-size: 14px; line-height: 1.6; }

.h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.034em;
  font-variation-settings: "wght" 560;
  text-wrap: balance;
}
.h2.light { color: var(--paper); }
.h2 em { font-variation-settings: "wght" 380; }

/* ---------- barra ---------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.bar-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  height: 72px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s4);
}
.mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; letter-spacing: .24em; text-transform: uppercase;
  font-variation-settings: "wght" 620;
}
.nav { display: flex; gap: clamp(12px, 2.2vw, 32px); }
.nav a {
  font-size: 14px; color: var(--ink-2);
  min-height: 44px; display: inline-flex; align-items: center;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.bar-cta {
  font-size: 14px; color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center; gap: 7px;
  position: relative; font-variation-settings: "wght" 520;
}
.bar-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 11px;
  height: 1px; background: var(--ink);
  transition: transform .4s var(--ease); transform-origin: left;
}
.bar-cta:hover::after { transform: scaleX(0); transform-origin: right; }
.bar-cta span { transition: transform .35s var(--ease); }
.bar-cta:hover span { transform: translateX(3px); }

/* ---------- herói ---------- */

.hero { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vh, 76px) var(--gut) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  column-gap: clamp(24px, 5vw, 80px);
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(8px, 2vh, 20px) 0 clamp(20px, 3vh, 36px); }
.hero h1 {
  font-size: clamp(2.6rem, 6.1vw, 5.9rem);
  line-height: .94;
  letter-spacing: -.046em;
  font-variation-settings: "wght" 520;
  margin: clamp(24px, 5vh, 56px) 0 clamp(20px, 4vh, 40px);
  max-width: 14ch;
}
.hero h1 em { font-variation-settings: "wght" 330; letter-spacing: -.03em; }
.lede {
  font-size: clamp(17px, 1.15vw, 19px); line-height: 1.55;
  color: var(--ink-2); max-width: 40ch; margin-bottom: var(--s4);
}
.hero-act { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 15px 24px; font-size: 15px; min-height: 48px;
  transition: background .3s var(--ease);
}
.act span { transition: transform .35s var(--ease); }
.act:hover { background: var(--accent); }
.act:hover span { transform: translateX(4px); }
.act-quiet {
  font-size: 15px; color: var(--ink-2); min-height: 44px;
  display: inline-flex; align-items: center; position: relative;
}
.act-quiet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px;
  height: 1px; background: currentColor; opacity: .4; transition: opacity .25s;
}
.act-quiet:hover { color: var(--ink); }
.act-quiet:hover::after { opacity: 1; }

.hero-media { margin: 0; }
.hero-media img {
  width: 100%; height: 100%; min-height: 420px; max-height: 780px;
  object-fit: cover; object-position: 50% 45%;
}
.hero-media figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--mid); text-transform: none; letter-spacing: .02em; font-size: 12px;
  padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--hair);
}

.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--hair);
  margin-top: clamp(32px, 5vh, 56px);
  padding: var(--s3) 0 var(--s4);
}
.pills li {
  border: 1px solid var(--hair-2);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: .09em;
  font-size: 11px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pills li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- princípio ---------- */

.claim { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vh, 148px) var(--gut) clamp(56px, 8vh, 96px); }
.claim-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px); margin-top: var(--s5); align-items: start;
}
.claim-h {
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  line-height: 1.24; letter-spacing: -.022em;
  font-variation-settings: "wght" 430;
  text-wrap: pretty; max-width: 32ch;
}
.claim-side p { color: var(--ink-2); max-width: 44ch; margin-bottom: var(--s3); }
.claim-side p:last-child { margin-bottom: 0; color: var(--mid); }

/* ---------- serviços ---------- */

.services { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(72px, 11vh, 132px); }
.head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  gap: var(--s4); align-items: end;
  border-top: 1px solid var(--hair); padding-top: var(--s3);
  margin-bottom: var(--s5);
}
.head .note { justify-self: end; max-width: 34ch; text-align: right; padding-bottom: 6px; }

.rows { border-top: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.35fr) 200px;
  gap: var(--s4); align-items: start;
  padding: var(--s4) 0; border-bottom: 1px solid var(--hair);
  transition: background .35s var(--ease);
}
.row:hover { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
.row-n { color: var(--accent); padding-top: 8px; }
.row h3 {
  font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15;
  letter-spacing: -.024em; font-variation-settings: "wght" 520;
  text-wrap: balance;
}
.row p { color: var(--ink-2); font-size: 16px; max-width: 44ch; padding-top: 2px; }
.row-m { color: var(--mid); text-align: right; padding-top: 8px; letter-spacing: .08em; }

/* ---------- trabalhos ---------- */

.works { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(72px, 11vh, 132px); }
.grid {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  align-items: start;
}
.tile { grid-column: span 2; }
.tile.wide { grid-column: span 3; }
.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.94) contrast(1.04);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.tile.wide img { aspect-ratio: 3 / 2; }
.tile:hover img { filter: saturate(1) contrast(1.02); }
.cap {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--hair);
  padding-top: 9px; margin-top: 10px;
  color: var(--ink);
}
.cap span:last-child { color: var(--mid); text-transform: none; letter-spacing: .02em; font-size: 11.5px; }

/* ---------- luz (escuro) ---------- */

.light-sec {
  background: var(--dark);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: stretch;
}
.light-media { position: relative; overflow: hidden; min-height: 420px; }
.light-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); }
.light-copy {
  padding: clamp(56px, 8vh, 104px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.light-copy p:not(.section-n) { color: #bdbcb2; max-width: 42ch; margin-top: var(--s4); }
.light-list { margin-top: var(--s5); border-top: 1px solid rgba(242, 240, 234, .2); }
.light-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s2);
  padding: 14px 0; border-bottom: 1px solid rgba(242, 240, 234, .14);
  color: #e6e4dc; font-size: 15.5px;
}
.light-list span { font-family: var(--mono); font-size: 11px; color: #9a998f; letter-spacing: .1em; padding-top: 4px; }

/* ---------- casa ---------- */

.house { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vh, 132px) var(--gut); }
.cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--ink); padding-top: var(--s4);
}
.cols h3 { font-size: 20px; letter-spacing: -.015em; font-variation-settings: "wght" 540; margin-bottom: 12px; }
.cols p { color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }

/* ---------- configurador CTA ---------- */

.config-cta { background: var(--paper-2); padding: clamp(56px, 9vh, 112px) var(--gut); }
.config-in {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 6vw, 96px); align-items: end;
}
.config-side p { color: var(--ink-2); max-width: 42ch; margin-bottom: var(--s4); }

/* ---------- processo ---------- */

.steps-sec { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vh, 132px) var(--gut); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.steps li { position: relative; padding-top: var(--s4); }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px; background: var(--paper);
  border: 1px solid var(--ink); border-radius: 50%;
}
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.st-n { display: block; color: var(--mid); margin-bottom: var(--s3); letter-spacing: .14em; }
.steps h3 { font-size: 19px; letter-spacing: -.015em; font-variation-settings: "wght" 540; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- contacto ---------- */

.end { background: var(--dark); color: var(--paper); padding: clamp(72px, 11vh, 132px) var(--gut) clamp(48px, 7vh, 88px); }
.end-grid, .end-list, .foot { max-width: var(--max); margin: 0 auto; }
.end-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 6vw, 96px); align-items: end;
  padding-bottom: clamp(40px, 6vh, 72px);
  border-bottom: 1px solid rgba(242, 240, 234, .18);
}
.end-h {
  font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .9;
  letter-spacing: -.05em; font-variation-settings: "wght" 500;
}
.end-side { padding-bottom: 6px; }
.end-lede { color: #bdbcb2; max-width: 40ch; font-size: 16.5px; }
.end-act { margin-top: var(--s4); }
.act-inv { background: var(--paper); color: var(--ink); }
.act-inv:hover { background: var(--accent); color: var(--paper); }
.end-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4); padding-top: var(--s5);
}
.end-list li { display: grid; gap: 8px; align-content: start; }
.end-list span { color: #94938a; letter-spacing: .13em; }
.end-list a, .end-list p {
  font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.01em;
  border-bottom: 1px solid rgba(242, 240, 234, .26);
  padding-bottom: 6px; justify-self: start;
}
.end-list a { min-height: 44px; display: inline-flex; align-items: center; padding-top: 4px; }
.end-list a:hover { border-color: var(--paper); }

/* ---------- rodapé ---------- */

.foot {
  background: var(--dark); color: #94938a;
  border-top: 1px solid rgba(242, 240, 234, .14);
  padding: var(--s4) var(--gut) var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; font-size: 10.5px; letter-spacing: .12em;
}
.foot a { border-bottom: 1px solid rgba(242, 240, 234, .3); display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--paper); }

/* ---------- revelação ---------- */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { max-height: 560px; min-height: 0; aspect-ratio: 4 / 3; }
  .hero h1 { max-width: 16ch; }
  .claim-grid, .config-in { grid-template-columns: 1fr; gap: var(--s4); }
  .claim-h { max-width: 36ch; }
  .light-sec { grid-template-columns: 1fr; }
  .light-media { min-height: 340px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .end-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.wide img { aspect-ratio: 4 / 5; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .bar-in { grid-template-columns: 1fr auto; height: 64px; }
  .row { grid-template-columns: 40px 1fr; gap: var(--s2) var(--s3); }
  .row p { grid-column: 2; }
  .row-m { grid-column: 2; text-align: left; padding-top: 0; }
  .head { grid-template-columns: 1fr; }
  .head .note { justify-self: start; text-align: left; }
  .cols { grid-template-columns: 1fr; gap: var(--s4); }
  .end-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem); max-width: 100%; }
  .hero h1 br { display: none; }
  .hero-act { gap: var(--s3); }
  .hero-media figcaption { margin-top: 8px; }
  .pills li { font-size: 10px; padding: 7px 12px; }
  .grid { gap: 10px; }
  .cap { display: grid; gap: 3px; font-size: 10px; }
  .cap span:last-child { font-size: 10px; }
  .foot { justify-content: flex-start; }
}
