/* V40 — mobile-first refinement and a lighter, China-friendly first load. */
html { overflow-x: clip; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

@media (max-width: 700px) {
  body { overflow-x: clip; }
  .cursor, .cursor-glow { display: none !important; }
  .nav { height: 62px; padding: 0 16px; }
  .nav .brand { font-size: 13px; white-space: nowrap; }
  .nav .brand span, .nav .status { display: none; }
  .nav nav { display: flex; gap: 14px; }
  .nav nav a { font-size: 12px; }

  /* Keep the first screen purposeful on a phone instead of stacking a desktop
     composition into a very tall introduction. */
  .intro-hero { padding-top: 82px; }
  .hero-topline { margin-bottom: 18px; }
  .cinematic-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px;
    min-height: 0 !important;
    padding: 22px 0 34px !important;
  }
  .intro-copy h1 { font-size: clamp(52px, 17vw, 68px); }
  .intro-text { max-width: 34ch; font-size: 16px; line-height: 1.75; }
  .role-tags { width: min(100%, 330px); }
  .photo-browser { width: min(100%, 360px); margin-inline: auto; }
  .single-photo .main-photo { height: min(105vw, 440px); }
  .photo-browser .current-badge { position: static; width: auto; margin: 10px 0 0; }
  .browse-note { display: none; }
  .cinematic-intro > .home-experience {
    width: 100%; min-height: 0; margin: 0 !important; padding: 0 0 4px;
  }
  .home-experience p { margin-bottom: 18px; }
  .home-experience li { padding-bottom: 18px; }
  .home-experience strong { font-size: 16px; }
  .intro-scroll { display: none; }

  /* Keep the opening sequence on phones as well as desktops. */

  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .numbers .number strong { font-size: 32px; }
  .numbers .number span { font-size: 12px; }
  .work-grid-chapter { padding-bottom: 76px; }
  .chapter-head h3 { font-size: clamp(31px, 10vw, 38px); }
  .chapter-head p, .media-summary p { font-size: 15px; line-height: 1.72; }
  .work-item figcaption { opacity: 1; transform: none; }
  .milestone-card { height: 250px; }
  .life-group { margin-bottom: 68px; }
  .life-gallery { gap: 14px; }
  .contact h2 { font-size: clamp(38px, 11vw, 50px); }
  .about-me { padding: 22px 0; }
}

@media (max-width: 380px) {
  .nav nav { gap: 10px; }
  .nav nav a { font-size: 11px; }
  .home-actions .start-button { width: 100%; justify-content: space-between; }
}
