:root {
  --grain-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%3E%3Cfilter%20id%3D%22d%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%22%20numOctaves%3D%223%22%20seed%3D%224%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%203%200%200%200%20-1.5%22/%3E%3C/filter%3E%3Cfilter%20id%3D%22l%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%22%20numOctaves%3D%223%22%20seed%3D%224%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%20-3%200%200%200%201.5%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23d%29%22/%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23l%29%22/%3E%3C/svg%3E");
  --ink: #1B2430;
  --ink-soft: #2A3648;
  --sand: #F3EEE3;
  --sand-deep: #E8DFCF;
  --sage: #6B7F5C;
  --clay: #A6553B;
  --text-dark: #2B2A28;
  --text-light: #F7F3EC;
  --text-muted: #6B6459;
  --serif: "Fraunces", Georgia, serif;
  --statement-sans: "Inter", var(--sans);
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--sand);
  line-height: 1.5;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.1;
}
p { margin: 0 0 16px; }
a { color: inherit; }
.label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--clay);
  margin: 0 0 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sand);
  border-bottom: 1px solid rgba(43,42,40,0.08);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 19px;
  text-decoration: none;
  color: var(--text-dark);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease;
}
.site-nav a:hover { border-color: var(--clay); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
}


.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--clay); color: var(--text-light); }
.btn-primary:hover { background: #8f4630; }

/* Intro */
.intro { padding: 48px 0 40px; }
.intro-text { font-size: 19px; color: var(--text-muted); max-width: 62ch; margin: 0 0 28px; }
.intro-map .map-frame { margin: 0; height: 200px; }
.intro-map .map-frame iframe { height: 320px; }
.map-credit {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

/* Nearby */
.nearby { padding: 0 0 56px; }
.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  max-width: 720px;
}
.nearby-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.nearby-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
}

/* Property sections */
.property { padding: 64px 0; border-top: 1px solid rgba(43,42,40,0.08); }
.property-alt { background: var(--sand-deep); }
.property-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.property-grid-reverse { grid-template-columns: 0.85fr 1.15fr; }
.property-grid-reverse .property-gallery { order: 2; }
.property h2 { font-size: 28px; }

.property-gallery { display: flex; flex-direction: column; gap: 10px; }
.photo-row { display: flex; gap: 10px; }
.photo { display: block; border-radius: 3px; overflow: hidden; padding: 0; border: 0; background: none; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.photo-preview-item { cursor: zoom-in; }
.photo-preview-item:hover img { transform: scale(1.03); }
.placeholder-photo {
  background: repeating-linear-gradient(135deg, #DCD3C1, #DCD3C1 10px, #E5DCCB 10px, #E5DCCB 20px);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.photo-lg { height: 220px; }
.photo-row .photo { height: 110px; flex: 1; }

/* Full photo gallery + lightbox */
.photo-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-grid-item {
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: none;
}
.photo-grid-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.photo-grid-item:hover img { transform: scale(1.04); }
.photo-grid-item:nth-child(n+7) { display: none; }
.photo-grid-more { position: relative; }
.photo-grid-more::after {
  content: "+" attr(data-count) " photos";
  position: absolute;
  inset: 0;
  background: rgba(27,36,48,0.6);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.photo-grid-more:hover::after { background: rgba(27,36,48,0.72); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,22,29,0.94);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 3px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(247,243,236,0.1);
  border: 1px solid rgba(247,243,236,0.3);
  color: var(--text-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(247,243,236,0.2); }
.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247,243,236,0.7);
  font-size: 13px;
}

.facts-bar {
  display: flex;
  gap: 28px;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: rgba(166,85,59,0.06);
  border: 1px solid rgba(166,85,59,0.18);
  border-radius: 4px;
}
.fact { display: flex; align-items: center; gap: 10px; }
.fact svg { width: 24px; height: 24px; color: var(--clay); flex-shrink: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; }
.fact span { display: block; font-size: 12px; color: var(--text-muted); }
.property-desc { color: var(--text-muted); max-width: 48ch; }

.map-frame {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(43,42,40,0.12);
  margin-bottom: 10px;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}
.property-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Contact */
.contact { padding: 64px 0; border-top: 1px solid rgba(43,42,40,0.08); background: var(--sand-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-intro a { color: var(--clay); }
.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin: 16px 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid rgba(43,42,40,0.2);
  border-radius: 3px;
  background: var(--sand);
  color: var(--text-dark);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}
.contact-form button { margin-top: 14px; align-self: flex-start; border: none; cursor: pointer; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { font-size: 14px; margin: 10px 0 0; min-height: 18px; }
.form-status-ok { color: var(--sage); }
.form-status-err { color: var(--clay); }

/* Footer */
.site-footer { background: var(--ink); color: var(--text-light); padding: 40px 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .wordmark { color: var(--text-light); font-size: 16px; }
.footer-contact { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-label { font-size: 12px; color: rgba(247,243,236,0.55); margin: 0 0 2px; }
.footer-contact p:not(.footer-label) { font-size: 14px; color: rgba(247,243,236,0.85); margin: 0; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-partners {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(247,243,236,0.15);
}
.footer-partners-label {
  font-size: 15px;
  color: rgba(247,243,236,0.75);
  margin: 0;
}
.partner-links { display: flex; align-items: center; gap: 28px; margin-top: 12px; }
.partner-links img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.partner-links a:hover img { opacity: 1; }

/* Responsive */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    padding: 16px 28px;
    gap: 14px;
    border-bottom: 1px solid rgba(43,42,40,0.08);
  }
  .property-grid, .property-grid-reverse { grid-template-columns: 1fr; }
  .property-grid-reverse .property-gallery { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .nearby-list { grid-template-columns: 1fr; }
  .facts-bar { gap: 14px; padding: 16px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 16px; }
  .lightbox-close { width: 36px; height: 36px; top: 12px; right: 12px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-contact { flex-direction: column; gap: 14px; }
}

/* ===== Entry scene + scroll stage ===== */
.site-header {
  position: fixed;
  left: 0; right: 0;
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}
.site-header.on-stage { background: transparent; border-bottom-color: transparent; }
.site-header.on-stage .wordmark,
.site-header.on-stage .site-nav a { color: var(--text-light); }
.site-header.on-stage .nav-toggle span { background: var(--text-light); }
main > section[id], #contact { scroll-margin-top: 64px; }
.intro { padding-top: 64px; }

.curtain {
  position: fixed; inset: 0; z-index: 9;
  background: var(--ink);
  pointer-events: none;
  animation: smokeClear 1.6s cubic-bezier(.45,0,.2,1) 1.55s forwards;
}
@keyframes curtainFade { to { opacity: 0; visibility: hidden; } }
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(8px); }
  35%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.stage { position: relative; height: 280vh; background: var(--ink); }
.stage-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  color: var(--text-light);
}
.stage-bg { position: absolute; inset: 0; will-change: transform; }
.stage-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.18);
  animation: bgSettle 3s cubic-bezier(.2,.7,.2,1) 1.6s forwards;
}
@keyframes bgSettle { to { transform: scale(1); } }
.stage-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,36,48,.55) 0%, rgba(27,36,48,.15) 35%, rgba(27,36,48,.55) 100%),
    rgba(27,36,48, var(--shade, .2));
}

.stage-title {
  position: absolute; left: 0; right: 0; bottom: 18vh;
  padding: 0 clamp(28px, 7vw, 110px);
  will-change: transform, opacity;
}
.stage-title h1 {
  font-size: clamp(36px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--text-light);
  margin: 0 0 22px;
}
.stage-title .line, .stage-kicker, .stage-sub { display: block; overflow: hidden; }
.stage-title .line > span, .stage-kicker > span, .stage-sub > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .95s cubic-bezier(.2,.7,.2,1) forwards;
}
.stage-kicker > span { animation-delay: 2.45s; }
.stage-title .line:nth-child(1) > span { animation-delay: 2.55s; }
.stage-title .line:nth-child(2) > span { animation-delay: 2.67s; }
.stage-sub > span { animation-delay: 2.9s; }
@keyframes rise { to { transform: none; } }
.stage-kicker { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.8); margin: 0 0 18px; }
.stage-sub { font-size: 15px; color: rgba(247,243,236,.85); margin: 0; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247,243,236,.75);
  opacity: 0; animation: fadeIn .8s ease 3.3s forwards;
}
.scroll-cue i { width: 1px; height: 44px; background: rgba(247,243,236,.25); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--text-light);
  animation: drip 1.8s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes drip { to { top: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }

.stage-options {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px clamp(20px, 5vw, 64px) 32px;
  pointer-events: none;
}
.stage-options.live { pointer-events: auto; }
.stage-choose {
  text-align: center;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247,243,236,.8);
  margin: 0 0 22px;
  opacity: 0;
}
.option-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 32px);
  max-width: 1080px; width: 100%; margin: 0 auto;
}
.option-card {
  position: relative; display: block;
  height: min(60vh, 540px);
  border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--text-light);
  opacity: 0; transform: translateY(70vh);
  will-change: transform, opacity;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.option-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.option-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,36,48,0) 35%, rgba(27,36,48,.88) 100%);
}
.option-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.6vw, 32px); z-index: 1; }
.option-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,236,.75); margin: 0 0 8px; }
.option-card h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--text-light); margin: 0 0 6px; }
.option-facts { font-size: 14px; color: rgba(247,243,236,.85); margin: 0 0 16px; }
.option-cta {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid var(--clay);
}
.option-cta span { transition: transform .3s ease; }
.option-card:hover img, .option-card:focus-visible img { transform: scale(1.05); }
.option-card:hover .option-cta span { transform: translateX(4px); }
.option-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

@media (max-width: 760px) {
  .site-header.on-stage .site-nav.open { background: var(--ink); }
  .stage { height: 260vh; }
  .stage-title { bottom: 16vh; }
  .stage-options { padding: 76px 20px 24px; }
  .stage-choose { margin-bottom: 14px; }
  .option-row { grid-template-columns: 1fr; gap: 12px; }
  .option-card { height: calc((100svh - 160px) / 2); }
  .option-body { padding: 16px 18px; }
  .option-facts { margin-bottom: 8px; }
  .option-kicker { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .stage { height: auto; }
  .stage-pin { position: relative; height: auto; overflow: visible; }
  .stage-bg { position: absolute; }
  .stage-bg img { transform: none; animation: none; }
  .stage-title { position: relative; bottom: auto; padding-top: 140px; padding-bottom: 40px; }
  .stage-title .line > span, .stage-kicker > span, .stage-sub > span { transform: none; animation: none; }
  .scroll-cue { display: none; }
  .stage-options { position: relative; pointer-events: auto; padding-top: 0; padding-bottom: 64px; }
  .stage-choose, .option-card { opacity: 1; transform: none; }
}

/* ===== Per-home pages ===== */
.page-sub .site-header { position: sticky; top: 0; }
.site-nav a[aria-current="page"] { border-color: var(--clay); }
.home-hero {
  position: relative;
  height: min(62vh, 560px);
  min-height: 340px;
  display: flex; align-items: flex-end;
  color: var(--text-light);
  overflow: hidden;
  background: var(--ink);
}
.home-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroSettle 1.6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroSettle { from { transform: scale(1.08); } to { transform: none; } }
.home-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,36,48,.15) 30%, rgba(27,36,48,.8) 100%);
}
.home-hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; }
.home-hero h1 { font-size: clamp(38px, 6vw, 72px); color: var(--text-light); margin: 0; }
.home-hero-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.8); margin: 0 0 10px; }
.back-link {
  display: inline-block; margin-bottom: 22px;
  font-size: 14px; text-decoration: none; color: rgba(247,243,236,.85);
  border-bottom: 1px solid transparent;
}
.back-link:hover { border-color: var(--clay); }

.page-sub .property { border-top: 0; }
.page-sub .photo-grid-item:nth-child(n+7) { display: block; }
.page-sub .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

.other-home { padding: 8px 0 64px; }
.other-card {
  position: relative; display: flex; align-items: flex-end;
  height: 220px; border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--text-light);
}
.other-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.other-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,36,48,.85), rgba(27,36,48,.1)); }
.other-text { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.other-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.75); }
.other-name { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); }
.other-card:hover img { transform: scale(1.04); }
.other-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

@media (max-width: 760px) {
  .page-sub .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .home-hero { height: 52vh; }
}
@media (prefers-reduced-motion: reduce) { .home-hero > img { animation: none; } }
.page-sub .property-grid { grid-template-columns: 1fr; }
.page-sub .property-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 56px; align-items: start; }
.page-sub .property-info .facts-bar { grid-column: 1; grid-row: 1; align-self: start; }
.page-sub .property-info > :not(.facts-bar) { grid-column: 2; }
.page-sub .property-desc { max-width: 62ch; }
.page-sub .property-info .btn { justify-self: start; }
@media (max-width: 760px) {
  .page-sub .property-info { grid-template-columns: 1fr; }
  .page-sub .property-info > * { grid-column: 1 !important; }
}
.page-sub .setting { padding-top: 16px; }
.page-sub .setting .intro-text { color: var(--text-dark); }

/* ===== Immersive home pages ===== */
.page-immersive { --tone: var(--ink); --tone-text: var(--text-light); --sheet: var(--sand); --sheet-deep: var(--sand-deep); background: var(--tone); }
.tone-clay { --tone: #9A4F37; }
/* Desert sand: a light dune color with warm dark-brown text */
.tone-sand { --tone: #DCCBAE; --tone-text: #3B2F26; }
.tone-green { --tone: #3E5A4B; --sheet: #E9EEE6; --sheet-deep: #DCE5D8; }
.page-immersive .site-header { position: fixed; top: 0; }
.page-immersive .site-header.on-stage .site-nav.open { background: var(--tone); }
.page-immersive .site-header.on-stage :is(.wordmark, .site-nav a) { color: var(--tone-text); }
.page-immersive .site-header.on-stage .nav-toggle span { background: var(--tone-text); }
.ph-meta .scroll-cue { color: inherit; }
.ph-meta .scroll-cue i { background: color-mix(in srgb, var(--tone-text) 25%, transparent); }
.ph-meta .scroll-cue i::after { background: var(--tone-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ph-reveal { position: relative; background: var(--tone); }
.ph-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; z-index: 0; color: var(--tone-text);
}
.ph-marquee {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  overflow: hidden; pointer-events: none;
  will-change: opacity;
}
.ph-marquee-track {
  display: flex; align-items: center; width: max-content;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(96px, 17vw, 270px); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap; color: var(--tone-text);
}
.ph-marquee-track span { padding: 0 .28em; }
.ph-marquee-track i { font-style: normal; font-size: .28em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ph-frame {
  --w0: min(44vh, 70vw);
  /* centered with auto margins (not a transform) so the entrance scales out from the true middle */
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: var(--w, var(--w0)); height: var(--h, var(--w0));
  transform-origin: 50% 50%;
  border-radius: var(--r, 4px); overflow: hidden;
  will-change: width, height, scale;
  scale: .18; opacity: 0;
  animation: frameIn 1.15s cubic-bezier(.45,.05,.15,1) .2s forwards;
}
/* Entrance, step 1: on a blank screen the whole photo appears small and scales up into the square */
@keyframes frameIn { 0% { scale: .18; opacity: 0; } 20% { opacity: 1; } 100% { scale: 1; opacity: 1; } }

/* Entrance, step 2: once the photo has finished growing (1.35s), all text slides up together out of an invisible slot */
.ph-marquee-track { translate: 0 110%; animation: marquee 38s linear infinite, riseIn 1.2s cubic-bezier(.3,.6,.15,1) 1.3s forwards; }
.ph-meta > *, .page-immersive .site-header :is(.wordmark, .site-nav a, .nav-toggle) {
  translate: 0 100%; clip-path: inset(0 0 100% 0);
  animation: slotUp 1.1s cubic-bezier(.3,.6,.15,1) forwards;
}
.page-immersive .site-header :is(.wordmark, .site-nav a, .nav-toggle) { animation-delay: 1.3s; }
@media (max-width: 760px) { .page-immersive .site-header .site-nav a { translate: none; clip-path: none; animation: none; } }
.ph-meta > :nth-child(1) { animation-delay: 1.3s; }
.ph-meta > :nth-child(3) { animation-delay: 1.3s; }
.ph-meta > :nth-child(2) { animation-delay: 1.3s; }
@keyframes riseIn { to { translate: 0 0; } }
@keyframes slotUp { to { translate: 0 0; clip-path: inset(0 0 -20% 0); } }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1)); will-change: transform; }
.ph-frame-shade { position: absolute; inset: 0; z-index: 1; background: rgba(27,36,48, var(--sh, 0)); pointer-events: none; }
.ph-meta {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  padding: 0 clamp(20px, 5vw, 64px);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tone-text) 85%, transparent);
}
.ph-meta p { margin: 0; }
.ph-meta p:last-child { text-align: right; }
.ph-meta .scroll-cue { position: static; transform: none; }
.ph-spacer { height: 115vh; }

.ph-sheet {
  position: relative; z-index: 1;
  background: var(--sand);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.45);
}
.ph-details { padding: 72px 0 24px; }
.page-immersive .property-info .btn { justify-self: start; }

.ph-gallery { padding: 56px 0 64px; border-top: 0; background: transparent; }
.ph-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ph-gallery-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.ph-arrows { display: flex; gap: 10px; }
.ph-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(43,42,40,.25); background: transparent; color: var(--text-dark);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.ph-arrow:hover { background: var(--clay); border-color: var(--clay); color: var(--text-light); }
.ph-arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--text-dark); border-color: rgba(43,42,40,.25); }
.page-sub .ph-track {
  display: flex; gap: 12px; margin: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(28px, calc((100vw - 1120px) / 2 + 28px)) 6px;
  scroll-padding-inline: max(28px, calc((100vw - 1120px) / 2 + 28px));
  scrollbar-width: none; cursor: grab;
}
.page-sub .ph-track::-webkit-scrollbar { display: none; }
.page-sub .ph-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.page-sub .ph-track .photo-grid-item {
  display: block; flex: 0 0 auto;
  height: clamp(260px, 56vh, 560px); width: auto; aspect-ratio: 3 / 2; max-width: none;
  scroll-snap-align: start; border-radius: 6px;
}
.page-sub .ph-track .photo-grid-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }

.page-immersive .setting { padding-top: 24px; }
.page-immersive .contact { border-radius: 0; }

.ph-lead {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.2;
  max-width: 26ch; margin: 0 0 40px; color: var(--text-dark); text-wrap: balance;
}

@media (max-width: 760px) {
  .ph-frame { --w0: 72vw; }
  .ph-marquee-track { font-size: 30vw; animation-duration: 26s, 1.2s; }
  .ph-meta { grid-template-columns: 1fr 1fr; font-size: 10.5px; bottom: 22px; }
  .ph-meta .scroll-cue { display: none; }
  .ph-spacer { height: 100vh; }
  .ph-sheet { border-radius: 16px 16px 0 0; }
  .ph-details { padding-top: 44px; }
  .ph-lead { margin-bottom: 28px; }
  .page-sub .ph-track { padding: 0 20px 6px; scroll-padding-inline: 20px; }
  .page-sub .ph-track .photo-grid-item { height: auto; width: 84vw; }
  .ph-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-marquee-track { animation: none; translate: none; }
  .ph-frame { animation: none; scale: 1; opacity: 1; }
  .ph-frame img { transform: none; }
  .ph-meta > *, .page-immersive .site-header :is(.wordmark, .site-nav a, .nav-toggle) { animation: none; translate: none; clip-path: none; }
}

/* Centered statement at the top of each home's panel: gets the whole screen to itself */
.ph-statement {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 0; text-align: center;
}
.ph-rule { display: block; width: 1px; height: 56px; margin: 0 auto 64px; background: rgba(31,37,71,.45); }
.ph-statement-head {
  font-family: var(--serif); font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(42px, 3.9vw, 74px); line-height: .93; letter-spacing: -.045em;
  max-width: 6.9em; margin: 0 auto 64px; color: #1F2547;
}
.ph-statement-head .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.js-reveal .ph-statement-head .w { --o: .16; }
.ph-statement-text {
  font-family: var(--statement-sans); font-weight: 500;
  max-width: 21.5em; margin: 0 auto; font-size: 17px; line-height: 1.38; color: #555F8A;
  transition: opacity .8s ease, transform .8s ease;
}
.js-reveal .ph-statement-text { opacity: 0; transform: translateY(16px); }
.js-reveal .ph-statement-text.in { opacity: 1; transform: none; }
.ph-details { padding-top: 24px; }
@media (max-width: 760px) {
  .ph-statement { padding: 56px 0; }
  .ph-rule { height: 44px; margin-bottom: 44px; }
  .ph-statement-head { font-size: 44px; margin-bottom: 40px; }
  .ph-statement-text { font-size: 15.5px; }
}

/* Hold the entrance until the main photo has loaded, so it never grows an empty box */
.is-waiting .ph-frame, .is-waiting .ph-marquee-track, .is-waiting .ph-meta > *,
.is-waiting .site-header :is(.wordmark, .nav-toggle, .site-nav a) { animation-play-state: paused; }

/* Subtle grain on the opening screen's color, like sand or fine plaster */
.ph-pin::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain-img);
  background-size: 240px 240px;
  opacity: var(--grain, .16);
}
.tone-sand { --grain: .28; }

/* ===== Centered logo lockup (all pages): THE OAK HILL / COLLECTION ===== */
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.header-row .wordmark { grid-column: 2; grid-row: 1; }
.header-row .site-nav, .header-row .nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
.site-header .wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  text-transform: uppercase; line-height: 1; text-decoration: none;
}
.wm-top { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: .04em; }
.wm-sub { font-family: var(--sans); font-weight: 500; font-size: 8.5px; letter-spacing: .42em; margin-top: 6px; padding-left: .42em; }
@media (max-width: 760px) {
  .wm-top { font-size: 19px; }
  .wm-sub { font-size: 7.5px; margin-top: 5px; }
}

/* Home page entrance: the logo starts large in the middle of a dark screen,
   then zooms up into its place at the top while the screen fades away */
.has-intro .site-header .wordmark { opacity: 0; animation: wmFallback 0s 3.2s forwards; }
@keyframes wmFallback { to { opacity: 1; } }
.has-intro .site-header :is(.site-nav a, .nav-toggle) { opacity: 0; translate: 0 -8px; animation: navIn .9s cubic-bezier(.2,.7,.2,1) 2.4s forwards; }
@keyframes navIn { to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) { .has-intro .site-header .site-nav a { opacity: 1; translate: none; animation: none; } }

/* Home headline block sits on the right */
.stage-title { text-align: right; }
.stage-title h1 { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .has-intro .site-header .wordmark, .has-intro .site-header :is(.site-nav a, .nav-toggle) { opacity: 1; translate: none; animation: none; }
}

/* Menu and home headline sit at the far right edge of the screen (logo stays centered) */
.site-header .header-row { max-width: none; padding-left: clamp(20px, 3.5vw, 56px); padding-right: clamp(20px, 3.5vw, 56px); }
.stage-title { padding-right: clamp(20px, 3.5vw, 56px); }

/* Panel that slides up over the photo: its color per home, with the same soft grain */
.page-immersive .ph-sheet { background: var(--sheet); isolation: isolate; }
.page-immersive .ph-sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background-image: var(--grain-img); background-size: 240px 240px;
  opacity: var(--sheet-grain, .2);
}
.page-immersive .contact { background: var(--sheet-deep); position: relative; isolation: isolate; }
.page-immersive .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-img); background-size: 240px 240px;
  opacity: var(--sheet-grain, .2);
}
.page-immersive .contact-form :is(input, textarea, select) { background: color-mix(in srgb, var(--sheet) 70%, white); }
/* Solid header (after scrolling past the photo) matches each home's panel color */
.page-immersive .site-header:not(.on-stage) { background: var(--sheet); }

/* Same soft grain on the top bar (once it turns solid) and the footer, on every page */
.site-header { isolation: isolate; }
.site-header:not(.on-stage)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-img); background-size: 240px 240px;
  opacity: var(--sheet-grain, .2);
}
.site-footer { position: relative; isolation: isolate; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-img); background-size: 240px 240px;
  opacity: .16;
}
/* Contact section uses the same color as the rest of its page */
.contact { background: var(--sand); }
.page-immersive .contact { background: transparent; border-top-color: transparent; }  /* the panel's own color and grain show straight through */
.contact { position: relative; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-img); background-size: 240px 240px;
  opacity: .2;
}
.page-immersive .contact::before { display: none; }


/* ===== Footer: full width, badge in the middle ===== */
.site-footer .wrap { max-width: none; padding-left: clamp(20px, 3.5vw, 56px); padding-right: clamp(20px, 3.5vw, 56px); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.site-footer .footer-contact { justify-self: end; }
.footer-badge { height: 150px; width: auto; display: block; }
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .site-footer .footer-contact { justify-self: start; }
  .footer-badge { height: 120px; order: -1; justify-self: center; }
}

/* ===== Home pages: photo and name sit a little higher, with a line of text under the photo ===== */
.ph-frame { translate: 0 var(--fy, -7vh); }
.ph-marquee { top: calc(50% - 7vh); }
.ph-under {
  position: absolute; left: 0; right: 0; z-index: 2; margin: 0 auto;
  top: calc(50% - 7vh + min(22vh, 35vw) + 34px);
  max-width: none; padding: 0 24px; text-align: center;
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(38px, 4.2vw, 68px); line-height: .95; letter-spacing: -.045em;
  color: var(--tone-text);
  translate: 0 100%; clip-path: inset(0 0 100% 0);
  animation: slotUp 1.1s cubic-bezier(.3,.6,.15,1) 1.3s forwards;
}
.is-waiting .ph-under { animation-play-state: paused; }

/* Logo starts larger and lower, then shrinks into place as you scroll (driven by script.js) */
.page-immersive .site-header .wordmark { transform-origin: 50% 0; transform: translateY(30px) scale(1.6); }

@media (max-width: 760px) {
  .ph-under { top: calc(50% - 7vh + 36vw + 24px); font-size: 36px; }
  .page-immersive .site-header .wordmark { transform: translateY(18px) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-under { animation: none; translate: none; clip-path: none; }
}
/* Footer badge: smaller, far left, with the name beside it */
.site-footer .footer-grid { grid-template-columns: auto 1fr auto; gap: 20px; }
.footer-badge { order: -1; height: 88px; }
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: auto 1fr; }
  .footer-badge { height: 72px; justify-self: start; }
  .site-footer .footer-contact { grid-column: 1 / -1; }
}

/* ===== Header swap on scroll: centered name -> OH mark, full name moves to the top left ===== */
.header-row .wm-oh, .header-row .wm-left { grid-row: 1; text-decoration: none; transition: opacity .45s ease, scale .45s ease, translate .45s ease; }
.header-row .wm-oh { grid-column: 2; justify-self: center; opacity: 0; scale: .7; pointer-events: none; }
.header-row .wm-oh img { height: 40px; width: auto; display: block; }
.header-row .wm-left {
  grid-column: 1; justify-self: start;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-transform: uppercase; line-height: 1; color: var(--text-dark);
  opacity: 0; translate: -14px 0; pointer-events: none;
}
.header-row .wm-left .wm-top { font-size: 17px; }
.header-row .wm-left .wm-sub { font-size: 7px; margin-top: 5px; padding-left: 0; }
.site-header.on-stage .wm-left { color: var(--text-light); }
.page-immersive .site-header.on-stage .wm-left { color: var(--tone-text); }
.header-row .wordmark { transition: opacity .4s ease, scale .4s ease; }
.site-header.scrolled .wordmark { opacity: 0 !important; scale: .85; pointer-events: none; }
.site-header.scrolled .wm-oh { opacity: 1; scale: 1; pointer-events: auto; }
.site-header.scrolled .wm-left { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (max-width: 760px) {
  .header-row .wm-oh img { height: 32px; }
  .header-row .wm-left .wm-top { font-size: 13px; }
  .header-row .wm-left .wm-sub { font-size: 6px; }
}
.footer-badge-link { order: -1; display: block; line-height: 0; }
.footer-badge-link .footer-badge { order: 0; transition: opacity .2s ease; }
.footer-badge-link:hover .footer-badge { opacity: .85; }
.footer-badge-link:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 40px; }
@media (max-width: 760px) { .footer-badge-link { justify-self: start; } }

/* ===== Diagonal photo strip (home pages): equal photos on one continuous staircase ===== */
.dg { --w: 28vw; --gap: 2.4vw; --step: 6.5vw; --n: 10; padding: 8px 0 32px; overflow: hidden; }
.dg-viewport { position: relative; overflow: hidden; height: calc(var(--w) * .75 + var(--step) * 3.2); }
.dg-track {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: var(--gap);
  width: max-content; padding: 0 clamp(20px, 4vw, 64px);
  will-change: transform;
}
.dg-item {
  flex: 0 0 auto; width: var(--w); padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; display: block; border-radius: 2px;
  translate: 0 calc(var(--i) * var(--step) * -1);
}
.dg-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dg-item:hover img { transform: scale(1.04); }
.dg-item:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.dg-controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 24px clamp(20px, 4vw, 64px) 0; }
.dg-controls .ph-arrow { width: 44px; height: 44px; font-size: 18px; }
@media (max-width: 760px) {
  .dg { --w: 74vw; --gap: 4vw; --step: 11vw; }
}

/* Full Gallery link (above the description) and the all-photos overlay */
.full-gallery-link {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 8px;
  margin: 0 0 18px; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: none;
  font: 500 15px/1.2 var(--sans); color: var(--btn, #1F2547); cursor: pointer;
}
.full-gallery-link .fg-count { font-size: 12px; opacity: .65; }
.full-gallery-link:hover { opacity: .8; }
.fg { position: fixed; inset: 0; z-index: 90; background: var(--sheet, var(--sand)); overflow-y: auto; padding: 0 clamp(16px, 3.5vw, 56px) 48px; }
.fg[hidden] { display: none; }
.fg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: var(--sheet, var(--sand)); }
.fg-title { margin: 0; font-family: var(--serif); font-size: 26px; color: #1F2547; }
.fg-title span { font-family: var(--sans); font-size: 13px; opacity: .6; margin-left: 8px; }
.fg-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(31,37,71,.3); background: transparent; font-size: 24px; line-height: 1; color: #1F2547; cursor: pointer; }
.fg-close:hover { background: #1F2547; color: #fff; }
.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.fg-thumb { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.fg-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.fg-thumb:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
body.fg-open { overflow: hidden; }

/* Buttons follow each home's colors */
.tone-green { --btn: #3E5A4B; --btn-hover: #2F4639; }
.tone-sand  { --btn: #7A5A3C; --btn-hover: #5F452D; }
.page-immersive .btn-primary { background: var(--btn); }
.page-immersive .btn-primary:hover { background: var(--btn-hover); }

/* OH mark: light version over dark/photo areas, dark version on light backgrounds */
.header-row .wm-oh .oh-dark { display: none; }
.site-header:not(.on-stage) .wm-oh .oh-light { display: none; }
.site-header:not(.on-stage) .wm-oh .oh-dark { display: block; }
.page-immersive.tone-sand .site-header.on-stage .wm-oh .oh-light { display: none; }
.page-immersive.tone-sand .site-header.on-stage .wm-oh .oh-dark { display: block; }

/* Smooth page scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Bigger staircase photos: about three in view at a time */
.dg { --w: 34vw; --gap: 2.6vw; --step: 6vw; padding-bottom: 0; }
@media (max-width: 760px) { .dg { --w: 80vw; --gap: 4vw; --step: 11vw; } }
.dg-controls { padding-top: 16px; }

/* Details sit closer under the photos, with the home's name as a title */
.page-immersive .ph-details { padding-top: 0; }
.home-title {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(40px, 4.2vw, 64px); line-height: 1; letter-spacing: -.035em;
  color: #1F2547; margin: 0 0 22px;
}
.page-sub .property-info .facts-bar { margin-top: 10px; }

/* Full Gallery: a clear button */
.full-gallery-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 26px; padding: 14px 22px; border: 0; border-radius: 3px;
  background: var(--btn, #1F2547); color: #fff; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.45);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.full-gallery-btn svg { width: 18px; height: 18px; fill: currentColor; }
.full-gallery-btn .fg-count { font-weight: 400; font-size: 13px; opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); }
.full-gallery-btn:hover { background: var(--btn-hover, #141a36); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }
.full-gallery-btn:focus-visible { outline: 2px solid var(--btn, #1F2547); outline-offset: 3px; }

/* Gap back between the photos and the details */
.page-immersive .ph-details { padding-top: clamp(56px, 8vh, 96px); }
/* Gallery button sits with the arrows under the photos */
.dg-controls .full-gallery-btn { margin: 0 10px 0 0; }
@media (max-width: 760px) { .dg-controls .full-gallery-btn { margin-right: auto; padding: 12px 16px; } }
/* Featured photo in the left column */
.page-sub .property-info .home-feature { grid-column: 1; grid-row: 2 / span 5; align-self: start; margin: 28px 0 0; max-width: 460px; }
.home-feature img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
@media (max-width: 760px) { .page-sub .property-info .home-feature { grid-row: auto; margin: 0 0 24px; } }
.full-gallery-btn { white-space: nowrap; }
@media (max-width: 760px) { .dg-controls .full-gallery-btn .fg-count { display: none; } }

/* ===== Compact one-row footer ===== */
.site-footer.ft { padding: 14px clamp(20px, 3.5vw, 56px); }
.ft-row { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); flex-wrap: wrap; font-size: 13px; }
.ft-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-light); margin-right: auto; }
.ft-badge { height: 46px; width: auto; display: block; }
.ft-name { font-family: var(--serif); font-size: 16px; letter-spacing: .01em; }
.ft-contact { display: flex; align-items: center; gap: 10px; color: rgba(247,243,236,.85); }
.ft-contact a { color: inherit; text-decoration: none; }
.ft-contact a:hover, .ft-brand:hover .ft-name { text-decoration: underline; text-underline-offset: 3px; }
.ft-dot { opacity: .5; }
.ft-partners { display: flex; align-items: center; gap: 8px; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid rgba(247,243,236,.15); }
.ft-label { color: rgba(247,243,236,.6); font-size: 12px; margin-right: 4px; }
.ft-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 4px; background: #F7F3EC; transition: transform .2s ease; }
.ft-chip:hover { transform: translateY(-1px); }
.ft-chip img { height: 16px; width: auto; display: block; }
.ft-license { margin: 0; color: rgba(247,243,236,.55); font-size: 12px; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid rgba(247,243,236,.15); }
@media (max-width: 860px) {
  .ft-row { gap: 12px 18px; }
  .ft-brand { margin-right: 0; width: 100%; }
  .ft-partners, .ft-license { padding-left: 0; border-left: 0; }
  .ft-contact { flex-wrap: wrap; }
}
.ft-chip.ft-vrbo { padding: 0; overflow: hidden; background: #0E214A; width: 74px; justify-content: center; }
.ft-chip.ft-vrbo img { height: 28px; width: 74px; object-fit: cover; transform: scale(1.12); }

/* Footer legal links + form note */
.ft-legal { display: flex; gap: 14px; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid rgba(247,243,236,.15); }
.ft-legal a { color: rgba(247,243,236,.6); font-size: 12px; text-decoration: none; }
.ft-legal a:hover { color: var(--text-light); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .ft-legal { padding-left: 0; border-left: 0; } }
.form-consent { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
.form-consent a { color: inherit; }

/* Privacy / Terms pages */
.legal-page { background: var(--sand); position: relative; isolation: isolate; }
.legal-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-img); background-size: 240px 240px; opacity: .2; }
.legal-head { display: flex; justify-content: center; padding: 22px 20px; border-bottom: 1px solid rgba(43,42,40,.08); }
.legal-brand { display: inline-flex; flex-direction: column; align-items: center; text-transform: uppercase; line-height: 1; text-decoration: none; color: var(--text-dark); }
.legal { max-width: 68ch; margin: 0 auto; padding: 56px 20px 80px; color: var(--text-dark); line-height: 1.65; }
.legal-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(36px, 5vw, 54px); letter-spacing: -.03em; color: #1F2547; margin: 0 0 8px; }
.legal-date { font-size: 13px; color: var(--text-muted); margin: 0 0 36px; }
.legal h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; color: #1F2547; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: #1F2547; }
.legal-back { margin-top: 48px; }
.ft-end { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid rgba(247,243,236,.15); }
.ft-end .ft-license, .ft-end .ft-legal { padding-left: 0; border-left: 0; }
@media (max-width: 860px) { .ft-end { align-items: flex-start; padding-left: 0; border-left: 0; } }

/* ===== Main page entrance: smoke ===== */
@property --clear { syntax: "<percentage>"; inherits: false; initial-value: -30%; }
.curtain {
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 55%, #2A2A2D 0%, #18181A 60%, #0C0C0D 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--clear), #000 calc(var(--clear) + 26%));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--clear), #000 calc(var(--clear) + 26%));
}
@keyframes smokeClear {
  0%   { --clear: -30%; opacity: 1; }
  100% { --clear: 110%; opacity: 0; visibility: hidden; }
}
.smoke {
  position: absolute; display: block; pointer-events: none;
  width: 75vmax; height: 55vmax; left: 50%; top: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4,4,5,.92), rgba(6,6,7,.55) 55%, transparent 75%);
  filter: blur(42px);
  opacity: 0;
  animation: drift 4.6s cubic-bezier(.35,0,.25,1) forwards;
  will-change: transform, opacity;
}
.s1 { --x0: -95%; --y0: -40%; --x1: -70%; --y1: -55%; animation-delay: 0s; }
.s2 { --x0: -10%; --y0: -75%; --x1: -30%; --y1: -45%; width: 60vmax; animation-delay: .15s; }
.s3 { --x0: -60%; --y0: -10%; --x1: -45%; --y1: -60%; height: 45vmax; animation-delay: .3s; }
.s4 { --x0: -20%; --y0: -30%; --x1: -55%; --y1: -50%; width: 55vmax; height: 40vmax; animation-delay: .45s;
      background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent 72%); }
.s5 { --x0: -80%; --y0: -70%; --x1: -50%; --y1: -48%; width: 90vmax; height: 30vmax; animation-delay: .6s;
      background: radial-gradient(closest-side, rgba(10,10,11,.6), transparent 70%); }
@keyframes drift {
  0%   { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(.8) rotate(-6deg); }
  35%  { opacity: 1; }
  100% { opacity: .55; transform: translate(var(--x1), var(--y1)) scale(1.35) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .smoke { display: none; } }

/* a whisper of light at the core so the black smoke reads as smoke, not shadow */
.curtain::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70vmin; height: 40vmin; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(170,160,145,.06), transparent 70%); filter: blur(30px); pointer-events: none;
  opacity: 0; animation: coreGlow 3s ease .6s forwards; }
@keyframes coreGlow { 40% { opacity: 1; } 100% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .curtain::before { display: none; } }
.dd-link { display: inline-flex; gap: 8px; margin-top: 22px; font: 600 15px/1.2 var(--sans); color: var(--btn, #1F2547); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dd-link:hover { opacity: .8; }

/* nav: tiny diamond between links, small "the" */
.site-nav a { position: relative; }
.site-nav a + a::before { content: ""; position: absolute; left: -16px; top: calc(50% - 3px); width: 4px; height: 4px; rotate: 45deg;
  background: var(--clay); opacity: .75; pointer-events: none; }
.site-nav a small { font-size: .72em; font-style: italic; font-family: var(--serif); letter-spacing: .01em; margin: 0 .05em; }
@media (max-width: 760px) { .site-nav a + a::before { display: none; } }
.skip-intro .curtain { display: none !important; }
/* nav: tighter on smaller laptops, menu button below 1280px so it never meets the centered logo */
@media (max-width: 1380px) and (min-width: 1281px) { .site-nav { gap: 22px; } .site-nav a { font-size: 14px; } .site-nav a + a::before { left: -13px; } }
@media (max-width: 1280px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--sand);
    padding: 16px 28px; gap: 14px; border-bottom: 1px solid rgba(43,42,40,0.08); }
  .site-header.on-stage .site-nav.open { background: var(--ink); }
  .page-immersive .site-header.on-stage .site-nav.open { background: var(--tone); }
  .desert .site-header.on-stage .site-nav.open { background: var(--dd-sand); }
  .site-nav.open a + a::before { display: none; }
  .site-nav.open a { align-self: flex-start; }
  .page-immersive .site-header .site-nav a, .has-intro .site-header .site-nav a { translate: none; clip-path: none; animation: none; opacity: 1; }
}
@media (max-width: 1280px) and (min-width: 761px) { .site-nav.open { left: auto; right: 24px; min-width: 240px; padding: 20px 26px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); } }

/* Discover the Desert teasers (home pages + main page) */
.dd-title-link { display: inline-flex; align-items: baseline; gap: .3em; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.035em; color: inherit; text-decoration: none; margin-bottom: 14px; }
.dd-title-link span { font-family: var(--sans); font-size: .5em; transition: translate .25s ease; }
.dd-title-link:hover span { translate: 6px 0; }
.dd-title-link em, .dd-feature h2 em { font-style: italic; font-size: .55em; letter-spacing: 0; }
.dd-map-img { display: block; position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 24px 50px -32px rgba(0,0,0,.45); }
.dd-map-img img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 1013; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.dd-map-img:hover img { transform: scale(1.025); }
.dd-teaser .intro-text { margin-bottom: 26px; }
.dd-feature { padding: clamp(70px, 11vh, 120px) 0; background: #D5DECF; color: #2E3B33; position: relative; isolation: isolate; }
.dd-feature .property-desc { color: rgba(46,59,51,.8); }
.dd-feature .label { color: #A0502F; } .dd-feature-cta { color: #A0502F; }
.dd-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-img); background-size: 240px 240px; opacity: .28; }
.dd-feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dd-feature h2 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(40px, 5vw, 68px); line-height: .95; letter-spacing: -.04em; margin: 8px 0 18px; }
.dd-feature h2 a { color: inherit; text-decoration: none; }
.dd-feature .property-desc { margin: 0 0 26px; }
.dd-feature-cta { display: inline-flex; gap: 8px; font: 600 15px/1.2 var(--sans); color: var(--clay); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dd-feature-cta:hover { opacity: .8; }
@media (max-width: 900px) { .dd-feature-grid { grid-template-columns: 1fr; } }
/* home pages: let the nav diamonds show outside each link once the slide-up finishes */
@keyframes slotUpNav { to { translate: 0 0; clip-path: inset(-20% -40px -20% -40px); } }
.page-immersive .site-header .site-nav a { clip-path: inset(0 -40px 100% -40px); animation-name: slotUpNav; }
.tone-green .site-nav a + a::before, .site-header.on-stage:not(.desert *) .site-nav a + a::before { opacity: 1; }
.tone-green .site-nav a + a::before { background: #D9825F; }
.dd-credit { margin-top: 10px; font-size: 11px; opacity: .7; }
.dd-feature-grid > .dd-credit { grid-column: 2; margin-top: calc(10px - clamp(28px, 5vw, 72px)); }
@media (max-width: 900px) { .dd-feature-grid > .dd-credit { grid-column: 1; } }
.ft-dot { display: inline-block; width: 5px; height: 5px; font-size: 0; line-height: 0; background: currentColor; rotate: 45deg; opacity: .8; }
/* map images: smaller and quieter */
.dd-map-img { max-width: 520px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(59,47,38,.12), 0 10px 24px -18px rgba(0,0,0,.35); }
.dd-map-img img { aspect-ratio: 1600 / 1000; filter: none; opacity: 1; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .4s ease, opacity .4s ease; }
.dd-map-img:hover img { filter: none; opacity: 1; }
.dd-teaser .dd-credit { max-width: 520px; }
.dd-feature-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dd-feature-grid .dd-map-img { justify-self: end; width: 100%; }
.dd-feature-grid > .dd-credit { justify-self: end; width: 100%; max-width: 520px; }

/* endless drifting staircase */
.dg-loop .dg-track { inset: 0; width: auto; padding: 0; }
.dg-loop .dg-item { position: absolute; left: 0; bottom: 0; translate: none; will-change: transform; }
/* Home headline block: left side */
.stage-title { text-align: left; padding-left: clamp(20px, 3.5vw, 56px); padding-right: clamp(28px, 7vw, 110px); }
.stage-title h1 { margin-left: 0; margin-right: auto; }
.option-card { transform-origin: 50% 100%; }

/* inquiry form: dates + guests row */
.contact-form select { font-family: var(--sans); font-size: 15px; padding: 10px 12px; border: 1px solid rgba(43,42,40,0.2); border-radius: 3px; background: var(--sand); color: var(--text-dark); width: 100%; height: 42px; }
.contact-form input[type=date] { height: 42px; }
.contact-form select:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 12px; }
.contact-form .form-row > div { display: flex; flex-direction: column; min-width: 0; }
.contact-form .form-row input { width: 100%; min-width: 0; }
.contact-form .opt { font-weight: 400; opacity: .7; }
@media (max-width: 520px) { .contact-form .form-row { grid-template-columns: 1fr 1fr; } .contact-form .form-guests { grid-column: 1 / -1; } }
/* phones: comfortable tap targets (at least ~44px) without changing the look */
@media (max-width: 760px) {
  .nav-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; margin-right: -6px; }
  .site-header .wordmark, .site-header .wm-oh, .site-header .wm-left { padding: 10px 6px; margin: -10px -6px; }
  .ft-contact a, .ft-legal a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .ft-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .form-consent a { display: inline-block; padding: 10px 2px; margin: -10px -2px; }
  .dd-title-link { padding: 6px 0; }
  .site-nav.open a { padding: 8px 0; }
}
/* menu panel (all pages, every width below desktop): links always visible.
   Comes last so it wins over the home pages' slide-up entrance on the header links. */
@media (max-width: 1280px) {
  .site-nav.open a, .page-immersive .site-header .site-nav.open a, .has-intro .site-header .site-nav.open a {
    opacity: 1 !important; translate: none !important; transform: none !important; clip-path: none !important; animation: none !important; visibility: visible !important; }
  .site-nav.open { z-index: 50; }
  .page-immersive .site-header.on-stage .site-nav.open a { color: var(--tone-text); }
  .site-header:not(.on-stage) .site-nav.open a { color: var(--text-dark); }
}
