/* ============================================================
   PALM RIVER - interactive journey (high-end pass)
   Vibe: Soft Structuralism - porcelain paper, massive grotesk,
   airy floating components, soft diffused ambient shadows.
   Haptics: double-bezel nesting, island nav, button-in-button.
   Type: Bricolage Grotesque (display) + Be Vietnam Pro (body)
   Radius rule: containers = squircle bezel, interactive = pill
   ============================================================ */

:root {
  --paper: #f1f2ed;
  --panel: #e6e9e0;
  --ink: #12160f;
  --ink-60: rgba(18, 22, 15, 0.62);
  --ink-35: rgba(18, 22, 15, 0.35);
  --green: #0e7c4a;
  --green-deep: #0a5c37;
  --line: rgba(18, 22, 15, 0.14);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --pad-x: clamp(20px, 4.5vw, 64px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-outer: 28px;
  --r-pad: 8px;
  --r-inner: calc(var(--r-outer) - var(--r-pad));
  --shadow-soft: 0 30px 70px -28px rgba(18, 22, 15, 0.28), 0 8px 24px -12px rgba(18, 22, 15, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
::selection { background: var(--green); color: var(--paper); }

/* ============ FILM GRAIN (fixed, pointer-events none) ============ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ LOADER ============ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 56px);
}
.loader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.loader__count {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(60px, 14vw, 190px);
  line-height: 0.85;
  color: var(--green);
}

/* ============ CURSOR ============ */

.cursor {
  position: fixed;
  z-index: 90;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease), height 0.45s var(--ease);
}
.cursor span {
  opacity: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: opacity 0.3s var(--ease);
}
.cursor.is-drag,
.cursor.is-zoom { width: 78px; height: 78px; }
.cursor.is-drag span,
.cursor.is-zoom span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

[data-cursor="zoom"] { cursor: zoom-in; }

/* ============ NAV - floating glass island ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 18px var(--pad-x) 0;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(241, 242, 237, 0.68);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(18, 22, 15, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 18px -6px rgba(18, 22, 15, 0.1);
  transition: box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}
.nav.is-scrolled .nav__pill {
  background: rgba(241, 242, 237, 0.86);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 18px 44px -14px rgba(18, 22, 15, 0.28);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand i { font-style: normal; color: var(--green); }

.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}
.nav__links a:hover { color: var(--green); }

/* burger (mobile) - morphs to X */
.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(18, 22, 15, 0.12);
  background: var(--ink);
  cursor: pointer;
}
.nav__burger i {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__burger i:nth-child(1) { top: 18px; }
.nav__burger i:nth-child(2) { top: 25px; }
.nav__burger.is-open i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ============ FULLSCREEN MENU ============ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(241, 242, 237, 0.82);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 8.5vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.menu__links a em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.32em;
  color: var(--green);
}
.menu__links a:hover { color: var(--green); }
.menu__links a > * { pointer-events: none; }
.menu.is-open .menu__links a { animation: menuLink 0.9s var(--ease) both; }
.menu.is-open .menu__links a:nth-child(1) { animation-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(2) { animation-delay: 0.14s; }
.menu.is-open .menu__links a:nth-child(3) { animation-delay: 0.2s; }
.menu.is-open .menu__links a:nth-child(4) { animation-delay: 0.26s; }
.menu.is-open .menu__links a:nth-child(5) { animation-delay: 0.32s; }
@keyframes menuLink {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.menu__meta {
  margin-top: clamp(30px, 6vh, 60px);
  font-size: 13.5px;
  color: var(--ink-60);
}

/* ============ DOUBLE-BEZEL ARCHITECTURE ============ */

.bezel {
  padding: var(--r-pad);
  border-radius: var(--r-outer);
  background: rgba(18, 22, 15, 0.045);
  border: 1px solid rgba(18, 22, 15, 0.07);
  box-shadow: var(--shadow-soft);
}
.bezel > * {
  border-radius: var(--r-inner);
  overflow: hidden;
}
.bezel--dark {
  background: rgba(241, 242, 237, 0.06);
  border-color: rgba(241, 242, 237, 0.12);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.6);
}

/* ============ BUTTONS - island pills w/ nested orb ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.35s var(--ease);
}
.btn__orb {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(241, 242, 237, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn:hover .btn__orb { transform: translate(2px, -2px) scale(1.06); background: rgba(241, 242, 237, 0.24); }
.btn:active { transform: scale(0.97); }

/* ============ TAG (eyebrow pill) ============ */

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 124, 74, 0.35);
  background: rgba(14, 124, 74, 0.07);
  color: var(--green-deep);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tag--dark {
  border-color: rgba(241, 242, 237, 0.25);
  background: rgba(241, 242, 237, 0.07);
  color: rgba(241, 242, 237, 0.85);
}

/* ============ HERO ============ */

.hero { padding-top: calc(var(--nav-h) + 14px); }

.hero__type { padding: clamp(28px, 5vh, 64px) var(--pad-x) clamp(22px, 3.4vh, 44px); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-60);
  margin-bottom: clamp(16px, 2.6vh, 30px);
}
.hero__badge {
  padding: 6px 14px;
  border: 1px solid rgba(14, 124, 74, 0.4);
  border-radius: 999px;
  color: var(--green-deep);
  font-weight: 500;
  background: rgba(14, 124, 74, 0.06);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 14.5vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line--right { text-align: right; color: var(--green); }
.hero__title .line > span { display: inline-block; }

.hero__sub {
  max-width: 44ch;
  color: var(--ink-60);
  margin-top: clamp(14px, 2.4vh, 26px);
}

.hero__dev {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(20px, 3.4vh, 36px);
}
.hero__dev span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.hero__dev img { height: clamp(38px, 4.6vh, 52px); width: auto; }

/* cinema frame: sized to the native 3:2-ish assets so renders stay 1:1 sharp */
.hero__bezel {
  margin: 0 auto;
  width: min(calc(100% - 2 * var(--pad-x)), calc(78vh * 1.5), 1240px);
}

.hero__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--panel);
}
#hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__fallback { position: absolute; inset: 0; }
.hero__fallback img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero__fallback img.is-on { opacity: 1; }

.hero__ui {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(18, 22, 15, 0.55), transparent);
}
.hero__caption { color: #f4f4ef; font-size: 14px; display: flex; align-items: baseline; gap: 14px; }
.hero__caption b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.hero__arrows { display: flex; gap: 10px; }
.hero__arrows button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 239, 0.45);
  background: rgba(18, 22, 15, 0.28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #f4f4ef;
  font-size: 19px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
}
.hero__arrows button:hover { background: var(--green); border-color: var(--green); }
.hero__arrows button:active { transform: scale(0.94); }

/* ============ MANIFESTO / MARQUEE ============ */

.manifesto { padding: clamp(110px, 15vh, 190px) 0; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  padding-right: clamp(14px, 1.8vw, 26px);
}

.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  padding: 0 34px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(18, 22, 15, 0.07);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 10px 26px -14px rgba(18, 22, 15, 0.25);
}
.logo-tile img { height: 44px; width: auto; }

.manifesto__body {
  max-width: 58ch;
  margin: clamp(56px, 9vh, 100px) auto 0;
  padding: 0 var(--pad-x);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.6;
  font-weight: 300;
}
.manifesto__body .w { opacity: 0.18; display: inline-block; }

/* ============ METRO ============ */

.metro {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-outer);
  margin: 0 clamp(8px, 1vw, 16px);
}

.metro__intro {
  display: grid;
  gap: clamp(28px, 5vh, 56px);
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 0;
}
.metro__map { width: 100%; max-width: 1180px; margin-inline: auto; }
.metro__map img { display: block; width: 100%; height: auto; }

.metro__pin {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 90px) var(--pad-x);
}

.metro__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.metro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.metro__addr { max-width: 40ch; color: rgba(241, 242, 237, 0.6); font-size: 15px; }

.metro__line-wrap { position: relative; height: clamp(240px, 38vh, 380px); }
.metro__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.metro__rail {
  fill: none;
  stroke: rgba(241, 242, 237, 0.18);
  stroke-width: 3;
}
.metro__rail--draw { stroke: var(--green); stroke-width: 4; }

.metro__stations { list-style: none; }
.metro__stations li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0.25;
}
.metro__stations li::before {
  content: "";
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--green);
}
.metro__stations li.is-below { display: flex; flex-direction: column-reverse; }
.metro__stations li.is-below::before { margin: 10px auto 0; }
.metro__stations b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 30px);
  color: var(--green);
  white-space: nowrap;
}
.metro__stations span {
  display: block;
  font-size: 12.5px;
  color: rgba(241, 242, 237, 0.75);
  max-width: 150px;
  margin: 0 auto;
  line-height: 1.4;
}
.metro__stations li.is-active { opacity: 1; }
.metro__stations li.is-active b { color: var(--paper); }
.metro__stations li.is-active::before { background: var(--green); }

/* ============ SCALE + PLAN ============ */

.scale { padding: clamp(110px, 15vh, 190px) var(--pad-x); }

.scale__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14ch;
}

.scale__numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: clamp(46px, 7vh, 80px) 0;
  border-top: 2px solid var(--ink);
  padding-top: 30px;
}
.scale__stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.scale__stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.plan__hint { font-size: 14px; color: var(--green-deep); font-weight: 500; margin-bottom: 14px; }

.plan > .bezel { max-width: 1172px; }

.plan__map { position: relative; }
.plan__map > img { width: 100%; }

.plan__dot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(241, 242, 237, 0.92);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(18, 22, 15, 0.3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}
.plan__dot i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  transition: background-color 0.35s var(--ease);
}
.plan__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(241, 242, 237, 0.85);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
.plan__dot:hover, .plan__dot.is-open { transform: translate(-50%, -50%) scale(1.15); }
.plan__dot.is-open i { background: var(--ink); }

.plan__tip {
  position: absolute;
  z-index: 6;
  max-width: 260px;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 18px 44px rgba(18, 22, 15, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.plan__tip.is-on { opacity: 1; transform: translateY(0); }

/* ============ HOMES ============ */

.homes {
  background: var(--panel);
  border-radius: var(--r-outer);
  margin: clamp(60px, 8vh, 100px) clamp(8px, 1vw, 16px) 0;
  padding: clamp(110px, 15vh, 190px) var(--pad-x);
}

.homes__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.homes__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(30px, 5vh, 54px) 0 clamp(34px, 5vh, 60px);
}
.chip {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(18, 22, 15, 0.35);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip:active { transform: scale(0.96); }
.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), 0 10px 24px -10px rgba(18, 22, 15, 0.5);
}

.homes__panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(30px, 4.5vw, 80px);
  align-items: end;
}

.homes__area b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(88px, 13vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: block;
}
.homes__area span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.homes__desc { margin-top: 22px; max-width: 34ch; color: var(--ink-60); }

.homes__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============ TIỆN ÍCH GALLERY GRID ============ */

.gallery { padding: clamp(110px, 15vh, 190px) var(--pad-x); }

.gallery__head {
  margin-bottom: clamp(34px, 5vh, 60px);
  max-width: 900px;
}
.gallery__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.gallery__head p { margin-top: 18px; color: var(--ink-60); max-width: 52ch; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
}
.gallery__item { display: flex; flex-direction: column; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-inner);
  border: 1px solid rgba(18, 22, 15, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.gallery__item:hover img {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 44px 84px -32px rgba(18, 22, 15, 0.34), 0 14px 32px -14px rgba(18, 22, 15, 0.18);
}
.gallery__item figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
}

@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } }

/* ============ PANORAMA ============ */

.pano {
  padding: clamp(110px, 15vh, 190px) 0 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-outer);
  margin: 0 clamp(8px, 1vw, 16px);
}
.pano__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(34px, 5vh, 60px);
  max-width: 20ch;
}
.pano__bezel { margin: 0 clamp(12px, 2vw, 28px); }
.pano__window {
  height: min(78vh, 760px);
  position: relative;
}
.pano__window img {
  height: 100%;
  width: auto;
  max-width: none;
  will-change: transform;
}
.pano__note {
  padding: 30px var(--pad-x) clamp(70px, 10vh, 120px);
  color: rgba(241, 242, 237, 0.6);
  font-size: 15px;
  max-width: 52ch;
}

/* ============ SIGNUP ============ */

.signup {
  padding: clamp(110px, 15vh, 190px) var(--pad-x);
  display: flex;
  justify-content: center;
}
.signup__lead { display: grid; gap: 28px; max-width: 640px; text-align: center; justify-items: center; }
.signup__lead .contact-card { width: 100%; text-align: left; }
.signup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.signup__sub { color: var(--ink-60); font-size: 16px; max-width: 46ch; line-height: 1.6; }

/* ============ CONTACT CARD (quick channels) ============ */
.contact-card { display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 28px); }
.contact-card__act {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.contact-card__act:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(18, 22, 15, 0.22); background: #fff; }
.contact-card__ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.contact-card__ic svg { width: 22px; height: 22px; }
.contact-card__ic span { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.contact-card__ic--zalo { background: #0068ff; }
.contact-card__ic--call { background: var(--green); }
.contact-card__ic--wa { background: #25d366; }
.contact-card__tx { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-card__tx b { font-weight: 600; font-size: 15.5px; }
.contact-card__tx span { color: var(--ink-60); font-size: 12.5px; }
.contact-card__go { color: var(--ink-35); font-size: 18px; transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.contact-card__act:hover .contact-card__go { color: var(--green); transform: translate(2px, -2px); }

/* ============ FLOATING CONTACT DOCK ============ */
.contact-dock { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.dock__btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(18, 22, 15, 0.4);
  transition: transform 0.3s var(--ease);
}
.dock__btn:hover { transform: translateY(-3px) scale(1.05); }
.dock__btn svg { width: 26px; height: 26px; }
.dock__btn--call { background: var(--green); }
.dock__btn--zalo { background: #0068ff; }
.dock__btn--zalo .dock__word { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; }
.dock__btn--wa { background: #25d366; }
.dock__label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.dock__btn:hover .dock__label { opacity: 1; transform: translateY(-50%) translateX(0); }
.dock__pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: dockPulse 2.4s ease-out infinite; }
.dock__pulse--d2::before { animation-delay: 0.8s; }
.dock__pulse--d3::before { animation-delay: 1.6s; }
@keyframes dockPulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }

/* ============ ZALO MODAL ============ */
.zalo-modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(18, 22, 15, 0.5); backdrop-filter: blur(6px);
}
.zalo-modal.is-open { display: flex; animation: zaloFade 0.25s both; }
@keyframes zaloFade { from { opacity: 0; } to { opacity: 1; } }
.zalo-modal__card { max-width: 360px; width: 100%; padding: 30px 28px 26px; text-align: center; position: relative; background: var(--paper); }
.zalo-modal__card > * { border-radius: var(--r-inner); }
.zalo-modal__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 6px; }
.zalo-modal__sub { color: var(--ink-60); font-size: 13.5px; line-height: 1.5; margin-bottom: 20px; }
.zalo-modal__qr { width: 200px; height: 200px; margin: 0 auto 16px; display: block; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.zalo-modal__num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; margin-bottom: 18px; }
.zalo-modal__acts { display: flex; gap: 10px; }
.zalo-modal__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent;
  transition: filter 0.25s, background-color 0.25s;
}
.zalo-modal__btn--copy { background: var(--ink); color: var(--paper); }
.zalo-modal__btn--copy:hover { background: var(--green-deep); }
.zalo-modal__btn--open { background: #0068ff; color: #fff; }
.zalo-modal__btn--open:hover { filter: brightness(1.08); }
.zalo-modal__close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--ink-60); cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; transition: background-color 0.2s;
}
.zalo-modal__close:hover { background: rgba(18, 22, 15, 0.08); }
.zalo-modal__hint { margin-top: 14px; font-size: 12px; color: var(--ink-60); line-height: 1.5; }

/* ============ LIGHTBOX (xem ảnh phóng to) ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 220; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: clamp(20px, 5vh, 60px) clamp(16px, 5vw, 60px);
  background: rgba(12, 14, 10, 0.92); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; animation: lightboxFade 0.3s var(--ease) both; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  animation: lightboxZoom 0.4s var(--ease) both;
}
@keyframes lightboxZoom { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__caption { color: rgba(241, 242, 237, 0.72); font-size: 14px; text-align: center; max-width: 60ch; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(241, 242, 237, 0.24); background: rgba(241, 242, 237, 0.08); color: var(--paper);
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(241, 242, 237, 0.18); transform: rotate(90deg); }
@media (max-width: 640px) {
  .lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 22px; }
}

/* ============ FOOTER CONTACT ============ */
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.footer__contact a { font-size: 13.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-35); text-underline-offset: 3px; transition: color 0.3s var(--ease); }
.footer__contact a:hover { color: var(--green-deep); }

.signup__form { display: grid; gap: 24px; }
.bezel--form {
  padding: clamp(24px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 22, 15, 0.08);
  border-radius: var(--r-outer);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-soft);
}
.bezel--form > * { border-radius: 0; overflow: visible; }

.field { display: grid; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
}
.field input,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink-35);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  padding: 10px 2px;
  transition: border-color 0.4s var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--green); }
.field__error { font-size: 13px; color: #b4472a; min-height: 1em; }
.field.has-error input { border-bottom-color: #b4472a; }

.signup__submit { justify-self: start; margin-top: 4px; }
.signup__success { color: var(--green-deep); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ============ FOOTER ============ */

.footer {
  border-top: 2px solid var(--ink);
  margin-top: clamp(60px, 8vh, 100px);
  padding: 44px var(--pad-x) 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.footer__meta { max-width: 480px; }
.footer__meta p { font-size: 13.5px; color: var(--ink-60); line-height: 1.9; }
.footer__logo { height: 52px; width: auto; margin-bottom: 18px; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 767px) {
  :root { --nav-h: 76px; --r-outer: 20px; --r-pad: 6px; }

  .nav { padding: 12px 12px 0; }
  .nav__pill { width: 100%; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 18px; }
  .nav__brand { font-size: 16px; }
  .nav__cta { display: none; }

  .hero__bezel { width: calc(100% - 24px); }
  .hero__stage { aspect-ratio: auto; height: 58vh; }

  .metro { margin: 0 6px; }
  .metro__pin { min-height: auto; padding-bottom: 80px; }
  .metro__line-wrap { height: 400px; }
  .metro__stations span { max-width: 110px; font-size: 11.5px; }

  .scale__numbers { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }

  .homes { margin: 40px 6px 0; }
  .homes__panel { grid-template-columns: 1fr; gap: 30px; }
  .homes__panel .homes__media { order: -1; }

  .pano { margin: 0 6px; }
  .pano__window { height: 52vh; }

  .contact-dock { right: 14px; bottom: 14px; gap: 12px; }
  .dock__btn { width: 50px; height: 50px; }
  .dock__label { display: none; }
}
