:root {
  --ink: #070707;
  --panel: #151311;
  --panel-2: #211f1b;
  --paper: #fbfaf5;
  --paper-2: #eee8dc;
  --sand: #d8ccbb;
  --muted: #b6ada0;
  --muted-dark: #6f685f;
  --line: rgba(251, 250, 245, 0.18);
  --line-dark: rgba(18, 17, 15, 0.14);
  --sea: #a9cbd2;
  --sea-deep: #6f9ea8;
  --accent: var(--sea);
  --ok: #4fb477;
  --warn: #d5a33b;
  --danger: #c96b5a;
  color-scheme: dark;
  font-family: Jost, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(7, 7, 7, 0.68);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-logo img {
  width: clamp(132px, 15vw, 188px);
  height: auto;
  filter: brightness(1.14) drop-shadow(0 18px 38px rgba(0, 0, 0, 0.26));
}

.nav {
  display: flex;
  gap: clamp(11px, 1.7vw, 22px);
  margin-left: auto;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav a, .nav button {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.nav a:hover, .nav button:hover { color: var(--paper); }
.nav a::after,
.nav button::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 4px;
  background: var(--paper);
  transition: width 160ms ease;
}
.nav a:hover::after,
.nav button:hover::after { width: 100%; }

.hero {
  min-height: 52vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 4vw, 56px) 54px;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.22), var(--ink)),
    url("https://images.unsplash.com/photo-1529119368496-2dfda6ec2804?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(84vh, 820px);
  align-items: end;
  padding-bottom: min(12vh, 96px);
  background: var(--ink);
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: -9%;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.78), rgba(35, 31, 27, 0.34) 54%, rgba(7, 7, 7, 0.1)),
    linear-gradient(180deg, rgba(7, 7, 7, 0.04), var(--ink)),
    var(--hero-image) center/cover;
  transform: translate3d(0, calc(var(--hero-progress, 0) * 70px), 0) scale(calc(1.06 + var(--hero-progress, 0) * 0.035));
  transform-origin: center;
  transition: transform 80ms linear;
  will-change: transform;
}

.hero-premium::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0), var(--ink));
  opacity: calc(0.6 + var(--hero-progress, 0) * 0.35);
}

.hero-copy {
  max-width: 1040px;
  opacity: calc(1 - var(--hero-progress, 0) * 0.52);
  transform: translate3d(0, calc(var(--hero-progress, 0) * -30px), 0);
  transition: opacity 80ms linear, transform 80ms linear;
  will-change: opacity, transform;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 34px;
  border: 1px solid rgba(251, 250, 245, 0.34);
  background: rgba(251, 250, 245, 0.12);
  backdrop-filter: blur(16px);
}

.hero-actions a {
  min-width: 150px;
  padding: 14px 18px;
  border-right: 1px solid rgba(251, 250, 245, 0.24);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-actions a:last-child { border-right: 0; }
.hero-actions a:hover {
  background: var(--paper);
  color: var(--ink);
}

.eyebrow,
.index {
  display: inline-block;
  color: var(--sea);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.92;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--paper);
  font-size: clamp(17px, 2vw, 22px);
}

.section {
  padding: 42px clamp(18px, 4vw, 56px);
  background: var(--ink);
}

.section-light {
  background:
    linear-gradient(180deg, rgba(238, 232, 220, 0.7), rgba(251, 250, 245, 0.96)),
    var(--paper);
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
}

.editorial-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.9fr) minmax(280px, 1.35fr);
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(28px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.editorial-row:first-child { border-top: 0; }
.editorial-row p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
}

.feature-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-card,
.person-card {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 18px 56px rgba(26, 22, 18, 0.08);
}

.feature-card span,
.person-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature-card p,
.person-card p {
  margin: 0;
  color: var(--muted-dark);
}

.person-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
}

.filters, .toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.between { justify-content: space-between; }

.control, .input, textarea {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 250, 245, 0.22);
  background: rgba(251, 250, 245, 0.06);
  color: var(--paper);
  border-radius: 6px;
}
textarea { min-height: 110px; resize: vertical; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--paper);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.button:hover {
  background: var(--sand);
  border-color: var(--sand);
}
.button.secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 250, 245, 0.38);
}
.button.secondary:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.button:disabled {
  opacity: 0.42;
  cursor: default;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(25, 22, 18, 0.1);
}
.card.sold img { filter: grayscale(0.8); opacity: 0.66; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(7, 7, 7, 0.74);
  border: 1px solid rgba(251, 250, 245, 0.2);
  color: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge.sold { background: rgba(111, 104, 95, 0.94); }
.badge.reserved { background: rgba(169, 203, 210, 0.94); color: var(--ink); }
.badge.available { background: rgba(7, 7, 7, 0.88); color: var(--paper); }
.badge-right { left: auto; right: 12px; }

.card-body { padding: 18px; }
.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.card h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
}
.price-mark {
  color: var(--sea-deep);
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}
.summary {
  min-height: 48px;
  color: var(--muted-dark);
  margin: 0 0 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  color: var(--muted-dark);
  font-size: 14px;
}
.facts.compact { grid-template-columns: 1fr; }
.facts strong { color: var(--ink); font-weight: 400; }
.panel .facts,
.profile-block p,
.profile-summary p,
.notice,
.inquiry-row span,
.price-band div { color: var(--muted); }
.panel .facts strong { color: var(--paper); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 28px;
}
.stats div {
  border: 1px solid rgba(251, 250, 245, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 7, 7, 0.46);
}
.stats strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}
.stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tags span {
  border: 1px solid rgba(18, 17, 15, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--paper);
  background: rgba(7, 7, 7, 0.82);
  font-size: 12px;
}
.tags.large span { font-size: 14px; padding: 8px 12px; }

.price-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.price-band div {
  border: 1px solid rgba(251, 250, 245, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}
.price-band strong { color: var(--sea); display: block; font-size: 22px; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px clamp(18px, 4vw, 56px);
  background: #070707;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer img {
  width: 94px;
  height: auto;
}

body.is-scrolled .topbar {
  background: rgba(7, 7, 7, 0.94);
  border-color: rgba(251, 250, 245, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium::before,
  .hero-copy {
    transform: none;
    transition: none;
  }
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
}
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}
.gallery {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}
.profile-summary h1 {
  margin: 54px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.96;
}
.profile-summary p { color: var(--muted); }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
}
.profile-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.profile-block h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}
.profile-block p { color: var(--muted); margin: 0; }
.slim { padding-top: 18px; padding-bottom: 18px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

.status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.notice {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(251, 250, 245, 0.06);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.inquiry-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(251, 250, 245, 0.06);
}
.inquiry-row span {
  color: var(--muted);
  font-size: 13px;
}
.inquiry-row p { margin: 6px 0 0; }

.hidden { display: none !important; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .section-head, .detail, .profile-hero, .admin-layout, .editorial-row { display: block; }
  .filters { margin-top: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-premium { min-height: 72vh; }
  .hero-actions { display: grid; width: 100%; }
  .hero-actions a { border-right: 0; border-bottom: 1px solid rgba(251, 250, 245, 0.2); }
  .hero-actions a:last-child { border-bottom: 0; }
  .editorial-row .index { margin-bottom: 10px; }
}
