:root {
  color-scheme: light;
  --ink: #16221d;
  --forest: #20382f;
  --forest-2: #2d5142;
  --sage: #819788;
  --mist: #edf1ed;
  --cream: #f8f4ec;
  --warm: #c39c69;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 39, 30, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button, input, textarea, select { font: inherit; }

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

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 30px;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(8, 17, 13, 0.68), transparent);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(248, 244, 236, 0.94);
  box-shadow: 0 8px 30px rgba(18, 39, 30, 0.08);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.heart-mark { color: #b9d8c7; font-size: 1.3rem; }

.site-header.is-scrolled .heart-mark { color: var(--forest-2); }

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

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

.hero-image { object-fit: cover; object-position: center 48%; transform: scale(1.012); }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 22, 17, 0.86) 0%, rgba(10, 22, 17, 0.47) 50%, rgba(10, 22, 17, 0.12) 78%),
    linear-gradient(0deg, rgba(10, 22, 17, 0.76) 0%, transparent 44%);
}

.hero-content { position: relative; z-index: 2; padding-bottom: 178px; }

.open-house-pill {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 24px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 31, 24, 0.48);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.open-house-pill span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--white);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.open-house-pill strong { font-weight: 780; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--forest-2); }

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(3.7rem, 8.8vw, 7.7rem); }

.hero-copy { max-width: 610px; margin-bottom: 30px; color: rgba(255, 255, 255, 0.88); font-size: clamp(1.02rem, 2vw, 1.25rem); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #d6af77; outline-offset: 3px; }

.button-primary { color: var(--white); background: var(--forest-2); }
.hero .button-primary { color: var(--forest); background: var(--white); }
.button-quiet { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); }

.stat-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  background: rgba(16, 31, 24, 0.64);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.stat-strip div { display: grid; gap: 3px; padding: 20px 26px; }
.stat-strip div + div { border-left: 1px solid rgba(255,255,255,0.18); }
.stat-strip strong { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.stat-strip span { color: rgba(255,255,255,0.74); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.tour-section { padding: 110px 0 120px; background: var(--cream); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading h2, .visit-section h2 { margin: 0; font-size: clamp(2.7rem, 5.5vw, 5.1rem); }
.section-heading > p { max-width: 330px; margin: 0 0 6px; color: #58645e; }

.tour-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }

.tour-tab {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 1px solid #ccd4ce;
  border-radius: 999px;
  color: #536058;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.tour-tab.is-active { color: var(--white); border-color: var(--forest); background: var(--forest); }

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tour-visual { position: relative; min-height: 540px; background: #dfe5df; }

.photo-button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; }
.photo-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,14,11,0.32), transparent 33%); pointer-events: none; }
.photo-hint { position: absolute; z-index: 2; left: 22px; bottom: 23px; padding: 8px 12px; border-radius: 999px; color: var(--white); background: rgba(10, 22, 17, 0.58); font-size: 0.72rem; font-weight: 750; backdrop-filter: blur(8px); }

.progress-rail { position: absolute; z-index: 3; inset: auto 22px 14px; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.35); }
.progress-rail span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--white); transition: width 260ms ease; }

.tour-detail { display: flex; flex-direction: column; padding: clamp(34px, 5vw, 64px); }
.step-count { margin-bottom: 13px; color: var(--forest-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tour-detail h3 { margin-bottom: 14px; font-size: clamp(2.4rem, 4.3vw, 4rem); }
.area-intro { margin-bottom: 22px; color: #57635d; }

.room-list { display: grid; gap: 15px; margin-bottom: 28px; }
.room-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.room-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--forest-2); background: var(--mist); font-size: 0.73rem; font-weight: 850; }
.room-item strong { display: block; margin-bottom: 2px; font-size: 0.91rem; }
.room-item p { margin: 0; color: #68736d; font-size: 0.84rem; line-height: 1.45; }

.next-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 15px 0 2px; border: 0; border-top: 1px solid #dce2dc; color: var(--forest-2); background: transparent; font-weight: 800; cursor: pointer; }
.next-button span { font-size: 1.35rem; transition: transform 160ms ease; }
.next-button:hover span { transform: translateX(4px); }

.thumbnail-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { position: relative; height: 120px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 15px; background: #d9e0da; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; left: 10px; bottom: 9px; padding: 5px 8px; border-radius: 999px; color: var(--white); background: rgba(8,17,13,0.63); font-size: 0.67rem; font-weight: 750; }
.thumb.is-active { border-color: var(--forest-2); }

.visit-section { padding: 110px 0 40px; color: var(--white); background: var(--forest); }
.visit-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.visit-card > div:first-child > p:last-child { max-width: 630px; margin-top: 22px; color: rgba(255,255,255,0.74); font-size: 1.02rem; }

.agent-card { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.17); border-radius: 22px; background: rgba(255,255,255,0.07); box-shadow: 0 22px 60px rgba(7, 18, 13, 0.2); }
.agent-headshot { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 18%; }
.agent-card figcaption { padding: 22px 24px 24px; }
.contact-label { display: block; margin-bottom: 6px; color: #bdd1c5; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.agent-card strong { display: block; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.agent-card figcaption > span:not(.contact-label) { display: block; margin-top: 5px; color: rgba(255,255,255,0.7); font-size: 0.83rem; }
.disclaimer { margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.48); font-size: 0.7rem; }

.lightbox {
  width: min(1100px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--white);
  background: #0d1511;
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}
.lightbox::backdrop { background: rgba(5, 10, 8, 0.83); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; }
.lightbox figure img { width: 100%; max-height: 78vh; object-fit: contain; background: #07100c; }
.lightbox figcaption { padding: 15px 62px 18px; color: rgba(255,255,255,0.76); text-align: center; font-size: 0.83rem; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--white); background: rgba(8,17,13,0.72); cursor: pointer; backdrop-filter: blur(7px); }
.lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 1.7rem; }
.lightbox-nav { top: 50%; width: 46px; height: 46px; font-size: 2.3rem; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

@media (max-width: 860px) {
  .site-header { min-height: 62px; padding: 0 20px; }
  .hero { min-height: 780px; }
  .hero-content { padding-bottom: 238px; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,21,16,0.88) 0%, rgba(9,21,16,0.3) 72%); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); bottom: 22px; }
  .stat-strip div { padding: 14px 18px; }
  .stat-strip div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .stat-strip div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.18); }
  .stat-strip strong { font-size: 1.42rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .tour-panel { grid-template-columns: 1fr; }
  .tour-visual { min-height: min(72vw, 520px); }
  .thumbnail-row { grid-template-columns: repeat(3, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: 5px; }
  .visit-card { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: 760px; }
  .hero-image { object-position: 58% center; }
  .hero-content { padding-bottom: 230px; }
  h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .hero-copy { font-size: 0.98rem; }
  .open-house-pill { display: grid; gap: 7px; width: fit-content; border-radius: 18px; }
  .open-house-pill span { width: fit-content; }
  .hero-actions .button { width: 100%; }
  .tour-section, .visit-section { padding-top: 78px; }
  .section-heading h2, .visit-section h2 { font-size: 2.85rem; }
  .tour-panel { min-height: 0; border-radius: 20px; }
  .tour-visual { min-height: 78vw; }
  .tour-detail { padding: 30px 24px; }
  .tour-detail h3 { font-size: 2.7rem; }
  .thumb { height: 105px; }
  .agent-card figcaption { padding: 20px; }
  .lightbox-nav { top: auto; bottom: 8px; }
  .lightbox figcaption { padding-inline: 56px; }
}

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