:root {
  --ink: #1d211c;
  --muted: #5d625b;
  --paper: #f5f1ea;
  --chalk: #fffdf8;
  --sage: #174237;
  --sage-soft: #dbe6df;
  --terra: #b85b3f;
  --clay: #d9b78f;
  --line: rgba(29, 33, 28, 0.14);
  --shadow: 0 24px 70px rgba(20, 28, 23, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Avenir Next", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

#details,
#gallery,
#location,
#contact {
  scroll-margin-top: 118px;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 25, 20, 0.58);
  color: #fffdf8;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand small {
  color: rgba(255, 253, 248, 0.74);
  font-size: 0.65rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  color: rgba(255, 253, 248, 0.78);
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: #fffdf8;
}

.hero {
  position: relative;
  order: 0;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  background: #0d1511;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 16, 12, 0.78) 0%, rgba(9, 16, 12, 0.48) 36%, rgba(9, 16, 12, 0.12) 70%),
    linear-gradient(0deg, rgba(9, 16, 12, 0.72) 0%, rgba(9, 16, 12, 0.04) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  align-self: end;
  margin: 0 auto;
  padding: 148px 0 86px;
  color: #fffdf8;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--terra);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c6a3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9.2vw, 9.8rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--terra);
  background: var(--terra);
  color: #fffdf8;
}

.button-secondary {
  border-color: rgba(255, 253, 248, 0.6);
  color: #fffdf8;
}

.button-secondary:hover {
  background: #fffdf8;
  color: var(--sage);
}

.price-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 3;
  width: min(292px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.price-panel span,
.price-panel small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
}

.price-panel del {
  color: rgba(29, 33, 28, 0.48);
  font-weight: 800;
}

.facts {
  order: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--chalk);
}

.facts div {
  min-height: 132px;
  padding: 26px clamp(16px, 2vw, 34px);
  border-right: 1px solid var(--line);
}

.facts div:last-child {
  border-right: 0;
}

.facts strong,
.facts span {
  display: block;
}

.facts strong {
  margin-bottom: 10px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.9;
}

.facts span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-section,
.gallery-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-heading h2,
.details-copy h2,
.location-copy h2,
.contact-panel h2 {
  margin-bottom: 0;
  color: var(--sage);
}

.intro-copy {
  margin: auto 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.details-section {
  order: 4;
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 90px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.details-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.details-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-grid article {
  min-height: 230px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--terra);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
}

.feature-grid p {
  color: var(--muted);
}

.gallery-section {
  order: 1;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 8vw, 92px) max(20px, calc((100vw - 1180px) / 2));
  background: var(--chalk);
}

.gallery-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.gallery-section .section-heading {
  max-width: none;
}

.gallery-section .section-heading h2 {
  max-width: 740px;
  font-size: clamp(2rem, 3.7vw, 4rem);
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--sage);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-controls button:hover {
  background: var(--sage);
  color: #fffdf8;
  transform: translateY(-2px);
}

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: var(--sage) rgba(23, 66, 55, 0.14);
}

.gallery-item {
  position: relative;
  flex: 0 0 min(100%, 980px);
  min-width: 0;
  height: clamp(420px, 52vw, 660px);
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #d7d3ca;
  color: #fffdf8;
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: left;
}

.gallery-item-wide {
  flex-basis: min(100%, 980px);
}

.gallery-item-tall {
  flex-basis: min(100%, 980px);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(9, 16, 12, 0.68) 0%, rgba(9, 16, 12, 0.05) 48%);
  opacity: 0.9;
  transition: opacity 220ms ease;
}

.gallery-item:hover::after {
  opacity: 0.62;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 32px);
  left: clamp(18px, 3vw, 34px);
  z-index: 2;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.location-section {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
  padding: clamp(76px, 11vw, 136px) max(20px, calc((100vw - 1180px) / 2));
  background: var(--sage);
  color: #fffdf8;
}

.location-copy h2 {
  color: #fffdf8;
}

.location-copy p {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 1.08rem;
}

.location-board {
  display: grid;
  border-top: 1px solid rgba(255, 253, 248, 0.24);
  border-left: 1px solid rgba(255, 253, 248, 0.24);
}

.location-board div {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid rgba(255, 253, 248, 0.24);
  border-bottom: 1px solid rgba(255, 253, 248, 0.24);
}

.location-board span {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-board strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.contact-section {
  order: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) 0;
}

.contact-panel {
  padding: clamp(28px, 5vw, 58px);
  background: var(--chalk);
  border: 1px solid var(--line);
  box-shadow: 0 22px 72px rgba(20, 28, 23, 0.08);
}

.contact-panel p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-panel .button {
  margin-top: 12px;
}

.phone-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.phone-link:hover {
  color: var(--terra);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 12, 9, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  width: min(1120px, calc(100vw - 120px));
  max-height: calc(100svh - 72px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 130px);
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.28);
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
  cursor: pointer;
  transition: background 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 253, 248, 0.2);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  font-size: 2.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-content {
    width: min(1180px, calc(100% - 32px));
    padding-top: 130px;
    padding-bottom: 168px;
  }

  .price-panel {
    right: 16px;
    bottom: 22px;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-section,
  .details-section,
  .location-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .details-copy {
    position: static;
  }

}

@media (max-width: 720px) {
  #details,
  #gallery,
  #location,
  #contact {
    scroll-margin-top: 78px;
  }

  .site-header {
    display: flex;
    top: 10px;
    width: calc(100% - 20px);
    gap: 12px;
    justify-content: space-between;
    padding: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    font-size: 1.2rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: clamp(590px, 78svh, 700px);
  }

  .hero-content {
    padding-top: 86px;
    padding-bottom: 152px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 13vw, 3.75rem);
  }

  .hero-copy {
    max-width: 32ch;
    margin-bottom: 20px;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    gap: 8px;
  }

  .button {
    min-height: 44px;
  }

  .price-panel {
    width: calc(100% - 32px);
    padding: 14px 18px;
    bottom: 16px;
  }

  .price-panel strong {
    font-size: 2.25rem;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .facts div {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .facts div:nth-child(2n) {
    border-right: 0;
  }

  .facts div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .facts strong {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .facts span {
    max-width: 12ch;
    font-size: 0.62rem;
    line-height: 1.18;
    text-align: right;
  }

  .intro-section,
  .gallery-section,
  .details-section,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }

  .gallery-section {
    width: 100%;
    padding: 28px 14px 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-section .section-heading {
    display: block;
  }

  .gallery-section .section-heading h2,
  .details-copy h2,
  .location-copy h2,
  .contact-panel h2,
  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 0.98;
  }

  .gallery-top {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }

  .gallery-controls {
    justify-content: end;
  }

  .gallery-controls button {
    width: 42px;
    height: 42px;
  }

  .gallery-grid {
    padding-bottom: 8px;
  }

  .gallery-item,
  .gallery-item-wide,
  .gallery-item-tall {
    flex-basis: 100%;
    height: min(52svh, 340px);
  }

  .intro-section {
    gap: 16px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
  }

  .kicker,
  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .intro-copy,
  .details-copy p,
  .location-copy p,
  .contact-panel p {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .details-section {
    gap: 22px;
    padding: 34px 0;
  }

  .feature-grid article {
    min-height: 0;
    padding: 18px 18px 16px;
    background: var(--chalk);
  }

  .feature-grid span {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  .location-section {
    gap: 24px;
    padding: 38px 14px;
  }

  .location-board div {
    min-height: 74px;
    padding: 14px;
  }

  .location-board strong {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .contact-section {
    padding: 34px 0;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox figure {
    width: 100%;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

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