:root {
  --magenta: #9f163c;
  --vivo: #c51f4c;
  --grafite: #3f4145;
  --rosa: #ead6dd;
  --leite: #f8f6f3;
  --linha: #d9d4cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--grafite);
  background: var(--leite);
  font-family: "Montserrat", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 52px;
  align-items: center;
  padding: 70px 0 80px;
}
.project-kicker {
  margin: 0 0 18px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.project-hero h1 {
  margin: 0;
  font: 600 clamp(48px, 6vw, 82px)/.98 "Fraunces", Georgia, serif;
  text-wrap: balance;
}
.project-summary {
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}
.project-back {
  display: inline-flex;
  margin-top: 28px;
  color: var(--magenta);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.project-cover {
  min-height: 610px;
  border-radius: 34px;
  overflow: hidden;
  background: #e8e6e3;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-story { padding: 76px 0; background: var(--grafite); color: white; }
.project-cover img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
}

.project-story {
  background: var(--grafite);
  color: white;
  padding: 78px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
}
.story-copy {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.7;
}
.story-copy p { margin: 0; }
.project-facts { display: grid; gap: 16px; }
.project-fact {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
}
.project-fact h2 {
  margin: 0 0 8px;
  font: 600 28px/1.1 "Fraunces", Georgia, serif;
}
.project-fact p { margin: 0; line-height: 1.55; }

.project-gallery { padding: 88px 0; }
.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}
.gallery-heading h2 {
  margin: 0;
  font: 600 clamp(42px, 5vw, 68px)/1 "Fraunces", Georgia, serif;
}
.gallery-heading p {
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 470px;
  border-radius: 28px;
  background: #e8e6e3;
}
.gallery-item:nth-child(3n) { grid-column: 1 / -1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(63,65,69,.82);
  font-size: 12px;
  font-weight: 700;
}

.project-cta {
  padding: 86px 20px;
  text-align: center;
  color: white;
  background: var(--magenta);
}
.project-cta h2 {
  max-width: 850px;
  margin: 0 auto 30px;
  font: 600 clamp(44px, 6vw, 76px)/1 "Fraunces", Georgia, serif;
  text-wrap: balance;
}
.project-cta a {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 999px;
  color: white;
  background: var(--grafite);
  font-weight: 800;
  text-decoration: none;
}
.back, .whatsapp {
  position: fixed;
  bottom: 15px;
  z-index: 30;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  font-size: 13px;
  font-weight: 700;
}
.back { left: 15px; background: white; }
.whatsapp { right: 15px; color: white; background: var(--vivo); }

@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .project-hero { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 58px; }
  .project-cover, .project-cover img { min-height: 440px; }
  .story-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-heading { display: block; }
  .gallery-heading p { margin-top: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(3n) { grid-column: auto; }
  .gallery-item, .gallery-item img { min-height: 390px; }
  .whatsapp { padding-inline: 15px; }
}

@media (max-width: 520px) {
  .project-cover, .project-cover img { min-height: 360px; }
  .project-gallery { padding: 62px 0; }
  .gallery-item, .gallery-item img { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
}
