:root {
  --color-background: #f7f5f1;
  --color-foreground: #111111;
  --color-foreground-rgb: 17 17 17;
  --color-muted: #4f4a45;
  --color-shadow: rgba(18, 18, 18, 0.08);
  --color-shadow-rgb: 18 18 18;
  --color-input-hover-background: #ffffff;
  --opacity-40: 0.4;
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --style-border-radius-inputs: 16px;
  --hover-lift-amount: 4px;
  --hover-scale-amount: 1.03;
  --hover-subtle-zoom-amount: 1.015;
  --hover-shadow-color: var(--color-shadow);
  --hover-transition-duration: 0.25s;
  --hover-transition-timing: ease-out;
  --surface-transition-duration: 0.3s;
  --surface-transition-timing: var(--ease-out-quad);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--color-foreground-rgb) / var(--opacity-40)) var(--color-background);
  scroll-behavior: smooth;
}

body {
  color: var(--color-foreground);
  background:
    radial-gradient(circle at top right, rgba(225, 217, 205, 0.32), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, var(--color-background) 100%);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-family: "Montserrat", sans-serif;
  font-variation-settings: "slnt" 0;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

.top-strip {
  background: #050505;
  color: #ffffff;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 15px 16px 16px;
}

.page-shell {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 15px;
}

.main-header {
  display: grid;
  grid-template-columns: minmax(220px, 332px) 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 58px;
  width: min(100%, 332px);
  background: url("/public/assets/brand/builtdreams-logo-brown.png") left center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

.brand img {
  width: min(100%, 332px);
  height: auto;
  object-fit: contain;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform var(--hover-transition-duration) var(--hover-transition-timing),
    opacity var(--hover-transition-duration) var(--hover-transition-timing),
    box-shadow var(--hover-transition-duration) var(--hover-transition-timing);
}

.header-cta:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 32px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #d7d0c6;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.hero-media img {
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  padding-top: 26px;
  max-width: 470px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: #151515;
  font-family: "Cormorant Garamond", serif;
  font-size: 3em;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.hero-kicker {
  margin: 0 0 24px;
  color: #2d2d2d;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero-kicker strong {
  font-weight: 700;
}

.hero-separator {
  white-space: pre;
}

.hero-body {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.hero-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.002em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 15px 25px;
  border-radius: 999px;
  background: #090909;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform var(--hover-transition-duration) var(--hover-transition-timing),
    opacity var(--hover-transition-duration) var(--hover-transition-timing),
    box-shadow var(--hover-transition-duration) var(--hover-transition-timing);
}

.cta:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.gallery-section {
  padding: 96px 0 20px;
}

.gallery-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 100%;
}

.gallery-eyebrow {
  margin: 0;
  color: #8f7b67;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-heading h2 {
  margin: 0;
  color: #151515;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 3.8vw, 58px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.gallery-action {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.gallery-cta {
  min-width: 250px;
}

.gallery-card {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.gallery-card-frame {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd4ca;
  box-shadow: 0 18px 34px rgba(19, 16, 12, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s var(--ease-out-quad),
    filter 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
  filter: contrast(1.02) saturate(1.01);
}

.closing-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.58fr);
  align-items: start;
  gap: 32px;
  padding: 84px 0 0;
}

.closing-media {
  position: relative;
  overflow: hidden;
  background: #d7d0c6;
}

.closing-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.closing-media img {
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
  object-position: center center;
}

.closing-copy {
  max-width: 470px;
  padding-top: 86px;
}

.closing-kicker {
  margin: 0 0 18px;
  color: #8f7b67;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.closing-copy h2 {
  margin: 0 0 20px;
  color: #151515;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.closing-body {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.closing-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.002em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 8, 8, 0.9);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 44px 88px;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: auto;
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform var(--hover-transition-duration) var(--hover-transition-timing),
    background var(--hover-transition-duration) var(--hover-transition-timing);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 56px;
  height: 56px;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.site-footer {
  margin-top: 0;
  background: #4b3a2f;
  color: #ffffff;
}

.site-footer__inner {
  width: min(1224px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 34px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.site-footer__brand img {
  width: 100%;
  max-width: 108px;
  height: auto;
}

.site-footer__content {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.site-footer__heading {
  display: grid;
  gap: 10px;
}

.site-footer__label,
.site-footer__intro,
.site-footer__copy {
  margin: 0;
}

.site-footer__label {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer__intro {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

.site-footer__contact {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.site-footer__contact a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}

.home-showcase {
  background:
    radial-gradient(circle at top right, rgba(225, 217, 205, 0.32), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, #f7f5f1 100%);
}

.home-shell {
  padding-bottom: 82px;
}

.home-landing-list {
  display: grid;
  gap: 78px;
}

.home-landing-section {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 32px;
}

.home-landing-section--reversed {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.58fr);
}

.home-landing-section--reversed .home-landing-media {
  order: 2;
}

.home-landing-section--reversed .home-landing-copy {
  order: 1;
}

.home-landing-media {
  overflow: hidden;
  background: #d7d0c6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.home-landing-media img {
  aspect-ratio: 1.49 / 1;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-landing-copy {
  max-width: 470px;
  padding-top: 26px;
}

.home-landing-copy h1 {
  margin: 0 0 20px;
  color: #151515;
  font-family: "Cormorant Garamond", serif;
  font-size: 3em;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.home-landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.home-landing-link {
  background: transparent;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.22);
}

.home-landing-link:hover {
  background: #111111;
  color: #ffffff;
}

.home-empty {
  min-height: 48svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.home-empty h1 {
  margin: 0;
  color: #151515;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.home-empty p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1340px) {
  .page-shell {
    width: min(100%, calc(100% - 40px));
  }

  .main-header {
    grid-template-columns: minmax(220px, 292px) 1fr;
  }

  .brand {
    width: min(100%, 292px);
  }

  .brand img {
    width: min(100%, 292px);
  }

  .hero-copy {
    padding-top: 34px;
    max-width: 440px;
  }

  .home-landing-copy {
    padding-top: 34px;
    max-width: 440px;
  }

  .gallery-section {
    padding-top: 72px;
  }

  .closing-section {
    padding-top: 68px;
  }

  .closing-copy {
    padding-top: 34px;
    max-width: 440px;
  }

  .site-footer__inner {
    width: min(100%, calc(100% - 40px));
  }
}

@media (max-width: 1180px) {
  .main-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-landing-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-landing-section--reversed {
    grid-template-columns: 1fr;
  }

  .home-landing-section--reversed .home-landing-media,
  .home-landing-section--reversed .home-landing-copy {
    order: initial;
  }

  .closing-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .home-landing-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .closing-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .gallery-grid {
    gap: 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .site-footer__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer__copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .top-strip {
    font-size: 14px;
    padding: 13px 14px 14px;
  }

  .page-shell {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0 15px;
  }

  .home-shell {
    padding-bottom: 56px;
  }

  .brand {
    min-height: 0;
    width: min(100%, 240px);
    margin: 0 auto;
  }

  .brand img {
    width: min(100%, 240px);
  }

  .main-header {
    justify-items: center;
  }

  .header-tools {
    display: none;
  }

  .hero-media img {
    aspect-ratio: 1.03 / 1;
  }

  .home-landing-list {
    gap: 58px;
  }

  .home-landing-media img {
    aspect-ratio: 1.03 / 1;
  }

  .hero-copy {
    text-align: center;
    justify-items: center;
  }

  .home-landing-copy {
    text-align: center;
    justify-items: center;
  }

  .closing-copy {
    text-align: center;
    justify-items: center;
  }

  .hero-copy h1 {
    font-size: 3em;
    margin-bottom: 16px;
  }

  .home-landing-copy h1 {
    font-size: 3em;
    margin-bottom: 16px;
  }

  .closing-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-kicker {
    font-size: 15px;
  }

  .closing-kicker {
    font-size: 12px;
  }

  .hero-body p {
    font-size: 15px;
    line-height: 1.68;
  }

  .closing-body p {
    font-size: 15px;
    line-height: 1.68;
  }

  .cta {
    min-width: 116px;
    margin-inline: auto;
  }

  .home-landing-actions {
    justify-content: center;
    width: 100%;
  }

  .gallery-section {
    padding-top: 56px;
  }

  .gallery-heading {
    margin-bottom: 24px;
    justify-items: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-action {
    padding-top: 24px;
    justify-content: center;
  }

  .closing-section {
    padding-top: 56px;
  }

  .closing-media img {
    aspect-ratio: 1.03 / 1;
  }

  .gallery-cta,
  .home-landing-link,
  .header-cta,
  .cta {
    width: 100%;
    max-width: 320px;
  }

  .lightbox-dialog {
    padding: 52px 18px 28px;
  }

  .lightbox-figure img {
    max-width: 92vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 30px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }

  .site-footer {
    margin-top: 0;
  }

  .site-footer__inner {
    width: min(100%, calc(100% - 24px));
    padding: 34px 0 28px;
    gap: 20px;
    justify-items: center;
  }

  .site-footer__brand img {
    max-width: 84px;
  }

  .site-footer__content,
  .site-footer__heading,
  .site-footer__contact {
    justify-items: center;
    text-align: center;
  }

  .site-footer__contact a,
  .site-footer__intro,
  .site-footer__label,
  .site-footer__copy {
    text-align: center;
  }

  .site-footer__copy {
    text-align: center;
  }
}
