/* Sanvi Paradise — premium riverside living */
:root {
  --navy: #0b1626;
  --navy-deep: #06101c;
  --navy-mid: #152338;
  --navy-soft: #1e3048;
  --rose: #c9a27a;
  --rose-light: #e0c4a8;
  --rose-deep: #a67c52;
  --ink: #1a2332;
  --muted: #6b7789;
  --paper: #f7f5f2;
  --paper-cool: #eef1f5;
  --white: #ffffff;
  --line: rgba(201, 162, 122, 0.35);
  --shadow: 0 24px 60px rgba(6, 16, 28, 0.18);
  --font-display: "EB Garamond", "Times New Roman", "Times", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--wide {
  width: min(1280px, calc(100% - 2.5rem));
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s, box-shadow 0.45s;
}

.nav.is-scrolled {
  background: rgba(11, 22, 38, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.nav__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.nav__brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  opacity: 0.85;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--rose-light);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: var(--rose);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}

.nav__cta:hover {
  background: var(--rose-light);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #0b1626;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  image-rendering: auto;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 16, 28, 0.28) 0%, rgba(6, 16, 28, 0.12) 40%, rgba(6, 16, 28, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 5.5rem;
  padding-top: calc(var(--nav-h) + 4rem);
}

.hero__brand {
  width: min(180px, 42vw);
  height: auto;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s 0.1s var(--ease) forwards;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-light);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 14ch;
  min-height: 1.2em;
}

.typewriter {
  display: inline;
}

.typewriter__text {
  white-space: pre-wrap;
}

.typewriter__text .accent {
  font-style: italic;
  color: var(--rose-light);
}

.typewriter__cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.05em;
  background: var(--rose-light);
  animation: blink 0.85s steps(1) infinite;
}

.typewriter__cursor--sm {
  height: 0.85em;
  width: 2px;
}

.hero__tagline {
  margin-top: 0.85rem;
  min-height: 1.5em;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--rose-light);
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s calc(0.25s + var(--i) * 0.1s) var(--ease) forwards;
}

.hero__scroll {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn--primary {
  background: var(--rose);
  color: var(--navy-deep);
}

.btn--primary:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--rose);
  color: var(--rose-light);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-soft);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 22, 38, 0.2);
}

.btn--outline:hover {
  border-color: var(--rose-deep);
  color: var(--rose-deep);
}

/* Section chrome */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--soft {
  background: var(--paper-cool);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}

.section--navy .section__eyebrow {
  color: var(--rose);
}

.section__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

.section__title em {
  font-style: italic;
  color: var(--rose-deep);
  display: inline-block;
  position: relative;
}

.section__title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-deep), transparent);
  transition: width 0.8s var(--ease) 0.25s;
}

.reveal.is-visible .section__title em::after,
.section__head.is-visible .section__title em::after {
  width: 100%;
}

.section--navy .section__title em {
  color: var(--rose-light);
}

.section--navy .section__title em::after {
  background: linear-gradient(90deg, var(--rose), transparent);
}

.section__title .title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--tw, 0) * 70ms);
}

.reveal.is-visible .section__title .title-word,
.section__head.is-visible .section__title .title-word,
.location__copy.is-visible .section__title .title-word {
  opacity: 1;
  transform: translateY(0);
}

.text-shimmer {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose-light), var(--rose-deep));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.section__lead {
  margin-top: 1.15rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 350;
}

.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.7);
}

.section__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* Welcome */
.welcome {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.welcome__visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.welcome__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.welcome__visual:hover img {
  transform: perspective(1000px) rotateY(6deg) rotateX(2deg) scale(1.04);
}

.welcome__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(6, 16, 28, 0.55));
}

.welcome__meta {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome__copy p + p {
  margin-top: 1rem;
}

.welcome__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(11, 22, 38, 0.1);
}

.welcome__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.welcome__stats span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.founder__quote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.founder__by {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

.founder__build {
  min-height: 420px;
}

.build-scene {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #0a1420;
  border: 1px solid rgba(201, 162, 122, 0.22);
  isolation: isolate;
}

.build-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  clip-path: inset(100% 0 0 0);
  filter: saturate(0.85) brightness(0.78);
  transition: clip-path 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, transform 0.15s linear;
  will-change: clip-path, transform;
}

.build-scene[data-stage="1"] .build-photo {
  clip-path: inset(82% 0 0 0);
  filter: saturate(0.7) brightness(0.7) grayscale(0.2);
}

.build-scene[data-stage="2"] .build-photo {
  clip-path: inset(68% 0 0 0);
}

.build-scene[data-stage="3"] .build-photo {
  clip-path: inset(52% 0 0 0);
}

.build-scene[data-stage="4"] .build-photo {
  clip-path: inset(36% 0 0 0);
}

.build-scene[data-stage="5"] .build-photo {
  clip-path: inset(20% 0 0 0);
}

.build-scene[data-stage="6"] .build-photo {
  clip-path: inset(8% 0 0 0);
  filter: saturate(0.95) brightness(0.95);
}

.build-scene[data-stage="7"] .build-photo {
  clip-path: inset(0 0 0 0);
  filter: saturate(1.05) brightness(1.02);
}

.build-scaffold {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 34px,
      rgba(210, 190, 160, 0.22) 34px,
      rgba(210, 190, 160, 0.22) 36px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 38px,
      rgba(210, 190, 160, 0.16) 38px,
      rgba(210, 190, 160, 0.16) 40px
    );
  mask-image: linear-gradient(to top, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 55%, transparent 100%);
  transition: opacity 0.6s ease;
}

.build-scene.is-building .build-scaffold {
  opacity: 1;
}

.build-scene[data-stage="7"] .build-scaffold {
  opacity: 0;
  transition-delay: 0.35s;
}

.build-crane-svg {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 88px;
  height: 78%;
  z-index: 3;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.6s var(--ease);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.build-scene.is-building .build-crane-svg {
  opacity: 0.95;
  transform: none;
}

.build-scene[data-stage="7"] .build-crane-svg {
  opacity: 0;
  transition-delay: 0.2s;
}

.build-crane-svg__jib {
  transform-origin: 57px 30px;
  animation: craneJib 2.8s ease-in-out infinite;
}

.build-crane-svg__cable,
.build-crane-svg__block {
  animation: craneHook 2.8s ease-in-out infinite;
}

.build-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.build-scene.is-building .build-dust {
  opacity: 1;
}

.build-scene[data-stage="7"] .build-dust {
  opacity: 0;
}

.build-dust span {
  position: absolute;
  bottom: 12%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(230, 210, 180, 0.55);
  animation: dustRise 2.4s linear infinite;
}

.build-dust span:nth-child(1) { left: 18%; animation-delay: 0s; }
.build-dust span:nth-child(2) { left: 32%; animation-delay: 0.4s; width: 3px; height: 3px; }
.build-dust span:nth-child(3) { left: 48%; animation-delay: 0.8s; }
.build-dust span:nth-child(4) { left: 61%; animation-delay: 0.2s; width: 4px; height: 4px; }
.build-dust span:nth-child(5) { left: 74%; animation-delay: 1s; }
.build-dust span:nth-child(6) { left: 40%; animation-delay: 1.3s; width: 3px; height: 3px; }

.build-progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2.4rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 4;
  overflow: hidden;
}

.build-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose-light));
  transition: width 1s var(--ease);
}

.build-label {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  z-index: 4;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-light);
}

@keyframes craneJib {
  0%,
  100% { transform: rotate(0deg); }
  50% { transform: rotate(-7deg); }
}

@keyframes craneHook {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

@keyframes dustRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  15% { opacity: 0.7; }
  100% {
    transform: translateY(-180px) scale(0.4);
    opacity: 0;
  }
}

/* Floor plans */
.plans__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.plan-range {
  display: flex;
  gap: 2rem;
}

.plan-range__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
}

.plan-range__item span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.plan-tab {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(11, 22, 38, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.plan-tab.is-active,
.plan-tab:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.plan-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.plan-panel.is-active {
  display: grid;
  animation: fadeIn 0.45s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-panel__image {
  background: #f4f4f4;
  min-height: 420px;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  position: relative;
  cursor: zoom-in;
  border: 1px solid rgba(11, 22, 38, 0.06);
  transition: box-shadow 0.3s;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.plan-panel__image:hover {
  box-shadow: 0 0 0 2px var(--rose);
}

.plan-panel__image img {
  max-height: min(560px, 70vh);
  width: 100%;
  object-fit: contain;
  transition: transform 0.55s var(--ease);
}

.plan-panel__image:hover img {
  transform: perspective(800px) rotateY(-5deg) scale(1.03);
}

.plan-panel__zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: rgba(11, 22, 38, 0.88);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.plan-panel__zoom svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* Floor plan lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 16, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  width: min(1200px, 96vw);
  height: min(90vh, 900px);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open .lightbox__dialog {
  transform: none;
}

.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(11, 22, 38, 0.08);
  background: var(--navy);
  color: var(--white);
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lightbox__hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox__btn:hover {
  background: rgba(201, 162, 122, 0.2);
  border-color: var(--rose);
}

.lightbox__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.lightbox__stage {
  flex: 1;
  overflow: auto;
  background: #f0eeeb;
  display: grid;
  place-items: center;
  padding: 1rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.lightbox__stage.is-dragging {
  cursor: grabbing;
}

.lightbox__img {
  max-width: none;
  width: auto;
  height: auto;
  max-height: calc(90vh - 5rem);
  max-width: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-zoomed {
  max-height: none;
  max-width: none;
  width: min(1800px, 180%);
}

.plan-panel__body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.plan-panel__body .type {
  color: var(--rose-deep);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.plan-specs {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.plan-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(11, 22, 38, 0.08);
  font-size: 0.92rem;
}

.plan-specs span {
  color: var(--muted);
}

.plan-specs strong {
  font-weight: 600;
  color: var(--navy);
}

.smart-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.smart-list li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.smart-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--rose);
  border-radius: 50%;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.amenity {
  background: var(--navy-mid);
  padding: 1.75rem 1.35rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.35s;
}

.amenity:hover {
  background: var(--navy-soft);
}

.amenity__icon {
  width: 2rem;
  height: 2rem;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.amenity__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.amenity h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Gallery */
.gallery-shell {
  width: min(1280px, calc(100% - 3rem));
  margin-inline: auto;
  padding-left: clamp(1rem, 3.5vw, 2.75rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 210px 210px 230px 280px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  perspective: 900px;
}

.gallery-item--hero {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery-item--tall {
  grid-column: 3;
  grid-row: 3;
}

.gallery-item--wide {
  grid-column: 1 / -1;
  grid-row: 4;
}

.gallery-item--plan {
  background: #eceae6;
  cursor: zoom-in;
}

.gallery-item--plan img {
  object-fit: contain;
  padding: 1rem 1.25rem;
  background: #f7f5f2;
}

.gallery-item--plan figcaption {
  background: linear-gradient(transparent, rgba(11, 22, 38, 0.88));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
  transform-style: preserve-3d;
}

.gallery-item:hover img {
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg) scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(6, 16, 28, 0.82));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.45s var(--ease), opacity 0.45s;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 122, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Location */
.location {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.location__copy .section__lead {
  margin-bottom: 1.75rem;
}

.location__list {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
}

.location__list li {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0.4rem;
  border-bottom: 1px solid rgba(11, 22, 38, 0.08);
  transition: background 0.3s, padding-left 0.3s, border-color 0.3s;
}

.location__list li:hover {
  background: rgba(201, 162, 122, 0.1);
  padding-left: 0.75rem;
  border-color: rgba(201, 162, 122, 0.35);
}

.location__list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose-deep);
}

.location__list span {
  color: var(--ink);
  font-size: 0.95rem;
}

.location__map-link {
  margin-top: 0.25rem;
}

.location__map-wrap {
  position: relative;
  padding: 0.85rem;
  background:
    linear-gradient(145deg, rgba(201, 162, 122, 0.22), transparent 40%),
    var(--white);
  box-shadow: var(--shadow);
}

.location__map {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--navy-mid);
}

.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.12) contrast(1.04) saturate(0.95);
  transition: filter 0.5s;
}

.location__map-wrap:hover .location__map iframe {
  filter: none;
}

.location__badge {
  position: absolute;
  z-index: 3;
  background: rgba(11, 22, 38, 0.92);
  color: var(--white);
  padding: 1.15rem 1.35rem;
  max-width: 260px;
  pointer-events: none;
}

.location__badge--float {
  left: 1.75rem;
  bottom: 1.75rem;
  animation: badgeFloat 4.5s ease-in-out infinite;
}

.location__badge span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.35rem;
}

.location__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

.location__badge p {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.location__pulse {
  position: absolute;
  top: 42%;
  left: 52%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(201, 162, 122, 0.7);
  animation: mapPulse 2.2s ease-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 122, 0.65);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(201, 162, 122, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 122, 0);
    transform: scale(1);
  }
}

/* Payment */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-table th,
.payment-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(11, 22, 38, 0.06);
}

.payment-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.payment-table td:last-child,
.payment-table th:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--rose-deep);
  white-space: nowrap;
}

.payment-table th:last-child {
  color: var(--rose-light);
}

.payment-table tr:hover td {
  background: rgba(201, 162, 122, 0.06);
}

.payment-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Inquiry */
.inquiry {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.inquiry__aside p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36ch;
}

.inquiry__contacts {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.15rem;
}

.inquiry__contacts a,
.inquiry__contacts span {
  display: block;
}

.inquiry__contacts small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.3rem;
}

.inquiry__contacts strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.inquiry-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--rose);
  background: rgba(201, 162, 122, 0.06);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a27a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  color: var(--navy);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  font-size: 0.88rem;
  color: var(--rose-light);
  min-height: 1.25rem;
}

.form-status.is-error {
  color: #ff8f8f;
}

.form-status.is-success {
  color: #9be7b5;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201, 162, 122, 0.18);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.footer__brand p {
  max-width: 36ch;
  font-size: 0.92rem;
}

.footer__meta {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile */
@media (max-width: 960px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(11, 22, 38, 0.98);
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav.is-open .nav__cta {
    display: inline-flex;
    margin: 0.5rem 1.5rem 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .welcome,
  .founder,
  .location,
  .inquiry,
  .plan-panel.is-active {
    grid-template-columns: 1fr;
  }

  .welcome__visual,
  .founder__build,
  .location__map {
    min-height: 360px;
  }

  .build-scene {
    height: 360px;
  }

  .location__map-wrap {
    padding: 0.65rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-shell {
    width: min(100% - 1.5rem, 1280px);
    padding-left: 1.25rem;
    padding-right: 0.75rem;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 200px 200px 240px;
  }

  .gallery-item--hero {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .smart-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .welcome__stats,
  .amenities-grid,
  .plan-range {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 220px;
  }

  .gallery-item--hero,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-item--wide {
    min-height: 260px;
  }

  .gallery-shell {
    padding-left: 1rem;
    padding-right: 0.75rem;
  }

  .location__badge--float {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .location__pulse {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .hero__media img {
    object-position: center 30%;
  }

  .payment-table th,
  .payment-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }

  .plan-panel__image {
    min-height: 280px;
  }

  .plan-panel__image img {
    max-height: 320px;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox__dialog {
    width: 100%;
    height: 100%;
    max-height: 100vh;
  }

  .lightbox__img.is-zoomed {
    width: 220%;
  }

  .lightbox__hint {
    display: none;
  }
}
