/* ==========================================================================
   禾傑MAX (MANOR ABOVE X) — Official Single-Page Website Stylesheet
   ========================================================================== */

:root {
  --emerald-950: #021c12;
  --emerald-900: #042b1c;
  --emerald-850: #053824;
  --emerald-800: #06442d;
  --emerald-700: #0b5e3f;
  --emerald-600: #137851;
  --emerald-500: #229968;
  --emerald-glow: #4ce09b;

  --gold-300: #ebd499;
  --gold-400: #dec07a;
  --gold-500: #c89f49;
  --gold-600: #ab802b;
  --gradient-gold: linear-gradient(135deg, #e2c57e 0%, #c4983f 52%, #dab96b 100%);

  --gray-50: #f7f8f7;
  --gray-100: #ebebeb;
  --gray-200: #dcdddd;
  --gray-400: #9fa0a0;
  --gray-600: #595757;
  --gray-800: #3e3a39;
  --gray-900: #231815;

  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-display: 'Montserrat', 'Noto Sans TC', sans-serif;

  --container-max: 1180px;
  --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background-color: #ffffff;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Hide Google reCAPTCHA v3 badge cleanly while keeping terms compliance */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.text-gold {
  color: var(--gold-400);
}

.sr-only,
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

/* ==========================================================================
   Floating Quick-Action Navigation (Desktop Right Bar & Mobile Bottom Bar)
   ========================================================================== */

.floating-nav-desktop {
  position: fixed;
  top: 32px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 999px;
  background: rgba(3, 34, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.floating-nav-desktop__item {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.floating-nav-desktop__item svg,
.floating-nav-desktop__item img {
  width: 20px;
  height: 20px;
}

.floating-nav-desktop__item:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(222, 192, 122, 0.45);
}

.floating-nav-desktop__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--emerald-900);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(222, 192, 122, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-nav-desktop__item:hover .floating-nav-desktop__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile Fixed Bottom Bar */
.floating-nav-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  height: 68px;
  background: linear-gradient(90deg, #021f14 0%, #07472f 50%, #021f14 100%);
  border-top: 1px solid rgba(222, 192, 122, 0.35);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.32);
  grid-template-columns: repeat(4, 1fr);
}

.floating-nav-mobile__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
}

.floating-nav-mobile__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 16%;
  height: 68%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.floating-nav-mobile__item svg,
.floating-nav-mobile__item img {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.floating-nav-mobile__item img {
  filter: brightness(0) invert(1);
}

.floating-nav-mobile__item:active {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Section 0: Hero (#hero) — Full-Viewport (100dvh) with 00-00_bg.jpg
   ========================================================================== */

.hero {
  height: 100dvh;
  background-image: url('../assets/images/00-00_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

.hero__container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0 24px 6vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Particle Sphere Container */
.hero__sphere-wrap {
  position: relative;
  width: min(74dvh, 84vw);
  max-width: 720px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__sphere-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: color-dodge;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    sphereEnter 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
    sphereRotate 72s linear infinite;
  pointer-events: none;
}

@keyframes sphereEnter {
  0% {
    opacity: 0;
    scale: 0.88;
  }
  100% {
    opacity: 0.85;
    scale: 1;
  }
}

@keyframes sphereRotate {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
}

.hero__logo {
  max-width: 450px;
  width: min(420px, 76vw);
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  opacity: 0;
  animation: logoEnter 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s forwards;
}

.hero__slogan-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUpEnter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.hero__divider {
  width: min(400px, 78vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 18%, rgba(255, 255, 255, 0.85) 82%, transparent 100%);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
  padding-left: 0.14em;
}

.hero__subtitle {
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.hero__subtitle .text-gold {
  color: var(--gold-400);
}

.hero__scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero__arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

@keyframes logoEnter {
  from {
    opacity: 0;
    transform: scale(1.15) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeUpEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ==========================================================================
   Section 1: Aerial Panorama (#aerial)
   ========================================================================== */

.aerial {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
}

.aerial__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #015397;
  overflow: hidden;
}

.aerial__scroll-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.aerial__img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.aerial__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.aerial__layer--road {
  z-index: 2;
  pointer-events: none;
  animation: roadGlow 3.2s ease-in-out infinite alternate;
}

.aerial__layer--pins {
  z-index: 3;
  pointer-events: none;
}

/* Logo positioned directly above the vertical glowing light beam (光暈之上) */
.aerial__logo {
  position: absolute;
  left: 35.1%;
  top: 12.2%;
  width: 14.5%;
  height: auto;
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Subtitle positioned in the upper-right sky (Desktop) / top-center sky (Mobile) */
.aerial__subtitle-wrap {
  position: absolute;
  left: 65.5%;
  top: 11.8%;
  width: 27.8%;
  margin: 0;
  z-index: 6;
  pointer-events: none;
}

.aerial__subtitle {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile Swipe / Drag Hint (Ref: 澤暘松江) */
.aerial__swipe-hint {
  display: none;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.aerial__swipe-icon {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

@keyframes roadGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 215, 100, 0.35)) brightness(0.96);
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 225, 130, 0.85)) brightness(1.08);
  }
}

.aerial__note {
  position: absolute;
  right: clamp(12px, 1.4vw, 24px);
  bottom: clamp(8px, 1vw, 16px);
  z-index: 6;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ==========================================================================
   Section 2: Building Exterior (#exterior)
   ========================================================================== */

.exterior {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.exterior__wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.exterior__img {
  width: 100%;
  height: auto;
  display: block;
}

.exterior__caption {
  position: absolute;
  right: 20px;
  bottom: 14px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Shared Section Header & Decorative Components
   ========================================================================== */

.section-shell {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

.section-shell > .container {
  position: relative;
  z-index: 1;
}

/* Decorative rotating particle sphere (deco_sphere.png) in section background */
.section-shell::before {
  content: '';
  position: absolute;
  width: clamp(220px, 26vw, 400px);
  height: clamp(220px, 26vw, 400px);
  background: url('../assets/images/deco_sphere.png') center / contain no-repeat;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: sphereRotate 64s linear infinite;
}

.section-shell--circles-right::before {
  top: clamp(20px, 3vw, 44px);
  right: clamp(16px, 3vw, 48px);
}

.section-shell--circles-left::before {
  bottom: clamp(20px, 3vw, 44px);
  left: clamp(16px, 3vw, 48px);
}

/* Top horizontal rule with small dark-green square marker */
.section-rule {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: var(--gray-400);
  margin-bottom: 28px;
}

.section-rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background-color: var(--emerald-800);
}

.section-rule--right::before {
  left: auto;
  right: 0;
}

/* Section Title Block */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-head__main {
  display: flex;
   flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  color: var(--emerald-800);
  line-height: 1.15;
}

.section-head__en {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--emerald-800);
}

.section-head__zh {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--emerald-800);
}

.section-head__sub {
  font-size: clamp(1.125rem, 1.7vw, 1.45rem);
  font-weight: 700;
  color: var(--emerald-800);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Geometric O+ Icon */
.deco-oplus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-800);
  flex-shrink: 0;
}

.deco-oplus__circle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--emerald-800);
  border-radius: 50%;
}

.deco-oplus__plus {
  position: relative;
  width: 22px;
  height: 22px;
}

.deco-oplus__plus::before,
.deco-oplus__plus::after {
  content: '';
  position: absolute;
  background-color: var(--emerald-800);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.deco-oplus__plus::before {
  width: 22px;
  height: 2px;
}

.deco-oplus__plus::after {
  width: 2px;
  height: 22px;
}

/* Gray Description Box */
.desc-box {
  background-color: var(--gray-100);
  padding: 26px 32px;
  font-size: 0.96875rem;
  line-height: 1.9;
  color: var(--gray-800);
  letter-spacing: 0.04em;
  text-align: justify;
}

/* ==========================================================================
   Section 3: MAX FACILITIES (#facilities)
   ========================================================================== */

.facilities {
  background-color: #ffffff;
}

.facilities__header {
  display: grid;
  grid-template-columns: minmax(360px, 42fr) 58fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}

.facilities__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facilities__titles .section-head__en {
  white-space: nowrap;
}

.facilities__desc {
  margin: 0;
  background-color: var(--gray-100);
}

.facilities__gallery {
  display: grid;
  grid-template-columns: 36fr 32fr 32fr;
  grid-template-rows: clamp(210px, 19vw, 275px) clamp(210px, 19vw, 275px);
  gap: 20px;
  width: 100%;
}

.facilities__carousel,
.facilities__viewport,
.facilities__track {
  display: contents;
}

.facility-card {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-100);
  margin: 0;
}

/* Subtle bottom gradient so white caption text is always crisp and legible */
.facility-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-card:hover img {
  transform: scale(1.035);
}

.facility-card--locker {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.facility-card--reading {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.facility-card--gym {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.facility-card--lobby {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

/* Seamless Horizontal Marquee for Lobby Panorama (00-03_facility-lobby.jpg) */
.facility-card__marquee-track {
  display: flex;
  width: max-content;
  height: 104%;
  margin-top: -1%;
  animation: lobbyMarquee 36s linear infinite;
  will-change: transform;
}

.facility-card--lobby .facility-card__marquee-track img {
  width: auto;
  height: 100%;
  aspect-ratio: 4532 / 900;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
  transition: none;
}

.facility-card--lobby:hover .facility-card__marquee-track img {
  transform: none;
}

@keyframes lobbyMarquee {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.facility-card__note-left {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.facility-card__caption-right {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Mobile Carousel Navigation & Dots (Hidden on Desktop) */
.facilities__nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 68, 45, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.facilities__nav-btn:hover {
  background: var(--emerald-800);
}

.facilities__nav-btn--prev {
  left: 12px;
}

.facilities__nav-btn--next {
  right: 12px;
}

.facilities__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.facilities__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--gray-400);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.facilities__dot.is-active {
  width: 24px;
  background-color: var(--emerald-800);
}

/* ==========================================================================
   Section 4: MAX FUTURE (#future)
   ========================================================================== */

.future {
  background-color: #ffffff;
  padding-top: 36px;
}

.future__desc {
  margin-bottom: 28px;
}

.future__map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(6, 68, 45, 0.08);
}

.future__map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section 5: MAX SPEED (#speed)
   ========================================================================== */

.speed {
  background-color: #ffffff;
  padding-top: 36px;
}

.speed__desc {
  margin-bottom: 30px;
}

.speed__mrt-wrap {
  position: relative;
  margin-bottom: 30px;
  background: #ffffff;
  overflow: hidden;
}

.speed__mrt-scroll-box {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.speed__mrt-img-wrapper {
  position: relative;
  width: 100%;
}

.speed__mrt-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Mobile Swipe / Drag Hint for MRT Route Map (Ref: 00-01_aerial) */
.speed__mrt-swipe-hint {
  display: none;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.speed__mrt-swipe-icon {
  width: 82px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.4));
}

/* 4 Feature Cards: Desktop 2x2 Grid / Mobile Carousel Slider */
.speed__carousel {
  position: relative;
  width: 100%;
}

.speed__viewport {
  position: relative;
  width: 100%;
}

.speed__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}

.speed-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.speed-card__media {
  position: relative;
  aspect-ratio: 2401 / 1510;
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid rgba(6, 68, 45, 0.08);
}

.speed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.speed-card__note {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.55);
}

.speed-card__body {
  padding-top: 16px;
}

.speed-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-800);
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--gray-400);
}

.speed-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-800);
  text-align: justify;
}

/* Mobile Carousel Navigation & Dots for Section 5 (Hidden on Desktop) */
.speed__nav-btn {
  display: none;
  position: absolute;
  top: clamp(95px, 28vw, 155px);
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 68, 45, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.speed__nav-btn:hover {
  background: var(--emerald-800);
}

.speed__nav-btn--prev {
  left: 12px;
}

.speed__nav-btn--next {
  right: 12px;
}

.speed__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.speed__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--gray-400);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.speed__dot.is-active {
  width: 24px;
  background-color: var(--emerald-800);
}

/* ==========================================================================
   Section 6: MAX LIFE (#life)
   ========================================================================== */

.life {
  background-color: #ffffff;
  padding-top: 36px;
}

.life__block {
  margin-bottom: 64px;
}

.life__block:last-child {
  margin-bottom: 0;
}

.life__desc {
  margin-bottom: 26px;
}

.life__carousel {
  position: relative;
  width: 100%;
}

.life__viewport {
  position: relative;
  width: 100%;
}

.life__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.life-card {
  position: relative;
  aspect-ratio: 1186 / 783;
  overflow: hidden;
  background-color: var(--gray-100);
  margin: 0;
}

.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.life-card:hover img {
  transform: scale(1.045);
}

.life-card__label {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92), 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Mobile Carousel Navigation & Dots for Section 6 (Hidden on Desktop) */
.life__nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 68, 45, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.life__nav-btn:hover {
  background: var(--emerald-800);
}

.life__nav-btn--prev {
  left: 12px;
}

.life__nav-btn--next {
  right: 12px;
}

.life__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.life__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--gray-400);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.life__dot.is-active {
  width: 24px;
  background-color: var(--emerald-800);
}

/* ==========================================================================
   Section 7: MAX SPACE (#space)
   ========================================================================== */

.space {
  position: relative;
  background-color: #ffffff;
  padding-top: 24px;
  padding-bottom: 48px;
}

.space__mobile-header {
  display: none;
}

.space__aerial {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1170;
  overflow: hidden;
  background-color: #1c3026;
}

.space__aerial-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop top gradient + overlay header on MAX SPACE aerial image */
.space__aerial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 36px 0 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 56%, rgba(255, 255, 255, 0) 100%);
}

.space__bottom {
  margin-top: 24px;
}

.space__bottom-grid {
  display: grid;
  grid-template-columns: 34fr 33fr 33fr;
  gap: 20px;
  align-items: stretch;
}

.space__desc-card {
  background-color: var(--gray-100);
  padding: 28px 26px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gray-800);
  text-align: justify;
}

.space__photo {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-100);
  margin: 0;
}

.space__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.space__photo:hover img {
  transform: scale(1.04);
}

.space__note {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 3;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.space__note--aerial {
  right: 16px;
  bottom: 10px;
}

/* ==========================================================================
   Section 8: 禾傑開發 Brand (#brand)
   ========================================================================== */

.brand {
  background-color: var(--gray-100);
  padding-top: 68px;
  padding-bottom: 64px;
}

.brand__grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "desc     building"
    "engineer building";
  gap: 20px 28px;
  align-items: stretch;
}

.brand__desc {
  grid-area: desc;
  margin: 0;
  background-color: #ffffff;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.brand__card {
  position: relative;
  overflow: clip;
  background-color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  margin: 0;
}

.brand__card--engineer {
  grid-area: engineer;
  min-height: 190px;
}

.brand__card--building {
  grid-area: building;
}

.brand__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand__card--engineer img {
  object-position: 70% 25%;
}

.brand__card:hover img {
  transform: scale(1.035);
}

.brand__engineer-caption {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.brand__building-caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92), 0 0 4px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ==========================================================================
   Section 9: Contact & Reservation Form (#contact)
   ========================================================================== */

.contact {
  position: relative;
  background-color: var(--gray-100);
  padding: 68px 0 88px;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: 44px;
  align-items: stretch;
}

.contact__map-col {
  display: flex;
  flex-direction: column;
}

.contact__map-embed {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: clip;
}

.contact__map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__form-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__title {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--emerald-800);
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 8px;
}

.contact__subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.res-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-form__row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4d5d5;
  padding: 0 16px;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.res-form__row:focus-within {
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(6, 68, 45, 0.12);
}

.res-form__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  min-width: 82px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.res-form__input,
.res-form__select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--gray-900);
  font-size: 0.95rem;
  outline: none;
}

.res-form__select {
  cursor: pointer;
}

.res-form__privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.res-form__privacy input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--emerald-800);
  cursor: pointer;
}

.res-form__privacy-trigger {
  color: var(--emerald-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  cursor: pointer;
}

.res-form__privacy-trigger:hover {
  color: var(--gold-600);
}

.res-form__submit-wrap {
  margin-top: 8px;
}

.res-form__submit {
  width: 180px;
  height: 44px;
  border: none;
  background: var(--gradient-gold);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding-left: 0.25em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(184, 140, 50, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.res-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(184, 140, 50, 0.45);
}

.res-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.res-form__note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.625rem; /* 10px — Ref: 澤暘松江 / 春城麗都 */
  color: #aaaaaa;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.res-form__note a {
  color: #999999;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.res-form__note a:hover {
  color: var(--emerald-800);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #063d28 0%, #03281a 65%, #021c12 100%);
  color: #ffffff;
  padding-block: 44px 48px;
  padding-inline: 24px;
  overflow: clip;
}

.footer__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 6% 35%, rgba(56, 189, 148, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 95% 75%, rgba(56, 189, 148, 0.14) 0%, transparent 26%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 2;
  inline-size: fit-content;
  max-inline-size: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "logo contact"
    "logo credits";
  column-gap: clamp(28px, 3.2vw, 44px);
  row-gap: 10px;
  align-items: center;
  text-align: left;
}

.footer__logo {
  grid-area: logo;
  display: block;
  inline-size: clamp(190px, 16vw, 232px);
  block-size: auto;
  aspect-ratio: 302 / 95;
  align-self: center;
}

.footer__contact {
  grid-area: contact;
  min-inline-size: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(20px, 2.4vw, 34px);
  row-gap: 8px;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item:hover {
  color: var(--gold-400);
}

.footer__contact-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.footer__contact-sep {
  display: inline-block;
  inline-size: 1px;
  block-size: 22px;
  background-color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.footer__contact-val--phone {
  font-family: var(--font-display), var(--font-sans);
  font-size: clamp(1.45rem, 1rem + 1.1vw, 1.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
}

.footer__contact-val--addr {
  font-size: clamp(0.95rem, 0.8rem + 0.45vw, 1.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.footer__credits {
  grid-area: credits;
  min-inline-size: 0;
  font-size: clamp(0.75rem, 0.68rem + 0.2vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.75;
  color: #5e9b82;
  letter-spacing: 0.04em;
}

.footer__credits-text {
  margin: 0;
}

.footer__credit-unit {
  display: inline-block;
}

.footer__br--mob,
.footer__credit-sep--mob {
  display: none;
}

/* ==========================================================================
   Privacy Policy Modal & Status Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(1, 20, 12, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

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

.modal-card {
  width: 90%;
  max-width: 800px;
  max-height: 85dvh;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(16px);
  transition: transform 0.28s ease;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0);
}

.modal-card__header {
  flex-shrink: 0;
  background: var(--emerald-800);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.modal-card__close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.modal-card__close:hover {
  opacity: 1;
}

.modal-card__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 28px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.modal-card__body p {
  margin-bottom: 14px;
}

.modal-card__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-800);
  margin-top: 22px;
  margin-bottom: 8px;
}

.modal-card__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.modal-card__body li {
  margin-bottom: 8px;
}

.modal-card__body::-webkit-scrollbar {
  width: 8px;
}

.modal-card__body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-card__body::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}

.modal-card__body::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

.modal-card__footer {
  flex-shrink: 0;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: center;
}

.modal-card__btn {
  background: var(--emerald-800);
  color: #ffffff;
  border: none;
  padding: 10px 36px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.modal-card__btn:hover {
  background: var(--emerald-700);
}

/* ==========================================================================
   Responsive Design — Tablet & Mobile (<= 991px)
   Matches Mobile Mockup: 20260723 禾傑MAX 一頁式官網 手機版_body.jpg & _butt.jpg
   ========================================================================== */

@media (max-width: 991px) {
  body {
    padding-bottom: 68px; /* Space for fixed mobile bottom bar */
  }

  .container {
    padding: 0 28px;
  }

  .floating-nav-desktop {
    display: none;
  }

  .floating-nav-mobile {
    display: grid;
  }

  /* Hero Mobile */
  .hero {
    height: calc(100dvh - 68px);
    min-height: 560px;
  }

  .hero__sphere-wrap {
    width: min(68dvh, 92vw);
  }

  /* Aerial Panorama Mobile (Horizontal Drag Map — Ref: 澤暘松江) */
  .aerial__stage {
    height: calc(var(--sky-vh, 1vh) * 100 - 68px);
    min-height: 600px;
    aspect-ratio: auto;
    background-color: #015397;
    overflow: hidden;
  }

  .aerial__scroll-box {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }

  .aerial__scroll-box::-webkit-scrollbar {
    display: none;
  }

  .aerial__scroll-box.is-dragging {
    cursor: grabbing;
  }

  .aerial__img-wrapper {
    position: relative;
    margin-top: calc(max(calc(var(--sky-vh, 1vh) * 100 - 68px), 600px) * 0.12);
    height: calc(max(calc(var(--sky-vh, 1vh) * 100 - 68px), 600px) * 0.88);
    width: calc(max(calc(var(--sky-vh, 1vh) * 100 - 68px), 600px) * 0.88 * 1.7778);
  }

  /* Keep Logo locked directly above the light beam (光暈之上) in the 16:9 wrapper */
  .aerial__logo {
    left: 35.1%;
    top: 12.2%;
    width: 14.5%;
  }

  /* Center Subtitle in the top sky on mobile */
  .aerial__subtitle-wrap {
    left: 0;
    right: 0;
    top: 6.5%;
    margin-inline: auto;
    width: min(68vw, 330px);
  }

  .aerial__swipe-hint {
    display: block;
  }

  .aerial__note {
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    font-size: 0.6875rem;
  }

  /* Section Spacing & Headers Mobile */
  .section-shell {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .deco-oplus {
    display: none;
  }

  .desc-box {
    padding: 22px 22px;
    font-size: 0.9375rem;
  }

  /* Section 3: MAX FACILITIES Mobile Layout (Carousel Slider + Standalone Lobby) */
  .facilities__header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  .facilities__desc {
    background-color: var(--gray-100);
    padding: 22px 22px;
    margin-top: 0;
  }

  .facilities__gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .facilities__carousel {
    display: block;
    position: relative;
    width: 100%;
  }

  .facilities__viewport {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
  }

  .facilities__track {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .facilities__track .facility-card {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin: 0;
  }

  .facility-card--lobby {
    flex: none;
    width: 100%;
    height: clamp(180px, 46vw, 235px);
    aspect-ratio: auto;
    border-radius: 2px;
  }

  .facility-card__note-left {
    left: 10px;
    bottom: 8px;
    font-size: 0.6875rem;
  }

  .facility-card__caption-right {
    right: 10px;
    bottom: 8px;
    font-size: 0.78125rem;
    letter-spacing: 0.02em;
  }

  .facilities__nav-btn {
    display: inline-flex;
  }

  .facilities__dots {
    display: flex;
  }

  /* Section 5: MAX SPEED Mobile Layout (MRT Drag Map + Carousel Slider) */
  .speed__mrt-wrap {
    margin-inline: -28px;
    margin-bottom: 24px;
  }

  .speed__mrt-scroll-box {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    padding-inline: 12px;
  }

  .speed__mrt-scroll-box::-webkit-scrollbar {
    display: none;
  }

  .speed__mrt-scroll-box.is-dragging {
    cursor: grabbing;
  }

  .speed__mrt-img-wrapper {
    width: clamp(1020px, 280vw, 1380px);
    aspect-ratio: 2401 / 614;
  }

  .speed__mrt-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }

  .speed__mrt-swipe-hint {
    display: block;
  }

  .speed__viewport {
    overflow: hidden;
    border-radius: 2px;
    transition: height 0.35s ease;
  }

  .speed__cards {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .speed-card {
    flex: 0 0 100%;
    width: 100%;
    background-color: var(--gray-100);
    margin: 0;
  }

  .speed-card__media {
    aspect-ratio: 2401 / 1510;
  }

  .speed-card__body {
    padding: 0;
  }

  .speed-card__title {
    background-color: var(--emerald-800);
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    margin-bottom: 0;
    border-bottom: none;
    font-size: 1.0625rem;
    line-height: 1.4;
  }

  .speed-card__text {
    padding: 16px 20px 20px;
    text-align: justify;
  }

  .speed__nav-btn {
    display: inline-flex;
  }

  .speed__dots {
    display: flex;
  }

  /* Section 6: MAX LIFE Mobile Layout (Part 1 Carousel Slider, Part 2 2x3 grid) */
  .life__viewport {
    overflow: hidden;
    border-radius: 2px;
  }

  .life__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .life__grid--slider {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .life__grid--slider .life-card {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1186 / 783;
    margin: 0;
  }

  .life__nav-btn {
    display: inline-flex;
  }

  .life__dots {
    display: flex;
  }

  .life__block {
    margin-bottom: 48px;
  }

  /* Section 7: MAX SPACE Mobile Layout */
  .space__aerial-overlay {
    display: none;
  }

  .space__mobile-header {
    display: block;
    margin-bottom: 20px;
  }

  .space__aerial {
    aspect-ratio: 1920 / 1170;
  }

  .space__bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .space__note {
    right: 8px;
    bottom: 6px;
    font-size: 0.6875rem;
  }

  .space__desc-card {
    grid-column: 1 / -1;
    padding: 22px;
  }

  /* Section 8: Brand Mobile Layout */
  .brand {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .brand__grid {
    grid-template-columns: 35fr 65fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "desc     desc"
      "engineer building";
    gap: 16px 12px;
  }

  .brand__card--engineer {
    min-height: 0;
  }

  .brand__card--engineer img {
    object-position: 72% center;
  }

  .brand__card--building {
    aspect-ratio: 16 / 9;
  }

  .brand__engineer-caption {
    right: 8px;
    bottom: 6px;
    font-size: 0.6875rem;
  }

  .brand__building-caption {
    right: 10px;
    bottom: 6px;
    font-size: 0.75rem;
  }

  /* Section 9: Contact Mobile Layout */
  .contact {
    padding: 52px 0 64px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__map-embed {
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .contact__title,
  .contact__subtitle {
    text-align: center;
  }

  .res-form__privacy {
    justify-content: center;
  }

  .res-form__submit-wrap {
    display: flex;
    justify-content: center;
  }

  .res-form__submit {
    width: 100%;
  }

  /* Footer Mobile Layout (Ref: 20260723 禾傑MAX 一頁式官網 手機版_butt.jpg) */
  .footer {
    padding-block: clamp(32px, 7vw, 48px) clamp(36px, 7.5vw, 52px);
    padding-inline: clamp(14px, 4.5vw, 32px);
  }

  .footer__inner {
    inline-size: fit-content;
    max-inline-size: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo    contact"
      "credits credits";
    column-gap: clamp(14px, 4.5vw, 32px);
    row-gap: clamp(16px, 3.8vw, 24px);
    align-items: center;
  }

  .footer__logo {
    inline-size: clamp(114px, 31vw, 200px);
  }

  .footer__contact {
    flex-direction: column;
    align-items: flex-start;
    row-gap: clamp(6px, 1.6vw, 10px);
  }

  .footer__contact-item {
    gap: clamp(6px, 1.6vw, 10px);
    white-space: nowrap;
  }

  .footer__contact-badge {
    font-size: clamp(0.5625rem, 0.2rem + 1.4vw, 0.75rem);
  }

  .footer__contact-sep {
    block-size: clamp(15px, 3.4vw, 22px);
  }

  .footer__contact-val--phone {
    font-size: clamp(1.15rem, 0.35rem + 3.4vw, 1.85rem);
  }

  .footer__contact-val--addr {
    font-size: clamp(0.75rem, 0.22rem + 2.15vw, 1.125rem);
  }

  .footer__credits {
    font-size: clamp(0.5125rem, 0.08rem + 1.92vw, 0.85rem);
    line-height: 1.85;
    letter-spacing: 0.02em;
  }

  .footer__br--desk,
  .footer__credit-sep--desk {
    display: none;
  }

  .footer__br--mob {
    display: inline;
  }

  .footer__credit-sep--mob {
    display: inline;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero__title {
    font-size: 1.55rem;
  }

  .hero__subtitle {
    font-size: 1.15rem;
  }

  .life-card__label {
    font-size: 0.75rem;
    right: 8px;
    bottom: 6px;
  }
}
