:root {
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --card: #ffffff;
  --text: #172033;
  --muted: #53607a;
  --accent: #3592a9;
  --border: #dce5ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.brand-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 999px;
  padding: 7px 14px;
}

.hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.72)
    ),
    url("https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  animation: driftBackground 18s ease-in-out infinite alternate;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-photo {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  min-height: 420px;
  object-fit: cover;
  animation: floatPhoto 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
}

.site-title {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.lead {
  max-width: 56ch;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-stats div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px 14px;
}

.hero-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background: var(--bg-alt);
}

.section::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=900&q=70")
    center / cover no-repeat;
  border-radius: 50%;
  opacity: 0.06;
  filter: saturate(0.85);
  animation: pulseImage 10s ease-in-out infinite;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-intro {
  max-width: 72ch;
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.grid-four {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.1);
}

ul {
  padding-left: 20px;
}

blockquote {
  margin: 30px 0 0;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 16px;
  color: #d5e6ff;
  font-size: 1.05rem;
}

.tech-advantage::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 20%;
  width: 260px;
  height: 420px;
  background: url("https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=900&q=80")
    center / cover no-repeat;
  border-radius: 18px;
  opacity: 0.1;
  transform: rotate(-8deg);
  animation: sway 9s ease-in-out infinite;
}

.founders-note {
  max-width: 70ch;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
}

.contact-block p {
  color: var(--muted);
  max-width: 65ch;
}

.contact-form {
  margin-top: 18px;
  max-width: 640px;
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 146, 169, 0.15);
}

.contact-form button {
  margin-top: 4px;
  width: fit-content;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover {
  background: #f0f9fb;
}

.gallery-hero::before {
  opacity: 0.1;
}

.property-gallery {
  display: flex;
  gap: 18px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.property-gallery::-webkit-scrollbar {
  display: none;
}

.property-gallery::-webkit-scrollbar-thumb {
  background: #c7d6e8;
  border-radius: 999px;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}

.carousel-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  background: #f1f6fb;
  transform: translateY(-1px);
}

.property-card {
  position: relative;
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardFloat 5.5s ease-in-out infinite;
}

.property-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.1);
}

.property-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.property-content {
  padding: 16px;
}

.property-content h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.property-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.property-content a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #1f7a8c;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.muted {
  background: #6b7280;
}

.status-badge.off-market {
  background: #b45309;
}

.sold-address {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(23, 32, 51, 0.82);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  max-width: 72%;
}

.property-card.sold .property-content h3 {
  color: #20314c;
}

.property-card.image-only {
  min-height: 250px;
}

.property-card.image-only img {
  height: 100%;
  min-height: 250px;
}

.property-gallery .property-card:nth-child(2n) {
  animation-delay: 0.45s;
}

.property-gallery .property-card:nth-child(3n) {
  animation-delay: 0.9s;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  background: var(--bg-alt);
}

@keyframes floatPhoto {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes driftBackground {
  0% {
    transform: scale(1) translateX(0);
  }
  100% {
    transform: scale(1.05) translateX(-15px);
  }
}

@keyframes pulseImage {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.05;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.09;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-10px);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

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

  .hero-photo {
    min-height: 280px;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .section::after,
  .tech-advantage::before {
    display: none;
  }
}
