:root {
  --ink: #12110f;
  --ink-soft: #2a2824;
  --paper: #f3efe7;
  --muted: #b7b0a4;
  --copper: #c4783a;
  --copper-deep: #a35f28;
  --line: rgba(243, 239, 231, 0.14);
  --shadow: rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(196, 120, 58, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(243, 239, 231, 0.04), transparent 50%),
    linear-gradient(180deg, #171614 0%, var(--ink) 40%, #0e0d0c 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
.brand,
.logo,
.footer-brand,
.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(18, 17, 15, 0.88), rgba(18, 17, 15, 0.35), transparent);
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(18, 17, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--paper);
  flex-shrink: 0;
  max-width: min(11.5rem, 46vw);
}

.logo img {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a,
.header-cta {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover,
.header-cta:hover {
  color: var(--paper);
}

.header-cta {
  color: var(--paper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.35) 0%, rgba(18, 17, 15, 0.2) 35%, rgba(18, 17, 15, 0.92) 100%),
    linear-gradient(90deg, rgba(18, 17, 15, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5.5rem);
  max-width: 48rem;
  animation: rise 1.1s var(--ease) both;
}

.brand {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 600;
  color: rgba(243, 239, 231, 0.92);
  max-width: 18ch;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Mobile: full house in a landscape band, copy on the panel below */
@media (max-width: 799px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100svh;
    background: #12110f;
  }

  .hero-media {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 46svh;
    margin-top: var(--header-h);
  }

  .hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: none;
    animation: none;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1.25rem 2.5rem;
    max-width: none;
    background: #12110f;
  }

  .brand {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--copper);
  color: #1a120c;
}

.btn-primary:hover {
  background: var(--copper-deep);
  color: var(--paper);
}

.btn-ghost {
  border-color: rgba(243, 239, 231, 0.35);
  color: var(--paper);
  background: rgba(18, 17, 15, 0.25);
}

.btn-ghost:hover {
  border-color: var(--paper);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 36rem;
}

.section-intro h2,
.about-copy h2,
.contact-copy h2,
.available-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.section-intro p,
.about-copy > p,
.contact-copy p,
.available-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 42ch;
}

.about-copy > p + p {
  margin-top: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}

/* Home listings */
.listing-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing {
  display: block;
  color: inherit;
  transition: transform 0.35s var(--ease);
}

.listing:hover {
  transform: translateY(-4px);
}

.listing-media {
  position: relative;
  overflow: hidden;
  background: #0a0908;
}

.listing-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--ease);
}

/* Tall Vagas renders — keep the full building in frame */
.listing-media img.vagas-shot {
  object-fit: contain;
  object-position: center bottom;
}

.listing:hover .listing-media img {
  transform: scale(1.04);
}

.status {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-media .status {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 1;
}

.status-available {
  background: var(--copper);
  color: #1a120c;
}

.status-soon {
  background: rgba(18, 17, 15, 0.82);
  color: var(--paper);
  border: 1px solid rgba(243, 239, 231, 0.28);
}

.status-sold {
  background: rgba(243, 239, 231, 0.92);
  color: #1a120c;
}

.listing-body {
  padding-top: 1rem;
}

.listing-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.listing-location {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.listing-blurb {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  max-width: 36ch;
}

.listing-cta {
  color: var(--paper);
  border-bottom: 1px solid var(--copper);
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 0.1rem;
}

/* Home detail pages */
.home-hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.home-hero-media,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.4) 0%, rgba(18, 17, 15, 0.25) 40%, rgba(18, 17, 15, 0.94) 100%),
    linear-gradient(90deg, rgba(18, 17, 15, 0.5) 0%, transparent 60%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  max-width: 42rem;
  animation: rise 1s var(--ease) both;
}

.home-hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--paper);
}

.home-summary {
  padding-top: clamp(2.5rem, 5vh, 3.5rem);
  padding-bottom: 0;
}

.spec-row {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.75rem;
}

@media (min-width: 800px) {
  .spec-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.home-intro {
  max-width: 48rem;
}

.home-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
}

.home-intro a {
  color: var(--paper);
  border-bottom: 1px solid var(--copper);
}

/* Projects — uniform gallery */
.project-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 600px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project,
.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0908;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
}

.project img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 0.55s var(--ease), filter 0.35s ease;
}

.project:hover img,
.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.project figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.9rem;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.project-meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 7, 6, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 17, 15, 0.65);
  color: var(--paper);
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  border: 1px solid var(--line);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

/* About */
.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(42, 40, 36, 0.35), transparent 70%);
}

.about-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr 1.15fr;
  }
}

.about-points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--paper);
  font-weight: 400;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 1px;
  background: var(--copper);
}

.about-image {
  overflow: hidden;
  min-height: 16rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

/* Contact */
.contact-panel {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .contact-panel {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  font-style: normal;
}

.contact-details .label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}

.contact-details p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.contact-details a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-details a:hover {
  border-bottom-color: var(--copper);
  color: var(--paper);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
}

/* Motion */
@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-content {
    animation: none !important;
  }

  .project img,
  .gallery-item img,
  .listing-media img {
    transition: none !important;
  }
}
