/* ================================================================
   Hysan Annual Report 2025 — Custom CSS
   Traditional rebuild matching the React/Vite version
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans+HK:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: "Trajan";
  src: url("../fonts/Trajan-Regular.woff2") format("woff2"),
       url("../fonts/Trajan-Regular.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------
   Global / Body
   ---------------------------------------------------------------- */
::selection { background: #a78a6d; color: #fff; }
body {
  line-height: 1.5;
  color: #000;
  font-family: "Noto Sans HK", Arial, sans-serif, "Heiti TC", "LiHei Pro", "Microsoft JhengHei";
  background: #fff;
  overflow-x: hidden;
}
body.en {
  font-family: Helvetica, Arial, sans-serif;
}
body.zh {
  font-family: "PingFang TC", "PingFang HK", "Heiti TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.125rem;
}
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  font-family: "Noto Sans HK", Arial, sans-serif !important;
}
a { border-bottom: none !important; text-decoration: none; }
#wrapper { background-color: transparent; }

/* ----------------------------------------------------------------
   Navigation Bar
   ---------------------------------------------------------------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  box-shadow: 0 1px 0 0 #F5F5F5;
  z-index: 100;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo-tagline-cluster {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-logo-link {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 1;
  max-width: 188px;
  min-width: 100px;
  margin-right: 3rem;
  text-decoration: none;
}
.nav-logo-link:focus-visible {
  outline: 2px solid #a78a6d;
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-logo-link img {
  width: 100%;
  height: auto;
}

/* Nav links — override Bootstrap .nav-link (display:block + padding) and colors.css / style.css */
.nav-bar .nav-link {
  position: relative;
  display: inline !important;
  padding: 0 !important;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: #000 !important;
  text-decoration: none !important;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 22px;
  border-bottom: none !important;
  background: none !important;
}
.nav-bar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #4473C7;
  transition: width 0.22s ease;
}
.nav-bar .nav-link:hover::after { width: 100%; }
.nav-bar .nav-link:hover { color: #000 !important; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

/* Scroll tagline (appears after scrolling past hero) */
.tag-title,
.nav-scroll-tagline {
  display: flex;
  flex-direction: column;
  margin-top: -10rem;
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  transition: margin-top 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}
.tag-title.visible,
.nav-scroll-tagline.visible,
.nav-scroll-tagline--visible {
  margin-top: 0;
  opacity: 1;
  visibility: visible;
}
.nav-scroll-tagline__primary,
.nav-scroll-tagline__secondary {
  font-size: clamp(0.65rem, 1.15vw, 1rem);
  line-height: 1.25;
  padding-right: 0.75rem;
  color: #000;
  margin: 0;
}
.nav-scroll-tagline__primary {
  font-family: 'Trajan' !important;
  font-weight: 700;
  margin-top: 3px;
}
.en .nav-scroll-tagline__primary {
  font-weight: 800;
  font-synthesis: weight;
}
.en .nav-scroll-tagline__primary-inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0;
}
.en .nav-scroll-tagline__primary-line1 {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
}
.en .nav-scroll-tagline__primary-hyphen {
  white-space: pre;
}
.zh .nav-scroll-tagline__primary {
  font-family: 'Noto Sans HK' !important;
  margin-top: 2px;
}
.nav-scroll-tagline__secondary {
  font-family: "Noto Sans HK", Arial, sans-serif;
}
.en .nav-scroll-tagline__secondary { font-weight: lighter; }
.zh .nav-scroll-tagline__secondary { font-weight: 400; }
.zh .nav-scroll-tagline__primary,
.zh .nav-scroll-tagline__secondary {
  letter-spacing: 0.125rem;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #000;
  display: block;
}
.mobile-dropdown {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}
.mobile-dropdown.open { display: flex; }
.mobile-dropdown .nav-link { font-size: 14px; }

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.home-hero-stack {
  min-height: 90vh;
  min-height: 90dvh;
  padding-top: 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.home-hero-stack ~ section,
.home-hero-stack ~ footer,
.home-hero-stack ~ button {
  position: relative;
  z-index: 1;
}
.hero-fill {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 10vh;
  bottom: 10dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 0;
  box-sizing: border-box;
  background: linear-gradient(to left, #f6ede4, #ffffff);
}
.hero-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
  --hero-tagline-y-scale: calc((90vh - 100px) / (100vh - 100px));
  --hero-tagline-y-scale: calc((90dvh - 100px) / (100dvh - 100px));
}
.hero-banner-container {
  position: relative;
  height: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 2.5% 0;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-decor-gradient {
  position: absolute;
  pointer-events: none;
}
.hero-decor-gradient--1 { width: 87%; height: 190px; left: 0; top: 231px; background: linear-gradient(to right, #ffffff, #faf4ee); }
.hero-decor-gradient--2 { width: 52%; height: 78px; right: 0; top: 153px; background: linear-gradient(to right, rgba(255,255,255,0), #faf4ee); left: auto; }
.hero-decor-gradient--3 { width: 76%; height: 78px; right: 0; top: 593px; background: linear-gradient(to right, rgba(255,255,255,0), #faf4ee); left: auto; }

/* Hero tagline positioning */
.hero-tagline-pos {
  position: absolute;
  left: 48px;
  width: 610px;
  height: 160px;
  overflow: hidden;
  top: calc(243px * var(--hero-tagline-y-scale));
  z-index: 2;
}
.hero-tagline-tablet-scale-inner {
  transform-origin: left top;
}
.hero-tagline-en-scale { position: relative; }
.hero-tagline-en-inner { position: relative; width: 609.67px; height: 123.91px; }

.en .hero-tagline-pos {
  overflow: visible !important;
  height: auto !important;
  min-height: 168px;
}

/* Chinese hero SVG tagline layout */
.hero-tagline-svg-inner { position: relative; width: 609.67px; height: 123.91px; }
.hero-tagline-svg-line1 { position: absolute; left: 0; top: 0; height: 53px; width: auto; display: block; }
.hero-tagline-svg-line2 { position: absolute; left: 122.11px; top: 58.5px; height: 50px; width: auto; display: block; }
.hero-tagline-svg-annual { position: absolute; left: 50%; transform: translateX(-50%); top: 140px; height: 19px; width: auto; display: block; }
.hero-tagline-text-zh { color: #1a1a1a; }
.hero-annual-zh {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #333;
}

/* ----------------------------------------------------------------
   City Building Animation (hero right side)
   ---------------------------------------------------------------- */
@keyframes hero-city-building-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-city-line-expand {
  from { opacity: 0; transform: scaleX(0); transform-origin: left center; }
  to   { opacity: 1; transform: scaleX(1); transform-origin: left center; }
}
@keyframes hero-city-vline-expand {
  from { opacity: 0; transform: scaleY(0); transform-origin: bottom center; }
  to   { opacity: 1; transform: scaleY(1); transform-origin: bottom center; }
}
.city-all {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --hc-design-width: 1440px;
  --hc-canvas-height-desktop: 760px;
  --hc-canvas-height-mobile: 670px;
  --hc-mobile-vw-factor: 2;
}
.city-all .hero-city-b-anim {
  opacity: 0;
  animation: hero-city-building-rise 0.7s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.city-all .hero-city-l-anim {
  opacity: 0;
  animation: hero-city-line-expand 0.6s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.city-all .hero-city-v-anim {
  opacity: 0;
  animation: hero-city-vline-expand 0.8s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.city-all img { position: absolute; }

/* ----------------------------------------------------------------
   Slider Section
   ---------------------------------------------------------------- */
.slider-top-accent-bar {
  width: 100%;
  height: 162px;
  background: linear-gradient(to left, #f6ede4, #ffffff);
  transition: background 0.6s ease;
}
.gradient-bar {
  width: 100%;
  height: 36px;
  transition: background 0.6s ease;
}
/* Bottom bar lives inside .owl-carousel (before .owl-dots) after JS reorder */
.owl-carousel.hysan #gradientBarBottom {
  width: 100%;
  flex-shrink: 0;
}
.gradient-bar--warm   { background: linear-gradient(to right, #b5a898, #c9bcb2, #ddd3cc, #ede8e4); }
.gradient-bar--green  { background: linear-gradient(to right, #8d9c8d, #a2af9d, #c2cfc2, #dde5dd); }
.gradient-bar--gold   { background: linear-gradient(to right, #c9a96e, #d4ba93, #e8d5b5, #f5ece0); }

.slider-section { width: 100%; background: #fff; }

/* Owl Carousel overrides */
.owl-carousel.hysan .owl-stage-outer { overflow: hidden; }
.owl-carousel.hysan .owl-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 19px;
  padding: 20px 0;
  background: #fff;
}
.owl-carousel.hysan .owl-dots .owl-dot {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px solid #a88b6e !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.owl-carousel.hysan .owl-dots .owl-dot.active {
  background: #a88b6e !important;
}
.owl-carousel.hysan .owl-dots .owl-dot span {
  display: none !important;
}
.owl-carousel.hysan .owl-nav { display: none; }

/* Slide layout */
.slide-inner {
  display: flex;
  width: 100%;
}
.slide-photo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56%;
  flex-shrink: 0;
  overflow: hidden;
}
.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.slide-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px, 2.75vw, 40px) 80px;
  background: #fff;
  container-type: inline-size;
  container-name: slideText;
}
.slide-text--photo-right {
  padding: 0 clamp(14px, 2vw, 28px) 80px clamp(72px, 7vw, 100px);
}
.slide-sub {
  font-size: 28px;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 16px;
  white-space: normal;
}
.slide-title {
  font-size: 54px;
  font-weight: bold;
  font-family: 'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.2;
  white-space: normal;
}
.slide-sub--split { white-space: normal; text-align: left; }
@container slideText (min-width: 32rem) {
  .slide-sub--split { white-space: nowrap; }
}
@container slideText (max-width: 31.99rem) {
  .slide-sub--split .slide-sub-part1,
  .slide-sub--split .slide-sub-part2 { display: block; white-space: nowrap; }
}

/* Slider track (desktop: aspect ratio grid) */
.slider-track {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Pillars (slide 5) */
.pillars-slide-frame {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  height: 100%;
  width: 100%;
  aspect-ratio: 4825 / 1848;
  margin: 0;
}
.pillars-collage {
  position: relative;
  flex: 0 0 56%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
.pillars-desktop-collage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pillars-desktop-collage-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ----------------------------------------------------------------
   Download Section
   ---------------------------------------------------------------- */
.dl-section, .dl-section * { box-sizing: border-box; }
.dl-section {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.dl-photo {
  flex: 0 0 58.333%;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.dl-content {
  flex: 0 0 41.667%;
  padding: 3rem 2rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  background-color: rgba(249, 247, 238, 1);
}
.dl-pdf-block {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0 1rem 0 2.5rem;
}
.dl-pdf-block:focus-visible {
  outline: 2px solid #4473C7;
  outline-offset: 3px;
}
.dl-pdf-block:hover .dl-cover img { border-color: #4473C7 !important; }
.dl-pdf-block:hover .dl-label { color: #4473C7 !important; }
.dl-feature-box {
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem 1.5rem;
  padding: 1.5rem 0;
}
.dl-cover {
  flex: 0 0 41.667%;
  max-width: 41.667%;
  padding-right: 0;
}
.dl-cover img {
  width: 100%;
  height: auto;
  border: 0.5px solid #231916;
  display: block;
}
.dl-fbox-text {
  flex: 1;
  min-width: 0;
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
  font-family: 'Noto Sans HK', Arial, sans-serif;
}
.dl-label {
  color: #20355B;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
  transition: color 0.18s ease;
}
.dl-size {
  color: #20355B;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.dl-by-section { padding: 0 1rem 0 2.5rem; }
.dl-by-section-title {
  border-top: none;
  margin: 0 0 0 1.5rem;
  padding: 1.5rem 0 0;
}
.dl-by-section-title span {
  color: #20355B;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  font-family: 'Noto Sans HK', Arial, sans-serif;
}
.dl-row {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.18s ease;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  margin: 1rem 0 1rem 1.5rem;
}
.dl-row__text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  transition: color 0.18s ease;
  font-family: 'Noto Sans HK', Arial, sans-serif;
  display: flex;
  flex-direction: row;
}
.dl-row__num {
  display: block;
  flex-shrink: 0;
  padding-right: 0.35em;
}
.dl-row:hover, .dl-row:focus-visible { background: var(--dl-row-accent); }
.dl-row:hover .dl-row__text,
.dl-row:focus-visible .dl-row__text { color: #fff !important; }
.dl-row:focus-visible { outline: 2px solid var(--dl-row-accent); outline-offset: 2px; }
.dl-row--green  { --dl-row-accent: #82957E; }
.dl-row--gold   { --dl-row-accent: #C9A978; }
.dl-row--teal   { --dl-row-accent: #6F858C; }
.dl-row--brown  { --dl-row-accent: #887968; }
.dl-row__text { color: var(--dl-row-accent); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: #a78a6d;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner span,
.footer-inner a {
  color: #fff !important;
  font-size: 14px;
}
.footer-inner a {
  text-decoration: underline !important;
  border-bottom: none !important;
}
.footer-inner a:hover {
  color: #fff !important;
}

/* ----------------------------------------------------------------
   Go-to-Top Button
   ---------------------------------------------------------------- */
#gotoTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.3);
  font-size: 1.25rem;
  line-height: 36px;
  text-align: center;
  color: #fff;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  border-radius: 2px;
  border: none;
  padding: 0;
  transition: background-color .2s linear;
}
#gotoTop:hover { background-color: #4473C7 !important; }

/* ================================================================
   Responsive Breakpoints
   ================================================================ */

/* --- Nav container widths (matching Bootstrap + Canvas) --- */
@media (max-width: 1439px) { .nav-inner { max-width: 1140px !important; } }
@media (max-width: 1199px) { .nav-inner { max-width: 960px !important; } }
@media (max-width: 991px)  { .nav-inner { max-width: 720px !important; } }

@media (min-width: 768px) {
  .nav-scroll-tagline__primary,
  .nav-scroll-tagline__secondary { white-space: nowrap; }

  .hero-decor-gradient--1 { top: calc(231px * var(--hero-tagline-y-scale)) !important; }
  .hero-decor-gradient--2 { top: calc(153px * var(--hero-tagline-y-scale)) !important; }
  .hero-decor-gradient--3 { top: calc(593px * var(--hero-tagline-y-scale)) !important; }
  .hero-tagline-pos { left: 48px !important; }
  .hamburger { display: none !important; }
  .nav-desktop { display: flex !important; }

  /* City canvas desktop sizing */
  .hero-wrap .city-all {
    inset: unset !important;
    width: var(--hc-design-width) !important;
    height: var(--hc-canvas-height-desktop) !important;
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    padding: 0 !important;
    z-index: 1 !important;
    clip-path: inset(0 0 10% 0) !important;
  }

  /* Slider: desktop — let aspect-ratio size the carousel, but don't clip dots */
  .slider-track {
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .owl-carousel.hysan .owl-stage-outer {
    aspect-ratio: 4825 / 1848 !important;
    overflow: hidden !important;
  }
  .owl-carousel.hysan .owl-stage {
    height: 100% !important;
    display: flex !important;
  }
  .owl-carousel.hysan .owl-item {
    height: 100% !important;
  }
  .owl-carousel.hysan .owl-item .item {
    height: 100% !important;
  }
  .slide-inner:not(.slide-inner--pillars) {
    height: 100% !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }
  .slide-inner--pillars {
    height: 100% !important;
    min-height: 0 !important;
  }
  .slide-inner .slide-photo,
  .pillars-collage {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .slide-inner .slide-photo img,
  .pillars-desktop-collage-wrap img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .pillars-slide-frame {
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
  }
}

@media (min-width: 1024px) {
  .hero-wrap .city-all { transform-origin: right center !important; }
}

@media (max-width: 1200px) {
  .en .nav-scroll-tagline__primary,
  .en .nav-scroll-tagline__secondary { font-size: 0.7rem; }
  .nav-logo-link { margin-right: 1.5rem !important; }
}

/* --- Tablet (768-1023) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hamburger { display: none !important; }
  .hero-tagline-tablet-scale-inner {
    transform: scale(0.78) !important;
    transform-origin: left top !important;
  }
  .slide-photo { width: 52% !important; }
  .pillars-collage { flex: 0 0 52% !important; }
  .slide-text { padding: 0 clamp(18px, 3.5vw, 40px) 60px !important; }
  .slide-title { font-size: 42px !important; }
  .dl-photo { flex: 0 0 41.667% !important; }
  .dl-content { flex: 0 0 58.333% !important; padding: 2.5rem 1.5rem 2.5rem 2rem !important; }
  .nav-inner { padding: 0 15px !important; }
  .footer-inner { padding: 40px 15px !important; }
}

@media (max-width: 576px) {
  .en .nav-scroll-tagline__primary,
  .en .nav-scroll-tagline__secondary,
  .zh .nav-scroll-tagline__primary,
  .zh .nav-scroll-tagline__secondary { font-size: 0.875rem; }
  .nav-logo-link { max-width: 150px !important; margin-right: 1.25rem !important; }
}

@media (max-width: 360px) {
  .zh .nav-scroll-tagline__primary,
  .zh .nav-scroll-tagline__secondary { font-size: 0.7125rem; }
  .nav-logo-link { max-width: 120px !important; margin-right: 1rem !important; }
}

/* --- Mobile (<768px) --- */
@media (max-width: 767px) {
  .nav-logo-tagline-cluster { align-items: center !important; min-width: 0 !important; }
  .nav-logo-link { max-width: 120px !important; margin-right: 1rem !important; }
  .zh .nav-scroll-tagline__primary,
  .zh .nav-scroll-tagline__secondary { white-space: nowrap; }
  .nav-logo-link img { width: 100% !important; height: auto !important; }
  .nav-scroll-tagline {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    min-width: 0 !important;
  }
  .nav-scroll-tagline__primary,
  .nav-scroll-tagline__secondary { padding-right: 0; }
  .en .nav-scroll-tagline__primary { font-size: 1.0625rem !important; line-height: 1.2 !important; }
  .en .nav-scroll-tagline__primary-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    gap: 1px !important;
  }
  .en .nav-scroll-tagline__secondary { font-size: 0.9375rem !important; line-height: 1.25 !important; }
  .nav-desktop { display: none !important; }
  .hamburger { display: flex !important; flex-shrink: 0 !important; padding: 4px !important; gap: 4px !important; }
  .hamburger span { width: 20px !important; max-width: 20px !important; }

  /* Hero mobile */
  .hero-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    overflow-x: clip !important;
  }
  .hero-tagline-pos {
    left: 20px !important;
    top: 72px !important;
    max-width: min(420px, calc(100vw - 32px)) !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    transform: scale(0.62) !important;
    transform-origin: left top !important;
    z-index: 3 !important;
    padding: 10px 14px 12px 0 !important;
  }
  .en .hero-tagline-pos {
    left: 16px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    top: 64px !important;
    padding: 0 !important;
  }
  .en .hero-tagline-en-scale {
    position: relative !important;
    width: 610px !important;
    min-height: 168px !important;
  }
  .en .hero-tagline-en-charting { left: 22.2px !important; }
  .en .hero-tagline-en-annual { left: 20.49px !important; }
  .zh .hero-tagline-pos {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    transform: scale(0.93) !important;
    transform-origin: left top !important;
    max-width: min(98vw, calc(100vw - 32px)) !important;
    background: linear-gradient(90deg, rgba(252,247,243,0.97) 0%, rgba(252,247,243,0.78) 58%, rgba(252,247,243,0) 100%) !important;
    border-radius: 6px !important;
  }
  .zh .hero-tagline-svg-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .zh .hero-tagline-svg-line1,
  .zh .hero-tagline-svg-line2 {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
  }
  .zh .hero-tagline-svg-line2 { margin-left: 4px !important; max-height: 48px !important; }
  .zh .hero-tagline-svg-annual {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    margin-top: 8px !important;
    margin-left: 2px !important;
    height: 17px !important;
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    opacity: 0.92 !important;
  }

  /* City canvas mobile sizing */
  .city-all {
    inset: unset !important;
    width: var(--hc-design-width) !important;
    height: var(--hc-canvas-height-mobile) !important;
    left: auto !important;
    right: calc(-8vw - 70px) !important;
    margin-left: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    transform-origin: right bottom !important;
    transform: scale(calc((100vw / var(--hc-design-width)) * var(--hc-mobile-vw-factor))) !important;
    z-index: 1 !important;
  }

  /* Slider mobile */
  .slider-top-accent-bar { display: none !important; }
  .slider-track { height: auto !important; display: block !important; aspect-ratio: unset !important; overflow: visible !important; }
  .owl-carousel.hysan .owl-stage-outer {
    height: 510px !important;
    overflow: hidden !important;
    aspect-ratio: unset !important;
  }
  .owl-carousel.hysan .owl-stage,
  .owl-carousel.hysan .owl-item,
  .owl-carousel.hysan .owl-item .item {
    height: 510px !important;
  }
  .slide-inner { flex-direction: column !important; height: 510px !important; min-height: 0 !important; }
  .slide-inner:not(.slide-inner--pillars) .slide-text { order: -1 !important; }
  .slide-inner:not(.slide-inner--pillars) .slide-photo { order: 1 !important; }
  .slide-photo { width: 100% !important; height: 240px !important; flex-shrink: 0 !important; }
  .slide-inner:not(.slide-inner--pillars) .slide-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; }
  .slide-text {
    padding: 30px clamp(16px, 5vw, 28px) 48px !important;
    justify-content: center !important;
  }
  .slide-title { font-size: 32px !important; }
  .slide-sub { font-size: 18px !important; }

  /* Pillars slide 5 mobile */
  .slide-inner--pillars {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  .slide-inner--pillars .pillars-slide-frame { display: contents !important; }
  .slide-inner--pillars .slide-text {
    flex: 0 0 270px !important;
    height: 270px !important;
    max-height: 270px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .slide-inner--pillars .pillars-collage {
    width: 100% !important;
    height: 240px !important;
    flex-shrink: 0 !important;
    flex: none !important;
  }
  .slide-inner--pillars .pillars-desktop-collage-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Download mobile */
  .dl-section { flex-direction: column !important; }
  .dl-photo { flex: 0 0 auto !important; width: 100% !important; min-height: 260px !important; }
  .dl-content { flex: 0 0 auto !important; width: 100% !important; padding: 1.5rem 0 !important; }
  .dl-pdf-block { padding: 0 2rem !important; }
  .dl-by-section { padding: 0 2rem !important; }
  .dl-feature-box { padding: 1rem 0 !important; margin-left: 0 !important; }
  .dl-by-section-title { margin-left: 0 !important; }
  .dl-cover { flex: 0 0 35% !important; max-width: 35% !important; }
  .dl-row__text { font-size: 1rem !important; }
  .dl-label, .dl-size { font-size: 1rem !important; }

  /* Footer mobile */
  .footer-inner { flex-direction: column !important; align-items: center !important; gap: 6px !important; padding: 1rem 15px !important; }
  .nav-inner { padding: 0 15px !important; gap: 12px !important; }
}
