:root {
  --paper: #f4f3ee;
  --paper-deep: #e9e8e2;
  --ink: #292927;
  --muted: #777873;
  --line: #cfcec7;
  --white: #fbfaf6;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--white);
  --card-foreground: var(--ink);
  --popover: var(--white);
  --popover-foreground: var(--ink);
  --primary: var(--ink);
  --primary-foreground: var(--white);
  --secondary: var(--paper-deep);
  --secondary-foreground: var(--ink);
  --muted-foreground: var(--muted);
  --accent: var(--paper-deep);
  --accent-foreground: var(--ink);
  --destructive: #9e3029;
  --border: var(--line);
  --input: var(--line);
  --ring: #5e5f5b;
  --radius: 0.2rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.sheet-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 4vw;
  color: var(--white);
  transition: padding 300ms ease, background 300ms ease, color 300ms ease,
    border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(41 41 39 / 0.12);
  background: rgb(244 243 238 / 0.76);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px) saturate(105%);
  backdrop-filter: blur(8px) saturate(105%);
}

.brand-link {
  grid-column: 2;
  display: block;
  width: clamp(170px, 16vw, 245px);
}

.brand-link img,
footer img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-link img {
  filter: invert(1) grayscale(1) brightness(2.6);
  transition: filter 300ms ease;
}

.site-header.is-scrolled .brand-link img { filter: none; }

.site-header nav {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.site-header nav a {
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 145px 8vw 9vh;
  background: #3c3c39;
  color: var(--white);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video { object-fit: cover; }

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.58) 0%, rgb(0 0 0 / 0.26) 55%, rgb(0 0 0 / 0.2) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 0.38) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(880px, 70vw);
  padding: 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-intro h2,
.sheet-header h2 {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(64px, 7.7vw, 124px);
  line-height: 0.9;
}

.hero .eyebrow { color: rgb(255 255 255 / 0.72); }

.hero-description {
  max-width: 510px;
  margin: 34px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.text-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 34px;
  margin-top: 46px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-cta svg { width: 16px; }

.hero-featured {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 5vh;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(330px, 29vw);
  gap: 8px 24px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.55);
  border-bottom: 1px solid rgb(255 255 255 / 0.55);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.hero-featured > span {
  grid-column: 1 / -1;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-featured strong {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
}

.hero-featured svg {
  width: 20px;
  height: 20px;
  align-self: end;
  transition: transform 250ms ease;
}

.hero-featured:hover svg { transform: translate(3px, 3px); }

.properties-section {
  padding: clamp(100px, 11vw, 180px) 8vw;
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 4vw;
  margin-bottom: 72px;
}

.section-heading .eyebrow { align-self: start; margin-top: 8px; }

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.7vw, 86px);
  line-height: 0.98;
}

.section-heading > p:last-child {
  max-width: 280px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.property-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 300ms ease;
}

.property-card:hover { background: #ecebe6; }

.property-card.has-image { color: var(--white); }

.property-card.has-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.68));
}

.property-card.is-available {
  grid-column: span 2;
  min-height: 600px;
  color: var(--white);
}

.property-card.is-available::after { inset: 45% 0 0; }

.property-card-topline,
.property-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.property-card-topline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.property-status { text-transform: uppercase; }

.is-available .property-status {
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}

.property-card-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #d2d1cb;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(150px, 16vw, 260px);
  line-height: 1;
  transform: translate(-50%, -51%);
  transition: color 300ms ease, transform 500ms ease;
}

.property-card:hover .property-card-mark {
  color: #c8c7c0;
  transform: translate(-50%, -51%) scale(1.025);
}

.property-card-image { position: absolute; inset: 0; }

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.property-card:hover .property-card-image img { transform: scale(1.025); }

.property-address {
  display: block;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1;
}

.property-meta {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.has-image .property-meta { color: rgb(255 255 255 / 0.75); }

.property-arrow {
  width: 21px;
  height: 21px;
  margin-top: 5px;
  transition: transform 300ms ease;
}

.property-card:hover .property-arrow { transform: translate(3px, 3px); }

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 160px);
  padding: clamp(100px, 11vw, 180px) 8vw;
  background: #2d2e2b;
  color: var(--white);
}

.eyebrow-light { color: #a8a9a4; }

.contact-intro h2 {
  max-width: 600px;
  margin: 0 0 34px;
  font-size: clamp(49px, 5.5vw, 85px);
  line-height: 0.95;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 40px;
  color: #bbbcb7;
  font-size: 15px;
  line-height: 1.75;
}

.contact-intro > a {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}

.contact-intro > a svg { width: 15px; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 32px 26px;
}

.contact-form label:not(.form-consent) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label > span:first-child {
  color: #b6b7b2;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 11px 0 13px;
  border: 0;
  border-bottom: 1px solid #676864;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  outline: 0;
  transition: border-color 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--white); }

.contact-form textarea { resize: vertical; }

.form-message,
.form-consent,
.submit-button,
.form-feedback { grid-column: 1 / -1; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.form-consent input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--white);
}

.form-consent span {
  color: #a8a9a4 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
  text-transform: none !important;
}

.submit-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

.submit-button:hover:not(:disabled) { background: transparent; color: var(--white); }
.submit-button:disabled { cursor: wait; opacity: 0.7; }
.submit-button svg { width: 17px; }

.form-feedback {
  min-height: 20px;
  color: #d0d1cc;
  font-size: 12px;
}

.form-feedback p { margin: 0; }
.form-success { display: flex; align-items: center; gap: 9px; }
.form-success svg { width: 14px; }
.honey-field { position: absolute !important; left: -9999px !important; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px 4vw;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer img { width: 135px; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }

.sheet-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.sheet-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 0.48);
  cursor: default;
  opacity: 0;
  transition: opacity 300ms ease;
}

.sheet-layer.is-open .sheet-overlay { opacity: 1; }

.property-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(46vw, 760px) !important;
  max-width: none !important;
  gap: 0 !important;
  border-left: 0 !important;
  background: var(--paper) !important;
  box-shadow: -20px 0 50px rgb(0 0 0 / 0.12) !important;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.sheet-layer.is-open .property-sheet { transform: translateX(0); }

.sheet-header {
  display: flex !important;
  min-height: 116px;
  flex-direction: row !important;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 30px !important;
  border-bottom: 1px solid var(--line);
}

.sheet-header .eyebrow { margin-bottom: 8px; }

.sheet-header h2 {
  margin: 0;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1;
}

.sheet-header [data-slot="sheet-description"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sheet-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.sheet-close svg { width: 16px; }
.sheet-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4 / 4.35;
  overflow: hidden;
  background: #d9d7d0;
}

.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }

.gallery-counter {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 8px 10px;
  background: rgb(250 249 245 / 0.9);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.gallery-controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 5px;
}

.gallery-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: rgb(250 249 245 / 0.9);
  color: var(--ink);
  cursor: pointer;
}

.gallery-controls svg { width: 15px; }

.gallery-thumbnails {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 9px;
  scrollbar-width: thin;
}

.gallery-thumbnails button {
  position: relative;
  width: 72px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  background: #deddd7;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 200ms ease, border-color 200ms ease;
}

.gallery-thumbnails button.is-current { border-color: var(--ink); opacity: 1; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; }

.gallery-empty {
  display: grid;
  min-height: 380px;
  place-items: center;
  align-content: center;
  background: var(--paper-deep);
  color: #c7c6bf;
}

.gallery-empty span {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(150px, 20vw, 280px);
  line-height: 0.8;
}

.gallery-empty p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sheet-details { padding: 48px 32px 40px; }

.sheet-description-copy {
  max-width: 620px;
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.4;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid > div {
  min-height: 134px;
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid .feature-icon {
  display: block;
  margin-bottom: 27px;
  font-size: 18px;
  line-height: 1;
}

.feature-grid strong { display: block; font-size: 14px; font-weight: 400; }

.feature-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.call-button {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.call-button svg { width: 16px; }

@media (max-width: 1000px) {
  .hero { padding-right: 5vw; padding-left: 5vw; }
  .hero-copy { width: min(700px, 72vw); }
  .hero-featured { width: min(290px, 31vw); }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { display: none; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { gap: 7vw; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 21px 20px; }
  .site-header.is-scrolled { padding-top: 15px; padding-bottom: 15px; }
  .brand-link { grid-column: 1; width: 155px; }
  .site-header nav { grid-column: 2; }
  .site-header nav a:first-child { display: none; }
  .hero { min-height: 100svh; padding: 130px 20px 28px; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0.28)),
      linear-gradient(0deg, rgb(0 0 0 / 0.55), transparent 62%);
  }
  .hero-copy { width: 100%; padding: 0 0 105px; }
  .hero h1 { font-size: clamp(54px, 16vw, 78px); }
  .hero-description { max-width: 92%; margin-top: 24px; }
  .text-cta { margin-top: 28px; }
  .hero-featured { right: 20px; bottom: 24px; left: 20px; width: auto; }
  .properties-section, .contact-section { padding: 100px 20px; }
  .section-heading { display: block; margin-bottom: 46px; }
  .section-heading h2 { font-size: 52px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-card, .property-card.is-available { min-height: 430px; grid-column: auto; }
  .property-card.is-available { min-height: 560px; }
  .property-card-mark { font-size: 200px; }
  .contact-section { grid-template-columns: 1fr; gap: 70px; }
  .contact-intro h2 { font-size: 54px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > * { grid-column: 1 !important; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer p:last-child { text-align: center; }
  .property-sheet { width: 100vw !important; }
  .sheet-header { min-height: 106px; padding: 24px 20px !important; }
  .sheet-header h2 { font-size: 30px; }
  .gallery-main { aspect-ratio: 4 / 4.7; }
  .sheet-details { padding: 38px 20px 32px; }
  .feature-grid > div { min-height: 122px; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
