:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6d6d6d;
  --line: #e8e8e8;
  --soft: #f6f6f4;
  --max: 1440px;
  --content: 1240px;
  --header-h: 76px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-width: 300px; background: var(--bg); color: var(--ink); }
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(0,0,0,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 24px;
  border: 2px solid #111;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; line-height: 1;
  letter-spacing: -.04em;
}
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.site-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: #444;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 19px;
  height: 1px; background: #111;
  transition: right .2s ease;
}
.site-nav a:hover::after { right: 0; }
.menu-button { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-button span { width: 22px; height: 1px; background: #111; display: block; margin: 5px 0; transition: .2s ease; }

.hero {
  position: relative;
  min-height: min(82vh, 900px);
  margin-top: var(--header-h);
  overflow: hidden;
  background: #151515;
}
.hero-slides { position: absolute; inset: 0; }
.hero-image {
  --start-x: 0%;
  --start-y: 0%;
  --end-x: 0%;
  --end-y: 0%;
  --start-scale: 1.035;
  --end-scale: 1.095;
  position: absolute; inset: -2.5%; width: 105%; height: 105%; object-fit: cover;
  opacity: 0;
  transform: translate3d(0,0,0) scale(1.035);
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}
.hero-image.is-active { opacity: 1; }
.hero-image.is-active.is-outgoing { opacity: 0; }
.hero.is-playing .hero-image.is-active {
  animation: heroKenBurns 7.2s linear both;
}
/* The outgoing layer keeps its running animation while opacity fades to zero. */
.hero.is-playing .hero-image.is-active.is-outgoing {
  animation-play-state: running;
}
@keyframes heroKenBurns {
  from { transform: translate3d(var(--start-x), var(--start-y), 0) scale(var(--start-scale)); }
  to   { transform: translate3d(var(--end-x), var(--end-y), 0) scale(var(--end-scale)); }
}
.hero-shade {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.58) 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
}
.hero.has-started .hero-shade { opacity: 0; }

.hero-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: clamp(74px, 7vw, 104px); height: clamp(74px, 7vw, 104px);
  border: 0; border-radius: 50%; background: rgba(20,20,20,.72); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 35px rgba(0,0,0,.18);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.hero-play[hidden] { display: none; }
.hero-play:hover { background: rgba(10,10,10,.84); transform: translate(-50%, -50%) scale(1.04); }
.hero-play-icon {
  width: 0; height: 0; margin-left: 7%;
  border-top: clamp(13px, 1.4vw, 19px) solid transparent;
  border-bottom: clamp(13px, 1.4vw, 19px) solid transparent;
  border-left: clamp(21px, 2.2vw, 30px) solid #fff;
}
.hero-play.is-playing { opacity: 0; }
.hero:hover .hero-play.is-playing, .hero-play.is-playing:focus-visible { opacity: .82; }
.hero-play.is-playing .hero-play-icon {
  width: 22px; height: 27px; margin-left: 0; border: 0; position: relative;
}
.hero-play.is-playing .hero-play-icon::before,
.hero-play.is-playing .hero-play-icon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: #fff;
}
.hero-play.is-playing .hero-play-icon::before { left: 2px; }
.hero-play.is-playing .hero-play-icon::after { right: 2px; }

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(28px, calc((100vw - var(--content)) / 2));
  right: max(28px, calc((100vw - var(--content)) / 2));
  bottom: clamp(42px, 8vh, 88px);
  color: white;
}
.eyebrow, .section-kicker { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0,0,0,.38), 0 1px 2px rgba(0,0,0,.30);
}
.hero-link { display: inline-flex; gap: 12px; margin-top: 24px; font-size: 10px; font-weight: 700; letter-spacing: .17em; }

.section {
  width: min(calc(100% - 56px), var(--content));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.section + .section, #dynamicSections + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -.035em; }
.section-kicker { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { margin: 0; overflow: hidden; background: var(--soft); cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.015); }

.media-shell, .map-frame { width: 100%; background: var(--soft); overflow: hidden; }
.media-shell { aspect-ratio: 16 / 9; }
.media-shell iframe, .media-shell video, .media-shell > div, .media-shell > div > iframe,
.map-frame iframe { width: 100% !important; height: 100% !important; border: 0 !important; display: block; max-width: none !important; }
.map-frame { aspect-ratio: 16 / 7; min-height: 420px; }
.map-link { display: inline-block; margin-top: 18px; font-size: 10px; font-weight: 700; letter-spacing: .15em; }

.floorplan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.floorplan-item { margin: 0; background: var(--soft); cursor: zoom-in; }
.floorplan-item img { width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 54px 28px 64px; }
.footer-inner { width: min(100%, var(--content)); margin: 0 auto; text-align: center; }
.footer-brand { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .2em; }

.sound-button {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  border: 1px solid rgba(0,0,0,.15); background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; min-width: 54px; height: 38px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sound-button[hidden] { display: none; }
.sound-icon { font-size: 14px; }
.sound-label { font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.sound-button.is-playing .sound-icon { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; } }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.96);
  display: grid; place-items: center; padding: 42px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; border: 0; background: transparent; color: white; cursor: pointer; font-weight: 200;
}
.lightbox-close { top: 16px; right: 20px; font-size: 36px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 54px; padding: 20px; }
.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }
.lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #bbb; font-size: 10px; letter-spacing: .12em; }

.error-card { width: min(calc(100% - 48px), 760px); margin: 160px auto 100px; padding: 32px; border: 1px solid var(--line); }
.error-card h1 { margin-top: 0; }
.error-card code { font-size: 12px; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-inner { width: calc(100% - 32px); }
  .menu-button { display: block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(255,255,255,.985);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 34px 24px 40px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
  body.menu-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .site-nav a::after { display: none; }
  body.menu-open .menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-button span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { min-height: 68vh; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item:first-child { grid-column: span 2; }
  .map-frame { aspect-ratio: 4 / 3; min-height: 0; }
}

@media (max-width: 600px) {
  .hero { min-height: 62vh; }
  
.hero-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: clamp(74px, 7vw, 104px); height: clamp(74px, 7vw, 104px);
  border: 0; border-radius: 50%; background: rgba(20,20,20,.72); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 35px rgba(0,0,0,.18);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.hero-play[hidden] { display: none; }
.hero-play:hover { background: rgba(10,10,10,.84); transform: translate(-50%, -50%) scale(1.04); }
.hero-play-icon {
  width: 0; height: 0; margin-left: 7%;
  border-top: clamp(13px, 1.4vw, 19px) solid transparent;
  border-bottom: clamp(13px, 1.4vw, 19px) solid transparent;
  border-left: clamp(21px, 2.2vw, 30px) solid #fff;
}
.hero-play.is-playing { opacity: 0; }
.hero:hover .hero-play.is-playing, .hero-play.is-playing:focus-visible { opacity: .82; }
.hero-play.is-playing .hero-play-icon {
  width: 22px; height: 27px; margin-left: 0; border: 0; position: relative;
}
.hero-play.is-playing .hero-play-icon::before,
.hero-play.is-playing .hero-play-icon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: #fff;
}
.hero-play.is-playing .hero-play-icon::before { left: 2px; }
.hero-play.is-playing .hero-play-icon::after { right: 2px; }

.hero-content { left: 20px; right: 20px; bottom: 32px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .section { width: calc(100% - 32px); padding: 68px 0; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head h2 { font-size: 34px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-item:first-child { grid-column: auto; grid-row: auto; }
  .floorplan-grid { grid-template-columns: 1fr; }
  .media-shell { aspect-ratio: 4 / 3; min-height: 360px; }
  .map-frame { aspect-ratio: 1 / 1; min-height: 340px; }
  .lightbox { padding: 48px 12px; }
  .lightbox-prev, .lightbox-next { font-size: 42px; padding: 12px; }
  .sound-button { right: 12px; bottom: 12px; }
}

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

/* V11: preserve the landscape slideshow composition on phones */
@media (max-width: 600px) {
  .hero {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .hero h1 {
    max-width: 92%;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.03;
  }

  .hero-play {
    width: 68px;
    height: 68px;
  }
}
