:root {
  --navy: #001448;
  --navy-soft: #0c2860;
  --ink: #16181d;
  --muted: #3d4654;
  --paper: #f3f4f6;
  --paper-2: #e8eaee;
  --stone: #dce0e6;
  --white: #f7f8fa;
  --line: rgba(22, 24, 29, 0.12);
  --shadow: 0 18px 40px rgba(0, 20, 72, 0.1);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header: 4.75rem;
  --wrap: 72rem;
  --space: clamp(1.25rem, 3vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--navy-soft);
}

h1, h2, h3, .footer-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0.2em 0 0.35em;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  margin: 0 0 0.4em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  margin: 0 0 0.35em;
  font-size: 1.45rem;
}

p {
  margin: 0 0 0.8em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  position: relative;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  height: 4.25rem;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font: 600 1rem var(--sans);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-list a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-line {
  border-color: currentColor;
  background: transparent;
  color: var(--navy);
}

.hero .btn-line {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-navy {
  background: var(--white);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 20, 72, 0.72) 0%, rgba(0, 20, 72, 0.48) 50%, rgba(0, 20, 72, 0.28) 100%);
}

.hero-copy {
  position: relative;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  max-width: 40rem;
}

.hero .eyebrow,
.band .eyebrow { color: rgba(247, 248, 250, 0.92); }

.hero p {
  font-size: 1.25rem;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: var(--white);
}

.facts div {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid rgba(255, 252, 247, 0.16);
}

.facts div:first-child { border-left: 0; }

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
}

.facts span {
  color: rgba(255, 252, 247, 0.78);
  font-size: 0.95rem;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.doors,
.amenity-grid,
.plan-grid,
.listing-grid,
.audience,
.contact-grid,
.split {
  display: grid;
  gap: 1rem;
}

.doors { grid-template-columns: repeat(3, 1fr); }
.amenity-grid { grid-template-columns: repeat(4, 1fr); }
.plan-grid,
.contact-grid,
.split { grid-template-columns: 1fr 1fr; }
.listing-grid { grid-template-columns: repeat(3, 1fr); }
.audience { grid-template-columns: repeat(6, 1fr); }

.audience article:nth-child(-n + 3) { grid-column: span 2; }
.audience article:nth-child(4) { grid-column: 1 / span 3; }
.audience article:nth-child(5) { grid-column: 4 / span 3; }

.card,
.door,
.amenity,
.listing,
.audience article,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.door,
.audience article,
.contact-card {
  padding: 1.35rem 1.3rem 1.2rem;
}

.door {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.door:hover { border-color: var(--navy); }

.door span,
.listing span {
  margin-top: auto;
  color: var(--navy);
  font-weight: 600;
}

.band {
  background: var(--navy);
  color: var(--white);
}

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

.steward {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 252, 247, 0.16);
  border: 1px solid rgba(255, 252, 247, 0.16);
}

.steward a {
  display: block;
  min-height: 100%;
  padding: 1.3rem 1.15rem;
  background: var(--navy);
}

.steward a:hover { background: var(--navy-soft); }

.steward strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
}

.amenity {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.amenity img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.amenity div { padding: 1rem 1rem 1.15rem; }

.amenity:hover { border-color: var(--navy); }

.page-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 1rem;
}

.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.group { margin-top: 2.75rem; }

.stat-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.stat,
.detail {
  padding: 1.1rem 1.15rem;
  background: var(--paper);
}

.stat strong,
.detail h3 {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.detail p:last-child,
.stat p:last-child { margin-bottom: 0; }

.homes-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.homes-intro img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.plan-block { margin-top: 3.5rem; }

.plan-sheet,
.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.plan-sheet { padding: 1.25rem; }

.plan-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.plan-button img {
  width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  object-fit: contain;
  background: var(--paper);
}

.plan-card .plan-button img { max-height: 70vh; }

.plan-card { padding: 0.85rem 0.85rem 1.1rem; }

.plan-card figcaption,
.plan-sheet figcaption {
  padding: 0.9rem 0.4rem 0.2rem;
  color: var(--muted);
}

.listing {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.listing img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.listing div { padding: 1.15rem 1.15rem 1.3rem; }

.listing .btn { margin-top: 0.8rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.credit {
  margin-top: 1.25rem;
  color: var(--muted);
}

.property-video {
  margin: 1.75rem 0 0;
}

.property-video video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  background: #111;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.site-footer a { color: var(--white); }

.site-footer p { margin: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  align-items: start;
}

.footer-contact { text-align: right; }

.footer-name {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.footer-nav {
  margin-top: 0.85rem;
  padding: 0.35rem 0 0.15rem;
  border-top: 1px solid rgba(247, 248, 250, 0.22);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 4rem 4rem;
  background: rgba(12, 14, 20, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  margin: 0;
  color: var(--white);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255, 252, 247, 0.5);
  background: transparent;
  color: var(--white);
  font: 600 1rem var(--sans);
  cursor: pointer;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; }
.lightbox-next { right: 1rem; top: 50%; }

@media (max-width: 800px) {
  html.js .nav-toggle { display: inline-flex; }

  html.js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem 1.1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  html.js .site-nav.is-open { display: flex; }

  html:not(.js) .header-bar {
    flex-wrap: wrap;
    padding-bottom: 0.8rem;
  }

  html:not(.js) .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-list a {
    display: block;
    padding: 0.55rem 0;
  }

  .site-nav .btn { width: 100%; }

  .hero { min-height: 88svh; }

  .hero::before {
    background: linear-gradient(180deg, rgba(0, 20, 72, 0.28) 0%, rgba(0, 20, 72, 0.78) 72%);
  }

  .hero-copy { margin-bottom: 2rem; }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; }

  .facts,
  .doors,
  .steward,
  .amenity-grid,
  .stat-grid,
  .detail-grid,
  .homes-intro,
  .plan-grid,
  .listing-grid,
  .contact-grid,
  .split,
  .audience {
    grid-template-columns: 1fr;
  }

  .facts div { border-left: 0; border-top: 1px solid rgba(255, 252, 247, 0.16); }
  .facts div:first-child { border-top: 0; }

  .audience article,
  .audience article:nth-child(4),
  .audience article:nth-child(5) { grid-column: auto; }

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

  .lightbox { padding: 4.2rem 0.6rem 4.5rem; }

  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 801px) and (max-width: 1040px) {
  .amenity-grid,
  .steward,
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { border-left: 0; }
  .doors,
  .listing-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

.portal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.portal-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 7.5rem);
  min-height: 36rem;
  border: 0;
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
