/* ============================================================
   Lightwater Residences?Design System
   ============================================================ */


/* Variables   */
:root {
  --serif: 'Noto Serif TC', serif;
  --sans: 'Jost', 'Noto Sans TC', sans-serif;

  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;
  --space-160: 160px;
  --space-200: 200px;

  /* Aliases for consistency */
  --space-xs: var(--space-4);
  --space-sm: var(--space-8);
  --space-md: var(--space-16);
  --space-lg: var(--space-24);
  --space-xl: var(--space-40);
  --space-2xl: var(--space-80);
  --space-3xl: var(--space-120);

  /* DE-1: ref-color tokens */
  --ref-color-primary-200: #B8C5D0;
  --ref-color-primary-400: #4A6580;
  --ref-color-primary-800: #0A2540;
  --ref-color-primary-900: #061829;
  --ref-color-primary-800-10a: rgba(10, 37, 64, 0.10);
  --ref-color-primary-800-12a: rgba(10, 37, 64, 0.12);
  --ref-color-primary-900-85a: rgba(6, 24, 41, 0.85);
  --ref-color-primary-900-95a: rgba(6, 24, 41, 0.95);
  --ref-color-secondary-500: #D4AF37;
  --ref-color-secondary-600: #C49B2F;
  --ref-color-secondary-500-40a: rgba(212, 175, 55, 0.40);
  --ref-color-secondary-500-15a: rgba(212, 175, 55, 0.15);
  --ref-color-secondary-500-08a: rgba(212, 175, 55, 0.08);
  --ref-color-neutral-0: #FFFFFF;
  --ref-color-neutral-50: #F4F6F8;
  --ref-color-neutral-0-80a: rgba(255, 255, 255, 0.80);
  --ref-color-neutral-0-70a: rgba(255, 255, 255, 0.70);
  --ref-color-neutral-0-45a: rgba(255, 255, 255, 0.45);
  --ref-color-neutral-0-25a: rgba(255, 255, 255, 0.25);
  --ref-color-neutral-0-07a: rgba(255, 255, 255, 0.07);

  /* DE-2: fs role tokens (bp-lg ≥1280px base) */
  --fs-display-0: 80px;
  --fs-display-1: 64px;
  --fs-display-2: 48px;
  --fs-h1: 40px;
  --fs-h2: 36px;
  --fs-h3: 32px;
  --fs-h4: 28px;
  --fs-h5: 24px;
  --fs-h6: 20px;
  --fs-body-lg: 18px;
  --fs-body-md: 16px;
  --fs-body-def: 14px;
  --fs-body-sm: 13px;
}

/*� Reset  */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ref-color-primary-800);
  color: var(--ref-color-neutral-0);
  overflow-x: clip;
  width: 100%;
  position: relative;
  cursor: none;
}

@media (max-width: 1024px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

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

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

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--ref-color-primary-200);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--ref-color-primary-200);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
}

.cursor.is-hover {
  width: 12px;
  height: 12px;
  background: var(--ref-color-neutral-50);
}

.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  border-color: var(--ref-color-neutral-50);
}

/*  Preloader  */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--ref-color-neutral-0);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.preloader-logo {
  font-family: var(--serif);
  font-size: var(--fs-body-md);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ref-color-primary-900);
  opacity: 0;
}

.preloader-line {
  width: 0;
  height: 0.5px;
  background: var(--ref-color-primary-900);
  transition: width 1.2s ease;
}

.preloader-pct {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ref-color-primary-800);
}

/* PopUp*/
#popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--ref-color-primary-900-85a);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: var(--ref-color-primary-800);
  border: 0.5px solid var(--ref-color-primary-800);
  width: min(540px, 90vw);
  padding: var(--space-xl) var(--space-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.6s ease;
}

#popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  cursor: none;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: var(--ref-color-neutral-0);
}

.popup-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  margin-bottom: var(--space-sm);
}

.popup-title {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  color: var(--ref-color-neutral-0);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.popup-sub {
  font-family: var(--sans);
  font-size: var(--fs-body-lg);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  margin-bottom: var(--space-xl);
  line-height: 1.85;
}

.popup-sessions {
  margin-bottom: var(--space-xl);
  border-top: 0.5px solid var(--ref-color-primary-800);
  padding-top: var(--space-md);
}

.popup-session-item {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  padding: var(--space-sm) 0;
  border-bottom: 0.5px solid var(--ref-color-primary-800);
  letter-spacing: 0.05em;
}

/* Popup Form?�?�?�?�?�?� */
.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  margin-bottom: 4px;
}

.form-row input,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ref-color-neutral-0);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
  appearance: none;
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
  /* Firefox fix */
}

.form-row input:focus,
.form-row select:focus {
  border-bottom-color: var(--ref-color-primary-200);
}

.form-row select option {
  background: var(--ref-color-primary-800);
}

/* ✿ Buttons ✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿ */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  /* 確保 z-index 生效 */
  z-index: 10;
  /* 強制高於波浪層 (z-index: 1) */
}

.btn-night-fill {
  background: var(--ref-color-primary-900);
  /* 使用深藍色實色 */
  color: #ffffff;
  border-color: #ffffff;
  /* 加入白色邊框區隔背景 */
}

.btn-night-fill:hover {
  background: var(--ref-color-primary-900);
  color: var(--ref-color-secondary-500);
  border-color: var(--ref-color-secondary-500);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-night-outline {
  background: transparent;
  color: var(--ref-color-primary-400);
  border-color: var(--ref-color-primary-200);
}

.btn-night-outline:hover {
  background: var(--ref-color-primary-200);
  color: var(--ref-color-primary-900);
  border-color: var(--ref-color-primary-200);
  transform: translateY(-2px);
}

/* Contact Button Style Refinement ??*/
.contact-btn {
  padding: 8px 24px !important;
  font-size: 14px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

.contact-btn:hover {
  background: var(--ref-color-primary-200) !important;
  color: var(--ref-color-primary-900) !important;
}

.btn-day-fill {
  background: var(--ref-color-primary-800);
  color: var(--ref-color-neutral-0);
  border-color: var(--ref-color-primary-800);
}

.btn-day-fill:hover {
  background: transparent;
  color: #fff;
  border-color: var(--ref-color-primary-800);
}

.btn-day-outline {
  background: transparent;
  color: var(--ref-color-primary-800);
  border-color: var(--ref-color-primary-800);
}

.btn-day-outline:hover {
  background: transparent;
  color: #fff;
  border-color: var(--ref-color-primary-800);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* Ornamental Divider?�?�?�?� */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.divider-line {
  flex: 1;
  height: 0.5px;
}

.divider-diamond {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-night .divider-line {
  background: var(--ref-color-primary-800);
}

.divider-night .divider-diamond {
  background: var(--ref-color-primary-400);
}

.divider-day .divider-line {
  background: var(--ref-color-primary-200);
}

.divider-day .divider-diamond {
  background: var(--ref-color-primary-400);
}

/* Section Labels   */
.section-label {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  /* 16px: 標籤到標題 */
}

.label-night {
  color: var(--ref-color-secondary-500);
}

.label-day-blue {
  color: var(--ref-color-primary-400);
}

.label-day-white {
  color: var(--ref-color-primary-400);
}

/*  Headings  */
.h-display {
  font-family: var(--serif);
  font-size: clamp(var(--fs-display-2), 5vw, var(--fs-display-1));
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(var(--fs-h2), 4vw, var(--fs-display-2));
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-lg);
  /* 24px: 標題到描述 */
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(var(--fs-body-md), 2.5vw, var(--fs-h4));
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.h3 {
  font-family: var(--sans);
  font-size: var(--fs-h5);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ref-color-primary-400);
  margin-bottom: var(--space-64);
  /* 64px: 描述到內容 */
}

.body-text {
  font-family: var(--sans);
  font-size: var(--fs-h5);
  font-weight: 300;
  line-height: 1.9;
}

.caption {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Night Section Colors  */
.night-dark {
  background: var(--ref-color-primary-800);
}

.night-dark .h-display,
.night-dark .h1,
.night-dark .h2 {
  color: var(--ref-color-neutral-0);
  font-family: var(--serif);
}

.night-dark .body-text {
  color: var(--ref-color-primary-400);
}

.night-surface {
  background: var(--ref-color-primary-800);
  border-top: 0.5px solid var(--ref-color-primary-800);
  border-bottom: 0.5px solid var(--ref-color-primary-800);
}

.night-surface .h-display,
.night-surface .h1,
.night-surface .h2 {
  color: var(--ref-color-neutral-0);
  font-family: var(--serif);
}

.night-surface .body-text {
  color: var(--ref-color-primary-400);
}

/* Day White Section */
.day-white {
  background: var(--ref-color-neutral-0);
}

.day-white .h-display,
.day-white .h1,
.day-white .h2 {
  color: var(--ref-color-primary-800);
  font-family: var(--serif);
}

.day-white .body-text {
  color: var(--ref-color-primary-400);
}

/* Day Blue Section */
.day-blue {
  background: var(--ref-color-primary-200);
}

.day-blue .h-display,
.day-blue .h1,
.day-blue .h2 {
  color: var(--ref-color-primary-800);
  font-family: var(--serif);
}

.day-blue .body-text {
  color: var(--ref-color-primary-800);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 3;
  /* 高於波浪 (1) 與 背景媒體 (2) */
}

.section-pad {
  padding: var(--space-160) 0;
}

.section-pad-lg {
  padding: var(--space-3xl) 0;
}

/* Sticky Header?�?�?� */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  /* 預設隱藏 */
  pointer-events: none;
  /* 防止誤點 */
  transform: translateY(-10px);
  /* 輕微位移效果 */
}

#header.scrolled {
  background: var(--ref-color-primary-900-95a);
  backdrop-filter: blur(12px);
  opacity: 1;
  /* 捲動後顯示 */
  pointer-events: all;
  transform: translateY(0);
}

#header.scrolled .header-logo span {
  color: var(--ref-color-primary-200);
}

#header.scrolled .header-nav a {
  color: var(--ref-color-primary-200);
}

#header.scrolled .header-nav a:hover {
  color: var(--ref-color-neutral-0);
}

#header.scrolled #header-cta {
  background: var(--ref-color-primary-200);
  color: var(--ref-color-primary-900);
  border-color: var(--ref-color-primary-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-xl);
  max-width: 100%;
  width: 1440px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo span {
  color: var(--ref-color-primary-900);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.header-nav a {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  transition: all 0.3s ease;
  padding: var(--space-sm) var(--space-md);
  /* 增加點擊範圍 */
}

.header-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  /* 輕微底色輔助 */
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-right .btn {
  padding: 8px 16px;
  font-size: 13px;
}

#header-cta {
  background: var(--ref-color-primary-900);
  color: var(--ref-color-neutral-0);
  border-color: var(--ref-color-primary-900);
}

#header-cta:hover {
  background: var(--ref-color-primary-800);
  color: var(--ref-color-neutral-0);
  border-color: var(--ref-color-primary-800);
}

#header.scrolled #header-cta:hover {
  background: transparent;
  color: var(--ref-color-neutral-0);
  border-color: var(--ref-color-primary-200);
}

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.lang-switch {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
  background: none;
  border: none;
  cursor: none;
  transition: all 0.3s ease;
  padding: 4px;
  opacity: 0.6;
}

.lang-divider {
  font-size: 10px;
  color: var(--ref-color-primary-400);
  opacity: 0.3;
}

.lang-switch:hover,
.lang-switch.active {
  color: var(--ref-color-primary-800);
  opacity: 1;
}

#header.scrolled .lang-switch {
  color: var(--ref-color-primary-200);
}

#header.scrolled .lang-switch:hover,
#header.scrolled .lang-switch.active {
  color: var(--ref-color-neutral-0);
  opacity: 1;
}

#header.scrolled .lang-divider {
  color: var(--ref-color-primary-200);
}

/* Hero�?�?�?�?� */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: block;
  padding-top: 0;
  overflow: visible;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-64);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--ref-color-neutral-0);
  overflow: hidden;
}


#hero-wave-svg {
  position: fixed;
  bottom: 0;
  top: auto;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  /* 位於背景色 (0) 之上，但位於媒體 (2) 與內容 (3) 之下 */
  /* 高於 Section 背景，但低於圖片/影片 */
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: normal;
  transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease, mask-image 0.7s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%);
}

/* 深色區：更細的地平線裝飾 */
#hero-wave-svg.scrolled {
  bottom: 0;
  top: auto;
  height: 20vh;
  /* 高度減半 */
  opacity: 0.15;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}

/* 淺色區：背景裝飾 */
#hero-wave-svg.scrolled-light {
  top: auto;
  bottom: 0;
  height: 50vh;
  /* 高度減半 */
  opacity: 0.08;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
}

/* 隱藏狀態 (如 Seaview 區) */
#hero-wave-svg.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-wave-mask {
  display: none;
}

.hero-bg::after {
  display: none;
}

#noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-sticky::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  /* 高於波浪 (1) */
  padding: 0 var(--space-xl) var(--space-3xl);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
  margin-bottom: var(--space-md);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(var(--fs-display-2), 5.5vw, var(--fs-display-0));
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ref-color-primary-900);
  margin-bottom: var(--space-md);
  font-style: normal;
}

.hero-h1-mobile {
  display: none;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(var(--fs-h6), 1.8vw, var(--fs-h4));
  font-weight: 300;
  color: var(--ref-color-primary-800);
  line-height: 1.85;
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-xl);
}

.hero-badge {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ref-color-neutral-0-80a);
  border: none;
  padding: 0;
  white-space: nowrap;
}

.hero-badge svg {
  margin-right: 8px;
  opacity: 0.8;
  flex-shrink: 0;
}

.hero-badge:not(:last-child)::after {
  content: '·';
  margin: 0 var(--space-md);
  color: var(--ref-color-neutral-0-45a);
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero-badge {
    font-size: var(--fs-body-def);
    letter-spacing: 0.08em;
  }

  .hero-badge:not(:last-child)::after {
    margin: 0 var(--space-sm);
  }
}

.hero-footnote {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ref-color-primary-400);
  text-align: center;
  margin-top: var(--space-lg);
  line-height: 1.8;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 2;
}

.hero-scroll-hint span {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
}

.scroll-line {
  width: 0.5px;
  height: 40px;
  background: var(--ref-color-primary-800);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Trust Bar */
#trust-bar {
  background: var(--ref-color-neutral-0);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  padding: var(--space-lg) 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trust-sep {
  width: 5px;
  height: 5px;
  background: var(--ref-color-primary-200);
  transform: rotate(45deg);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.trust-logos img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(20%);
}

/* Section 4: 9  */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--ref-color-primary-200);
}

.advantage-item {
  padding: var(--space-xl) var(--space-lg);
  border-right: 0.5px solid var(--ref-color-primary-200);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  transition: background 0.3s ease;
}

.advantage-item:nth-child(3n) {
  border-right: none;
}

.advantage-item:nth-child(7),
.advantage-item:nth-child(8),
.advantage-item:nth-child(9) {
  border-bottom: none;
}

.advantage-item:hover {
  background: var(--ref-color-primary-200);
}

.night-dark .advantage-grid {
  border-color: var(--ref-color-primary-800);
}

.night-dark .advantage-item {
  border-color: var(--ref-color-primary-800);
}

.night-dark .advantage-item:hover {
  background: var(--ref-color-primary-800);
}

.night-dark .advantage-title {
  color: var(--ref-color-neutral-0);
}

.night-dark .advantage-desc {
  color: var(--ref-color-primary-400);
}

.night-dark .advantage-num {
  color: var(--ref-color-primary-400);
}

.advantage-num {
  font-family: var(--serif);
  font-size: var(--fs-display-1);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.advantage-title {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.advantage-desc {
  font-family: var(--sans);
  font-size: var(--fs-h5);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.85;
}


/* Section 5: The Light City*/
.lightcity-full {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.lightcity-left {
  width: 50%;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0 0 0;
  box-sizing: border-box;
  align-self: stretch;
  position: relative;
  z-index: 2;
}

.lightcity-left-inner {
  width: 100%;
  padding: 0 var(--space-2xl);
  box-sizing: border-box;
}

.lightcity-right {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
  /* 高於波浪 (1) */
  /* 確保圖片蓋在波浪之上 */
}

.lightcity-parallax-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.lightcity-parallax-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightcity-parallax-img.active {
  opacity: 1;
}

.lightcity-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase-item {
  padding: var(--space-xl) 0;
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.phase-mobile-img {
  display: none;
  width: 100%;
  margin-bottom: var(--space-md);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
}

.phase-mobile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phase-item:first-child {
  border-top: 0.5px solid var(--ref-color-primary-200);
}

.phase-item:not(.active) {
  opacity: 0.45;
}

.phase-num {
  font-family: var(--serif);
  font-size: var(--fs-body-md);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--ref-color-primary-400);
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: var(--space-4);
  transition: color 0.3s ease;
}

.phase-title {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-xs);
  transition: color 0.3s ease;
}

.phase-desc {
  font-family: var(--serif);
  font-size: var(--fs-h5);
  font-weight: 400;
  color: var(--ref-color-primary-800);
  line-height: 1.85;
}

.phase-item.active {
  opacity: 1;
}

.phase-item.active .phase-title {
  color: var(--ref-color-primary-800);
}

.phase-item.active .phase-num {
  color: var(--ref-color-primary-800);
}

/* ── Section: Smart Home (Integrated in Amenity) ────── */
#tab-smart.active {
  display: block;
}

.smart-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.smart-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.smart-item {
  padding: var(--space-lg) 0;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.smart-item:hover,
.smart-item.active {
  transform: translateX(12px);
}

.smart-item-title {
  color: var(--ref-color-primary-900);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.smart-item-desc {
  color: var(--ref-color-primary-600);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
}

.smart-visual {
  position: relative;
}

.smart-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.smart-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.smart-img.active {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 1024px) {
  .smart-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Section 6: 建�??�書?�?�?� */
.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--space-24);
}

.developer-card {
  padding: 0 var(--space-xl);
}

.developer-card:last-child {}

.developer-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 20px auto;
  opacity: 0.85;
}

.developer-name {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  color: var(--ref-color-neutral-0);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.developer-tag {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  border: 0.5px solid var(--ref-color-primary-800);
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  margin-bottom: var(--space-lg);
}

.developer-desc {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1.85;
}

.developer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-xl) 0;
  margin-top: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-right: 0.5px solid var(--ref-color-primary-800);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(var(--fs-display-2), 6vw, var(--fs-display-0));
  font-weight: 300;
  font-style: normal;
  color: var(--ref-color-neutral-0);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-unit {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.stat-label {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
  margin-top: var(--space-sm);
}

/* Section 7: 海景沉浸 ? */
#seaview {
  position: relative;
  height: auto;
  /* 隨內容高度伸展 */
  min-height: 100vh;
}

.seaview-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.seaview-video-bg {
  position: absolute;
  inset: 0;
  background-color: var(--ref-color-primary-900);
  z-index: 2;
  /* 高於波浪 */
}

.seaview-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.seaview-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 18, 0.92) 0%, rgba(6, 12, 18, 0.55) 50%, rgba(6, 12, 18, 0.35) 100%);
}

.seaview-content {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  /* 向上偏移以重疊在 sticky 影片上方 */
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-160) var(--space-xl) 0 var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  /* 徹底移除內卷軸 */
}

.seaview-quote {
  font-family: var(--serif);
  font-size: clamp(var(--fs-h2), 3.5vw, var(--fs-display-2));
  font-weight: 300;
  font-style: normal;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-24);
}

.seaview-sub {
  font-family: var(--sans);
  font-size: var(--fs-h5);
  font-weight: 400;
  color: var(--ref-color-neutral-0-80a);
  line-height: 1.85;
  margin-bottom: var(--space-32);
  max-width: min(900px, 100%);
  white-space: normal;
}


/* Image Alternating?�?�?�?�?� */
.alt-section {
  padding: var(--space-2xl) 0;
}

.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.alt-row-reverse {
  direction: rtl;
}

.alt-row-reverse>* {
  direction: ltr;
}

.alt-img {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.alt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.alt-row:hover .alt-img img {
  transform: scale(1.04);
}

.alt-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
}



@media (max-width: 768px) {
  .alt-row {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .alt-row-reverse {
    direction: ltr;
  }

  .alt-img {
    aspect-ratio: 4/3;
  }

  .alt-text {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Section 8: ???*/
.unit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.unit-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

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

.unit-img-wrap:hover img {
  transform: scale(1.05);
}

/* Units Lightbox ? */
.units-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.units-lightbox-overlay.active {
  display: flex;
}

.units-lightbox-box {
  background: #fff;
  border-radius: 0;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
}

.units-lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ref-color-primary-400);
  padding: var(--space-xs);
  line-height: 1;
}

.units-lightbox-close:hover {
  color: var(--ref-color-primary-800);
}

.unit-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}

.unit-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--fs-h5);
}

.unit-table th {
  font-size: var(--fs-h5);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ref-color-primary-800);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  text-align: left;
  white-space: nowrap;
}

.unit-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  color: var(--ref-color-primary-400);
  font-weight: 300;
  white-space: nowrap;
}

.unit-table tr:hover td {
  background: var(--ref-color-neutral-50);
}

.unit-table .td-type {
  color: var(--ref-color-primary-800);
  font-weight: 500;
}

.unit-table .td-rare {
  font-size: var(--fs-body-def);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
  border: 0.5px solid var(--ref-color-primary-200);
  padding: 2px var(--space-8);
  margin-left: var(--space-8);
}

/* Section 9: Tab ? */
.amenity-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-32);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
}

.amenity-tab {
  font-family: var(--sans);
  font-size: var(--fs-h5);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
  padding: var(--space-md) var(--space-xl);
  cursor: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.amenity-tab.active {
  color: var(--ref-color-primary-800);
  border-bottom-color: var(--ref-color-primary-800);
}

.amenity-tab:hover:not(.active) {
  color: var(--ref-color-primary-800);
}

.amenity-panel {
  display: none;
  opacity: 0;
}

.amenity-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  animation: amenityFadeIn 0.4s ease forwards;
}

@keyframes amenityFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.amenity-block {}

.amenity-floor {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.amenity-floor-label {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-400);
  margin-bottom: var(--space-8);
}

.amenity-desc {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.85;
}

.smart-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.smart-item {
  padding: var(--space-md) 0;
  border-bottom: 0.5px solid var(--ref-color-primary-200);
}

.smart-item-title {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-8);
}

.smart-item-desc {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.85;
}

/* Section 10: AI 客? ? */
.ai-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.ai-cta-text {
  max-width: 800px;
}

.ai-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.ai-step {
  display: flex;
  align-items: flex-start;
  /* Align numbers with first line of text */
  gap: var(--space-md);
}

.ai-step-num {
  width: 28px;
  height: 28px;
  border: 0.5px solid var(--ref-color-primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  flex-shrink: 0;
  margin-top: 4px;
  /* Adjust for alignment with first line of text */
}

.ai-step-text {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ref-color-primary-200);
}

.ai-cta-action {
  text-align: center;
  flex-shrink: 0;
}

.ai-arrow {
  font-family: var(--serif);
  font-size: var(--fs-display-1);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* Section 4: Advantage Slider ??*/
.adv-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  position: relative;
  cursor: grab;
  scroll-behavior: smooth;
}

.adv-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.adv-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  /* 計算對齊 Container 的起始位置 */
  padding-left: max(var(--space-xl), calc((100vw - 1280px) / 2 + var(--space-xl)));
  padding-right: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.adv-track-end {
  display: none;
}

.adv-card {
  flex-shrink: 0;
  overflow: hidden;
  background: var(--ref-color-primary-800);
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 8px;
  z-index: 1;
  /* For clipping fix */
}

.adv-card--lg {
  width: 520px;
}

.adv-card--sm {
  width: 260px;
}

.adv-card-img {
  height: 390px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* 確保蓋在波浪上 */
}

.adv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.adv-card:hover .adv-card-img img {
  transform: scale(1.04);
}

.adv-card-body {
  padding: var(--space-lg);
  flex-shrink: 0;
  background: var(--ref-color-primary-800);
}

.adv-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 200;
  font-style: normal;
  color: var(--ref-color-neutral-0);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-8);
}

.adv-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ref-color-neutral-0);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.adv-desc {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1.7;
}

/* Slider Nav Arrows ??*/
.slider-nav-wrap {
  position: relative;
}

.slider-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-md) 0 0;
  /* Reduced from var(--space-lg) */
  margin-top: var(--space-sm);
  /* Reduced from var(--space-md) */
}

.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0.5px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
  opacity: 0.5;
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

.slider-arrow:hover {
  opacity: 1;
  background: var(--ref-color-neutral-0-07a);
}

.slider-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Night section arrows (white) */
.night-dark .slider-arrow,
.night-surface .slider-arrow {
  color: var(--ref-color-neutral-0);
}

/* Day section arrows (dark) */
.day-white .slider-arrow,
.day-blue .slider-arrow {
  color: var(--ref-color-primary-800);
}

/* Section 11: ??檳? ???*/
/* Invest Drag Slider ?*/
.inv-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  position: relative;
  cursor: grab;
  scroll-behavior: smooth;
}

.inv-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.inv-slider::-webkit-scrollbar {
  display: none;
}

/* Dragging styles removed as requested */

.inv-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  /* 計算對齊 Container 的起始位置 */
  padding-left: max(var(--space-xl), calc((100vw - 1280px) / 2 + var(--space-xl)));
  padding-right: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.inv-track-end {
  display: none;
}

.inv-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  /* Fix for overflow: hidden clipping images */
  z-index: 1;
}

.inv-card--lg {
  width: 420px;
}

.inv-card--sm {
  width: 260px;
}

.inv-card-img {
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  /* 確保蓋在波浪上 */
}

.inv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.8s ease;
}

.inv-card:hover .inv-card-img img {
  transform: scale(1.04);
}

.inv-card-body {
  padding: var(--space-lg);
  background: var(--ref-color-neutral-50);
  flex: 1;
}

.inv-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 200;
  color: var(--ref-color-primary-400);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-8);
}

.inv-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.inv-desc {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.75;
}

/* Section 12: 比?表格 ???*/
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--fs-h5);
}

.compare-table th {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: var(--space-lg);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  text-align: left;
  color: var(--ref-color-primary-800);
  white-space: nowrap;
}

.compare-table th.col-highlight {
  color: var(--ref-color-primary-800);
  background: var(--ref-color-neutral-50);
  position: relative;
}

.compare-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid var(--ref-color-primary-200);
  color: var(--ref-color-primary-400);
  font-size: 16px;
  font-weight: 300;
  vertical-align: top;
}

.compare-table td.col-highlight {
  background: var(--ref-color-neutral-50);
  color: var(--ref-color-primary-800);
  font-weight: 400;
}

.compare-table td:first-child {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ref-color-primary-800);
  white-space: nowrap;
}

/* Dark Theme Adjustments for Compare Table (when inside .night-dark) */
.night-dark .compare-table th {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.night-dark .compare-table td {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.night-dark .compare-table td:first-child {
  color: #fff;
}

.night-dark .compare-table th.col-highlight {
  background: rgba(200, 216, 232, 0.05);
  color: #fff;
}

.night-dark .compare-table td.col-highlight {
  background: rgba(200, 216, 232, 0.05);
  color: var(--ref-color-primary-200);
}

.night-dark .compare-table td.col-highlight:first-child {
  color: var(--ref-color-neutral-0);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-footnote {
  margin-top: var(--space-lg);
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.8;
}

/* Section 13: MM2H ?*/
.mm2h-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}

.mm2h-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--fs-h5);
}

.mm2h-table th {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: var(--ref-color-neutral-0);
  white-space: nowrap;
}

.mm2h-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  color: var(--ref-color-primary-200);
  font-size: 16px;
  font-weight: 300;
  vertical-align: middle;
}

.mm2h-table td:first-child {
  color: var(--ref-color-neutral-0);
  font-weight: 400;
  white-space: nowrap;
}

.mm2h-table tr.row-highlight td {
  background: rgba(200, 216, 232, 0.05);
  color: var(--ref-color-primary-200);
}

.mm2h-table tr.row-highlight td:first-child {
  color: var(--ref-color-neutral-0);
}

.mm2h-table tr:last-child td {
  border-bottom: none;
}

.mm2h-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.mm2h-note {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1.8;
}

.mm2h-disclaimer {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1.8;
}

/* Section 14: 市場機? ???*/
.market-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: 16px;
}

.market-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.market-card:hover {
  transform: translateY(-5px);
}

.market-card-img {
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
}

.market-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.market-card:hover .market-card-img img {
  transform: scale(1.04);
}

.market-card-body {
  padding: var(--space-lg);
  padding-top: 0;
  background: var(--ref-color-primary-50);
  flex: 1;
}

.market-card-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  font-weight: 200;
  color: var(--ref-color-primary-400);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}

.market-card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ref-color-primary-800);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.market-card-desc {
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.75;
}

.market-disclaimer {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 300;
  color: var(--ref-color-primary-200);
  line-height: 1.8;
  text-align: center;
}

/* Section 15: 主表??*/
.main-form-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 40px;
}

.form-row-day label {
  color: var(--ref-color-primary-200);
}

.form-row-day input {
  color: var(--ref-color-neutral-0);
  border-bottom-color: var(--ref-color-primary-800);
}

.form-row-day input:focus {
  border-bottom-color: var(--ref-color-primary-200);
}

/* Section 16: FAQ ???*/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 0.5px solid var(--ref-color-primary-200);
}

.faq-item:first-child {
  border-top: 0.5px solid var(--ref-color-primary-200);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  cursor: none;
}

.faq-q-text {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--ref-color-primary-800);
  text-align: left;
  line-height: 1.5;
}

.faq-icon {
  width: 20px;
  height: 20px;
  border: 0.5px solid var(--ref-color-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-top: 5px;
  /* 與文字第一行對齊 */
}

.faq-icon::after {
  content: '+';
  font-family: var(--sans);
  font-size: var(--fs-body-md);
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.faq-a-inner {
  min-height: 0;
  padding-bottom: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ref-color-primary-400);
  line-height: 1.9;
  transition: padding 0.5s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.open .faq-a-inner {
  padding-bottom: var(--space-md);
}

.faq-sticky-wrapper {
  position: relative;
  height: 100%;
}

.faq-side-img {
  position: sticky;
  top: 100px;
  /* 增加一點距離確保不被 header 遮擋 */
  aspect-ratio: 3/4;
  overflow: hidden;
}

.slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slideshow-img.active {
  opacity: 1;
}

.faq-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Seaview Accordion (Dark Theme) */
.seaview-content .faq-list {
  width: 100%;
  margin-top: var(--space-xl);
}

.seaview-content .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.seaview-content .faq-q {
  color: #fff;
  padding: var(--space-lg) 0;
}

.seaview-content .faq-icon {
  border-color: rgba(255, 255, 255, 0.3);
}

.seaview-content .faq-icon::after {
  color: #fff;
}

.seaview-content .faq-a-inner {
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: var(--space-xl);
}

.seaview-content .unit-table th {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

padding-left: 40px;
}

@media (max-width: 1024px) {
  .footer-col-contact {
    border-left: none;
    padding-left: 0;
  }
}

.seaview-content .unit-table td {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.seaview-content .unit-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.seaview-content .unit-table .td-type {
  color: #fff;
}

.seaview-content .unit-table .td-rare {
  color: var(--ref-color-secondary-400);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Premium Vertical Accordion Styles */
.unit-vertical-wrap {
  width: 100%;
  margin-top: var(--space-xl);
}

.seaview-table-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.seaview-table-title {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--space-md);
}

.seaview-content .unit-table th,
.seaview-content .unit-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 16px;
}

.seaview-content .unit-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.seaview-content .unit-table .td-type {
  font-size: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
#footer {
  background: var(--ref-color-primary-900);
  color: var(--ref-color-neutral-0);
  padding: var(--space-120) 0 var(--space-80);
  font-family: var(--sans);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-80);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
  /* 將 Logo 轉為全白 */
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.6;
  max-width: 100%;
}

.footer-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ref-color-secondary-500);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-info {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ref-color-neutral-0);
}

.footer-link-hover {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link-hover:hover {
  color: var(--ref-color-secondary-500);
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item.items-start {
  align-items: flex-start;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ref-color-secondary-500);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row {
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
}

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  color: var(--ref-color-neutral-0);
}

.contact-value,
.contact-phones a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col-contact {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
}

@media (max-width: 1024px) {
  .footer-col-contact {
    border-left: none;
    padding-left: 0;
  }
}

.footer-bottom {
  text-align: center;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-64);
}

.footer-bottom-logo {
  margin-bottom: var(--space-32);
  display: flex;
  justify-content: center;
}

.footer-bottom-logo-img {
  height: 60px;
  width: auto;
  opacity: 1;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.4;
  max-width: 800px;
  margin: 0 auto var(--space-16);
  letter-spacing: 0.02em;
}

.footer-copyright {
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.footer-copyright a:hover {
  border-bottom-color: currentColor;
}

/* AI Chat Widget  */
.ai-widget {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.ai-widget-btn {
  width: 52px;
  height: 52px;
  background: var(--ref-color-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s ease;
}

.ai-widget-btn:hover {
  background: var(--ref-color-neutral-50);
}

.ai-widget-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--ref-color-primary-900);
}

.ai-widget-label {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ref-color-primary-200);
}

/* Section Banner Image  */
.section-banner-img {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.section-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.section-banner-img:hover img {
  transform: scale(1.03);
}

/* Developer BG  */
.developer-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/img/ebrochure-photo-8.jpg') center/cover no-repeat;
  opacity: 0.03;
  z-index: 0;
}

.developer-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
}

/* AI CTA BG ?*/
.ai-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/img/ebrochure-photo-8.jpg') center/cover no-repeat;
  opacity: 0.06;
}

/* Form BG ???*/
.form-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/img/ebrochure-photo-9.jpg') center/cover no-repeat;
  opacity: 0.08;
}

/* Amenity Image ? */
.amenity-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* 確保蓋在波浪上 */
  border-radius: 8px;
}

.amenity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.amenity-img-wrap:hover img {
  transform: scale(1.04);
}

/* Market Card Image ?*/
.market-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.market-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.market-card:hover .market-card-img img {
  transform: scale(1.04);
}

/* Image Carousel  */
.carousel-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: 65vh;
  max-height: 680px;
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  border-left: 0.5px solid var(--ref-color-primary-800);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 0.5px solid var(--ref-color-primary-400);
  background: transparent;
  color: var(--ref-color-primary-200);
  font-size: 16px;
  cursor: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--ref-color-primary-200);
  color: var(--ref-color-primary-900);
  border-color: var(--ref-color-primary-200);
}

.carousel-count {
  font-family: var(--sans);
  font-size: var(--fs-body-def);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ref-color-primary-200);
}

@media (max-width: 1024px) {
  .carousel-section {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .carousel-stage {
    height: 56vw;
  }

  .carousel-panel {
    border-left: none;
    border-top: 0.5px solid var(--ref-color-primary-800);
    padding: var(--space-xl) var(--space-lg);
  }
}

/* FAQ Layout */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  align-items: stretch;
}

.faq-main {}

@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-side-img {
    display: none;
  }
}

/* Scroll Reveal ? */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
  /* 重要：transform 會破壞 sticky 效果，展開後必須設為 none */
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

.reveal-delay-7 {
  transition-delay: 0.7s;
}

.reveal-delay-8 {
  transition-delay: 0.8s;
}

.reveal-delay-9 {
  transition-delay: 0.9s;
}

/* Utilities ?*/
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* RWD*/
@media (max-width: 1024px) {

  .adv-card--lg,
  .adv-card--sm {
    width: 80vw;
    max-width: 400px;
  }

  .adv-card-img {
    height: 260px;
  }

  .adv-slider {
    padding: 0;
  }

  .section-pad {
    padding: var(--space-48) 0 !important;
  }

  .seaview-table-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .seaview-content {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .adv-track,
  .inv-track {
    padding-left: var(--space-lg);
  }

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

  .advantage-item:nth-child(3n) {
    border-right: 0.5px solid var(--ref-color-primary-200);
  }

  .advantage-item:nth-child(2n) {
    border-right: none;
  }

  .advantage-item:nth-child(7),
  .advantage-item:nth-child(8),
  .advantage-item:nth-child(9) {
    border-bottom: 0.5px solid var(--ref-color-primary-200);
  }

  .advantage-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .inv-card--lg,
  .inv-card--sm {
    width: 80vw;
    max-width: 400px;
  }

  .market-cards {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .market-card {
    border-right: none;
    border-bottom: 0.5px solid var(--ref-color-primary-200);
  }

  .market-card:last-child {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .developer-tag {
    padding-left: 0;
    padding-right: 0;
  }

  /* Lightcity Section Tablet Optimization */
  .lightcity-full {
    flex-direction: column;
    min-height: auto;
  }

  .lightcity-left {
    width: 100%;
    padding: var(--space-xl) 0;
  }

  .lightcity-left-inner {
    padding: 0 var(--space-md);
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lightcity-phases {
    width: 100%;
    text-align: left;
  }

  .lightcity-right {
    display: none;
  }

  .phase-mobile-img {
    display: block;
  }

  .phase-item {
    flex-direction: column;
    gap: var(--space-md);
    cursor: default;
    opacity: 1 !important;
  }

  .phase-content {
    width: 100%;
  }

  .phase-num {
    padding-top: 0;
    margin-bottom: var(--space-xs);
  }

  .phase-desc {
    font-size: var(--fs-h6);
  }

  .h3 {
    font-size: var(--fs-h6);
  }

  .seaview-sub {
    font-size: var(--fs-h6);
    margin-bottom: var(--space-xl);
  }

  .seaview-table-title,
  .unit-table-wrap {
    display: none;
  }

  .seaview-table-box {
    padding-top: 0;
    background: transparent;
    border: none;
  }

  .adv-slider,
  .inv-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-sizing: border-box;
    overflow-x: auto;
  }

  .adv-track-end,
  .inv-track-end {
    display: block;
    flex-shrink: 0;
    width: var(--space-md);
  }

  .h1 {
    font-size: 28px;
    /* Slightly smaller for mobile */
  }

  .h2 {
    font-size: 22px;
  }

  .seaview-quote {
    font-size: var(--fs-h3);
  }

  /* Developer Section Tablet Optimization */
  .developer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    /* Reduced from var(--space-3xl) to halve the distance */
  }

  .developer-card {
    padding: 0;
    text-align: left;
  }

  .developer-logo {
    margin: 0 0 var(--space-md) 0;
  }

  .developer-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: var(--space-lg);
    /* Reduced from var(--space-2xl) by ~60% */
  }

  .stat-item {
    text-align: left;
    padding: var(--space-lg) 0;
    border-right: none;
    border-bottom: 0.5px solid var(--ref-color-primary-800);
  }

  .stat-item:nth-child(2n) {
    padding-left: var(--space-md);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .developer-section-container {
    text-align: left !important;
  }

  .developer-section-container .h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Hero Tablet Adjustments */
  .hero-h1-desktop {
    display: none;
  }

  .hero-h1-mobile {
    display: inline;
  }

  .header-nav {
    display: none;
  }

  .header-inner {
    width: 100%;
    padding: 0 var(--space-md);
  }

  .header-right {
    flex-shrink: 1;
  }

  #header-cta {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-pad {
    padding: var(--space-48) 0 !important;
  }

  .header-nav {
    display: none;
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .hero-content {
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .hero-footnote {
    display: none;
  }

  .lightcity-parallax-img {
    top: 0;
    height: 100%;
  }

  .amenity-panel.active {
    grid-template-columns: 1fr;
  }

  .ai-cta-inner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .ai-arrow {
    display: none;
  }

  .unit-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .adv-card--lg,
  .adv-card--sm {
    width: 80vw;
  }

  .adv-card-img {
    height: 200px;
  }

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

  .advantage-item {
    border-right: none !important;
  }

  .advantage-item:not(:last-child) {
    border-bottom: 0.5px solid var(--ref-color-primary-200) !important;
  }

  .inv-card--lg,
  .inv-card--sm {
    width: 80vw;
  }

  .inv-card-img {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-col-tw {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-col-brand {
    text-align: center;
  }

  .footer-logo-img {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 768px) {
  .slider-arrows {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .ai-widget {
    right: 20px;
  }
}



/* ── MM2H Lightbox table overrides ── */
#mm2h-overlay .compare-table th {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

#mm2h-overlay .compare-table td {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

#mm2h-overlay .compare-table td:first-child {
  color: #fff;
}

#mm2h-overlay .compare-table th.col-highlight {
  background: rgba(200, 216, 232, 0.08);
  color: #fff;
}

#mm2h-overlay .compare-table td.col-highlight {
  background: rgba(200, 216, 232, 0.08);
  color: var(--ref-color-primary-200);
}

#mm2h-overlay .compare-table-wrap {
  overflow-x: auto;
}

#mm2h-overlay h2,
#mm2h-overlay h3 {
  color: #fff;
}

#mm2h-overlay .body-text {
  color: var(--ref-color-primary-200);
}

/* ── Utility Classes ─────────────────────────────────── */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline !important;
    /* Fix for <br> inside spans */
  }

  /* Remove glass/blur on contact button for mobile */
  .btn-night-outline.contact-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }

  .amenity-tab {
    font-size: 13px !important;
    padding: var(--space-sm) var(--space-md) !important;
  }

  .ai-step-text {
    font-size: 18px !important;
  }
}