/* Shared mobile navigation for Taige, Tower H and Aden Nanshan. */
.mobile-project-link { display: none; }
.project-mobile-menu { display: none; }
@media (max-width: 780px) {
  .nav {
    min-height: 72px;
    height: 72px;
    padding: 6px 18px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .nav .logo-lockup { width: 128px; height: 54px; }
  body[data-project="taige"] .nav .logo-lockup,
  body[data-project="towerh"] .nav .logo-lockup {
    width: 108px;
    height: 40px;
  }
  body[data-project="taige"] .nav .logo-mark,
  body[data-project="towerh"] .nav .logo-mark {
    transform: translateX(20px) scale(1.55);
  }
  body[data-project="taige"] .nav .lang-btn,
  body[data-project="towerh"] .nav .lang-btn {
    width: auto;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 18px;
    border-color: rgba(255,255,255,.55);
    background: rgba(5,24,36,.18);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
  }
  body[data-project="taige"] .nav {
    min-height: 60px;
    height: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  body[data-project="taige"] .nav .logo-lockup {
    width: 100px;
    height: 34px;
  }
  body[data-project="taige"] .nav .nav-links { top: 60px; }
  body[data-project="taige"] .hero .hero-content { padding-top: 138px; }
  body[data-project="taige"] section[id] { scroll-margin-top: 117px; }
  .nav .nav-actions { margin-left: auto; flex: 0 0 auto; }
  .nav .lang-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1;
  }
  .nav .nav-links { display: none; }
  .nav .project-nav { display: none; }
  .nav .mobile-project-link { display: block; }
  .nav .project-mobile-menu { display: block; position: relative; margin-left: auto; color: #fff; }
  .nav .project-mobile-menu > summary { list-style: none; padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); font-size: 12px; cursor: pointer; }
  .nav .project-mobile-menu > summary::-webkit-details-marker { display: none; }
  .nav .project-mobile-menu-panel { position: absolute; z-index: 90; right: 0; top: 42px; width: 160px; padding: 12px; display: grid; gap: 4px; background: rgba(5,24,36,.96); text-align: center; }
  .nav .project-mobile-menu-panel a { padding: 10px; white-space: nowrap; font-weight: 400; text-align: center; }
  .nav .nav-actions { margin-left: 0; }
  .nav .project-mobile-submenu > summary { position: relative; list-style: none; padding: 10px 26px; border: 0; font-size: inherit; font-weight: 400; text-align: center; cursor: pointer; white-space: nowrap; }
  .nav .project-mobile-submenu > summary::-webkit-details-marker { display: none; }
  .nav .project-mobile-submenu > summary::after { content: ""; position: absolute; top: 50%; right: 10px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-65%) rotate(45deg); transition: transform .2s ease; }
  .nav .project-mobile-submenu[open] > summary::after { transform: translateY(-20%) rotate(225deg); }
  .nav .project-mobile-submenu > div { display: grid; padding: 2px 0 5px; background: rgba(255,255,255,.06); }
  .nav .project-mobile-submenu > div a { padding: 8px 10px; font-size: 11px; text-align: center; white-space: normal; line-height: 1.45; }
  .hero { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
  .hero .hero-content { padding-top: 150px; padding-bottom: 48px; }
  section[id] { scroll-margin-top: 129px; }
  /* Tall room sections cannot reach the legacy 18% reveal threshold on phones. */
  .service .reveal {
    opacity: 1;
    transform: none;
  }
  /* Aden Nanshan keeps its existing mobile header height. */
  body[data-project="yidun"] .nav {
    min-height: 88px;
    height: 88px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body[data-project="yidun"] .nav .nav-links { top: 88px; }
  body[data-project="yidun"] .hero .hero-content { padding-top: 166px; }
  body[data-project="yidun"] section[id] { scroll-margin-top: 145px; }
}
