:root {
  --ivory: #f7f5f2;
  --white: #ffffff;
  --ink: #161616;
  --muted: #5f5a55;
  --bronze: #8d7352;
  --shadow: 0 22px 50px rgba(22, 18, 14, 0.08);
  --shadow-deep: 0 28px 70px rgba(16, 12, 8, 0.18);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --header: 84px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin: 0;
}

button,
select,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

::selection {
  background: #e6d8c6;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  color: #fff;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(22, 22, 22, 0.06);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  justify-self: start;
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover {
  opacity: 0.72;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.site-header:not(.is-solid) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header.is-solid .nav-toggle {
  border-color: rgba(22, 22, 22, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: #f3efe9;
}

.btn-dark,
.header-cta {
  background: var(--ink);
  color: #fff;
}

.site-header:not(.is-solid) .header-cta {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, 0.14);
}

.text-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  opacity: 0.78;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  margin-top: calc(var(--header) * -1);
  padding: 9.5rem 0 2.5rem;
  color: #fff;
  background: #1b1917;
  overflow: visible;
}

.hero-media,
.cta-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.42) 0%, rgba(14, 12, 10, 0.12) 38%, rgba(14, 12, 10, 0.72) 100%);
}

.hero-copy,
.search-wrap,
.developer-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 1rem;
  color: #e4d3bc;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--bronze);
}

.hero h1,
.page-wrap h1 {
  font-weight: 500;
  font-size: clamp(3.2rem, 6.2vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.search-wrap {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  margin-bottom: -4.6rem;
  scroll-margin-top: 96px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr auto;
  gap: 0.85rem 1rem;
  align-items: end;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
}

.search-panel h2 {
  grid-column: 1 / -1;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 2.3rem 0.75rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background-color: #f4f1ec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23161616' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  appearance: none;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.search-submit {
  min-width: 8.5rem;
}

.featured,
.how,
.difference {
  scroll-margin-top: 96px;
}

.featured {
  padding: 8rem 0 5.5rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

h2 {
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-note,
.difference-intro p,
.how-panel p,
.page-wrap p,
.developer-inner p {
  color: var(--muted);
  line-height: 1.65;
}

.section-note,
.difference-intro p {
  margin-top: 0.85rem;
  font-size: 1.08rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 1.5rem;
  margin-bottom: 1.1rem;
}

.result-count {
  color: var(--muted);
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--bronze);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(22, 18, 14, 0.12);
}

.card-media,
.dialog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd8d2;
}

.card-media img,
.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--bronze);
  transform: translateY(-1px);
}

.badge-inline {
  position: static;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  background: #f4f1ec;
}

.card-body,
.dialog-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.35rem;
}

.card h3,
#dialog-title {
  font-size: 1.7rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.promo-rank {
  margin-bottom: 0.35rem;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.byline,
.where,
.unit-line,
.rera {
  color: var(--muted);
}

.byline {
  margin-top: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.where {
  margin-top: 0.15rem;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.15rem;
}

.unit-line {
  font-weight: 700;
  color: var(--ink);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price span,
.rera span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rera {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.save-property {
  align-self: flex-start;
  margin-top: 0.95rem;
  padding: 0.1rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.save-property:hover,
.save-property.is-saved {
  color: var(--bronze);
}

.save-property:disabled {
  cursor: wait;
  opacity: 0.62;
}

.save-unavailable {
  align-self: flex-start;
  max-width: 28rem;
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.card .btn {
  align-self: flex-start;
  margin-top: 0.85rem;
  min-height: 44px;
}

.save-status {
  margin: 0.2rem 0 0.9rem;
  color: #8a3d32;
  font-size: 0.95rem;
  font-weight: 650;
}

#save-account-dialog {
  width: min(32rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-deep);
}

#save-account-dialog::backdrop {
  background: rgba(16, 14, 12, 0.55);
}

#save-account-title {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.save-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.result-group {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty {
  grid-column: 1 / -1;
  padding: 1.5rem 0;
  color: var(--muted);
}

.cards > [data-clear-search] {
  grid-column: 1 / -1;
  justify-self: start;
}

.fine-print {
  margin-top: 1.4rem;
  color: #8a847d;
  font-size: 0.92rem;
}

.difference {
  padding: 1rem 0 5.5rem;
}

.difference-intro {
  max-width: 40rem;
}

.difference-stage {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 1.5rem;
  margin-top: 2.4rem;
  align-items: stretch;
}

.inventory-board,
.how-panel,
.story li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inventory-board {
  padding: 1.5rem;
}

.board-kicker {
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.inventory-board h3 {
  margin: 0.45rem 0 1.1rem;
  font-size: 2rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.inventory-board ul,
.story,
.how-panel ol,
.page-wrap ol {
  list-style: none;
  padding: 0;
}

.inventory-board li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f6f3ef;
  font-weight: 650;
}

.inventory-board li span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.inventory-board li.is-active {
  background: var(--ink);
  color: #fff;
}

.inventory-board li.is-active span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.story {
  display: grid;
  gap: 0.9rem;
}

.story li,
.how-panel {
  padding: 1.35rem 1.4rem 1.45rem;
}

.story span,
.how-panel li span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story h3,
.how-panel h4 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.story p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.how {
  padding: 1.5rem 0 5.5rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.how-panel h3 {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.how-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding-top: 1.15rem;
  margin-top: 1.05rem;
}

.how-panel li + li {
  box-shadow: inset 0 1px 0 rgba(22, 22, 22, 0.06);
}

.how-panel li span {
  margin-bottom: 0;
  padding-top: 0.25rem;
}

.developer-cta {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1b1917;
  overflow: hidden;
  scroll-margin-top: 84px;
}

.developer-inner {
  width: min(1200px, calc(100% - 3rem));
  padding: 5.5rem 0;
  max-width: 38rem;
}

.developer-inner h2 {
  max-width: 12ch;
}

.developer-inner p {
  max-width: 34rem;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.page-wrap {
  width: min(760px, calc(100% - 3rem));
  padding: 3.2rem 0 5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--bronze);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-wrap h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
}

.page-wrap h2 {
  font-size: 1.7rem;
  margin-top: 1.8rem;
}

.page-wrap p,
.page-wrap li {
  margin-top: 0.8rem;
}

.page-wrap ol {
  margin-top: 0.6rem;
}

.page-wrap li strong,
.page-wrap a {
  color: var(--ink);
}

.page-wrap a {
  font-weight: 700;
}

.site-footer {
  padding: 2.2rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand p:last-child {
  margin-top: 0.45rem;
  max-width: 16rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.4rem;
  max-width: 34rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--ink);
}

#project-dialog {
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: min(90vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
  box-shadow: var(--shadow-deep);
}

#project-dialog::backdrop {
  background: rgba(16, 14, 12, 0.55);
}

.summary {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.particulars {
  margin-top: 1rem;
}

.particulars div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.particulars div + div {
  box-shadow: inset 0 1px 0 rgba(22, 22, 22, 0.06);
}

.particulars dt {
  color: var(--muted);
}

.particulars dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

#dialog-close {
  align-self: flex-start;
  margin-top: 1.2rem;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 1.5rem;
  }

  .search-panel,
  .cards,
  .difference-stage,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .search-submit {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1.1rem;
    background: var(--ivory);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(22, 18, 14, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 0;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(22, 22, 22, 0.06);
  }

  .footer-inner,
  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .developer-inner,
  .page-wrap {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .search-wrap {
    margin-bottom: -2.4rem;
  }

  .search-panel {
    padding: 1.1rem;
  }

  .featured {
    padding-top: 5.4rem;
  }

  .hero h1,
  .page-wrap h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .logo {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
