:root {
  --bg: #0e0d0c;
  --ink: #ece7df;
  --ink-dim: #75716a;
  --accent: #e07a2f;
  --paper: #e9e4da;
  --ink-on-paper: #14120f;
  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-size: 88px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-ui: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ---------- modo projeto (prancheta) ---------- */
body.blueprint {
  --bg: #0b1119;
  --accent: #6fb3e8;
  --grid-line: rgba(111, 179, 232, 0.09);
  --grid-size: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.9s ease;
}

/* faint grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- webgl ---------- */
.gl {
  position: fixed;
  inset: 0;
  z-index: 1;
}
.gl canvas { display: block; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.preloader__meta {
  display: flex;
  gap: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.9;
  color: var(--ink);
}
.preloader__count::after { content: "%"; font-size: 0.25em; vertical-align: super; color: var(--accent); }
.preloader__bar {
  width: min(42vw, 320px);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  pointer-events: none;
}
.header > * { pointer-events: auto; }

.logo__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.4s, color 0.4s;
}
.logo:hover .logo__mark { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.view-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: opacity 0.4s;
}
.view-nav.is-hidden { opacity: 0; pointer-events: none; }
.view-nav__btn {
  color: var(--ink-dim);
  transition: color 0.35s;
  padding: 0.4rem 0.2rem;
}
.view-nav__btn.is-active { color: var(--ink); }
.view-nav__btn:hover { color: var(--ink); }
.view-nav__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.35s, color 0.35s, background 0.35s;
}
.mode-btn__icon {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--accent);
  transition: color 0.35s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mode-btn:hover { border-color: var(--accent); }
.mode-btn:hover .mode-btn__icon { transform: rotate(90deg); }
body.blueprint .mode-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #08111d;
}
body.blueprint .mode-btn__icon { color: #08111d; }
body.menu-open .mode-btn {
  border-color: rgba(20, 18, 15, 0.3);
  color: var(--ink-on-paper);
}
body.menu-open .mode-btn__icon { color: var(--accent); }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* invert header chrome while the paper menu is open */
.logo__mark, .view-nav__btn, .view-nav__dot { transition: color 0.5s, border-color 0.5s, background 0.5s; }
body.menu-open .logo__mark { border-color: rgba(20, 18, 15, 0.35); color: var(--ink-on-paper); }
body.menu-open .logo:hover .logo__mark { background: var(--ink-on-paper); color: var(--paper); }
body.menu-open .view-nav__btn { color: rgba(20, 18, 15, 0.4); }
body.menu-open .view-nav__btn.is-active,
body.menu-open .view-nav__btn:hover { color: var(--ink-on-paper); }

/* ---------- hero ---------- */
.hero {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4.2rem;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  mix-blend-mode: difference;
}
.hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  opacity: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: var(--ink);
}
.hero__title .char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__title .char {
  display: inline-block;
  will-change: transform;
}

/* ---------- badge ---------- */
.badge {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 20;
  width: 108px;
  height: 108px;
  opacity: 0;
}
.badge svg {
  width: 100%;
  height: 100%;
  animation: spin 14s linear infinite;
  fill: var(--ink-dim);
}
.badge text {
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- work label ---------- */
.work-label {
  position: fixed;
  right: 2rem;
  bottom: 2.4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
}
.work-label__index { color: var(--accent); }
.work-label__line { width: 28px; height: 1px; background: rgba(255, 255, 255, 0.25); }
.work-label__title { color: var(--ink); white-space: nowrap; }

/* ---------- ficha técnica (modo projeto) ---------- */
.spec {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-left: 1px solid rgba(111, 179, 232, 0.4);
  padding-left: 1rem;
  max-width: 230px;
  transition: opacity 0.6s ease;
}
body.blueprint .spec { opacity: 1; visibility: visible; }
.spec__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(111, 179, 232, 0.55);
  margin-bottom: 0.5rem;
}
.spec__name {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ---------- scroll hint ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  opacity: 0;
  white-space: nowrap;
}
.scroll-hint span { display: inline-block; animation: hint-pulse 2.4s ease-in-out infinite; }
@keyframes hint-pulse { 50% { opacity: 0.35; } }

/* ---------- page content ---------- */
.page {
  position: relative;
  z-index: 5;
}
.page__spacer {
  height: 100vh;
  touch-action: pan-y;
}

.section {
  position: relative;
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  padding: 7rem 2rem;
  transition: background-color 0.9s ease;
}
.section__label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3.2rem;
}

/* reveal helper (animated by gsap) */
.reveal { opacity: 0; transform: translateY(34px); }

/* ---------- sobre ---------- */
.section--sobre {
  padding-top: 9rem;
}
.sobre__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 6rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 18ch;
}
.sobre__title em {
  font-style: normal;
  color: var(--accent);
  transition: color 0.6s ease;
}

/* blueprint: títulos viram contorno técnico (sem preenchimento) */
body.blueprint .sobre__title,
body.blueprint .servico h3,
body.blueprint .stat__value,
body.blueprint .contato__mail {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  text-stroke: 1px var(--ink);
}
body.blueprint .sobre__title em {
  -webkit-text-stroke-color: var(--accent);
  text-stroke-color: var(--accent);
}
body.blueprint .servico:hover h3 {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
  text-stroke-color: var(--accent);
}
body.blueprint .section__label,
body.blueprint .stat__caption,
body.blueprint .contato__label,
body.blueprint .footer { font-family: var(--font-mono); }
.sobre__body {
  margin-top: 3.4rem;
  margin-left: auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.sobre__body p { color: rgba(236, 231, 223, 0.8); }
.sobre__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.6rem;
  width: fit-content;
  transition: color 0.35s, border-color 0.35s;
}
.sobre__cta:hover { color: var(--accent); border-color: var(--accent); }
.sobre__cta-arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.sobre__cta:hover .sobre__cta-arrow { transform: translateX(6px); }

/* ---------- serviços ---------- */
.servicos__list { list-style: none; }
.servico {
  display: grid;
  grid-template-columns: 4rem 1fr minmax(200px, 38%);
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.servico:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.servico em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.servico h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.05;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s;
}
.servico:hover h3 {
  transform: translateX(1.4rem);
  color: var(--accent);
}
.servico p {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ---------- obras ---------- */
.obras__note {
  max-width: 1080px;
  margin: -1.2rem auto 3rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.obras__note strong {
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.obras__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2.4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.obra:nth-child(even) { transform: translateY(34px); margin-top: 5rem; }
.obra__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 9 / 11;
  background: #1a1917;
}
.obra__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 179, 232, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 179, 232, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.obra__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transform: scale(1.02);
  transition: filter 0.7s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.obra:hover .obra__img-wrap img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.07);
}

/* blueprint: fotos viram cianotipia com grid técnico; hover revela a foto */
body.blueprint .obra__img-wrap img {
  filter: grayscale(1) brightness(1.02) sepia(1) hue-rotate(168deg) saturate(4.5) contrast(1.18);
}
body.blueprint .obra__img-wrap::after { opacity: 1; }
body.blueprint .obra:hover .obra__img-wrap img {
  filter: grayscale(0) contrast(1) brightness(1);
}
body.blueprint .obra:hover .obra__img-wrap::after { opacity: 0; }
body.blueprint .obra figcaption em,
body.blueprint .obra figcaption span { font-family: var(--font-mono); }
.obra figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.obra figcaption em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.obra figcaption strong {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.obra figcaption span {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- antes & depois ---------- */
.ad__heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.ad__heading em { font-style: normal; color: var(--accent); }
.ad__sub {
  margin: 1.2rem 0 2.6rem;
  max-width: 46ch;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
}
.ad {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1917;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ad__media { position: absolute; inset: 0; }
.ad__media img { width: 100%; height: 100%; object-fit: cover; }
.ad__media--antes {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ad__media--antes img { filter: grayscale(1) contrast(1.05) brightness(0.82); }

/* placeholders (trocar por <img> quando houver foto) */
.ad__ph {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center;
}
.ad__ph-label {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.06em;
}
.ad__ph small {
  position: relative; z-index: 1;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.55;
}
.ad__ph--depois {
  background:
    radial-gradient(120% 120% at 72% 18%, rgba(224, 122, 47, 0.55), transparent 60%),
    linear-gradient(135deg, #221c16, #3a2c1e);
  color: var(--ink);
}
.ad__ph--antes {
  background: linear-gradient(135deg, #1a1a1a, #303030);
  color: #cfcac2;
}
.ad__ph--antes::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255, 255, 255, 0.045) 0 10px, transparent 10px 20px);
}

.ad__tag {
  position: absolute; bottom: 1rem; z-index: 4;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 100px;
  background: rgba(14, 13, 12, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--ink); pointer-events: none;
}
.ad__tag--antes { left: 1rem; }
.ad__tag--depois { right: 1rem; }

.ad__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%); transform: translateX(-50%);
  width: 2px; z-index: 3; padding: 0;
  background: var(--ink);
  cursor: ew-resize;
}
.ad__handle-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #14120f;
  display: grid; place-items: center;
  font-size: 1.15rem; line-height: 1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
body.blueprint .ad__handle-grip { color: #0b1119; }
@media (max-width: 760px) {
  .ad { aspect-ratio: 4 / 3; }
}

/* ---------- números ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 3rem;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 1;
  color: var(--ink);
}
.stat__caption {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- contato ---------- */
.section--contato {
  padding-bottom: 2rem;
}
.contato__lead {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.contato__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 4.4rem);
  text-transform: uppercase;
  line-height: 1.1;
  word-break: break-word;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.4rem;
  transition: color 0.35s, border-color 0.35s;
}
.contato__mail:hover { color: var(--accent); border-color: var(--accent); }

/* formulário de orçamento */
.contato__form {
  margin-top: 3rem;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field > span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form__field input,
.form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.55rem 0;
  resize: vertical;
  transition: border-color 0.35s;
}
.form__field textarea { line-height: 1.6; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(255, 255, 255, 0.25); }
.form__field input:focus,
.form__field textarea:focus { outline: none; border-color: var(--accent); }
.form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #14120f;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, background-color 0.9s ease;
}
.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 122, 47, 0.4);
}
.form__submit-arrow { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.form__submit:hover .form__submit-arrow { transform: translateX(3px); }
.form__note {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.04em;
}
body.blueprint .form__submit { color: #0b1119; }

.contato__info {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 4.5rem;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
}
.contato__info a { display: block; transition: color 0.3s; }
.contato__info a:hover { color: var(--accent); }
.contato__label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--ink); }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.menu.is-open { pointer-events: auto; }
.menu__panel {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(-101%);
}
.menu__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8rem 2rem 2.4rem;
  color: var(--ink-on-paper);
}
.menu__links {
  display: flex;
  flex-direction: column;
}
.menu__links a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(20, 18, 15, 0.14);
  overflow: hidden;
}
.menu__links a em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(20, 18, 15, 0.45);
}
.menu__links a span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s;
}
.menu__links a:hover span {
  transform: translateX(1.6rem);
  color: var(--accent);
}
.menu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  font-size: 0.8rem;
  line-height: 1.7;
}
.menu__footer a { display: block; }
.menu__footer a:hover { text-decoration: underline; }
.menu__footer-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(20, 18, 15, 0.45);
  margin-bottom: 0.3rem;
}

/* ---------- cta do header (ao lado do logo) ---------- */
.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cta-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  background: var(--accent);
  color: #14120f;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, background-color 0.9s ease;
}
.cta-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 122, 47, 0.4);
}
.cta-header__arrow { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.cta-header:hover .cta-header__arrow { transform: translateX(3px); }
body.blueprint .cta-header { color: #0b1119; }
@media (max-width: 760px) {
  .header__brand { gap: 0.6rem; }
  .cta-header { padding: 0.5rem 0.8rem; font-size: 0.64rem; }
  .cta-header__arrow { display: none; }
}

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(14, 13, 12, 0.82);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  /* escondido até o hero sair de cena */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.5s, border-color 0.4s ease;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { border-color: #25d366; }
.wa-float__icon { width: 17px; height: 17px; fill: #25d366; flex: none; }
.wa-float__label { white-space: nowrap; }
body.blueprint .wa-float { background: rgba(11, 17, 25, 0.82); }

@media (max-width: 720px) {
  .wa-float { right: 1.1rem; bottom: 1.1rem; padding: 0.85rem; }
  .wa-float__label { display: none; }
  .wa-float__icon { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: opacity 0.3s ease, visibility 0.3s; transform: none; }
  .wa-float.is-visible { transform: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -45px); }
  75% { transform: translate(-25px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  border-radius: 50%;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring { display: block; }
}
.cursor {
  width: 6px;
  height: 6px;
  background: var(--ink);
  margin: -3px 0 0 -3px;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin: -17px 0 0 -17px;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, margin 0.3s;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .servico { grid-template-columns: 3rem 1fr; }
  .servico p { grid-column: 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
}

@media (max-width: 900px) {
  .spec { display: none; }
  .mode-btn__label { display: none; }
  .mode-btn { padding: 0.55rem 0.7rem; }
}

@media (max-width: 760px) {
  .header { padding: 1.1rem 1.2rem; }
  .view-nav { display: none; }  /* abre espaço p/ o cta de orçamento ao lado do logo */
  .badge { display: none; }
  .work-label {
    right: 50%;
    transform: translateX(50%);
    bottom: 3.6rem;
  }
  .hero { bottom: 6.4rem; }
  .hero__eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    padding: 0 1rem;
  }
  .section { padding: 4.6rem 1.2rem; }
  .sobre__body { margin-left: 0; }
  .obras__grid { grid-template-columns: 1fr; gap: 3rem; }
  .obra:nth-child(even) { margin-top: 0; }
  .contato__info { gap: 2rem; }
  .menu__inner { padding: 6.4rem 1.2rem 1.8rem; }
  .menu__footer { gap: 1.6rem; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- detalhe da obra (modal) ---------- */
.obra[data-name] { cursor: pointer; }
.obra-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.obra-modal.is-open { visibility: visible; opacity: 1; }
.obra-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.obra-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(880px, 100%);
  max-height: 86vh;
  background: #161412;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.obra-modal.is-open .obra-modal__panel { transform: translateY(0) scale(1); }
.obra-modal__media { background: #0e0d0c; }
.obra-modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.obra-modal__body {
  padding: 2.2rem 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
}
.obra-modal__tipo {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.obra-modal__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
}
.obra-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.obra-modal__specs > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.obra-modal__specs dt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 0.15rem;
}
.obra-modal__specs dd { font-size: 0.92rem; font-weight: 300; line-height: 1.5; }
.obra-modal__cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  background: var(--accent);
  color: #14120f;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.obra-modal__cta:hover { transform: translateY(-2px); }
.obra-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
.obra-modal__close:hover { background: var(--accent); color: #14120f; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .obra-modal__panel { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .obra-modal__media img { max-height: 34vh; }
  .obra-modal__body { padding: 1.6rem; }
}

/* ---------- reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .badge { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
