/* Mobile reading layer for Services, Collection, Contact and the three case studies.
   Loaded last on these six pages only. Desktop and document source art stay intact. */
@media (max-width:800px){
  html{scroll-padding-top:82px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .site-header{padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right))}
  .header-cta,.menu-toggle{flex-shrink:0;min-height:44px}
  .mobile-nav{padding-bottom:max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain}
  body.internal-menu-open{overflow:hidden}
  .mobile-nav a{overflow-wrap:anywhere}
  .services-page .services-motion-toggle,.portfolio-page .portfolio-motion{min-height:44px;font-size:11px;line-height:1.5}
  .wadi-page .case-topbar .portfolio-motion,.syad-page .case-topbar .portfolio-motion{min-height:44px;font-size:11px;width:auto;padding:10px 0;margin-left:auto}
  .services-page .story-chapter-nav,.portfolio-page .case-index{background:var(--white);backdrop-filter:none}
  .services-page .chapter-nav-inner,.portfolio-page .case-index>div{
    display:flex;gap:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#a9624355 transparent;
    padding-inline:max(18px,env(safe-area-inset-left));scroll-padding-inline:18px;max-width:100%;
  }
  .services-page .chapter-nav-inner a,.portfolio-page .case-index a{
    flex:1 0 auto;min-width:110px;min-height:62px;padding:11px 16px 11px 0;gap:6px;flex-direction:column;align-items:flex-start;justify-content:center;scroll-snap-align:start;
    font-size:12px;line-height:1.4;white-space:nowrap;
  }
  .portfolio-page .case-index a{font-size:10px}
  .services-page .chapter-nav-inner a>span{font-size:10px}
  .portfolio-page .case-index a>span{font-size:12px;line-height:1.4}
  .services-page .chapter-nav-inner a:focus-visible,.portfolio-page .case-index a:focus-visible{outline-offset:-4px}
  .story-act,[data-case-chapter],#brand-book,#strategie-marketing{scroll-margin-top:84px}
  .services-page .services-footer>a:last-child{display:flex;align-items:center;min-height:44px}
  .portfolio-page .case-topbar{flex-wrap:wrap}
  .portfolio-page .case-topbar>a,.wadi-page .wadi-book-quick{font-size:13px;min-height:44px}
  .portfolio-page .button,.services-page .services-contact-action .button{min-height:52px;font-size:14px;line-height:1.5}
  .portfolio-page .book-proof-layout>*,.portfolio-page .strategy-proof-layout>*,.portfolio-page .syad-book-layout>*,.portfolio-page .wadi-book-entry>*{min-width:0}
  /* Native modals fit the visible phone window, including landscape and safe areas. */
  .portfolio-page :is(.brandbook-dialog,.strategy-dialog,.wadi-book-dialog,.syad-book-dialog){
    width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;padding:0;border:0;overflow:hidden;
  }
  .portfolio-page :is(.brandbook-dialog,.strategy-dialog,.wadi-book-dialog,.syad-book-dialog)[open]{grid-template-rows:auto minmax(0,1fr)}
  .portfolio-page :is(.brandbook-dialog-bar,.strategy-dialog-bar,.wadi-book-dialog>header,.syad-book-dialog>header){
    min-height:56px;padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));gap:12px;
  }
  .portfolio-page :is(.brandbook-dialog-bar,.strategy-dialog-bar,.wadi-book-dialog>header,.syad-book-dialog>header) h2{font:500 12px/1.5 var(--sans);letter-spacing:.025em;min-width:0}
  .portfolio-page :is(.brandbook-dialog-bar,.strategy-dialog-bar,.wadi-book-dialog>header,.syad-book-dialog>header) h2 span{font-size:10px;line-height:1.5}
  .portfolio-page :is(.brandbook-dialog-bar,.strategy-dialog-bar,.wadi-book-dialog>header,.syad-book-dialog>header) button{min-height:44px;min-width:44px;flex-shrink:0}
  .portfolio-page :is(.brandbook-dialog,.strategy-dialog,.wadi-book-dialog,.syad-book-dialog) iframe{min-height:0;min-width:0;display:block}
}
@media (max-width:600px){
  /* Primary reading text: 15–16px, not scaled-down desktop captions. */
  .services-page :is(.services-intro-note p,.service-benefit,.services-scope p){font-size:16px;line-height:1.7}
  .services-page :is(.services-intro .eyebrow,.service-number,.act-pivot,.expertise-signature .micro-label){font-size:11px;line-height:1.7;letter-spacing:.025em}
  .services-page .intro-bottomline{font-size:10px;line-height:1.7;flex-wrap:wrap;gap:6px 15px}
  .services-page .services-intro-note .underlined-link,.services-page .service-text-link{font-size:14px;min-height:48px}
  .services-page .expertise-signature h3{font-size:17px;line-height:1.5}
  .services-page .expertise-signature>p{font-family:var(--sans);font-size:13px;line-height:1.7}
  .services-page .vision-scene-top{font-size:9px;line-height:1.6;gap:18px}
  .services-page .vision-scene figcaption>span{font-size:16px}
  .services-page .vision-scene figcaption small,.services-page .story-scene figcaption{font-size:11px;line-height:1.5;letter-spacing:0}
  .services-page .story-scene figcaption>span{font-size:10px}
  .services-page .services-contact-action>p,.services-page .services-footer p{font-size:11px;line-height:1.7}
  /* Labels around covers are readable; original artwork and mockup typography are untouched. */
  .collection-page :is(.portfolio-topline .eyebrow,.collection-jump,.collection-register){font-size:10px;line-height:1.7}
  .collection-page .collection-register{flex-wrap:wrap;gap:8px 14px}
  .collection-page .collection-register>span:last-child{font-size:10px;max-width:none;text-align:left}
  .collection-page .collection-heading>p{font-size:16px;line-height:1.7}
  .collection-page .cover-masthead{font-size:9px;line-height:1.65;letter-spacing:.04em}
  .collection-page .cover-masthead>span:last-child{max-width:120px}
  .collection-page .cover-chapter{font-size:9px;line-height:1.7;letter-spacing:.07em}
  .collection-page .cover-bottom-note{font-size:10px;line-height:1.6;letter-spacing:.035em}
  .collection-page .cover-bottom{gap:15px}
  .collection-page .cover-cta,.collection-page .syad-collection-cta{font-size:14px;min-height:48px}
  .collection-page .project-caption>div{min-width:0;align-items:baseline}
  .collection-page .project-caption p,.collection-page .project-caption h2{font-size:19px;line-height:1.5}
  .collection-page .project-caption p>span,.collection-page .project-caption h2>span{font-size:13px;display:block;margin:3px 0 0}
  .collection-page .project-caption li{font-size:10px;line-height:1.5;padding:8px 10px}
  .collection-page .collection-endnote p{font-size:15px;line-height:1.7}
  .portfolio-page :is(.portfolio-footer>p,.case-section-heading>span,.wadi-section-label>span,.syad-section-line>span){font-size:10px;line-height:1.7}
  .portfolio-page :is(.case-section-heading .eyebrow,.wadi-section-label .eyebrow,.syad-section-line .eyebrow){font-size:11px;line-height:1.7}
  .portfolio-page :is(.case-intention-layout>div>p,.identity-copy>p:not(.eyebrow),.book-proof-copy>p:not(.eyebrow),.wadi-intention>div,.wadi-identity-copy>p:not(.wadi-fineprint):not(.wadi-control-label),.wadi-section-heading>p,.wadi-book-description>p:not(.eyebrow):not(.wadi-book-features),.syad-heading>div,.syad-identity-copy>p,.syad-book-copy>p:not(.syad-book-hint),.syad-principles p,.wadi-principles p){font-size:16px;line-height:1.75}
  .portfolio-page :is(.case-intention-layout .case-idea,.case-facts dd,.wadi-facts dd,.syad-facts dd){font-size:14px;line-height:1.6}
  .portfolio-page :is(.case-facts dt,.wadi-facts dt,.syad-facts dt){font-size:10px;line-height:1.6}
  .portfolio-page :is(.case-facts,.wadi-facts,.syad-facts)>div{min-width:0;overflow-wrap:anywhere}
  .yashudd-story-page :is(.palette-switch button>span,.wadi-control-label){font-size:12px}
  .yashudd-story-page .palette-switch small,.wadi-page .wadi-palette small,.syad-page .syad-palette small{font-size:10px;line-height:1.6}
  .yashudd-story-page .palette-switch button{min-width:0;flex:1 1 0;padding:10px 8px;gap:8px}
  .yashudd-story-page :is(.identity-specimen figcaption,.type-panel>div){font-size:9px;line-height:1.6;flex-wrap:wrap;gap:7px}
  .yashudd-story-page .type-panel>small{font-size:12px;line-height:1.6}
  .yashudd-story-page .yashudd-dossier-documents>a>span{font-size:10px;line-height:1.6}
  .yashudd-story-page .yashudd-dossier-documents>a>strong{font-size:18px;line-height:1.4}
  .yashudd-story-page .yashudd-dossier-documents>a>small{font-size:13px;line-height:1.6}
  .yashudd-story-page .yashudd-dossier-documents>p{font-size:14px}
  .yashudd-story-page .strategy-proof-copy>p:not(.strategy-reading-hint){font-size:15px;line-height:1.75}
  .yashudd-story-page .strategy-scope li{font-size:14px;line-height:1.6}
  .yashudd-story-page .strategy-proof-copy .button{font-size:14px;min-height:52px;white-space:normal}
  .yashudd-story-page .strategy-readable-link{font-size:13px;min-height:48px}
  .yashudd-story-page .strategy-chapter-shortcuts>a{grid-template-columns:82px minmax(0,1fr) 20px;gap:10px}
  .yashudd-story-page .strategy-chapter-shortcuts>a>span:first-child{font-size:10px;line-height:1.6}
  .yashudd-story-page .strategy-chapter-shortcuts strong{font-size:15px;line-height:1.5}
  .yashudd-story-page :is(.strategy-reading-hint,.strategy-status){font-size:10px;line-height:1.7}
  .yashudd-story-page :is(.strategy-planning-note,.visual-disclaimer,.applications-note,.marketing-note){font:400 12px/1.8 var(--sans)}
  .yashudd-story-page .book-proof-copy>.book-proof-note{font:400 12px/1.8 var(--sans)!important}
  .yashudd-story-page :is(.visual-story-heading>p,.visual-story-controls>p,.content-study figcaption>p,.case-closing-note){font-size:15px;line-height:1.75}
  .yashudd-story-page :is(.study-label,.visual-study-badge,.content-study figcaption>small,.closing-meeting-note){font-size:10px;line-height:1.7}
  .yashudd-story-page :is(.strategy-to-content,.marketing-path){flex-wrap:wrap;font-size:12px;line-height:1.6}
  .yashudd-story-page #marketing .campaign-stage:has(video) .campaign-concept-label{font-size:9px;line-height:1.5;max-width:calc(100% - 16px)}
  .wadi-page .case-topbar>span{display:flex;order:3;width:100%;align-items:center;justify-content:space-between;gap:12px;font-size:10px}
  .wadi-page .wadi-book-quick{margin-left:0}
  .wadi-page :is(.wadi-overline,.wadi-opening-meta,.wadi-enter){font-size:10px;line-height:1.7;letter-spacing:.04em}
  .wadi-page :is(.wadi-landscape figcaption,.wadi-specimen figcaption,.wadi-type-pair small,.wadi-scene-footer>span,.wadi-book-features){font-size:10px;line-height:1.7}
  .wadi-page .wadi-landscape figcaption{flex-wrap:wrap;gap:5px 15px}
  .wadi-page :is(.wadi-fineprint,.wadi-document-note,.wadi-scene-footer>p,.wadi-synthesis-bottom>p){font:400 13px/1.75 var(--sans)}
  .wadi-page .wadi-chapter-list summary{min-height:60px;gap:12px;grid-template-columns:48px minmax(0,1fr) 20px}
  .wadi-page .wadi-chapter-list summary small{font-size:12px;line-height:1.6}
  .wadi-page .wadi-chapter-list details>p{font-size:15px;line-height:1.75}
  .wadi-page :is(.wadi-book-direct,.wadi-text-link){font-size:14px;min-height:48px}
  .wadi-page .wadi-book-entry{padding:24px 20px}
  .syad-page :is(.syad-type-study>span,.syad-type-study figcaption,.syad-manifesto>span:first-child,.syad-book-shortcuts>a>span:first-child){font-size:10px;line-height:1.6}
  .syad-page :is(.syad-book-hint,.syad-book-number>span){font-size:11px;line-height:1.7}
  .syad-page :is(.syad-text-link,.syad-reader-direct,.syad-project-nav a,.syad-architecture figcaption a){font-size:14px;min-height:48px}
  .syad-page .syad-source-note>p{font-size:13px;line-height:1.8}
  .syad-page .syad-source-note summary{font-size:14px;line-height:1.6;min-height:54px}
  .syad-page .syad-architecture figcaption{font-size:10px;line-height:1.7;flex-wrap:wrap}
  .contact-page :is(.contact-kicker .eyebrow,.contact-kicker>span,.appointment-heading p,.email-intro .eyebrow,.appointment-footnote){font-size:10px;line-height:1.7;letter-spacing:.025em}
  .contact-page :is(.contact-introduction,.contact-invitation,.appointment-copy,.email-intro>p:last-child){font-size:15px;line-height:1.75}
  .contact-page .appointment-button{font-size:15px;min-height:54px}
  .contact-page .copy-email,.contact-page #copy-status{font-size:12px;line-height:1.6}
}
@media(max-width:480px){
  .yashudd-story-page .yashudd-dossier-documents{grid-template-columns:minmax(0,1fr);gap:12px}
  .yashudd-story-page .yashudd-dossier-documents>a{padding:18px 20px;gap:7px}
}
@media(max-width:360px){
  .site-header{gap:8px}.site-header .header-cta{gap:10px;font-size:11px;padding-inline:10px}.site-header .brand{width:110px}
  .services-page .services-intro h1{font-size:clamp(37px,11.5vw,42px)}
  .contact-page .contact-kicker>span{display:none}
  .yashudd-story-page .strategy-chapter-shortcuts>a{grid-template-columns:minmax(0,1fr) 20px;gap:6px 10px}
  .yashudd-story-page .strategy-chapter-shortcuts>a>span:first-child{grid-column:1/-1}
  .portfolio-page .case-facts,.wadi-page .wadi-facts,.syad-page .syad-facts{column-gap:12px}
}
@media(hover:none) and (pointer:coarse){
  .portfolio-page .project-cover,.portfolio-page .case-opening,.syad-opening,.syad-collection-cover{view-transition-name:none}
  .story-chapter-nav,.case-index{backdrop-filter:none}
}
