:root {
  --bg: #f2eee7;
  --surface: #f7f4ef;
  --text: #1f1c18;
  --muted: #6f665c;
  --line: #d8d0c6;
  --dark: #121212;
  --dark-soft: #1b1b1b;
  --light: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  height: 88vh;
  min-height: 580px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.95);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 18, 13, 0.08) 0%,
    rgba(23, 18, 13, 0.22) 68%,
    rgba(23, 18, 13, 0.4) 100%
  );
}

.hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90%);
  text-align: center;
  color: #f5f0e8;
}

.hero__content.reveal {
  transform: translate(-50%, -44%);
}

.hero__content.reveal.visible {
  transform: translate(-50%, -50%);
}

.hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero__logo {
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.05;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.7rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn--light {
  background: rgba(250, 245, 238, 0.92);
  color: #2a231d;
}

.btn--light:hover {
  background: #ffffff;
}

.hero__content .btn--light {
  position: relative;
  top: -22px;
}

.btn--dark {
  background: var(--dark);
  color: #ece7df;
}

.btn--dark:hover {
  background: var(--dark-soft);
}

.section {
  width: min(1120px, 86%);
  margin: 0 auto;
}

.section--work {
  padding: 8rem 0 7rem;
}

.section__intro {
  max-width: 650px;
  margin-bottom: 4rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.section__intro p {
  color: var(--muted);
  max-width: 560px;
}

.project {
  display: grid;
  gap: 2.8rem;
  margin-bottom: 7rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}

.project + .project {
  padding-top: 4.5rem;
}

.project--second {
  grid-template-columns: 0.85fr 1.15fr;
}

.project__title {
  display: none;
  grid-column: 1 / -1;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin-bottom: -0.4rem;
  text-align: center;
}

.project__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  min-height: 430px;
}

.project__media img {
  border: 1px solid var(--line);
}

.project__text h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.project__text p {
  color: var(--muted);
  max-width: 560px;
}

.project__text p + p {
  margin-top: 1rem;
}

.project__floorplan {
  grid-column: 1 / -1;
  margin-top: 1.4rem;
}

.project__floorplan-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.project__floorplan-slot {
  border: 1px solid var(--line);
  background: #f7f4ef;
  padding: 0.4rem;
}

.project__floorplan-slot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.text-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.15rem;
}

.section--about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.2rem;
  align-items: center;
  padding: 3rem 0 8rem;
}

.about__image-wrap {
  height: clamp(380px, 50vw, 620px);
}

.about__image-wrap img {
  border: 1px solid var(--line);
}

.about__content p {
  color: var(--muted);
  max-width: 560px;
}

.about__content p + p {
  margin-top: 1.2rem;
}

.about__content .btn {
  margin-top: 2.3rem;
}

.site-footer {
  background: var(--dark);
  color: #dfd8ce;
  padding: 3rem 7%;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer__title {
  color: #8f887d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .section {
    width: min(980px, 90%);
  }

  .section--work {
    padding: 6.2rem 0 5.4rem;
  }

  .project,
  .project--second,
  .section--about {
    grid-template-columns: 1fr;
  }

  .project {
    gap: 1.8rem;
    margin-bottom: 5.2rem;
  }

  .project + .project {
    padding-top: 3.2rem;
  }

  .project--second .project__media {
    order: 1;
  }

  .project--second .project__text {
    order: 2;
  }

  .project--second .project__floorplan {
    order: 3;
  }

  .project__title {
    display: block;
    margin-bottom: -0.15rem;
  }

  .project__text h3 {
    display: none;
  }

  .project__text p {
    max-width: 100%;
  }

  .project__media {
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
  }

  .project__floorplan {
    margin-top: 0.8rem;
  }

  .section--about {
    gap: 2.2rem;
    padding: 2rem 0 6rem;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 74vh;
    min-height: 460px;
  }

  .hero__content {
    width: min(900px, 88%);
  }

  .hero__brand {
    margin-bottom: 0.6rem;
  }

  .hero__logo {
    max-height: 42vh;
  }

  .hero__content .btn--light {
    top: -10px;
  }

  .section--work {
    padding: 4.5rem 0 4rem;
  }

  .section__intro {
    margin-bottom: 2.4rem;
  }

  .project {
    gap: 1.25rem;
    margin-bottom: 4.2rem;
  }

  .project + .project {
    padding-top: 2.6rem;
  }

  .project__media {
    grid-template-columns: 1fr;
    min-height: 440px;
    gap: 0.7rem;
  }

  .project__floorplan-label {
    margin-bottom: 0.45rem;
  }

  .project__floorplan-slot {
    padding: 0.25rem;
  }

  .section--about {
    gap: 1.5rem;
    padding: 1.2rem 0 4.5rem;
  }

  .about__image-wrap {
    height: 360px;
  }

  .about__content .btn {
    margin-top: 1.6rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 2.3rem 8%;
  }
}
