/* Phone compositions: same brand, readable proportions, native touch behavior.
   Desktop styles are deliberately outside this layer. */
@media (max-width: 1000px) {
  .mobile-reader-options { display: flex; align-items: center; width: 180px; padding: 4px; border: 1px solid #e1dfd8; border-radius: 99px; background: #fff; }
  .mobile-reader-options .mode-dock-selection { display: none; }
  .mobile-reader-options a { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px; border: 0; border-radius: 99px; font-size: 12px; color: #6b726f; }
  .mobile-reader-options a[aria-current=page] { background: #f9e4d7; color: #803e29; }
}
@media (max-width: 760px) {
  :root { --mobile-gutter: 22px; }
  body { -webkit-tap-highlight-color: #ed805528; }
  .container { width: calc(100% - var(--mobile-gutter) * 2); }
  .announcement { margin: 8px 12px 0; padding: 0; }
  .announcement a { width: 100%; min-height: 44px; padding: 8px 10px; justify-content: center; gap: 8px; font-size: 11px; }
  .header-bar { height: 64px; min-height: 64px; width: calc(100% - 40px); }
  .site-logo img { width: 108px; height: auto; }
  .header-actions { gap: 9px; }
  .language-link, .menu-toggle { min-width: 44px; min-height: 44px; }
  .mobile-nav { max-height: calc(100dvh - 76px); overflow-y: auto; padding: 12px 22px 22px; }
  .mobile-nav > a { min-height: 60px; font-size: 20px; padding-block: 15px; }
  .mobile-reading { padding-top: 20px; }
  .mobile-reading a { min-height: 48px; }
  /* This utility lives in the menu and colophon, rather than covering the demo. */
  .mode-dock { position: relative; inset: auto; width: 222px; max-width: calc(100% - 44px); margin: 22px auto; box-shadow: 0 3px 12px #26333109; backdrop-filter: none; }
  .mode-dock a { min-height: 44px; }
  .button { min-height: 48px; }
  .button:active { transform: translateY(1px); }

  .ir-home { padding-top: 36px; }
  .ir-hero-copy { padding: 0 22px; }
  .ir-hero-copy h1, html[lang=zh-CN] .ir-hero-copy h1 { font-size: clamp(32px, 8.7vw, 44px); line-height: 1.23; letter-spacing: -.045em; margin-bottom: 20px; text-wrap: balance; }
  html[lang=en] .ir-hero-copy h1 { font-size: clamp(39px, 10.4vw, 52px); line-height: 1.06; }
  .ir-hero-copy > p { font-size: 15px; line-height: 1.8; letter-spacing: -.012em; text-wrap: pretty; max-width: 420px; }
  .ir-hero-copy > p br { display: none; }
  .ir-hero-actions { flex-direction: row; flex-wrap: nowrap; gap: 10px; margin-top: 25px; }
  .ir-hero-actions .button { width: auto; min-width: 0; min-height: 48px; padding: 12px 18px; font-size: 14px; }
  .ir-hero-actions .button.secondary { padding-inline: 16px; }
  html[lang=en] .ir-hero-actions .button { padding-inline: 13px; font-size: 13px; }
  .ir-hero-stage { margin-top: 34px; }
  .ir-hero-pin { height: auto; overflow: hidden; }
  .ir-hero-material, html[lang=en] .ir-hero-material { width: calc(100% - 24px); min-height: 0; height: auto; padding: 22px 14px 26px; border-radius: 14px; display: block; background: radial-gradient(ellipse at 100% 100%,#f0b99488,transparent 62%),#f7f0e6; }
  .ir-hero-material .ir-satellite, .ir-hero-material .ir-mobile-proof { display: none !important; }
  .ir-hero-material .ir-network-window { position: relative; inset: auto; width: 100%; height: 338px; margin: 0; transform: none; border: 1px solid #e3ded5; border-radius: 9px; overflow: hidden; background: white; box-shadow: 0 3px 5px #543e2309,0 17px 30px -19px #5f443657; }
  .ir-hero-material .ir-network-screen { height: 100%; overflow: hidden; background: #fff; }
  .ir-hero-material .ir-window-name { display: flex !important; position: relative; inset: auto; padding: 16px; gap: 9px; font-size: 13px; align-items: center; }
  .ir-hero-material .ir-window-name > .ypm-app-mark { width: 27px; height: 27px; }
  .ir-hero-material .ir-window-name > span:last-child { display: none; }
  .ir-hero-material .ir-evidence-art { inset: 45px -9% 35px; opacity: 1; }
  .ir-hero-material .ir-evidence-art .editorial-hero { left: -5%; top: 0; width: 110%; height: 100%; opacity: 1; transform: none; }
  .ir-hero-material .ir-reading-field { inset: 6% -5% 0; width: 110%; height: 100%; opacity: .7; }
  .ir-hero-material .ir-network { opacity: .28; }
  .ir-hero-material .ir-network-caption { display: flex !important; visibility: visible !important; left: 14px; right: 14px; bottom: 17px; justify-content: center; gap: 10px; font-size: 10px; letter-spacing: .02em; }
  html[lang=en] .ir-hero-material .ir-network-caption { gap: 7px; font-size: 10px; line-height: 1.4; }
  html[lang=en] .ir-hero-material .ir-network-caption > span { flex: 1; text-align: center; text-wrap: balance; }
  html[lang=en] .ir-hero-material .ir-network-caption > i { width: 10px; flex: none; }
  .ir-mobile-motion-row { width: calc(100% - 44px); margin: 0 auto; }
  .ir-mobile-motion { min-height: 44px; font-size: 11px; }
  .ir-intro-line { margin-top: 0; padding: 12px 0 35px; gap: 18px; }
  .ir-intro-line > p { font-size: 18px; line-height: 1.6; }
  .ir-intro-line > div { flex-wrap: wrap; justify-content: center; gap: 15px; font-size: 12px; }
  .ir-intro-line > div > span { gap: 6px; }

  #product-truth.pt-refined { width: calc(100% - 40px); padding: 66px 0 54px; }
  #product-truth.pt-refined .ir-platform-heading { margin-bottom: 36px; }
  #product-truth.pt-refined .ir-platform-heading h2 { font-size: clamp(28px, 7.8vw, 37px) !important; line-height: 1.32 !important; letter-spacing: -.035em; }
  #product-truth.pt-refined .ir-platform-heading > p { padding: 0; font-size: 15px; line-height: 1.8; max-width: 380px; }
  #product-truth.pt-refined .ir-platform-heading > p br { display: none; }
  #product-truth.pt-refined .ir-platform-output { gap: 8px; }
  #product-truth.pt-refined .ir-platform-output > span { min-height: 90px; padding: 14px 7px; font-size: 12px; line-height: 1.5; text-align: center; text-wrap: balance; }
  #product-truth.pt-refined .ir-platform-tracks { height: 35px; }
  #product-truth.pt-refined .ir-platform-layer { padding: 17px 9px; row-gap: 16px; }
  #product-truth.pt-refined .ir-platform-layer > span { font-size: 11px; line-height: 1.5; white-space: normal; text-align: center; padding-inline: 6px; }
  #product-truth.pt-refined .ir-platform-hub { width: min(82%, 314px); min-height: 182px; padding: 22px 12px 30px; }
  #product-truth.pt-refined .ir-platform-hub strong { font-size: 28px; }
  #product-truth.pt-refined .ir-platform-hub > span { font-size: 11px; text-align: center; }
  #product-truth.pt-refined .ir-platform-inputs { width: 100%; max-width: 330px; margin-top: 36px; gap: 8px; }
  #product-truth .pt-input-streams { display: block; }
  #product-truth .pt-input-streams path { stroke-width: 1.3; }
  #product-truth.pt-refined .ir-platform-inputs > span { font-size: 12px; min-height: 40px; }
  #product-truth.pt-refined .ir-platform-caption { font-size: 11px; }

  .ys-story { padding-top: 42px; }
  .ys-intro { padding-inline: 22px; }
  .ys-intro h2 { font-size: 32px; line-height: 1.3; }
  .ys-chapter-nav { top: 64px; margin-bottom: 20px; }
  .ys-chapter-nav > .container { width: 100%; display: flex; padding: 0 16px; gap: 18px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .ys-chapter-nav a { flex: 0 0 auto; min-height: 56px; padding: 0 2px; gap: 0; font-size: 12px; scroll-snap-align: start; white-space: nowrap; }
  .ys-chapter-nav a > span { display: none; }
  .ys-chapter-nav a i { left: 0; right: 0; }
  .ys-chapters { width: calc(100% - 24px); }
  .ys-chapter { margin-bottom: 20px; scroll-margin-top: 130px; }
  .ys-chapter-inner { padding: 28px 18px 20px; border-radius: 12px; }
  .ys-chapter-message h3 { font-size: 29px; line-height: 1.35; letter-spacing: -.035em; margin-bottom: 14px; }
  .ys-chapter-message > p { font-size: 15px; line-height: 1.8; }
  .ys-forward { min-height: 44px; margin-top: 12px; font-size: 13px; }
  .ys-product-stage { margin-top: 19px; margin-inline: -8px; }
  .ypm-wrap .ypm-tabs { gap: 8px; }
  .ypm-wrap .ypm-tabs button { font-size: 12px; min-height: 62px; }
  .ys-case-scope p { font-size: 11px; line-height: 1.7; }

  .ir-why { padding: 48px 0 0; gap: 26px; margin-top: 8px; }
  .ir-why-art { height: auto; aspect-ratio: 1.55; border-radius: 10px; }
  .ir-why h2 { font-size: 30px !important; line-height: 1.35 !important; margin-block: 14px 18px; }
  .ir-why p { font-size: 15px; line-height: 1.8; }
  .ir-why .text-link { min-height: 44px; }
  .ir-insights { padding-top: 66px; padding-bottom: 58px; }
  .ir-insights-heading { display: block; margin-bottom: 26px; }
  .ir-insights-heading h2 { font-size: 30px; line-height: 1.35; letter-spacing: -.035em; }
  .ir-insights-heading > a { display: inline-flex; min-height: 44px; margin-top: 12px; }
  .ir-insight-grid { display: flex; gap: 18px; overflow-x: auto; margin-inline: -22px; padding: 0 22px 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .ir-insight-card { flex: 0 0 85%; min-width: 0; scroll-snap-align: start; }
  .ir-insight-card .ir-editorial-art { width: 100%; height: auto; aspect-ratio: 1.42; border-radius: 10px; }
  .ir-insight-card small { margin-top: 19px; font-size: 11px; }
  .ir-insight-card h3 { font-size: 22px; line-height: 1.42; min-height: 0; margin-top: 10px; }
  .ir-insight-card p { font-size: 14px; line-height: 1.8; margin-top: 12px; }
  .closing-cta { padding: 54px 0 48px; text-align: left; }
  .closing-cta .eyebrow { margin-bottom: 18px; }
  .closing-cta h2, html[lang=zh-CN] .closing-cta h2 { font-size: 30px; line-height: 1.35; letter-spacing: -.035em; }
  .closing-cta p { margin: 20px 0 24px; max-width: none; }
  .ending-actions { justify-content: flex-start; gap: 14px; }
  .footer-grid { gap: 26px 20px; }
  .footer-brand p { margin-top: 14px; }
  .footer-belief { grid-column: 1 / -1; padding-top: 8px; }
  .footer-belief > span { font-size: 23px; }
  .footer-bottom { align-items: center; }
  .footer-bottom .back-top { min-height: 44px; }
}
@media (max-width: 370px) {
  .ir-hero-copy { padding-inline: 20px; }
  .ir-hero-actions { gap: 8px; }
  .ir-hero-actions .button { font-size: 13px; padding-inline: 14px; }
  .ir-hero-material .ir-network-window { height: 310px; }
  .ys-chapter-nav > .container { gap: 15px; }
  .ys-chapter-nav a { font-size: 12px; }
}
