/* ============================================================
   Mobile Chrome (always) + Reading Mode + Chinese + Reduced Motion
   ============================================================ */

@media (max-width: 860px) {
  html, body { overflow: hidden; height: 100%; }

  /* === BOOK MODE (default) — scaled-down book with 3D flip === */
  .scene {
    transform: none !important;
    padding: 0;
    gap: 0;
    height: calc(100% - 64px);
    position: relative;
  }
  .scene-header {
    position: absolute;
    top: calc(50% - 297px * var(--book-scale) - 24px);
    left: 0; right: 0;
    font-size: 7px; letter-spacing: 2px;
    z-index: 1;
  }

  /* Absolute-center the book so scale transform doesn't break layout */
  .book-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(var(--book-scale));
    transform-origin: center center;
  }

  /* === CONTROLS (always on mobile) === */
  .controls {
    position: fixed; bottom: 0; left: 0;
    width: 100%; height: 64px;
    padding: 0 12px;
    background: rgba(7,15,46,.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(195,150,110,.15);
    justify-content: center; gap: 8px;
    z-index: 900;
  }
  .btn { padding: 8px 14px; font-size: 13px; min-width: 0; border-radius: 4px; }
  .dots { display: none; }

  .m-page-num {
    display: block;
    font-size: 13px; color: rgba(255,255,255,.45);
    letter-spacing: 1px; font-weight: 500;
    min-width: 44px; text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .lang-toggle { top: 12px; right: 12px; }
  .lang-btn { font-size: 13px; padding: 6px 16px; }
  .toolbar { bottom: 76px; right: 12px; transition: opacity .25s; }
  .scene.reading-mode ~ .toolbar { opacity: 0; pointer-events: none; }
  .btn-dl { font-size: 11px; padding: 7px 14px; }

  /* Reading mode toggle — text pill in controls bar, only on mobile */
  .btn-read {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto;
    padding: 6px 10px; min-width: auto;
    font-size: 10px; font-weight: 500;
    letter-spacing: .3px;
    white-space: nowrap;
    background: transparent;
    border: 1px solid rgba(195,150,110,.3);
    border-radius: 4px; cursor: pointer;
    color: rgba(255,255,255,.55);
    transition: all .25s;
  }
  .btn-read:hover { border-color: var(--gold); color: #fff; }
  .btn-read.active {
    background: var(--gold-dark);
    border-color: var(--gold);
    color: #fff;
  }

  /* ============================================================
     READING MODE — full-screen single pages
     ============================================================ */
  .scene.reading-mode {
    width: 100%; height: 100%;
    gap: 0; padding: 0;
    justify-content: flex-start;
    overflow: hidden;
  }
  .reading-mode .scene-header { display: none; }

  .reading-mode .book-wrap {
    perspective: none; width: 100%;
    height: 100%;
    position: relative; overflow: hidden;
    transform: none;
    top: auto; left: auto;
  }
  .reading-mode .book {
    width: 100% !important; height: 100%;
    transform: none !important;
    transform-style: flat;
    border-radius: 0;
    position: relative; overflow: hidden;
    clip-path: none !important;
  }
  .reading-mode .book-shadow,
  .reading-mode .spine,
  .reading-mode .pg-static.pg-left { display: none; }

  /* Page containers */
  .reading-mode .leaf {
    position: absolute !important; top: 0; left: 0 !important;
    width: 100% !important; height: 100%;
    transform-style: flat; transition: none;
    display: none;
  }
  .reading-mode .leaf.m-active { display: block; }
  .reading-mode .leaf.flipped { transform: none; }

  .reading-mode .face {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    border-radius: 0; display: none;
  }
  .reading-mode .face-back { transform: none; }
  .reading-mode .face-front::after,
  .reading-mode .face-back::after { display: none; }
  .reading-mode .face.m-visible { display: block; }

  .reading-mode .pg-static.pg-right {
    position: absolute !important; top: 0; left: 0 !important;
    width: 100% !important; height: 100%;
    transform: none !important; display: none;
  }
  .reading-mode .pg-right.m-visible { display: block; opacity: 1; visibility: visible; }

  /* Page content in reading mode */
  .reading-mode .pg {
    width: 100%; height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .reading-mode .pg-inner { padding: 32px 28px 24px; height: auto; min-height: 100%; }

  /* Cover */
  .reading-mode .pg-cover { display: flex; flex-direction: column; }
  .reading-mode .cover-inner {
    padding: 0 32px 48px;
    padding-top: 28%;
    justify-content: center;
    flex: 1; min-height: 0;
  }
  .reading-mode .cover-logo { position: absolute; top: 28px; left: 32px; width: 100px; }
  .reading-mode .cover-title { font-size: 38px; margin-bottom: 16px; letter-spacing: -.5px; }
  .reading-mode .cover-line { width: 100px; margin-bottom: 14px; }
  .reading-mode .cover-tagline { font-size: 14px; margin-bottom: 8px; }
  .reading-mode .cover-services { white-space: normal; font-size: 11px; line-height: 1.6; opacity: .5; }

  /* Titles */
  .reading-mode .pg-title { font-size: 24px; margin-bottom: 14px; }
  .reading-mode .pg-title-sm { font-size: 20px; }
  .reading-mode .accent-bar { width: 24px; margin-bottom: 12px; }

  /* Body text */
  .reading-mode .txt { font-size: 14px; line-height: 1.75; }
  .reading-mode .txt-s { font-size: 13px; line-height: 1.7; }
  .reading-mode .bl li { font-size: 13.5px; line-height: 1.6; margin-bottom: 5px; padding-left: 16px; }
  .reading-mode .bl li::before { top: 8px; width: 5px; height: 5px; }
  .reading-mode .bl-s li { font-size: 12.5px; margin-bottom: 4px; }
  .reading-mode .bl-s li::before { top: 7px; width: 4px; height: 4px; }

  /* Sections */
  .reading-mode .sec-head { font-size: 10px; letter-spacing: 2px; margin-bottom: 10px; }
  .reading-mode .divider { margin: 14px 0; }

  /* TOC */
  .reading-mode .toc-item { padding: 12px 0; }
  .reading-mode .toc-title { font-size: 15px; }
  .reading-mode .toc-page { font-size: 15px; }

  /* Corporate Overview */
  .reading-mode .metrics-row { grid-template-columns: 1fr; gap: 10px; }
  .reading-mode .metric-card { padding: 16px 20px; }
  .reading-mode .metric-title { font-size: 14px; margin-bottom: 6px; }
  .reading-mode .metric-desc { font-size: 12px; line-height: 1.65; }
  .reading-mode .overview-sections { gap: 14px; }
  .reading-mode .overview-block .txt { font-size: 13.5px; line-height: 1.75; }
  .reading-mode .overview-block .sec-head { margin-bottom: 6px; }

  /* Integrated Advantage */
  .reading-mode .adv-quote { font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
  .reading-mode .adv-grid { gap: 12px; }
  .reading-mode .adv-item { padding: 14px 16px; gap: 14px; }
  .reading-mode .adv-num { font-size: 22px; }
  .reading-mode .adv-item-title { font-size: 11px; letter-spacing: 1.2px; margin-bottom: 4px; }
  .reading-mode .adv-item-desc { font-size: 11px; line-height: 1.6; }

  /* Partners */
  .reading-mode .partners-grid { flex-direction: column; gap: 20px; align-items: stretch; }
  .reading-mode .partner-card {
    display: flex; gap: 16px; align-items: flex-start;
    text-align: left; max-width: none;
  }
  .reading-mode .partner-photo { width: 72px; height: 72px; flex-shrink: 0; }
  .reading-mode .partner-name { font-size: 15px; margin-bottom: 3px; }
  .reading-mode .partner-role { font-size: 12px; margin-bottom: 3px; }
  .reading-mode .partner-cred { font-size: 11px; margin-bottom: 4px; }
  .reading-mode .partner-contact-line { font-size: 9px; margin-bottom: 6px; opacity: 1; }
  .reading-mode .partner-quote { font-size: 12px; line-height: 1.6; }

  /* Service pages */
  .reading-mode .svc-body { font-size: 14px; line-height: 1.75; margin-bottom: 14px; }

  /* Client Results */
  .reading-mode .results-quote { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
  .reading-mode .results-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reading-mode .result-card { padding: 14px 16px; }
  .reading-mode .result-stat { font-size: 20px; margin-bottom: 3px; }
  .reading-mode .result-title { font-size: 10.5px; margin-bottom: 4px; }
  .reading-mode .result-desc { font-size: 10px; line-height: 1.55; }

  /* Our Process */
  .reading-mode .process-sub { font-size: 14px; margin: -4px 0 20px; }
  .reading-mode .process-steps { gap: 18px; }
  .reading-mode .process-step { gap: 16px; }
  .reading-mode .process-num { font-size: 34px; min-width: 44px; }
  .reading-mode .process-step-title { font-size: 14px; letter-spacing: 1.5px; margin-bottom: 6px; }
  .reading-mode .process-step-desc { font-size: 13px; line-height: 1.7; }

  /* Back cover */
  .reading-mode .back-serve { max-width: none; gap: 10px; margin-bottom: auto; }
  .reading-mode .back-serve-heading { font-size: 9px; margin-bottom: 8px; }
  .reading-mode .back-serve-item { font-size: 12px; line-height: 1.5; }
  .reading-mode .back-serve-item .why-check { font-size: 10px; }
  .reading-mode .pg-back { display: flex; flex-direction: column; }
  .reading-mode .back-inner { padding: 48px 28px 40px; flex: 1; min-height: 0; }
  .reading-mode .back-logo { width: 80px; }
  .reading-mode .back-quote { font-size: 26px; line-height: 1.35; }
  .reading-mode .back-contact { font-size: 12px; line-height: 2.2; }
  .reading-mode .back-year { font-size: 8px; }

  /* Page footer */
  .reading-mode .pg-foot { padding-top: 14px; }
  .reading-mode .pg-foot-logo { height: 16px; }
  .reading-mode .pg-foot-text { font-size: 7px; }

  /* Slide animations (reading mode only) */
  @keyframes m-in-right  { from { transform: translateX(100%); }  to { transform: translateX(0); } }
  @keyframes m-in-left   { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  @keyframes m-out-right { from { transform: translateX(0); }     to { transform: translateX(100%); } }
  @keyframes m-out-left  { from { transform: translateX(0); }     to { transform: translateX(-100%); } }

  .reading-mode .m-in-right  { animation: m-in-right  .35s cubic-bezier(.4,0,.2,1) both; }
  .reading-mode .m-in-left   { animation: m-in-left   .35s cubic-bezier(.4,0,.2,1) both; }
  .reading-mode .m-out-right { animation: m-out-right .35s cubic-bezier(.4,0,.2,1) both; }
  .reading-mode .m-out-left  { animation: m-out-left  .35s cubic-bezier(.4,0,.2,1) both; }

  /* Reading mode + Chinese */
  .reading-mode[lang="zh-CN"] .cover-title { font-size: 34px; letter-spacing: 2px; }
  .reading-mode[lang="zh-CN"] .pg-title { font-size: 22px; }
  .reading-mode[lang="zh-CN"] .pg-title-sm { font-size: 18px; }
  .reading-mode[lang="zh-CN"] .txt { font-size: 14.5px; line-height: 1.85; }
  .reading-mode[lang="zh-CN"] .txt-s { font-size: 13.5px; line-height: 1.8; }
  .reading-mode[lang="zh-CN"] .bl li { font-size: 14px; line-height: 1.65; }
  .reading-mode[lang="zh-CN"] .bl-s li { font-size: 13px; }
  .reading-mode[lang="zh-CN"] .sec-head { font-size: 10.5px; letter-spacing: .8px; }
  .reading-mode[lang="zh-CN"] .adv-quote { font-size: 16px; line-height: 1.75; }
  .reading-mode[lang="zh-CN"] .adv-item-title { font-size: 11px; letter-spacing: .3px; }
  .reading-mode[lang="zh-CN"] .adv-item-desc { font-size: 11.5px; }
  .reading-mode[lang="zh-CN"] .results-quote { font-size: 15px; line-height: 1.7; }
  .reading-mode[lang="zh-CN"] .result-title { font-size: 11px; }
  .reading-mode[lang="zh-CN"] .result-desc { font-size: 10.5px; line-height: 1.6; }
  .reading-mode[lang="zh-CN"] .process-step-title { font-size: 13px; letter-spacing: .5px; }
  .reading-mode[lang="zh-CN"] .process-step-desc { font-size: 13.5px; line-height: 1.75; }
  .reading-mode[lang="zh-CN"] .back-quote { font-size: 22px; letter-spacing: 1.5px; }
  .reading-mode[lang="zh-CN"] .cover-tagline { font-size: 14px; }
  .reading-mode[lang="zh-CN"] .cover-services { font-size: 11.5px; }
  .reading-mode[lang="zh-CN"] .toc-title { font-size: 15px; }
  .reading-mode[lang="zh-CN"] .metric-title { font-size: 13px; }
  .reading-mode[lang="zh-CN"] .metric-desc { font-size: 11.5px; }
  .reading-mode[lang="zh-CN"] .partner-quote { font-size: 11px; font-style: normal; }
}

/* Hide reading mode button on desktop */
@media (min-width: 861px) {
  .btn-read { display: none !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
