:root {
  --bg-start: #f8f5ee;
  --bg-mid: #f4f1e8;
  --bg-end: #f7f4ec;
  --surface: #ffffff;
  --ink: #14241b;
  --muted: #5a6b62;
  --brand: #0b6a4e;
  --brand-deep: #084433;
  --line: rgba(11, 106, 78, 0.2);
  --ring: rgba(11, 106, 78, 0.3);
  --radius: 1.1rem;
  --shadow: 0 26px 60px -36px rgba(7, 43, 32, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 36%, var(--bg-end) 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

body.popup-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
  z-index: -1;
}

.bg-orb-left {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(11, 106, 78, 0.33), rgba(11, 106, 78, 0));
}

.bg-orb-right {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -140px;
  background: radial-gradient(circle, rgba(191, 154, 94, 0.32), rgba(191, 154, 94, 0));
}

.section-shell {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

.topbar {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.94), rgba(245, 240, 228, 0.88)),
    radial-gradient(circle at top right, rgba(11, 106, 78, 0.09), transparent 55%);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 44px -34px rgba(7, 43, 32, 0.48);
  padding: 0.78rem 0.9rem 0.88rem;
  display: grid;
  gap: 0.72rem;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand img {
  width: 162px;
  height: auto;
  display: block;
  padding: 0.34rem 0.52rem;
  border-radius: 0.62rem;
  background: linear-gradient(145deg, #0f1412 0%, #1d2520 100%);
  border: 1px solid rgba(190, 153, 77, 0.45);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.82);
  filter: saturate(1.14) contrast(1.08) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.26));
}

.brand span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #345747;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  gap: 0.56rem;
}

.topbar-segments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.segment-card {
  position: relative;
  min-height: 102px;
  border-radius: 0.82rem;
  overflow: hidden;
  border: 1px solid rgba(8, 68, 51, 0.2);
  text-decoration: none;
  box-shadow: 0 16px 28px -24px rgba(7, 43, 32, 0.7);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -24px rgba(7, 43, 32, 0.76);
}

.segment-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.segment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg, rgba(8, 32, 25, 0.16), rgba(8, 32, 25, 0.8));
}

.segment-card span {
  position: absolute;
  left: 0.58rem;
  right: 0.58rem;
  bottom: 0.55rem;
  z-index: 2;
  color: #f4fbf8;
  display: grid;
  gap: 0.1rem;
}

.segment-card strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.segment-card small {
  font-size: 0.67rem;
  opacity: 0.92;
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 0.78rem;
  padding: 0.66rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #f5fbf8;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 28px -20px rgba(8, 68, 51, 0.75);
}

.btn-ghost {
  color: var(--brand-deep);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.btn-full {
  width: 100%;
}

.hero {
  margin-top: 0.92rem;
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  min-height: min(74vh, 700px);
  border: 1px solid rgba(8, 68, 51, 0.18);
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(8, 32, 25, 0.82) 14%, rgba(8, 32, 25, 0.45) 52%, rgba(8, 32, 25, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 32, 25, 0.08), rgba(8, 32, 25, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 710px;
  padding: clamp(1.1rem, 3.1vw, 2.8rem);
  color: #f6fbf8;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.67rem;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0.66rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.99;
}

.hero-content p {
  margin: 1rem 0 0;
  font-size: clamp(0.9rem, 1.8vw, 1.03rem);
  line-height: 1.66;
  max-width: 60ch;
  color: rgba(246, 251, 248, 0.94);
}

.hero-chips {
  margin-top: 1.16rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chips span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.37rem 0.75rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.hero-cta .btn-ghost {
  color: #f2fcf7;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.stats {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.66rem;
}

.stats article {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(245, 241, 232, 0.92));
  border: 1px solid var(--line);
  border-radius: 0.86rem;
  padding: 0.72rem;
  box-shadow: 0 15px 30px -25px rgba(7, 43, 32, 0.5);
}

.stats h3 {
  margin: 0;
  font-size: 0.8rem;
}

.stats p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4f6459;
}

.section-title {
  margin-bottom: 0.88rem;
}

.section-title h2 {
  margin: 0.44rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.95rem);
  line-height: 1.08;
}

.section-title-compact h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.about,
.floorplans,
.gallery,
.amenities-location,
.contact-hub {
  margin-top: 2.06rem;
}

#hero-section,
#project-story,
#floor-plans,
#gallery,
#amenities-location,
#contact-us {
  scroll-margin-top: 1.1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 241, 232, 0.9));
  box-shadow: var(--shadow);
  padding: 1.12rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.86rem;
}

.about-media {
  display: grid;
  gap: 0.72rem;
}

.about-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.2rem);
  display: block;
}

.media-note {
  border: 1px solid rgba(8, 68, 51, 0.16);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 0.72rem;
  padding: 0.66rem 0.75rem;
}

.media-note strong {
  display: block;
  font-size: 0.88rem;
}

.media-note span {
  margin-top: 0.22rem;
  display: block;
  color: #4b6158;
  font-size: 0.8rem;
}

.about-copy h3 {
  margin: 0;
  font-size: 1.38rem;
  font-family: "Playfair Display", serif;
}

.story-points {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.52rem;
}

.story-points-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-media-card {
  border: 1px solid rgba(8, 68, 51, 0.13);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.74rem;
  overflow: hidden;
  box-shadow: 0 16px 30px -25px rgba(7, 43, 32, 0.46);
}

.story-media-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.story-media-card div {
  padding: 0.62rem 0.68rem 0.72rem;
}

.story-media-card h4 {
  margin: 0;
  font-size: 0.9rem;
}

.story-media-card p {
  margin: 0.36rem 0 0;
  color: #4d6258;
  line-height: 1.5;
  font-size: 0.82rem;
}

.cards-grid {
  display: grid;
  gap: 0.72rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 0.94rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 42px -34px rgba(16, 42, 32, 0.6);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.project-card div {
  padding: 0.82rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
}

.project-card p {
  margin: 0.42rem 0 0;
  font-size: 0.82rem;
  color: #4f645a;
  line-height: 1.45;
  font-weight: 600;
}

.gallery-marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 40px -33px rgba(7, 43, 32, 0.55);
  padding: 0.56rem 0;
}

.gallery-track {
  width: max-content;
  display: flex;
  gap: 0.56rem;
  padding-inline: 0.56rem;
  animation: galleryFlow 55s linear infinite;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-card {
  margin: 0;
  flex: 0 0 345px;
  border-radius: 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(8, 68, 51, 0.16);
  background: #fff;
  box-shadow: 0 18px 34px -30px rgba(7, 43, 32, 0.65);
}

.gallery-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.amenities-location {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.amenity-photo-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.info-photo-card {
  margin: 0;
  border: 1px solid rgba(8, 68, 51, 0.16);
  border-radius: 0.72rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 28px -25px rgba(7, 43, 32, 0.5);
}

.info-photo-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
}

.info-photo-card figcaption {
  padding: 0.45rem 0.56rem 0.56rem;
  display: grid;
  gap: 0.2rem;
}

.info-photo-card strong {
  font-size: 0.82rem;
  color: #203f34;
  line-height: 1.25;
}

.info-photo-card span {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #365246;
  font-weight: 700;
}

.relatable-card {
  border-style: dashed;
}

.distance-cards {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.46rem;
}

.map-wrap {
  margin-top: 0.75rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(8, 68, 51, 0.16);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(180deg, #f3f5ee, #ebefe4);
  display: grid;
  place-items: center;
}

.map-wrap img {
  width: 100%;
  min-height: 280px;
  height: 100%;
  object-fit: contain;
  background: #edf1e7;
  display: block;
}

.map-open-link {
  margin-top: 0.55rem;
  display: inline-flex;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #135640;
  border-bottom: 1px solid rgba(8, 68, 51, 0.28);
  padding-bottom: 0.1rem;
}

.siteplan-link {
  margin-top: 0.7rem;
  border: 1px solid rgba(8, 68, 51, 0.16);
  border-radius: 0.8rem;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
}

.siteplan-link img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.siteplan-link span {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f3f33;
}

.contact-hub {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 0.86rem;
}

.contact-primary {
  background:
    linear-gradient(128deg, rgba(8, 68, 51, 0.95), rgba(6, 40, 30, 0.94)),
    url("https://www.supertechlimited.com/images/hilltown-gurgaon/gallery/4.webp") center / cover;
  color: #f4fbf8;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-primary .kicker {
  color: rgba(244, 251, 248, 0.86);
}

.contact-primary h2 {
  margin: 0.45rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.contact-primary > p {
  margin: 0.7rem 0 0;
  max-width: 56ch;
  color: rgba(244, 251, 248, 0.86);
  line-height: 1.55;
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.contact-primary .btn-ghost {
  color: #f5fbf8;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.contact-side h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.contact-line {
  margin-top: 0.68rem;
  display: block;
  text-decoration: none;
  font-weight: 700;
  color: #114c39;
  border: 1px solid rgba(8, 68, 51, 0.15);
  border-radius: 0.68rem;
  padding: 0.62rem 0.7rem;
  background: rgba(255, 255, 255, 0.7);
}

.contact-note {
  margin: 0.78rem 0 0;
  color: #4d6158;
  font-weight: 600;
}

.contact-side .btn {
  margin-top: 0.85rem;
}

.site-footer {
  margin-top: 2rem;
  background: #eef2ef;
  border-top: 1px solid rgba(8, 68, 51, 0.14);
  padding: 2rem 0 calc(2.2rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand img {
  width: 170px;
  display: block;
  padding: 0.38rem 0.58rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #0f1412 0%, #1d2520 100%);
  border: 1px solid rgba(190, 153, 77, 0.45);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.82);
  filter: saturate(1.14) contrast(1.08) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.26));
}

.footer-brand p {
  margin: 0.65rem 0 0;
  color: #385449;
  line-height: 1.58;
}

.footer-brand small {
  margin-top: 0.35rem;
  display: block;
  color: #597066;
}

.site-footer h4 {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #203f34;
}

.site-footer a,
.site-footer p {
  margin: 0.6rem 0 0;
  display: block;
  text-decoration: none;
  color: #4f675d;
  font-weight: 600;
}

.footer-legal {
  margin-top: 1.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(8, 68, 51, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.footer-legal p {
  margin: 0;
  color: #4a6157;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.footer-legal strong {
  color: #203f34;
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 28;
  display: none;
  gap: 0.5rem;
  padding: 0.56rem 0.7rem calc(0.56rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(11, 106, 78, 0.2);
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(8px);
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(4, 24, 18, 0.76);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popup-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-shell {
  width: min(860px, 96vw);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fff;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.popup-backdrop.open .popup-shell {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1b3027;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.popup-media {
  position: relative;
  min-height: 360px;
}

.popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(8, 44, 33, 0.2), rgba(8, 44, 33, 0.78));
}

.popup-media-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #f6fbf8;
}

.popup-media-copy p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.popup-media-copy h3 {
  margin: 0.44rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.popup-media-copy span {
  margin-top: 0.35rem;
  display: block;
  font-size: 0.82rem;
}

.popup-content {
  padding: 1.02rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-content h3 {
  margin: 0.45rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.78rem;
  line-height: 1.08;
}

.popup-content > p {
  margin: 0.58rem 0 0;
  color: #566960;
  font-size: 0.84rem;
  line-height: 1.46;
}

#popupLeadForm {
  margin-top: 0.64rem;
  display: grid;
  gap: 0.46rem;
}

#popupLeadForm input {
  width: 100%;
  border: 1px solid rgba(8, 68, 51, 0.24);
  border-radius: 0.68rem;
  padding: 0.68rem 0.76rem;
  font: inherit;
}

#popupLeadForm input:focus {
  outline: none;
  border-color: rgba(8, 68, 51, 0.58);
  box-shadow: 0 0 0 3px var(--ring);
}

.popup-status {
  min-height: 1rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.popup-status.ok {
  color: #156348;
}

.popup-status.error {
  color: #8b1d1d;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (min-width: 781px) and (max-width: 1150px) {
  .section-shell {
    width: min(960px, 93vw);
  }

  .topbar-segments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .amenities-location,
  .contact-hub,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-marquee {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
    padding-inline: 0;
    animation: none;
  }

  .gallery-card {
    flex: initial;
  }

  .gallery-card[aria-hidden="true"] {
    display: none;
  }

  .gallery-card img {
    height: 210px;
    object-fit: cover;
  }

  .map-wrap {
    min-height: clamp(250px, 38vw, 320px);
  }

  .map-wrap img {
    min-height: 0;
    object-fit: contain;
  }
}

@media (max-width: 780px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-shell {
    width: min(390px, calc(100vw - 1rem));
    margin-inline: auto;
  }

  .about,
  .floorplans,
  .gallery,
  .amenities-location,
  .contact-hub {
    margin-top: 1.25rem;
  }

  .about-grid,
  .amenities-location,
  .contact-hub,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid > *,
  .amenities-location > *,
  .contact-hub > *,
  .footer-grid > * {
    min-width: 0;
  }

  .topbar {
    position: static;
    margin-top: 0.55rem;
    padding: 0.64rem 0.66rem 0.72rem;
    gap: 0.5rem;
  }

  .topbar-main {
    flex-direction: row;
    align-items: center;
  }

  .brand {
    justify-content: flex-start;
    flex: 0 0 auto;
    padding: 0.24rem 0.34rem;
    border-radius: 0.58rem;
    background: linear-gradient(145deg, #0e1310 0%, #1a231d 100%);
    border: 1px solid rgba(190, 153, 77, 0.42);
    box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.78);
  }

  .brand img {
    width: 120px;
    min-width: 120px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: saturate(1.2) contrast(1.12) brightness(1.06);
  }

  .brand span {
    display: none;
  }

  .topbar-actions {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    gap: 0.45rem;
  }

  .topbar-actions .btn {
    flex: 1;
    min-height: 42px;
    padding: 0.56rem 0.52rem;
    font-size: 0.78rem;
    border-radius: 0.68rem;
  }

  .footer-brand img {
    width: 154px;
    padding: 0.32rem 0.5rem;
  }

  .footer-legal {
    justify-content: flex-start;
    padding-bottom: 3.6rem;
  }

  .topbar-segments {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.38rem;
    padding-bottom: 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .segment-card {
    flex: 0 0 auto;
    min-height: auto;
    padding: 0.42rem 0.56rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(8, 68, 51, 0.16);
    box-shadow: none;
    border-radius: 0.62rem;
    scroll-snap-align: start;
  }

  .segment-card::after,
  .segment-card img,
  .segment-card small {
    display: none;
  }

  .segment-card span {
    position: static;
    color: #214438;
    display: block;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .segment-card strong {
    font-size: 0.73rem;
    white-space: nowrap;
  }

  .about-media img {
    max-height: 250px;
  }

  .story-points-media,
  .cards-3,
  .amenity-groups,
  .distance-cards,
  .amenity-photo-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar-segments::-webkit-scrollbar,
  .story-points-media::-webkit-scrollbar,
  .cards-3::-webkit-scrollbar,
  .amenity-groups::-webkit-scrollbar,
  .distance-cards::-webkit-scrollbar,
  .amenity-photo-grid::-webkit-scrollbar,
  .gallery-marquee::-webkit-scrollbar {
    display: none;
  }

  .story-points-media > *,
  .cards-3 > *,
  .amenity-groups > *,
  .distance-cards > *,
  .amenity-photo-grid > * {
    flex: 0 0 min(86%, 320px);
    max-width: 100%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .story-media-card,
  .project-card,
  .info-photo-card,
  .gallery-card {
    max-width: 100%;
    min-width: 0;
  }

  .story-media-card img,
  .project-card img,
  .info-photo-card img,
  .gallery-card img {
    height: 172px;
    object-fit: contain;
    background: #edf1e7;
  }

  .project-card {
    min-height: 100%;
  }

  .project-card img {
    aspect-ratio: auto;
  }

  .amenity-photo-grid .relatable-card {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 1.05rem;
  }

  .hero-content h1 {
    font-size: clamp(1.72rem, 8.2vw, 2rem);
    line-height: 1.05;
  }

  .hero-content p {
    font-size: 0.96rem;
    line-height: 1.54;
  }

  .hero-chips span {
    font-size: 0.68rem;
    padding: 0.32rem 0.62rem;
  }

  .hero-chips span:nth-child(3) {
    display: none;
  }

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

  .gallery-track {
    width: max-content;
    min-width: 100%;
    gap: 0.5rem;
    padding-inline: 0.45rem;
    animation: none;
  }

  .gallery-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-card[aria-hidden="true"] {
    display: none;
  }

  .gallery-card {
    flex: 0 0 min(calc(100vw - 2rem), 320px);
    scroll-snap-align: start;
  }

  .map-wrap {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .map-wrap img {
    min-height: 0;
    height: 100%;
    object-fit: contain;
    background: #edf1e7;
  }

  .siteplan-link img {
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #edf1e7;
  }

  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    margin-bottom: 4.6rem;
  }

  .popup-backdrop {
    align-items: center;
    justify-content: center;
    padding: calc(0.5rem + env(safe-area-inset-top)) 0.65rem calc(5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .popup-shell {
    grid-template-columns: 1fr;
    width: min(370px, calc(100% - 0.45rem));
    max-height: calc(100vh - 5.6rem);
    max-height: calc(100dvh - 5.6rem);
    overflow-y: auto;
    border-radius: 1rem;
  }

  .popup-media {
    min-height: 0;
    height: clamp(118px, 19vh, 165px);
    height: clamp(118px, 19dvh, 165px);
  }

  .popup-media-copy {
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.62rem;
  }

  .popup-media-copy p {
    font-size: 0.62rem;
  }

  .popup-media-copy h3 {
    font-size: 1.16rem;
    margin-top: 0.2rem;
    line-height: 1.03;
  }

  .popup-media-copy span {
    margin-top: 0.14rem;
    font-size: 0.66rem;
  }

  .popup-content {
    padding: 0.74rem 0.72rem 0.78rem;
  }

  .popup-content h3 {
    font-size: 1.04rem;
    margin-top: 0.2rem;
    line-height: 1.12;
  }

  .popup-content > p {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  #popupLeadForm {
    margin-top: 0.42rem;
    gap: 0.34rem;
  }

  #popupLeadForm input {
    padding: 0.54rem 0.62rem;
    border-radius: 0.58rem;
    font-size: 0.88rem;
  }

  #popupLeadForm .btn {
    padding: 0.6rem 0.72rem;
    font-size: 0.95rem;
    border-radius: 0.62rem;
  }

  .popup-status {
    min-height: 0.82rem;
    font-size: 0.7rem;
  }

  .popup-close {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 1.14rem;
    top: 0.46rem;
    right: 0.46rem;
  }
}
