/* CAST // SIGNAL V5.9.8 — shared character intro + responsive mobile showcase.
   PC layout remains in style.css. This layer changes the existing DOM only. */

/* The INTRODUCTION is never truncated. Its own slim scroll track indicates
   more text, while keeping the surrounding hero composition stable. */
#hero .hero-bio p {
  display:block;
  max-height:7.15em;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
  scrollbar-width:thin;
  scrollbar-color:var(--accent) #77777736;
  overscroll-behavior-y:contain;
  padding-right:9px;
  touch-action:pan-y;
}
#hero .hero-bio p::-webkit-scrollbar {width:3px}
#hero .hero-bio p::-webkit-scrollbar-track {background:#8885}
#hero .hero-bio p::-webkit-scrollbar-thumb {background:var(--accent);border-radius:10px}
/* Visual cross mark is not a control; remove instead of misleading visitors. */
.hero-crosshair{display:none!important}

/* Keep the new mobile controls absent from desktop layout. */
.mobile-menu-toggle,.mobile-nav-drawer,.mobile-nav-backdrop,.mobile-filter-toggle{display:none}

@media(max-width:800px){
  /* Single slim top bar; navigation and MOTION move into the menu. */
  .topbar{
    height:56px!important;
    min-height:56px!important;
    display:flex!important;
    align-items:center!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    position:relative;
    z-index:30;
    padding-right:60px;
  }
  .topbar .brand{
    display:flex!important;
    order:0;
    width:auto!important;
    height:56px;
    padding:0 13px!important;
    max-width:calc(100vw - 66px);
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .topbar .brand-main{font-size:clamp(17px,4.7vw,22px)!important;white-space:nowrap}
  .topbar .brand-mini{display:none!important}
  .topbar .topnav,.topbar .head-right{display:none!important}
  .mobile-menu-toggle{
    display:flex;
    position:absolute;
    z-index:33;
    top:0;right:0;
    height:55px;width:59px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    background:var(--acid);
    color:#141517;
    border:0;
    border-left:2px solid #17191c;
  }
  .mobile-menu-toggle span{width:23px;height:3px;border-radius:5px;background:#16171a;transition:transform .2s,opacity .2s}
  .mobile-menu-toggle[aria-expanded=true] span:first-child{transform:translateY(9px) rotate(45deg)}
  .mobile-menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
  .mobile-menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-9px) rotate(-45deg)}
  .mobile-nav-backdrop{display:block;position:fixed;inset:0;z-index:46;background:#06090bc5}
  .mobile-nav-backdrop[hidden]{display:none!important}
  .mobile-nav-drawer{
    display:flex;
    position:fixed;
    z-index:48;
    top:0;right:0;bottom:0;
    width:min(84vw,350px);
    flex-direction:column;
    background:#17191d;
    border-left:4px solid var(--acid);
    transform:translateX(105%);
    visibility:hidden;
    transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility .32s;
    overflow-y:auto;
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:-20px 0 55px #0009;
  }
  .mobile-nav-drawer.open{transform:translateX(0);visibility:visible}
  .mobile-nav-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:25px 16px;border-bottom:1px solid #4c5052;color:var(--acid);font:900 15px var(--mono)}
  .mobile-nav-head small{display:block;margin-top:7px;font:700 9px var(--mono);letter-spacing:.13em;color:#a2b4ae}
  .mobile-nav-head button{width:46px;height:46px;flex:none;border:1px solid #66716d;background:transparent;color:#fff;font-size:28px}
  .mobile-nav-link{min-height:85px;width:100%;background:transparent;border:0;border-bottom:1px solid #4b5052;color:#f3f5f0;text-align:left;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:15px 19px;gap:4px}
  .mobile-nav-link small{font:800 10px var(--mono);color:var(--acid);grid-column:1}
  .mobile-nav-link strong{font:900 20px var(--jpn);grid-column:1}
  .mobile-nav-link b{grid-column:2;grid-row:1/3;align-self:center;color:var(--acid);font-size:25px}
  .mobile-nav-link:active{background:#303632}
  .mobile-motion{margin:auto 18px 25px;min-height:48px;border:1px solid #74827e;background:#24292a;color:var(--acid);font:900 12px var(--mono)}

  /* Portrait showcase: character art owns the centre of the viewport. */
  #hero.hero{
    position:relative;
    height:max(660px,calc(100svh - 162px))!important;
    min-height:660px!important;
    max-height:900px!important;
    background:#f0f0e9;
    overflow:hidden;
    touch-action:pan-y;
  }
  #hero .hero-surface{background:linear-gradient(146deg,#f7f7f2 0%,#e9ece7 64%,#e2e4e1 100%)}
  #hero .hero-dark-panel{opacity:0!important}
  #hero .hero-accent-slab{left:auto!important;right:-23%!important;top:9%!important;height:80%!important;width:47%!important;opacity:.60;transform:skewX(-18deg)!important;z-index:0}
  #hero .hero-pattern{opacity:.27}
  #hero .hero-ghostname{opacity:.08;right:0;bottom:29%;font-size:35vw;pointer-events:none}
  #hero .hero-no{opacity:.10;right:-9%;top:22%;pointer-events:none}
  #hero .hero-art-stamp,#hero .hero-topline,#hero .hero-hook,#hero .mini-meta,#hero .hero-role,#hero .hero-core-data,#hero .hero-bottomline{display:none!important}
  #hero .hero-art-wrap,
  #hero.theme-orphe .hero-art-wrap,
  #hero.theme-rov .hero-art-wrap,
  #hero.theme-unnamed .hero-art-wrap{
    position:absolute;
    z-index:5;
    left:50%!important;
    right:auto!important;
    bottom:125px!important;
    top:auto!important;
    height:calc(100% - 153px)!important;
    width:100%!important;
    transform:translateX(-50%)!important;
    transform-origin:bottom center;
    pointer-events:none;
    filter:none!important;
  }
  #hero .hero-art{
    width:100%;height:100%;max-width:none;
    object-fit:contain;
    object-position:center bottom;
    transform:none!important;
    transform-origin:center bottom;
    filter:drop-shadow(8px 10px 0 #00000013);
  }
  #hero .hero-copy{
    position:absolute!important;
    top:0!important;bottom:0!important;left:0!important;right:0!important;
    width:100%!important;height:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
    color:#17191c!important;
    z-index:10;
    pointer-events:none;
  }
  #hero .intro-kicker{margin:23px 0 0 17px;gap:6px;font:800 9px var(--mono);letter-spacing:.05em;color:#383b3d;white-space:normal}
  #hero .kicker-stroke{width:17px;height:4px}
  #hero .intro-kicker .hero-new{font-size:7px}
  #hero .hero-copy .title-stack{margin:10px 0 0 16px!important;max-width:55vw;position:relative}
  #hero .hero-copy .title-stack h1{
    color:#17191b;
    font-size:clamp(36px,12vw,62px)!important;
    line-height:.94;
    overflow-wrap:anywhere;
    letter-spacing:-.08em;
    margin:0;
  }
  #hero .hero-copy .title-outline{
    font-size:clamp(25px,7.4vw,40px)!important;
    line-height:1;
    -webkit-text-stroke:1.4px #17191b;
    color:transparent;
    white-space:normal;
    overflow-wrap:anywhere;
    max-width:100%;
    margin:4px 0 0;
  }
  #hero .hero-copy .hero-jp{
    color:#17191c;
    font-size:clamp(13px,3.7vw,17px)!important;
    line-height:1.3;
    font-weight:1000;
    margin:9px 0 0 18px!important;
    max-width:53vw;
  }
  #hero .hero-intel{position:static!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important}
  /* Voice floats over the lower legs with no card/opaque backdrop. */
  #hero .hero-voice{
    position:absolute;
    z-index:12;
    bottom:184px;
    left:18px;
    right:93px;
    max-width:300px;
    padding:0 0 0 12px!important;
    border-left:3px solid var(--accent);
    background:transparent;
    pointer-events:none;
    margin:0!important;
  }
  #hero .hero-voice p{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    max-width:none;
    margin:0;
    font:900 clamp(12px,3.35vw,15px)/1.5 var(--jpn);
    letter-spacing:.01em;
    color:white!important;
    text-shadow:1px 1px 2px #121415, -1px -1px 2px #121415, 0 2px 6px #0a0a0adc;
  }
  /* Compact scroll window at the feet. The rest of the composition never grows. */
  #hero .hero-bio{
    position:absolute;
    bottom:0;left:0;right:0;
    margin:0!important;
    height:146px;
    min-height:146px;
    width:100%;
    padding:12px 18px 12px 20px!important;
    background:linear-gradient(110deg,#17191cf3,#202429f6);
    border:0!important;
    border-top:5px solid var(--accent)!important;
    pointer-events:auto;
    color:#f4f4f3;
  }
  #hero .hero-bio:before{content:'INTRODUCTION / 人物紹介';display:block;color:var(--acid);font:950 10px var(--mono);letter-spacing:.1em;margin:0 0 8px}
  #hero .hero-bio p{
    display:block!important;
    color:#f2f2ef!important;
    font:550 12px/1.68 var(--jpn)!important;
    margin:0;
    max-width:none;
    height:89px;
    max-height:89px;
    padding:0 10px 0 0;
    overflow-x:hidden;
    overflow-y:auto!important;
    -webkit-line-clamp:unset!important;
    scrollbar-width:thin;
    scrollbar-color:var(--accent) #ffffff25;
    touch-action:pan-y;
    overscroll-behavior:contain;
    text-shadow:none;
  }
  #hero .hero-copy .hero-cta,
  #hero .hero-copy:has(.hero-intel:not([hidden])) .hero-cta{
    position:absolute!important;
    z-index:13;
    top:auto!important;
    left:auto!important;
    right:14px!important;
    bottom:181px!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    height:68px!important;
    min-height:68px;
    margin:0!important;
    padding:0!important;
    background:var(--accent);
    border:2px solid #161a1a;
    border-radius:50%;
    color:#16191c;
    box-shadow:4px 4px 0 #17191c;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:auto;
    clip-path:none;
    transform:none;
  }
  #hero .hero-cta>span:first-child{display:none!important}
  #hero .hero-cta .cta-arrow{position:static;display:block;background:transparent;border:0;width:auto;height:auto;font-size:28px;line-height:1;color:#17191c;margin:-9px auto 0;transform:none}
  #hero .hero-cta:after{content:'PROFILE';position:absolute;bottom:12px;left:0;right:0;font:900 9px var(--mono);letter-spacing:-.01em;color:#17191c;text-align:center}
  #hero .hero-cta:focus-visible,.mobile-menu-toggle:focus-visible,.mobile-nav-link:focus-visible{outline:3px solid #ffdf4e;outline-offset:3px}
  /* Keep the character selector compact and horizontal, not a second page. */
  .picker{
    display:flex!important;
    flex-wrap:nowrap!important;
    height:108px!important;
    min-height:108px!important;
    max-height:108px!important;
    border-top:4px solid var(--acid);
    overflow:hidden;
  }
  .picker-title{display:none!important}
  .picker-carousel{height:104px!important;max-height:104px;min-width:0;width:auto!important;flex:1 1 auto!important}
  .picker-strip{height:100%!important;width:100%!important;overflow-x:auto!important;scroll-snap-type:x proximity;scrollbar-width:none}
  .picker-strip::-webkit-scrollbar{display:none}
  .person{flex:0 0 151px!important;height:104px!important;min-height:104px!important;max-width:151px;scroll-snap-align:start}
  .person .person-thumb{width:54px!important;min-width:54px;flex:0 0 54px}
  .person .person-data{min-width:0;padding:8px 5px!important;flex:1}
  .person .person-data strong{font-size:11px!important;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .person .person-data small{font-size:8px!important}
  .person .person-no{font-size:8px!important;gap:1px}
  .person .person-selected{font-size:8px!important}
  .picker-nav{display:none!important}
  .picker-edge{display:none!important}
  .footer-bar{display:none!important}
  /* ALL CAST: tiny fixed toolbar plus 3-column image-first browsing. */
  #directory{top:56px!important}
  #directory .directory-head{height:42px!important;min-height:42px!important;padding:0 11px}
  #directory .directory-head .mono{font-size:9px}
  #directory .directory-head .panel-close{font-size:10px;padding:8px 10px}
  #directory .directory-fixed{
    padding:9px 12px 8px!important;
    box-shadow:0 4px 10px #0003;
    background:#202426;
  }
  #directory .directory-heading-row{margin:0;gap:0;align-items:center}
  #directory .directory-heading-row .directory-kicker,#directory .directory-fixed-note{display:none!important}
  #directory .directory-heading-row h2{font:1000 23px/.95 var(--sans)!important;margin:0 0 6px!important;letter-spacing:-.08em}
  #directory .directory-heading-row h2 i{-webkit-text-stroke:1px #fff}
  #directory .mobile-filter-toggle{
    display:flex;
    width:100%;
    min-height:39px;
    justify-content:space-between;
    align-items:center;
    background:#2f3537;
    border:1px solid #697073;
    color:#f4f3ef;
    padding:7px 12px;
    font:950 10px var(--mono);
  }
  #directory .mobile-filter-toggle span{color:var(--acid);font-size:19px;line-height:1}
  #directory .directory-control{display:none!important}
  #directory .directory-control.mobile-filters-open{display:flex!important;flex-wrap:wrap;margin:10px 0 0;padding:0 0 10px;gap:8px}
  #directory .directory-search-label{min-width:100%;height:40px;min-height:40px}
  #directory .directory-search-label input{font-size:12px!important;padding:7px 0}
  #directory .directory-filters{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  #directory .directory-filters button{padding:6px 4px!important;font-size:9px!important;min-height:34px}
  #directory .directory-subtools{padding:5px 0 0!important;min-height:29px;gap:6px}
  #directory .directory-count{font-size:9px}
  #directory .directory-view button{min-height:25px;padding:4px 7px!important;font-size:8px!important}
  #directory #directoryItems.directory-gallery{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    padding:9px 10px 24px!important;
    overflow:auto;
    align-content:start;
  }
  #directory .cast-gallery-card{min-width:0;overflow:hidden}
  #directory .cast-gallery-visual{aspect-ratio:.88!important;min-height:0!important;height:auto!important}
  #directory .cast-gallery-caption{padding:7px 6px 9px!important;min-height:60px;grid-template-columns:1fr;gap:2px}
  #directory .cast-gallery-name{font:950 12px/1.25 var(--jpn);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}
  #directory .cast-gallery-badges{display:none}
  #directory .cast-gallery-caption>small,#directory .cast-gallery-world,#directory .cast-gallery-arrow{display:none!important}
  #directory .cast-gallery-number{font-size:7px;padding:3px 5px}
  #directory #directoryItems.directory-detail{padding:6px 10px 28px}
  /* Avoid a visually fake control on the card backs. */
  #directory .cast-gallery-card:focus-visible{outline:3px solid var(--acid);outline-offset:-3px}
}
@media(max-width:365px){
 #directory #directoryItems.directory-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #hero .hero-voice{right:87px;bottom:182px}
 #hero .hero-copy .title-stack h1{font-size:11vw!important}
}
@media(prefers-reduced-motion:reduce){
 .mobile-nav-drawer,.mobile-menu-toggle span{transition:none!important}
}
@media(max-width:800px){
  /* Keep the title above the collapsed search control in the tight ALL CAST header. */
  #directory .directory-fixed{display:flex;flex-direction:column}
  #directory .directory-heading-row{order:0}
  #directory .mobile-filter-toggle{order:1}
  #directory .directory-control{order:2}
  #directory .directory-subtools{order:3}
  #directory .directory-heading-row h2{margin:0 0 9px!important}
}

/* Visible compact scroll progress, including mobile browsers that hide native bars. */
@media(min-width:801px){#hero .hero-bio{position:relative;font-size:clamp(12px,1.05vw,14px);font-family:var(--jpn);width:min(40ch,100%)}}
#hero .hero-bio p{scrollbar-width:none!important}
#hero .hero-bio p::-webkit-scrollbar{display:none!important}
#hero .intro-scroll-rail{position:absolute;display:block;right:-6px;top:5px;height:min(100px,7.15em);width:3px;background:#969b9944;pointer-events:none}
#hero .intro-scroll-rail[hidden]{display:none!important}
#hero .intro-scroll-rail i{display:block;width:100%;height:25px;background:var(--accent);border-radius:3px;will-change:transform}
@media(max-width:800px){#hero .intro-scroll-rail{right:11px;top:34px;height:87px;width:3px;background:#ffffff3f}}
/* V5.9.9 — Editorial mobile SELECT. Existing PC design is untouched. */
.mobile-quote,.mobile-profile,.mobile-intro,.mobile-picker{display:none}
@media(max-width:800px){
 :root{--mobile-intro-height:124px;--mobile-picker-height:106px}
 #hero.hero{
   height:calc(100svh - 56px - var(--mobile-picker-height))!important;
   min-height:560px!important; max-height:none!important;
   background:#efeee8!important;overflow:hidden;isolation:isolate;
 }
 /* Keep the desktop graphic vocabulary: dark diagonal, accent, grid and rings. */
 #hero .hero-surface{z-index:0!important;background:#f0f0ea!important}
 #hero .hero-accent-slab{
   position:absolute!important;left:0!important;top:0!important;right:0!important;
   width:100%!important;height:100%!important;
   /* Continue the angled accent below INTRODUCTION, preserving the original silhouette above it. */
   clip-path:polygon(87% 0,100% 0,68% calc(100% - var(--mobile-intro-height) + 4px),60% 100%,15% 100%,28% calc(100% - var(--mobile-intro-height) + 4px))!important;
   transform:none!important;opacity:1!important;z-index:1!important;
 }
 #hero .hero-dark-panel{
   position:absolute!important;inset:0!important;z-index:2!important;opacity:1!important;
   background:#121317!important;
   /* Extend the dark surface behind the opaque introduction plate instead of clipping its lower edge. */
   clip-path:polygon(0 0,64% 0,39% calc(100% - var(--mobile-intro-height)),32% 100%,0 100%)!important;
 }
 #hero .hero-pattern{
   position:absolute!important;inset:0!important;z-index:3!important;
   background-image:linear-gradient(90deg,#15171b28 1px,transparent 1px),linear-gradient(#15171b28 1px,transparent 1px)!important;
   background-size:31px 31px!important;
   mask-image:linear-gradient(90deg,#0004 0%,#000b 23%,#000 58%)!important;
   -webkit-mask-image:linear-gradient(90deg,#0004 0%,#000b 23%,#000 58%)!important;
   opacity:.76!important;
   pointer-events:none;
 }
 #hero .hero-pattern:before{
   content:'';position:absolute;inset:0;
   background-image:linear-gradient(90deg,#f7f7f820 1px,transparent 1px),linear-gradient(#f7f7f820 1px,transparent 1px);
   background-size:31px 31px;
   clip-path:polygon(0 0,64% 0,39% calc(100% - var(--mobile-intro-height)),0 calc(100% - var(--mobile-intro-height)));
   mask-image:linear-gradient(90deg,#0008,transparent 62%);
   -webkit-mask-image:linear-gradient(90deg,#0008,transparent 62%);
 }
 #hero .hero-circles{
   display:block!important;position:absolute!important;
   left:-60px!important;right:auto!important;top:auto!important;
   bottom:calc(var(--mobile-intro-height) - 165px)!important;
   width:395px!important;height:395px!important;max-width:none!important;
   opacity:.38!important;z-index:3!important;transform:rotate(-15deg)!important;
 }
 #hero .hero-circles span{border-color:#72777a84!important}
 #hero .hero-circles span:nth-child(3){border-style:dashed!important}
 #hero .hero-angle,#hero .hero-accent-rail,#hero .hero-palette-stripe,#hero .hero-crosshair{display:none!important}
 #hero .hero-ghostname{opacity:.05!important;right:0!important;bottom:33%!important;z-index:3!important}
 #hero .hero-no{opacity:.09!important;right:-8%!important;top:27%!important;z-index:3!important}
 #hero .hero-copy{
   position:absolute!important;inset:0!important;top:0!important;bottom:0!important;
   left:0!important;right:0!important;width:100%!important;height:100%!important;
   z-index:4!important;pointer-events:none!important;
   background:none!important;opacity:1!important;transform:none!important;
 }
 #hero .intro-kicker{margin:19px 0 0 15px!important;gap:7px!important;font-size:8px!important;color:#c7c7c3!important}
 #hero .kicker-stroke{width:25px!important;height:3px!important}
 #hero .hero-copy .title-stack{
   margin:35px 0 0 13px!important;max-width:calc(100vw - 16px)!important;
   position:relative!important;z-index:auto!important;
 }
 #hero .hero-copy .title-stack h1{
   font:1000 clamp(55px,16.6vw,83px)/.86 var(--sans)!important;
   letter-spacing:-.075em!important;color:#f8f8f4!important;
   text-shadow:0 2px 0 #16161918!important;overflow-wrap:normal!important;
   white-space:nowrap!important;
 }
 #hero .hero-copy .title-outline{
   color:transparent!important;-webkit-text-stroke:1.6px #f8f8f4!important;
   font:1000 clamp(43px,12.1vw,61px)/.94 var(--sans)!important;
   letter-spacing:-.065em!important;white-space:nowrap!important;
   overflow-wrap:normal!important;max-width:calc(100vw - 12px)!important;
   margin-top:2px!important;
 }
 #hero .hero-copy .hero-jp{display:none!important}
 #hero .hero-copy .hero-voice,#hero .hero-copy .hero-bio,#hero .hero-copy .hero-cta{display:none!important}
 #hero.hero .hero-art-wrap,#hero.hero.theme-orphe .hero-art-wrap,
 #hero.hero.theme-rov .hero-art-wrap,#hero.hero.theme-unnamed .hero-art-wrap{
   position:absolute!important;left:52%!important;right:auto!important;
   bottom:calc(var(--mobile-intro-height) - 17px)!important;top:auto!important;
   width:109%!important;height:min(74%,545px)!important;
   transform:translateX(-50%)!important;transform-origin:center bottom!important;
   z-index:6!important;pointer-events:none!important;filter:none!important;
 }
 #hero .hero-art{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;filter:drop-shadow(10px 9px 0 #1a1b1d19)!important}
 #hero .hero-art-stamp{display:none!important}
 #hero .mobile-quote{
   display:block;position:absolute;z-index:10;right:16px;
   bottom:calc(var(--mobile-intro-height) + 77px);
   width:max-content;max-width:min(64%,260px);
   padding:8px 12px 9px 23px;
   color:#f8f8f4;text-align:left;
   filter:drop-shadow(1px 3px 1px #0002);pointer-events:none;
 }
 #hero .mobile-quote:before{
   content:'';position:absolute;inset:0;z-index:-1;
   background:linear-gradient(110deg,transparent 0%,#15161bce 25%,#15161be5 72%,#15161bd1 100%);
   clip-path:polygon(9% 0,100% 0,100% 100%,0 100%);
 }
 #hero .mobile-quote-name{font:900 11px/1.25 var(--jpn);letter-spacing:.04em;display:flex;align-items:center;gap:7px;text-align:left;white-space:nowrap}
 #hero .mobile-quote-name:before{content:'';display:block;flex:0 0 15px;height:2px;background:var(--accent)}
 #hero .mobile-quote p{
   margin:5px 0 0;font:800 clamp(11px,3.15vw,13px)/1.5 var(--jpn);
   text-align:left;white-space:pre-line;overflow-wrap:anywhere;
   display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
 }
 #hero .mobile-quote.no-quote{max-width:73%;min-width:0;bottom:calc(var(--mobile-intro-height) + 85px);padding-top:11px;padding-bottom:11px}
 #hero .mobile-quote.no-quote p{display:none}
 #hero .mobile-profile{
   display:flex;position:absolute;z-index:11;right:17px;
   bottom:calc(var(--mobile-intro-height) + 24px);
   width:124px;height:38px;min-width:0;min-height:38px;
   padding:0;align-items:stretch;justify-content:space-between;
   transform:skewX(-10deg);border:1px solid #18191b;
   background:#f1f0e9;color:#111;
   box-shadow:3px 3px 0 var(--accent);overflow:hidden;
 }
 #hero .mobile-profile-label{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;flex:1;min-width:0;text-align:left;padding:0 6px 0 12px;transform:skewX(10deg)}
 #hero .mobile-profile-label small{font:850 6.5px/1 var(--mono);letter-spacing:.05em;color:#68696c}
 #hero .mobile-profile-label strong{font:1000 12px/1 var(--sans);letter-spacing:-.01em;color:#171719}
 #hero .mobile-profile-arrow{display:grid;place-items:center;flex:0 0 31px;background:#17181b;color:var(--accent);font:900 22px/1 var(--sans)}
 #hero .mobile-profile:focus-visible{outline:3px solid var(--acid);outline-offset:4px}
 #hero .mobile-profile:active{transform:skewX(-10deg) translate(2px,2px);box-shadow:1px 1px 0 var(--accent)}
 #hero .mobile-intro{
   display:block;position:absolute;z-index:9;left:0;right:0;bottom:0;
   height:var(--mobile-intro-height);box-sizing:border-box;
   padding:16px 17px 12px;background:linear-gradient(to bottom,transparent 0 11px,#151619 11px);
   color:#f5f5f0;overflow:visible;
 }
 #hero .mobile-intro:before{content:'';position:absolute;top:11px;left:0;right:0;border-top:4px solid var(--accent);box-shadow:0 2px 0 #ffffff1c}
 #hero .mobile-intro-head{position:relative;display:flex;justify-content:space-between;align-items:center;padding:0 1px 0 0;margin:4px 0 9px;font:850 9px/1.1 var(--mono);letter-spacing:.09em}
 #hero .mobile-intro-head small{font:750 8px/1.1 var(--mono);color:var(--accent);letter-spacing:.02em}
 #hero .mobile-intro-reading{position:relative;height:calc(100% - 27px);border-left:2px solid var(--accent);padding:0 8px 0 12px}
 #hero .mobile-intro-text{
   position:relative;margin:0;padding:0 8px 1px 0;max-width:none;
   height:100%;color:#f3f3ee;font:550 11.2px/1.7 var(--jpn);
   white-space:pre-line;overflow-x:hidden;overflow-y:auto;
   scrollbar-width:none;-webkit-overflow-scrolling:touch;
   touch-action:pan-y;overscroll-behavior:contain;
 }
 #hero .mobile-intro-text::-webkit-scrollbar{display:none}
 #hero .mobile-intro-track{position:absolute;right:10px;top:0;width:2px;height:100%;background:#5c6063;pointer-events:none}
 #hero .mobile-intro-track[hidden]{display:none!important}
 #hero .mobile-intro-track i{display:block;width:2px;background:var(--accent);height:27px;will-change:transform}
 /* Low-profile selector rail: 3–4 black-framed diagonal crops and quiet controls. */
 .picker{display:none!important}
 .mobile-picker{
   display:flex;flex-direction:column;height:var(--mobile-picker-height);
   min-height:var(--mobile-picker-height);position:relative;z-index:12;
   border-top:1px solid #5c5e60;background:#151619;
   padding:10px 14px 9px;gap:7px;
 }
 .mobile-picker-row{height:57px;min-height:57px;display:flex;align-items:center;gap:13px;justify-content:space-between}
 .mobile-picker-arrow{display:grid;place-items:center;flex:0 0 30px;width:30px;height:39px;border:1px solid #4e5054;border-radius:2px;background:#202124;color:#f2f1ec;font:600 20px var(--sans);padding:0}
 .mobile-picker-arrow:hover,.mobile-picker-arrow:focus-visible{color:var(--acid);border-color:var(--acid)}
 .mobile-portrait-viewport{flex:1;min-width:0;height:57px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
 .mobile-portrait-viewport::-webkit-scrollbar{display:none}
 .mobile-portrait-track{display:flex;align-items:center;gap:7px;height:57px;width:max-content;margin:0 auto}
 .mobile-portrait{position:relative;flex:0 0 53px;width:53px;height:54px;cursor:pointer;border:0;padding:3px;background:#090a0c;clip-path:polygon(13% 0,100% 0,87% 100%,0 100%);scroll-snap-align:center;transition:transform .18s}
 .mobile-portrait>span{display:block;width:100%;height:100%;position:relative;overflow:hidden;clip-path:polygon(13% 0,100% 0,87% 100%,0 100%);background:#26292c}
 .mobile-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:var(--crop-x,50%) var(--crop-y,30%)!important;transform:scale(var(--crop-zoom,1))!important;transform-origin:var(--crop-x,50%) var(--crop-y,50%)!important;display:block}
 .mobile-portrait[aria-selected=true]{background:var(--portrait-accent);transform:translateY(-1px);height:56px}
 .mobile-portrait:not([aria-selected=true]) img{filter:saturate(.8) brightness(.78)}
 .mobile-portrait:focus-visible{outline:2px solid var(--acid);outline-offset:2px}
 .mobile-picker-foot{display:flex;align-items:center;justify-content:space-between;min-height:19px;padding:0 1px;font:800 9px/1 var(--mono);color:#aeb1af;letter-spacing:.07em}
 .mobile-picker-foot button{border:0;background:none;color:#e4f951;font:900 10px/1 var(--mono);padding:4px 6px;letter-spacing:.03em}
 .mobile-picker-foot button span{color:#f6f6f1;margin:0 3px}
 .mobile-nav-drawer .mobile-motion{margin:14px 18px 10px!important;min-height:41px!important}
 .mobile-social{margin-top:auto;padding:14px 18px max(19px,env(safe-area-inset-bottom));border-top:1px solid #424648;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#979b9d}
 .mobile-social>small{font:800 9px/1.4 var(--mono);letter-spacing:.06em}
 .mobile-social-links{display:flex;align-items:center;gap:9px}
 .mobile-social-links a{display:flex;align-items:center;justify-content:center;min-width:43px;height:38px;text-decoration:none;border:1px solid #626668;color:#fff;font:900 15px var(--mono);background:#222528}
 .mobile-social-links a:nth-child(2){color:var(--acid);font-size:12px}
 .mobile-social-links a:focus-visible{outline:2px solid var(--acid);outline-offset:3px}
}
@media(max-width:375px){
 :root{--mobile-intro-height:119px;--mobile-picker-height:99px}
 #hero .mobile-quote{right:11px;max-width:70%;bottom:calc(var(--mobile-intro-height) + 76px)}
 #hero .mobile-profile{right:13px;bottom:calc(var(--mobile-intro-height) + 22px);width:119px;height:36px;min-height:36px}
 #hero .hero-copy .title-stack h1{font-size:16vw!important}
 .mobile-picker{padding-left:10px;padding-right:10px}
 .mobile-picker-row{gap:9px}
 .mobile-portrait{flex-basis:48px;width:48px}
}
@media(prefers-reduced-motion:reduce){.mobile-portrait{transition:none!important}}

/* V15.2: mobile now uses all four character palette channels.
   Accent/diagonal, deep/black field, soft/paper, bright/UI rules. */
@media(max-width:800px){
 #hero.hero{background:var(--soft,#f0f0ea)!important}
 #hero .hero-surface{background:var(--soft,#f0f0ea)!important}
 #hero .hero-dark-panel{background:var(--deep,#121317)!important}
 #hero .hero-accent-slab{background:var(--accent,#f00)!important}
 #hero .hero-pattern{
  background-image:linear-gradient(90deg,color-mix(in srgb,var(--bright,#fff) 17%,transparent) 1px,transparent 1px),
    linear-gradient(color-mix(in srgb,var(--bright,#fff) 17%,transparent) 1px,transparent 1px)!important;
 }
 #hero .hero-circles span{border-color:color-mix(in srgb,var(--bright,#fff) 32%,transparent)!important}
 #hero .mobile-intro{background:linear-gradient(to bottom,transparent 0 11px,var(--deep,#151619) 11px)!important}
 #hero .mobile-intro:before{border-top-color:var(--bright,#eaff54)!important;box-shadow:0 2px 0 color-mix(in srgb,var(--accent,#f00) 45%,transparent)!important}
 #hero .mobile-intro-reading{border-left-color:var(--accent,#f00)!important}
 #hero .mobile-intro-track i{background:var(--bright,#eaff54)!important}
 #hero .mobile-quote-name:before{background:var(--bright,#eaff54)!important}
 #hero .mobile-profile{box-shadow:3px 3px 0 var(--deep,#151619)!important}
 #hero .mobile-profile-arrow{color:var(--bright,#eaff54)!important}
 .mobile-picker{border-top-color:var(--bright,#eaff54)!important}
 .mobile-portrait[aria-selected=true]{background:var(--accent,#f00)!important}
}
