:root {
  color-scheme: light;
  --ink: #111316;
  --muted: #66706d;
  --paper: #f7f5ef;
  --porcelain: #fcfbf7;
  --line: rgba(17, 19, 22, 0.12);
  --charcoal: #151719;
  --steel: #758288;
  --teal: #1b7f75;
  --jade: #5ca773;
  --amber: #c8963e;
  --coral: #c96b5b;
  --shadow: 0 24px 80px rgba(16, 20, 24, 0.18);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 40px));
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.35), transparent 32%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

#skyline {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  height: 170px;
  z-index: 0;
  opacity: 0.36;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 16px;
  right: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: var(--container);
  padding: 10px 12px 10px 10px;
  background: rgba(252, 251, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(17, 19, 22, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(252, 251, 247, 0.92);
  box-shadow: 0 18px 48px rgba(17, 19, 22, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--charcoal);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(17, 19, 22, 0.72);
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 12px 16px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  padding: 150px max(20px, calc((100vw - 1160px) / 2)) 38px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.06);
  animation: cinematic 14s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 11, 12, 0.18), rgba(9, 11, 12, 0.68) 58%, rgba(9, 11, 12, 0.78)),
    linear-gradient(0deg, rgba(9, 11, 12, 0.35), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #d7f2e9;
}

.eyebrow::before,
.section-kicker::before {
  width: 42px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--teal);
  color: #fff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(860px, 100%);
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats article {
  padding: 18px;
  background: rgba(252, 251, 247, 0.9);
}

.hero-stats strong {
  display: block;
  color: var(--charcoal);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.band {
  position: relative;
  z-index: 1;
  padding: 96px max(20px, calc((100vw - 1160px) / 2));
}

.dark {
  background: var(--charcoal);
  color: #fff;
}

.intro-grid,
.plan-stage,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 54px;
  align-items: center;
}

.intro-copy h2,
.section-heading h2,
.plan-copy h2,
.contact-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.intro-copy p,
.plan-copy p,
.contact-copy p,
.feature-card p {
  color: var(--muted);
  line-height: 2.05;
  font-size: 1rem;
}

.dark .section-kicker,
.dark .feature-card p {
  color: rgba(255, 255, 255, 0.66);
}

.architecture-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.architecture-panel img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.panel-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(252, 251, 247, 0.82);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.panel-caption span {
  color: var(--muted);
  font-size: 0.82rem;
  direction: ltr;
}

.metrics {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  background: var(--teal);
  color: #fff;
}

.metric-track {
  display: flex;
  width: max-content;
  gap: 34px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.metric-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-weight: 800;
}

.metric-track span::after {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  content: "";
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(92, 167, 115, 0.62);
  transform: translateY(-8px);
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 26px;
  color: var(--amber);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

.plan-stage {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}

.plan-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.plan-frame img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.plan-frame:hover img {
  transform: scale(1.035);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
}

.filter.active {
  background: var(--charcoal);
  color: #fff;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.unit-card {
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(17, 19, 22, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.unit-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 68px rgba(17, 19, 22, 0.14);
}

.unit-card[hidden] {
  display: none;
}

.unit-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e8e4da;
}

.unit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.unit-card:hover .unit-image img {
  transform: scale(1.06);
}

.unit-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  background: rgba(17, 19, 22, 0.78);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.unit-body {
  padding: 18px;
}

.unit-body h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.unit-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.unit-facts span {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
}

.unit-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(27, 127, 117, 0.1);
  color: var(--teal);
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-item span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  background: rgba(252, 251, 247, 0.86);
  color: var(--ink);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.contact {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(27, 127, 117, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  line-height: 1.8;
}

.media-modal {
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-modal::backdrop {
  background: rgba(9, 11, 12, 0.74);
  backdrop-filter: blur(10px);
}

.media-modal img {
  width: 100%;
  max-height: calc(100vh - 28px);
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(17, 19, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cinematic {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-18px, 0, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-grid,
  .plan-stage,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 1160px);
  }

  .site-header {
    top: 10px;
    padding: 8px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 86svh;
    padding-top: 118px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(9, 11, 12, 0.82), rgba(9, 11, 12, 0.12));
  }

  .hero-stats,
  .feature-grid,
  .unit-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .hero-stats article {
    padding: 14px;
  }

  .band {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .unit-image {
    height: 230px;
  }
}

@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;
  }
}
