/* 手机版在同一组导航链接上展开目录 宽屏沿用页首原有排列 */
.mobile-navigation{display:none}

@media(max-width:760px), (max-width:960px) and (max-height:520px) and (pointer:coarse){
  /* 曲线和笔尖共用同一条轨迹 手机使用可独立绘制的矢量线 */
  #pawinThreadLayer{
    --thread-core:#527ab7;--thread-fiber:#7293c3;
    transition:none;
  }
  :root[data-theme="dark"] #pawinThreadLayer{--thread-core:#84a6d5;--thread-fiber:#7190bc}
  #pawinThreadLayer .thread-vector{position:static;display:block;width:100%;height:auto;overflow:hidden}
  .thread-vector path{fill:none;stroke-linecap:round;stroke-linejoin:round}
  .thread-vector .thread-core{stroke:var(--thread-core);stroke-width:1.65}
  .thread-vector .thread-fiber{stroke:var(--thread-fiber);stroke-width:1.05;stroke-opacity:.55}
  .os-candidate nav.site-nav{
    --bar:calc(54px + env(safe-area-inset-top,0px));
    height:var(--bar);
    padding:env(safe-area-inset-top,0px) max(18px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px));
  }
  .os-candidate .site-nav .brand{gap:8px;min-height:44px}
  .os-candidate .site-nav .brand-word{position:static;width:auto;height:auto;clip-path:none}
  .site-nav:has(.mobile-navigation[open]){z-index:80}
  .mobile-navigation{display:block;margin:0 0 0 auto}
  .mobile-navigation summary{
    display:grid;place-items:center;width:48px;height:48px;margin-right:-8px;
    cursor:pointer;list-style:none;color:var(--ink);touch-action:manipulation;
  }
  .mobile-navigation summary::-webkit-details-marker{display:none}
  .mobile-navigation summary:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
  .menu-icon,.menu-icon::before,.menu-icon::after{width:22px;height:2px;background:currentColor;display:block}
  .menu-icon{position:relative}
  .menu-icon::before,.menu-icon::after{content:"";position:absolute;inset:0;transition:transform .16s ease}
  .menu-icon::before{transform:translateY(-6px)}
  .menu-icon::after{transform:translateY(6px)}
  .mobile-navigation[open] .menu-icon{background:transparent}
  .mobile-navigation[open] .menu-icon::before{transform:rotate(45deg)}
  .mobile-navigation[open] .menu-icon::after{transform:rotate(-45deg)}
  .os-candidate .site-nav .links{display:none}
  .os-candidate .mobile-navigation[open] + .links{
    position:absolute;top:100%;inset-inline:0;display:flex;flex-direction:column;align-items:stretch;
    gap:0;padding:8px max(22px,env(safe-area-inset-right,0px)) max(14px,env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px));
    max-height:calc(100svh - var(--bar));max-height:calc(100dvh - var(--bar));
    overflow-y:auto;overscroll-behavior:contain;background:var(--page);
    border-bottom:1px solid var(--rule);box-shadow:0 12px 24px rgba(0,0,0,.12);
  }
  .os-candidate .site-nav .links > :is(a,button){
    display:flex;flex:none;align-items:center;min-height:50px;padding:6px 0;border:0;
    border-bottom:1px solid var(--rule);color:var(--ink);font:500 1.0625rem/1.4 var(--sans);
    text-align:start;letter-spacing:0;text-transform:none;white-space:normal;touch-action:manipulation;
  }
  .os-candidate .site-nav .links > :last-child{border-bottom:0}
  .os-candidate .site-nav .links > :focus-visible{outline-offset:-2px}
  html{scroll-padding-block-start:calc(56px + env(safe-area-inset-top,0px))}
  .os-candidate .pawmi-fab-wrap{right:max(14px,env(safe-area-inset-right,0px));bottom:max(20px,env(safe-area-inset-bottom,0px))}
  .os-candidate .pawmi-chat{max-height:calc(100dvh - 72px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain}
  .os-candidate .pawmi-chat__input{font-size:1rem;min-height:44px}
  .os-candidate :is(.pawmi-chat__close,.pawmi-chat__send,.about-story__close){min-width:44px;min-height:44px;flex-shrink:0}
  .os-candidate .pawmi-prompt,.os-candidate .pawmi-contact__action{min-height:44px;font-size:.8125rem}
}
@media(max-width:760px){
  /* 栏目共用三级字阶 中英人名和愿景长句各有独立的可用行宽 */
  .os-candidate{
    --section-type:clamp(1.875rem,8.3vw,2.375rem);
    --display-type:clamp(2rem,9.6vw,2.75rem);
    --body-type:1rem;--note-type:.875rem;--caption-type:.8125rem;
  }
  #proof.os-module .os-heading,.service-sculpture__copy #servicesTitle,
  #brain.experience-module .os-heading,.os-candidate #how .os-heading,
  #results .os-heading,#brain-door .h-big,#cta .h-big{
    font-size:var(--section-type);line-height:1.2;letter-spacing:-.045em;text-wrap:balance;
  }
  #vision.vision-constellation-module .os-heading{font-size:clamp(1.625rem,7.8vw,2.25rem);line-height:1.24;letter-spacing:-.045em}
  #question .q-main,#thesis .h-giant{font-size:var(--display-type);line-height:1.18;letter-spacing:-.035em}
  #proof .os-heading .nb{display:block}
  #proof .os-product,#vision.vision-constellation-module .os-product{font-size:1rem;line-height:1.4}
  #proof .anc-name{font-size:1.25rem}
  #proof .anc-name [lang=en]{font-size:var(--note-type)}
  .os-candidate #proof.os-module{
    min-height:max(650px,100svh);padding-bottom:clamp(310px,47svh,415px);
  }
  .os-candidate #thesis .sub,.os-candidate .os-body,#brain-door .sub,.team-entry__line,
  .service-sculpture__detail p,.results-change,.about-profile__evidence p,.about-profile__client p{
    font-size:var(--body-type);line-height:1.65;
  }
  .os-candidate .hero-fde strong{font-size:1.125rem}
  .os-candidate .hero-fde > span,.service-sculpture__detail .service-sculpture__delivery,
  .results-metric .results-assumption,.results-metric .results-basis,.results-evidence figcaption,
  .os-candidate .delivery-current,.os-candidate #vision .vision-meaning{font-size:var(--note-type);line-height:1.55}
  .service-sculpture__detail h3,.results-copy h3{font-size:1.3125rem;line-height:1.35}
  .service-sculpture__choice,.delivery-step strong{font-size:clamp(.8125rem,3.5vw,.9375rem)}
  .service-sculpture__choice{min-height:54px;padding:12px 1px}
  .os-candidate #brain.experience-module{gap:clamp(38px,7svh,64px)}
  .team-entry__name,.about-profile__name{font-size:var(--section-type);line-height:1.16}
  .team-entry__role,.team-entry__open,.about-profile__eyebrow,.foot-person__role,.foot-person li b,
  .os-candidate #brain-door .tag .mono,.os-candidate .copy-state{
    font-size:var(--caption-type);line-height:1.45;letter-spacing:.035em;color:var(--ink-2);
  }
  .about-profile__lead{font-size:1.25rem;line-height:1.45}
  .about-profile__line{font-size:1.0625rem;line-height:1.5}
  .about-profile__evidence b{font-size:var(--body-type)}
  .about-profile__client span,.about-profile__meta,.pshot__tag,.pshot__title,.lay-company__copy small,
  .lay-project__caption span,.jinsong-gallery__label,.jinsong-project-card__caption span{font-size:var(--caption-type)}
  .lay-company__copy strong,.lay-project__caption strong,.jinsong-project-card__caption strong{font-size:var(--note-type)}
  .os-candidate #brain-door .tag .mono{color:var(--ink-2)}
  .os-candidate .foot-person h2{font-size:1.1875rem}
  .os-candidate .foot-person ul{gap:0;margin-top:8px}
  .os-candidate .foot-person li{align-items:center;font-size:var(--body-type);gap:12px}
  .os-candidate .foot-person li b{flex-basis:36px}
  .os-candidate .foot-person li :is(a,button),#brain-door .brain-product-link{
    display:inline-flex;align-items:center;min-height:44px;
  }
  .os-candidate .foot-head .join{font-size:var(--note-type);letter-spacing:.08em}
  .os-candidate .footer-support__logo{min-height:44px}
  .os-candidate .pawmi-message,.pawmi-contact__body p{font-size:var(--body-type);line-height:1.55}
  .os-candidate .pawmi-chat__state{font-size:var(--caption-type)}
  .os-candidate .pawmi-chat{
    left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));
    bottom:max(12px,env(safe-area-inset-bottom,0px));
  }
  .os-candidate .about-story{padding:max(10px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))}
  .os-candidate .about-story__frame{height:100%;max-height:100%}
}
@media(orientation:landscape) and (max-width:960px) and (max-height:520px) and (pointer:coarse){
  :root{--gut:max(22px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
  .os-candidate #proof.os-module{min-height:100svh;padding:74px var(--gut) 42px;display:flex;justify-content:center;align-items:flex-start}
  .os-snow-stage{inset:0 0 0 40%;mask-image:none}
  #hero #brainWrap{height:46svh;width:min(50vw,300px)}
  .os-candidate #hero{padding-top:44px}
  .os-candidate .pawmi-chat{bottom:max(8px,env(safe-area-inset-bottom,0px));right:max(16px,env(safe-area-inset-right,0px))}
}
@media(prefers-reduced-motion:reduce){.menu-icon::before,.menu-icon::after{transition:none}}
