/* ==========================================================================
   E.M. de Sousa — Pinturas e acabamentos
   Base + desktop. Ajustes de telas ≤850px vivem em mobile.css
   (carregado com media="(max-width:850px)").
   ========================================================================== */

:root {
  --paper: #f6f5f0;
  --paper-2: #eae8e1;
  --stone: #e5e2da;
  --ink: #28292c;
  --dark: #20211f;
  --muted: #626268;
  --rust: #984c36;
  --rust-deep: #7e3e2c;
  --rust-soft: #dba287;
  --rule: #d6d4ca;
  --rule-dark: #4a4a44;
  --paper-on-dark: #d8d4ca;
  --serif: "Italiana", Georgia, serif;
  --serif-alt: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: 5%;
  --header: 112px;
}

/* --- Reset ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}
button {
  font: inherit;
  color: inherit;
}
em {
  font-style: normal;
  color: var(--rust);
}
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: clamp(66px, 6.7vw, 110px);
  line-height: 1.02;
  letter-spacing: -2px;
}
h2 {
  font-size: clamp(39px, 4.2vw, 65px);
  line-height: 1.12;
  letter-spacing: -1px;
}
h3 {
  font-size: 35px;
  line-height: 1.18;
}
p {
  margin: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 15px;
  z-index: 30;
}
.skip:focus {
  top: 15px;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 25;
  width: 100%;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
}

/* --- Tipografia utilitária ------------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.9px;
  line-height: 1.5;
}
.line {
  width: 27px;
  height: 1px;
  background: var(--rust);
}
.number {
  display: block;
  font-family: var(--serif-alt);
  font-size: 18px;
  color: var(--rust);
}
.text-link {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.text-link:hover {
  color: var(--rust);
}
.section {
  padding: 110px var(--gutter);
}

/* Botões */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 100%;
  min-height: 48px;
  padding: 17px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.button:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.button:hover,
.button:focus-visible {
  color: var(--rust);
}
.button:hover:after,
.button:focus-visible:after {
  transform: scaleX(1);
}
.primary-button {
  padding: 18px 24px;
  border: 0;
  background: var(--rust);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
  transition:
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.primary-button:after {
  display: none;
}
.primary-button:hover,
.primary-button:focus-visible {
  background: var(--ink);
  color: #fff;
}

/* --- Header ---------------------------------------------------------------- */
.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--header);
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-monogram {
  font: 400 37px/1 var(--serif-alt);
  letter-spacing: -5px;
  padding: 10px 15px 11px 9px;
  border: 1px solid var(--rust);
  color: var(--rust);
}
.brand-name {
  display: block;
  font: 400 29px/1.15 var(--serif-alt);
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-descriptor {
  display: block;
  margin-top: 8px;
  font: 500 10px/1.5 var(--sans);
  letter-spacing: 1.7px;
  color: var(--ink);
}
.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.header nav a {
  position: relative;
  padding: 14px 0;
  white-space: nowrap;
}
.header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.header nav a:hover:after,
.header nav a:focus-visible:after {
  transform: scaleX(1);
}
.header nav a:hover {
  color: var(--rust);
}
.nav-outline {
  border-bottom: 1px solid var(--rule);
}
.nav-outline:after {
  bottom: -1px !important;
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header));
  max-height: 960px;
  overflow: clip;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 60px 9% 20px 10%;
}
.hero-copy h1 {
  margin-bottom: 28px;
}
.intro {
  max-width: 420px;
}
.intro p {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.8;
}
.hero-secondary {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.hero-secondary:hover {
  color: var(--rust);
  border-color: var(--rust);
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 1.8px;
}
.hero-bottom a {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0;
  transition: color 0.3s var(--ease);
}
.hero-bottom a:hover {
  color: var(--rust);
}
.hero-image {
  position: relative;
  overflow: hidden;
  background: #85452e;
  min-height: 100%;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  transform: scale(1.08);
}
.hero-image:after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #00000073);
}
.hero-image figcaption {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  font-family: var(--serif-alt);
  font-size: 24px;
}
.hero-image figcaption span {
  font-family: var(--sans);
  font-size: 12px;
  color: #eee;
}

/* --- Declaração (respiro de texto entre o hero e o estudo de cor) ---------- */
.statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--rule);
}
.statement .eyebrow {
  margin: 6px 0 0;
}
.statement h2 {
  max-width: 18ch;
  font-size: clamp(38px, 3.9vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.8px;
}
.statement > div > p {
  max-width: 560px;
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

/* --- Estudo de cor (cena pinada) ------------------------------------------ */
.colour-story {
  position: relative;
  background: var(--dark);
  color: var(--paper);
}
.colour-pin {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  align-items: center;
}
.colour-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #aaa298;
}
.colour-stage > img,
.terracotta-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--stage-scale, 1.06));
  transform-origin: center;
}
.neutral-room {
  filter: grayscale(1) saturate(0.25) brightness(1.08);
}
/* Antes e depois: --paint-progress (0–1) diz até onde a parede está pintada.
   Ao entrar na tela o JS "carrega" até a metade; depois a linha é arrastável. */
.colour-stage {
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.colour-stage img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.terracotta-reveal {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--paint-progress, 0.5) * 100%) 0 0);
}
.reveal-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--paint-progress, 0.5) * 100%);
  width: 1px;
  background: #f9ede4;
  box-shadow: 0 0 22px #fff9;
  z-index: 2;
}
.reveal-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: calc(var(--paint-progress, 0.5) * 100%);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid #f9ede4;
  border-radius: 50%;
  background: #20211f8c;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f9ede4;
  display: grid;
  place-items: center;
  font: 400 20px/1 var(--serif-alt);
  letter-spacing: 2px;
  cursor: ew-resize;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.reveal-handle span {
  transform: translateX(1px);
}
.reveal-handle:hover,
.colour-stage.is-dragging .reveal-handle {
  background: #20211fc4;
  transform: scale(1.08);
}
.reveal-handle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.colour-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #20211f 0%, #20211fc4 28%, #20211f00 58%),
    linear-gradient(0deg, #20211f8a, transparent 45%);
}
.colour-stage figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 6%;
  z-index: 3;
  max-width: 300px;
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 1.2px;
  text-align: right;
  color: #f2eee6;
}
.colour-copy {
  position: relative;
  z-index: 3;
  max-width: 460px;
  margin-left: 10%;
}
.colour-copy .eyebrow {
  color: var(--paper-on-dark);
  margin-bottom: 24px;
}
.colour-copy h2 {
  font-size: clamp(50px, 5.3vw, 88px);
  line-height: 1.03;
  margin-bottom: 26px;
}
.colour-copy em,
.rail-heading em,
.coverage em,
.story-ending em {
  color: var(--rust-soft);
}
.colour-copy > p:last-child {
  max-width: 360px;
  line-height: 1.8;
  color: var(--paper-on-dark);
}
.colour-index {
  position: absolute;
  right: var(--gutter);
  top: 10%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #f0ede5;
}
.colour-index i {
  width: 72px;
  height: 1px;
  background: #8a867c;
  position: relative;
}
.colour-index i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ede7dd;
  transform: scaleX(var(--paint-progress, 0.5));
  transform-origin: left;
}

/* --- Serviços -------------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
.section-heading h2 {
  width: 66.666%;
}
.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.service-pair {
  grid-template-columns: 1fr 1fr;
}
.service-grid article {
  padding: 32px 35px 30px 0;
}
.service-grid article + article {
  padding-left: 35px;
  border-left: 1px solid var(--rule);
}
.service-grid h3 {
  margin: 25px 0 20px;
}
.service-grid p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}
.service-context {
  margin-top: 22px;
  font-size: 14px;
  color: var(--rust);
}
.services > .text-link {
  margin-top: 26px;
}

/* --- Palco "presença." ----------------------------------------------------- */
.portfolio {
  padding: 90px var(--gutter);
  background: var(--paper-2);
}
.portfolio-sticky {
  position: relative;
}
.portfolio-title {
  text-align: center;
  margin-bottom: 34px;
}
.portfolio-title .eyebrow {
  justify-content: center;
  margin-bottom: 15px;
}
.concept-label {
  margin-top: 15px;
  font-size: 14px;
  color: var(--muted);
}
.image-stage {
  position: relative;
  height: 72vh;
  min-height: 400px;
  overflow: hidden;
  background: #88482f;
  clip-path: inset(var(--frame-y, 0%) var(--frame-x, 0%));
}
.image-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  transform: translateY(var(--image-y, 0px)) scale(var(--image-scale, 1.12));
}
.image-matte {
  display: none;
}
.stage-word {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 190px);
  line-height: 1;
  color: #fff;
  opacity: var(--word-opacity, 0);
  transform: translate(-50%, calc(-50% + var(--word-y, 0px)));
  text-shadow: 0 2px 28px #0005;
}
.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 40px;
  color: #fff;
  background: linear-gradient(transparent, #0008);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 1.5px;
}
.portfolio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 1px;
}

/* --- Inspirações (trilho horizontal pinado no desktop) --------------------- */
.inspiration-rail {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
  padding: 110px 0 96px;
}
.rail-pin {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  padding: 0 var(--gutter);
}
.rail-heading .eyebrow {
  color: #c9c6bc;
  margin-bottom: 20px;
}
.rail-heading h2 {
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.04;
}
.rail-heading > p {
  max-width: 300px;
  color: #d6d2c9;
  line-height: 1.7;
}
/* Trilho: rolagem horizontal nativa em qualquer largura. O último cartão aparece
   cortado na borda e um véu escuro à direita diz que há mais; nada preso ao scroll da página. */
.rail-window {
  position: relative;
}
.rail-window:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(80px, 12vw, 180px);
  background: linear-gradient(90deg, transparent, var(--ink));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.rail-window.is-end:after {
  opacity: 0;
}
.rail-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.rail-viewport::-webkit-scrollbar {
  display: none;
}
.rail-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rail-viewport.is-dragging .rail-card {
  pointer-events: none;
}
.rail-track {
  display: flex;
  align-items: stretch;
  gap: 2.4vw;
  width: max-content;
  padding: 0 var(--gutter);
}
.rail-card {
  position: relative;
  display: block;
  flex: 0 0 38vw;
  height: min(56vh, 600px);
  min-height: 360px;
  overflow: hidden;
  background: #383630;
  scroll-snap-align: start;
}
.rail-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.rail-card:hover img,
.rail-card:focus-visible img {
  transform: scale(1.12);
}
.rail-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #151614cf, transparent 58%);
}
.rail-card span {
  position: absolute;
  z-index: 1;
  left: 32px;
  right: 32px;
  bottom: 28px;
  display: flex;
  align-items: end;
  gap: 22px;
  color: #fff;
}
.rail-card small {
  display: block;
  margin-bottom: 8px;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 1.4px;
}
.rail-card strong {
  display: block;
  font: 400 clamp(30px, 2.9vw, 46px)/1.02 var(--serif);
}
.rail-card span em {
  margin-left: auto;
  padding-bottom: 7px;
  border-bottom: 1px solid #fff8;
  font: 500 12px/1.2 var(--sans);
  color: #fff;
  white-space: nowrap;
}
.rail-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.rail-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.rail-controls button {
  appearance: none;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #797971;
  background: transparent;
  color: var(--paper);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.rail-controls button:hover:not(:disabled) {
  color: var(--rust-soft);
  border-color: var(--rust-soft);
}
.rail-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.rail-status {
  min-width: 55px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

/* --- Orçamento (processo) ------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8%;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.process-lead {
  position: sticky;
  top: 70px;
  min-width: 0;
}
.process-lead .section-heading {
  display: block;
  margin-bottom: 30px;
}
.process-lead .section-heading h2 {
  width: auto;
}
.process-intro {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
}
.process-lead .primary-button {
  margin-top: 34px;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding: 12px 0 0;
}
.process-grid article {
  position: relative;
  padding-top: 28px;
}
.process-grid article:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.process-grid h3 {
  font-size: 42px;
  margin: 18px 0 16px;
}
.process-grid .number {
  font-size: 16px;
}
.process-grid p {
  max-width: 410px;
  color: var(--muted);
  line-height: 1.8;
}

/* --- A empresa ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-bottom: 1px solid var(--rule);
}
.about > div:first-child {
  position: sticky;
  top: 70px;
  align-self: start;
}
.since {
  display: block;
  font: 400 clamp(55px, 7vw, 96px)/1 var(--serif);
  color: var(--rust);
}
.since-caption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.about-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  max-width: 790px;
  margin-top: 35px;
}
.about-text p {
  color: var(--muted);
  line-height: 1.8;
}

/* --- Onde atendemos ------------------------------------------------------- */
.coverage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
  color: var(--paper);
}
.coverage:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: inset(0 var(--coverage-inset, 0%) 0 var(--coverage-inset, 0%));
  transition: clip-path 1.2s var(--ease);
}
.coverage .eyebrow {
  color: #c6c5ba;
}
.coverage h2 {
  font-size: clamp(55px, 6vw, 86px);
}
.coverage-copy {
  position: relative;
  padding-top: 15px;
}
.state {
  display: block;
  font: 400 80px/1 var(--serif);
  color: var(--rust-soft);
}
.coverage-copy p {
  max-width: 420px;
  margin: 20px 0 30px;
  color: #deded5;
  line-height: 1.8;
}
.regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 440px;
}
.regions span {
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #deded5;
}
.regions span:not(:last-child):after {
  content: "·";
  display: inline-block;
  margin: 0 12px;
  color: #a7a69b;
}

/* --- Dúvidas --------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8%;
  background: var(--paper-2);
}
.faq > div:first-child {
  position: sticky;
  top: 70px;
  align-self: start;
}
.faq > div > p:not(.eyebrow) {
  max-width: 300px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-list details {
  border-top: 1px solid #c8c6be;
}
.faq-list details:last-child {
  border-bottom: 1px solid #c8c6be;
}
.faq-list summary {
  position: relative;
  padding: 24px 34px 24px 0;
  font-size: 17px;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:hover {
  color: var(--rust);
}
.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 24px;
  color: var(--rust);
  transition: transform 0.4s var(--ease);
}
.faq-list details[open] summary:after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0 34px 25px 0;
  color: var(--muted);
  line-height: 1.8;
}

/* --- Contato --------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 7%;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.contact p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-phone {
  font-size: 23px;
  transition: color 0.3s;
}
.contact-phone:hover {
  color: var(--rust);
}

/* --- Rodapé --------------------------------------------------------------- */
footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 38px;
  row-gap: 24px;
  padding: 48px var(--gutter);
}
footer .brand-name {
  white-space: nowrap;
}
.footer-info {
  display: grid;
  gap: 9px;
  justify-items: start;
  min-width: 0;
}
.footer-info p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-info > a {
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.3s;
}
.footer-info > a:hover {
  color: var(--rust);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
  min-width: 0;
  font-size: 14px;
}
.footer-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--rust);
}
footer > a:last-child {
  position: relative;
  justify-self: end;
  padding: 8px 0;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s;
}
footer > a:last-child:hover {
  color: var(--rust);
}
@media (min-width: 1400px) {
  footer {
    grid-template-columns: minmax(280px, 1.25fr) minmax(225px, 1fr) minmax(280px, 1.35fr) auto;
    column-gap: 30px;
  }
}

/* ==========================================================================
   Páginas de inspirações (portfólio e estudos)
   ========================================================================== */
.page-intro {
  padding-bottom: 65px;
}
.page-intro h1 {
  max-width: 1100px;
  font-size: clamp(60px, 8vw, 120px);
}
.page-intro .lead {
  max-width: 520px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.breadcrumb {
  margin-bottom: 35px;
}
.editorial-note {
  max-width: 660px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.collection-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8%;
  align-items: end;
  padding-top: 65px;
  padding-bottom: 55px;
}
.collection-intro h1 {
  font-size: clamp(60px, 6.8vw, 100px);
}
.collection-intro .lead {
  margin-top: 0;
}
.project-index {
  padding: 0 var(--gutter) 110px;
}
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px 7%;
  align-items: start;
}
.project-card {
  display: block;
  min-width: 0;
}
.project-1 {
  grid-column: 1/-1;
}
.project-2 {
  padding-right: 8%;
}
.project-3 {
  padding-top: 140px;
}
.story-image {
  position: relative;
  overflow: hidden;
  background: var(--rule);
}
.story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project-card .story-image {
  height: 480px;
}
.project-1 .story-image {
  height: 65vh;
  max-height: 760px;
}
.project-2 .story-image {
  height: 570px;
}
.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.035);
}
.project-open {
  position: absolute;
  left: 35px;
  bottom: 30px;
  padding: 10px 0;
  border-bottom: 1px solid #fff9;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 5px #0009;
}
.project-description {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.project-1 .project-description {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.project-description .eyebrow {
  margin-bottom: 16px;
}
.project-description h2 {
  font-size: clamp(38px, 4vw, 58px);
}
.project-description > p {
  max-width: 420px;
  margin-top: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.project-1 .project-description > p {
  max-width: 300px;
  margin-top: 0;
}
.story-image figcaption {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
  font-family: var(--serif-alt);
  font-size: 18px;
  text-shadow: 0 1px 9px #000;
}
.story-image figcaption span {
  font-family: var(--sans);
  font-size: 12px;
  color: #eee;
}

/* Galeria de enquadramentos */
.project-gallery {
  padding: 0 var(--gutter) 65px;
}
.gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
}
.gallery-heading > p:last-child {
  font-size: 14px;
  color: var(--muted);
}
.gallery-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rust) transparent;
}
.gallery-slide {
  flex: 0 0 88%;
  min-width: 0;
  scroll-snap-align: start;
}
.gallery-slide:last-child {
  margin-right: 12%;
}
.gallery-picture {
  height: 65vh;
  min-height: 350px;
  max-height: 750px;
  overflow: hidden;
  background: var(--rule);
}
.gallery-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crop-1 .gallery-picture img {
  transform: scale(1.45);
  transform-origin: 65% 25%;
}
.crop-2 .gallery-picture img {
  transform: scale(1.8);
  transform-origin: 90% 15%;
}
.gallery-slide figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0 22px;
  font-size: 14px;
}
.gallery-slide figcaption span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin-top: 15px;
}
.gallery-controls[hidden] {
  display: none;
}
.gallery-controls button {
  min-width: 75px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.gallery-controls button:hover:not(:disabled) {
  color: var(--rust);
  border-color: var(--rust);
}
.gallery-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-status {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

/* Capítulos do estudo */
.story-chapter {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-bottom: 1px solid var(--rule);
}
.story-chapter h2 {
  margin-bottom: 30px;
}
.story-chapter > div > p {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.story-chapter > div > p + p {
  margin-top: 18px;
}
.choices {
  background: var(--paper-2);
}
.choice-context {
  max-width: 600px;
  margin: 25px 0 50px;
  line-height: 1.8;
  color: var(--muted);
}
.choice-list article {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 35px;
  align-items: start;
  padding: 35px 0;
  border-top: 1px solid #c6c4ba;
}
.choice-list article > span:first-child {
  padding-top: 12px;
  font-family: var(--serif-alt);
  font-size: 18px;
  color: var(--rust);
}
.choice-list h3 {
  margin: 0 0 15px;
}
.choice-list p {
  max-width: 650px;
  line-height: 1.8;
  color: var(--muted);
}
.swatch {
  display: block;
  width: 65px;
  height: 85px;
}
.terracotta {
  background: #954b34;
}
.ivory {
  background: #f6f5f0;
}
.stone {
  background: #a6a094;
}
.detail-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
}
.detail-crop {
  height: 620px;
}
.detail-crop img {
  object-position: 80% center;
}
.detail-crop figcaption {
  display: block;
  left: 25px;
  right: 25px;
  line-height: 1.5;
}
.detail-crop figcaption span {
  display: block;
  margin-top: 6px;
}
.detail-story h2 {
  margin-bottom: 26px;
}
.detail-story p:not(.eyebrow) {
  line-height: 1.85;
  color: var(--muted);
}
.story-ending {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.story-ending .eyebrow {
  justify-content: center;
}
.story-cta {
  max-width: 560px;
  margin: 32px auto 38px;
}
.story-cta-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
}
.story-cta > p:not(.story-cta-title) {
  max-width: 440px;
  margin: 0 auto 22px;
  line-height: 1.7;
  color: #deded5;
}
.story-ending .button {
  color: var(--paper);
  border-color: #898980;
}
.story-ending .story-cta-button {
  display: inline-flex;
  margin: 0;
  padding: 17px 22px;
  border: 1px solid var(--rust);
  background: var(--rust);
  color: #fff;
}
.story-ending .story-cta-button:hover {
  background: var(--rust-deep);
  color: #fff;
}
.all-projects {
  margin-top: 20px;
}

/* ==========================================================================
   Motion (desktop). O JS adiciona .motion-enabled ao <html> quando o usuário
   não pediu movimento reduzido; sem JS, nada abaixo se aplica.
   ========================================================================== */
.word-mask {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding: 0 0.06em 0.14em 0;
  margin: 0 -0.06em -0.14em 0;
}
.word-motion {
  display: inline-block;
  will-change: transform;
}
.motion-enabled .word-motion {
  transform: translateY(112%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion-enabled .is-in .word-motion,
.motion-enabled .is-in.word-motion {
  transform: none;
}
.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion-enabled [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.motion-enabled [data-reveal="line"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.motion-enabled [data-reveal="line"].is-in {
  transform: scaleX(1);
}
/* A máscara vai na imagem, não no contêiner: assim o observer continua enxergando o bloco. */
.motion-enabled [data-reveal="frame"] {
  opacity: 1;
  transform: none;
}
.motion-enabled [data-reveal="frame"] img {
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 1.3s var(--ease-io),
    transform 0.25s linear;
}
.motion-enabled [data-reveal="frame"].is-in img {
  clip-path: inset(0);
}
.motion-enabled .process-grid article.is-in:before {
  transform: scaleX(1);
}
.motion-enabled .coverage {
  --coverage-inset: 6%;
}
.motion-enabled .coverage.is-in {
  --coverage-inset: 0%;
}
.motion-enabled .hero-image img {
  transform: translateY(var(--hero-y, 0px)) scale(var(--hero-scale, 1.08));
}
.motion-enabled .hero-copy {
  transform: translateY(var(--hero-copy-y, 0px));
  opacity: var(--hero-copy-opacity, 1);
}
.motion-enabled .hero-image {
  clip-path: inset(0 0 var(--hero-clip, 0%) 0);
}
.motion-enabled .project-card .story-image img {
  transform: translateY(var(--editorial-y, 0px)) scale(1.1);
}
.motion-enabled .project-card:hover .story-image img {
  transform: translateY(var(--editorial-y, 0px)) scale(1.14);
}
.motion-enabled .case-cover img,
.motion-enabled .detail-crop img {
  transform: translateY(var(--editorial-y, 0px)) scale(1.12);
}
.motion-enabled .detail-crop img {
  object-position: 80% center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .colour-pin {
    position: relative;
    height: 88vh;
    min-height: 560px;
  }
  .reveal-handle {
    transition: none;
  }
  .image-stage {
    clip-path: none;
  }
  .image-stage > img {
    transform: none;
  }
  .stage-word {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  .rail-viewport {
    scroll-behavior: auto;
  }
}

/* Faixa intermediária (851–1100px): grades mais folgadas. */
@media (max-width: 1100px) {
  .hero-copy {
    padding: 48px 7% 20px 7%;
  }
  h1 {
    font-size: clamp(56px, 6.4vw, 84px);
  }
  .header nav {
    gap: 22px;
  }
  .brand-name {
    font-size: 25px;
  }
  .brand-monogram {
    font-size: 32px;
  }
  .rail-card {
    flex-basis: 46vw;
  }
  .process {
    gap: 6%;
  }
  .about-text {
    gap: 28px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-2 {
    padding-right: 0;
  }
  .project-3 {
    padding-top: 90px;
  }
  .detail-story {
    gap: 5%;
  }
  .detail-crop {
    height: 520px;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
}
