:root {
  --background: #f5f2eb;
  --foreground: #101b2e;
  --card: #ffffff;
  --card-foreground: #101b2e;
  --popover: #ffffff;
  --popover-foreground: #101b2e;
  --primary: #174b82;
  --primary-foreground: #ffffff;
  --secondary: #e9e4d9;
  --secondary-foreground: #101b2e;
  --muted: #e9e4d9;
  --muted-foreground: #647083;
  --accent: #f4c723;
  --accent-foreground: #101b2e;
  --destructive: #b42318;
  --border: #d9d3c6;
  --input: #d9d3c6;
  --ring: #174b82;
  --radius: 0.5rem;
  --navy: #101b2e;
  --blue: #174b82;
  --yellow: #f4c723;
  --ivory: #f5f2eb;
  --paper: #fffdf8;
  --ink-muted: #5f6878;
  --font-display: "Bodoni 72", Didot, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --font-sans: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body, button, a { -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.no-scroll { overflow: hidden; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px clamp(22px, 5vw, 78px);
  color: white;
}
.brand {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}
.brand img { width: 100%; height: 100%; object-fit: cover; }
.desktop-nav {
  display: flex;
  gap: 38px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.desktop-nav a, .header-contact { transition: opacity 180ms ease; }
.desktop-nav a:hover, .header-contact:hover { opacity: 0.72; }
.header-contact {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: min(900px, 94svh);
  overflow: hidden;
  color: white;
}
.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
  object-position: center 58%;
  animation: heroReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.78) 0%, rgba(5, 14, 28, 0.34) 47%, rgba(5, 14, 28, 0.08) 72%),
    linear-gradient(0deg, rgba(5, 14, 28, 0.64) 0%, transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(900px, 94svh);
  width: min(760px, 92vw);
  padding: 170px clamp(22px, 8vw, 130px) 125px;
}
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.7vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.89;
}
.hero h1 em { color: var(--yellow); font-weight: 400; }
.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--navy); }
.button-primary:hover { background: #ffda3d; }
.button-ghost {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(11, 28, 50, 0.2);
  color: white;
  backdrop-filter: blur(8px);
}
.button-ghost:hover { background: white; color: var(--navy); }
.hero-index {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: 46px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

.essentials {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1140px, calc(100% - 44px));
  margin: -46px auto 0;
  background: var(--paper);
  box-shadow: 0 25px 65px rgba(16, 27, 46, 0.14);
}
.essential {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 22px clamp(17px, 2.8vw, 34px);
  border-right: 1px solid var(--border);
}
.essential:last-child { border-right: 0; }
.essential > svg { width: 25px; height: 25px; color: var(--blue); stroke-width: 1.5; }
.essential div { display: flex; flex-direction: column; }
.essential strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}
.essential span {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section { width: min(1220px, calc(100% - 44px)); margin: 0 auto; }
.property-story {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(45px, 8vw, 125px);
  padding-top: 145px;
  padding-bottom: 145px;
}
.section-kicker { color: var(--blue); }
.section-kicker::before { width: 36px; height: 3px; background: var(--yellow); content: ""; }
.story-copy h2, .features-heading h2, .gallery-heading h2,
.leisure-copy h2, .contact-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.story-copy > p:not(.section-kicker) {
  margin: 25px 0 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.82;
}
.story-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.story-tags span, .leisure-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story-tags span {
  padding: 10px 13px;
  border: 1px solid #d8d0c2;
  background: rgba(255, 255, 255, 0.42);
}
.image-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.story-image { height: min(690px, 67vw); min-height: 490px; }
.story-image::before {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: -1;
  width: 38%;
  height: 38%;
  background: var(--yellow);
  content: "";
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.story-image:hover img, .gallery-item:hover img { transform: scale(1.035); }
.expand-cue {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: rgba(7, 18, 34, 0.78);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.features-section { padding-bottom: 150px; }
.features-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid #d5cebf;
}
.features-heading .section-kicker { margin: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature {
  min-height: 285px;
  padding: 48px clamp(24px, 3vw, 42px) 38px 0;
  border-bottom: 1px solid #d5cebf;
}
.feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid #d5cebf;
}
.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 28px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}
.feature-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
}
.feature p { margin: 16px 0 0; color: var(--ink-muted); line-height: 1.7; }

.leisure {
  position: relative;
  display: flex;
  min-height: 740px;
  align-items: flex-end;
  overflow: hidden;
  color: white;
}
.leisure > img, .leisure-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.leisure > img { object-fit: cover; object-position: center 48%; }
.leisure-shade {
  background: linear-gradient(90deg, rgba(7, 18, 34, 0.8) 0%, rgba(7, 18, 34, 0.2) 65%, transparent 100%);
}
.leisure-copy {
  position: relative;
  z-index: 1;
  width: min(670px, calc(100% - 44px));
  margin-left: max(22px, calc((100% - 1220px) / 2));
  padding: 110px 0;
}
.leisure-copy .section-kicker { color: white; }
.leisure-copy h2 { font-size: clamp(3.4rem, 6vw, 6.2rem); }
.leisure-copy > p:not(.section-kicker) {
  max-width: 600px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}
.leisure-list { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }

.gallery-section { padding-top: 140px; padding-bottom: 140px; }
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 54px;
}
.gallery-heading > p {
  max-width: 380px;
  margin: 0 0 7px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 230px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item { min-height: 230px; }
.gallery-item:nth-child(1), .gallery-item:nth-child(8n + 6) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(7n + 4) { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(7, 18, 34, 0.72);
  color: white;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(6px);
}
.gallery-item:hover .gallery-expand,
.gallery-item:focus-visible .gallery-expand { opacity: 1; transform: translateY(0); }
.show-all {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  padding: 13px 22px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 720;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.show-all:hover { background: var(--navy); color: white; }
.show-all[hidden] { display: none; }

.contact-section {
  padding: 130px 22px;
  background: var(--blue);
  color: white;
  text-align: center;
}
.contact-inner { width: min(800px, 100%); margin: 0 auto; }
.contact-inner .section-kicker { justify-content: center; color: white; }
.contact-inner h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.contact-inner > p:not(.section-kicker) {
  max-width: 610px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}
.contact-button { margin-top: 36px; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 42px max(22px, calc((100% - 1220px) / 2));
  background: #081326;
  color: white;
}
footer > img { width: 68px; height: 68px; object-fit: cover; }
footer > div:not(.footer-contact) { display: flex; flex-direction: column; }
footer strong { letter-spacing: 0.1em; }
footer span, .footer-contact a { color: rgba(255, 255, 255, 0.64); font-size: 0.82rem; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-contact a:hover { color: white; }

.lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100svh !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #020407 !important;
  color: white;
  box-shadow: none !important;
}
.lightbox[hidden] { display: none !important; }
.lightbox-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 56px 92px;
}
.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  user-select: none;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: white; color: #020407; }
.lightbox-close { top: 20px; right: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-previous { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 4;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .brand { width: 52px; height: 52px; }
  .desktop-nav { display: none; }
  .hero-content { padding-right: 45px; padding-left: 24px; }
  .essentials { grid-template-columns: repeat(2, 1fr); }
  .essential:nth-child(2) { border-right: 0; }
  .essential:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .property-story { grid-template-columns: 1fr; gap: 58px; }
  .story-copy { max-width: 690px; }
  .story-image { height: min(760px, 110vw); }
  .features-heading { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
    padding-left: 0;
    border-left: 0;
  }
  .feature:nth-child(even) { padding-left: 30px; border-left: 1px solid #d5cebf; }
  .gallery-grid { grid-auto-rows: 210px; grid-template-columns: repeat(2, 1fr); }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .header-contact span { display: none; }
  .header-contact {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
  }
  .hero { min-height: 850px; }
  .hero-image { object-position: 61% center; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(5, 14, 28, 0.88) 0%, rgba(5, 14, 28, 0.35) 72%, rgba(5, 14, 28, 0.26) 100%);
  }
  .hero-content {
    min-height: 850px;
    width: 100%;
    padding: 150px 22px 108px;
  }
  .hero h1 { font-size: clamp(3.55rem, 17vw, 5.4rem); }
  .hero-copy { font-size: 1rem; line-height: 1.67; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-index { display: none; }
  .essentials { width: calc(100% - 28px); margin-top: -50px; }
  .essential { min-height: 100px; gap: 11px; padding: 18px 12px; }
  .essential > svg { width: 21px; height: 21px; }
  .essential strong { font-size: 1.56rem; }
  .essential span { font-size: 0.66rem; }
  .section { width: calc(100% - 36px); }
  .property-story { padding-top: 100px; padding-bottom: 108px; }
  .story-copy h2, .features-heading h2, .gallery-heading h2, .contact-inner h2 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }
  .story-tags { align-items: flex-start; flex-direction: column; }
  .story-image { min-height: 470px; }
  .features-section { padding-bottom: 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) {
    min-height: 0;
    padding: 36px 0;
    border-left: 0;
  }
  .leisure { min-height: 720px; }
  .leisure > img { object-position: 62% center; }
  .leisure-shade {
    background: linear-gradient(0deg, rgba(7, 18, 34, 0.9) 0%, rgba(7, 18, 34, 0.16) 82%);
  }
  .leisure-copy { width: calc(100% - 36px); margin: 0 auto; padding: 80px 0; }
  .leisure-copy h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .leisure-list { align-items: flex-start; flex-direction: column; gap: 14px; }
  .gallery-section { padding-top: 100px; padding-bottom: 100px; }
  .gallery-grid { grid-auto-rows: 155px; gap: 6px; }
  .gallery-item { min-height: 155px; }
  .gallery-expand {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
  }
  .contact-section { padding: 95px 20px; }
  footer { grid-template-columns: auto 1fr; padding: 34px 20px; }
  footer > img { width: 58px; height: 58px; }
  .footer-contact {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .lightbox-stage { padding: 66px 12px 58px; }
  .lightbox-nav {
    top: auto;
    bottom: 14px;
    width: 44px;
    height: 44px;
    transform: none;
  }
  .lightbox-nav:hover { transform: none; }
  .lightbox-previous { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
}

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