:root {
  --paper: #f5f1eb;
  --paper-2: #ebe4da;
  --ink: #332d29;
  --muted: #756c65;
  --line: rgba(51,45,41,.22);
  --white: #fff;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #d9cec0; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .18em;
}
.brand-mark {
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 300;
  letter-spacing: -.08em;
}
.brand-divider { width: 1px; height: 38px; background: currentColor; opacity: .55; }
.brand-copy { font-size: 10px; line-height: 1.5; letter-spacing: .34em; }

.main-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; letter-spacing: .12em; }
.main-nav a { opacity: .82; transition: opacity .25s ease; }
.main-nav a:hover { opacity: 1; }
.menu-toggle { display: none; border: 0; background: transparent; color: currentColor; width: 42px; height: 42px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px auto; }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1f1b18;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,15,13,.72), rgba(18,15,13,.22) 60%, rgba(18,15,13,.14)),
              linear-gradient(0deg, rgba(18,15,13,.48), transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  color: white;
  width: min(930px, 90%);
  padding: 0 clamp(24px, 6vw, 90px) clamp(80px, 10vh, 120px);
}
.eyebrow { margin: 0 0 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .28em; }
.eyebrow.dark { color: var(--muted); }
.hero h1, .section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(48px, 7.1vw, 112px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 38px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid currentColor;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  transition: background .25s, color .25s;
}
.button-light { color: white; }
.button-light:hover { color: var(--ink); background: white; }
.hero-scroll {
  position: absolute; z-index: 2; right: 42px; bottom: 70px; color: white; opacity: .7;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: right bottom;
}

.section { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 180px) clamp(24px, 5vw, 76px); }
.section-number { color: var(--muted); font-size: 12px; letter-spacing: .22em; }

.intro {
  display: grid;
  grid-template-columns: 80px 1.1fr .9fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}
.intro h2, .section h2 { font-size: clamp(42px, 5.2vw, 82px); }
.intro-copy { padding-top: 44px; font-size: clamp(16px, 1.35vw, 20px); color: var(--muted); }
.intro-copy p { margin: 0 0 28px; max-width: 650px; }

.projects { padding-top: 70px; }
.section-topline {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 70px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 5vw, 78px) clamp(24px, 3vw, 44px); }
.project-wide { grid-column: 1 / -1; }
.project-media { border: 0; padding: 0; width: 100%; background: transparent; overflow: hidden; cursor: zoom-in; }
.project-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.65,.2,1); }
.project-wide .project-media img { aspect-ratio: 16/8.2; }
.project:hover img { transform: scale(1.025); }
.project-meta { padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; }
.project-meta h3 { margin: 0; font-size: 20px; font-weight: 400; }
.project-meta p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .07em; text-align: right; }


/* Detalhamento técnico */
.technical { padding-top: 80px; }
.technical-heading { padding-bottom: 58px; }
.technical-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  grid-template-areas:
    "preview content"
    "preview secondary";
  gap: 34px clamp(34px, 5vw, 80px);
  align-items: start;
}
.technical-preview {
  grid-area: preview;
  position: relative;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(51,45,41,.10);
}
.technical-preview img { width: 100%; aspect-ratio: 1.42/1; object-fit: cover; object-position: top center; transition: transform .7s ease; }
.technical-preview:hover img { transform: scale(1.015); }
.technical-preview-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 9px 13px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.technical-content { grid-area: content; padding-top: 10px; }
.technical-kicker { margin: 0 0 16px; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.technical-content h3 { margin: 0 0 24px; font-family: "Manrope", sans-serif; font-size: clamp(32px, 3.2vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.035em; }
.technical-content > p:not(.technical-kicker) { color: var(--muted); font-size: 16px; max-width: 540px; }
.technical-facts { margin: 36px 0 28px; border-top: 1px solid var(--line); }
.technical-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.technical-facts dt { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.technical-facts dd { margin: 0; font-size: 13px; }
.technical-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.button-dark { color: var(--ink); background: transparent; }
.button-dark:hover { color: white; background: var(--ink); }
.technical-link { font-size: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.technical-link span { margin-left: 12px; }
.technical-secondary { grid-area: secondary; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: end; padding-top: 22px; border-top: 1px solid var(--line); }
.technical-secondary img { width: 150px; aspect-ratio: 1.42/1; object-fit: cover; object-position: top center; }
.technical-secondary p { margin: 0; color: var(--muted); font-size: 12px; }


.technical-whatsapp-cta {
  margin-top: clamp(54px, 7vw, 96px);
  padding: clamp(32px, 4.5vw, 58px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 42px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.technical-whatsapp-cta > div { max-width: 760px; }
.technical-whatsapp-kicker {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.technical-whatsapp-cta h3 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.technical-whatsapp-cta p:not(.technical-whatsapp-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.button-whatsapp {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 64px;
  padding: 0 34px;
  gap: 12px;
  color: white;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: 999px;
  text-align: center;
  font-weight: 500;
  letter-spacing: .12em;
  box-shadow: 0 18px 34px rgba(37, 211, 102, .28), 0 6px 16px rgba(18, 140, 126, .18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  animation: whatsappButtonFloat 2.6s ease-in-out infinite;
}
.button-whatsapp::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 0 0 0 rgba(255,255,255,.65);
  animation: whatsappPulse 1.8s infinite;
}
.button-whatsapp::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}
.button-whatsapp:hover {
  color: white;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 24px 42px rgba(37, 211, 102, .34), 0 10px 22px rgba(18, 140, 126, .22);
  filter: saturate(1.06);
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.60); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes whatsappButtonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.pdf-viewer {
  width: min(96vw, 1500px);
  height: min(94vh, 980px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #f4f0ea;
  color: var(--ink);
}
.pdf-viewer::backdrop { background: rgba(10,9,8,.88); backdrop-filter: blur(7px); }
.pdf-viewer-bar {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 0 20px 0 26px;
  border-bottom: 1px solid var(--line);
}
.pdf-viewer-bar > div:first-child { display: flex; flex-direction: column; }
.pdf-viewer-bar strong { font-size: 13px; font-weight: 500; }
.pdf-viewer-bar span { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pdf-viewer-actions { display: flex; align-items: center; gap: 22px; }
.pdf-viewer-actions a { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pdf-close { width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.pdf-viewer iframe { display: block; width: 100%; height: calc(100% - 68px); border: 0; background: #777; }
.pdf-fallback { display: none; padding: 20px; }


.services {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--paper-2);
}
.services-image img { width: 100%; height: 100%; min-height: 760px; object-fit: cover; }
.services-content { padding: clamp(70px, 8vw, 130px); display: flex; flex-direction: column; justify-content: center; }
.services-content h2 { margin: 20px 0 48px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.service-list span { color: var(--muted); font-size: 11px; letter-spacing: .15em; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-grid > div { border-top: 1px solid var(--line); padding-top: 24px; }
.process-grid span { color: var(--muted); font-size: 11px; letter-spacing: .15em; }
.process-grid h3 { margin: 34px 0 12px; font-size: 20px; font-weight: 400; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.contact {
  max-width: none;
  background: #25211e;
  color: white;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-content: center;
  gap: 60px;
  padding-left: clamp(24px, 6vw, 90px);
  padding-right: clamp(24px, 6vw, 90px);
}
.contact h2 { font-size: clamp(48px, 7vw, 105px); }
.contact-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.contact-actions .button { margin-top: 0; }
.text-link { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 14px; letter-spacing: .06em; }
.text-link span { margin-left: 18px; }
footer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 28px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: end;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  letter-spacing: .05em;
}
.brand-footer { color: white; }
.brand-footer .brand-mark { font-size: 32px; }

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(10,9,8,.88); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: fixed; top: 18px; right: 28px; z-index: 2;
  width: 48px; height: 48px; border: 0; color: white; background: transparent;
  font-size: 38px; line-height: 1; cursor: pointer;
}


.services-note {
  max-width: 560px;
  margin: 22px 0 42px;
  color: var(--muted);
  font-size: 15px;
}

.before-after {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 760px;
  overflow: hidden;
  background: #d8d1c8;
  user-select: none;
}
.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after-base {
  position: absolute;
  inset: 0;
}
.before-after-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  border-right: 2px solid rgba(255,255,255,.95);
}
.before-after-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.before-after-label {
  position: absolute;
  top: 22px;
  z-index: 3;
  padding: 9px 14px;
  background: rgba(37,33,30,.74);
  color: white;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.before-after-label.before { left: 22px; }
.before-after-label.after { right: 22px; }
.before-after-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 0;
  pointer-events: none;
}
.before-after-handle span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.95);
  background: rgba(37,33,30,.70);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.before-after-handle span::before,
.before-after-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}
.before-after-handle span::before {
  left: 13px;
  transform: translateY(-50%) rotate(-135deg);
}
.before-after-handle span::after {
  right: 13px;
  transform: translateY(-50%) rotate(45deg);
}
.before-after-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.before-after-range:focus-visible {
  opacity: .02;
  outline: none;
}

@media (max-width: 900px) {
  .site-header { padding: 22px 22px; position: absolute; }
  .main-nav {
    position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(32,28,25,.97); font-size: 20px;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; position: relative; z-index: 30; }
  .intro { grid-template-columns: 1fr; }
  .intro .section-number { order: -1; }
  .intro-copy { padding-top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-wide { grid-column: auto; }
  .project-wide .project-media img, .project-media img { aspect-ratio: 4/3; }
  .project-meta { display: block; }
  .project-meta p { text-align: left; margin-top: 6px; }
  .technical-showcase {
    grid-template-columns: 1fr;
    grid-template-areas: "preview" "content" "secondary";
  }
  .technical-secondary { grid-template-columns: 130px 1fr; }
  .technical-secondary img { width: 130px; }

  .technical-whatsapp-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .button-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .pdf-viewer { width: 100vw; height: 100vh; }
  .pdf-viewer-bar > div:first-child span { display: none; }
  .services { grid-template-columns: 1fr; }
  .services-image img { min-height: 520px; }
  .before-after { min-height: 520px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  .brand-mark { font-size: 31px; }
  .brand-copy { font-size: 8px; }
  .hero-content { padding-bottom: 70px; }
  .hero h1 { font-size: 47px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .section-topline { padding-bottom: 42px; }
  .process-grid { grid-template-columns: 1fr; }
  .technical-secondary { grid-template-columns: 100px 1fr; }
  .technical-secondary img { width: 100px; }
  .pdf-viewer-bar { padding-left: 14px; gap: 10px; }
  .pdf-viewer-bar strong { font-size: 11px; }
  .pdf-viewer-actions { gap: 8px; }
  .pdf-viewer-actions a { display: none; }
  .services-content { padding: 72px 24px; }
  .before-after-label { top: 14px; padding: 8px 12px; font-size: 9px; }
  .contact h2 { font-size: 46px; }
}


.external-projects {
  padding-top: 20px;
}
.external-projects .project-grid {
  margin-top: 6px;
}
