/* Phone (max 760px) and tablet (761px to 1100px) polish for this page. Media queries only, loaded last: desktop above 1100px is untouched. */
/* ==== Shared phone and tablet rules (same block on every page) ==== */
@media (max-width:760px){
  /* running text: left aligned on phones, justified columns this narrow open wide gaps between words */
  body.justify-intro .intro-tile .lead,body.justify-intro .intro-tile .twocol p,body.justify-intro .intro-tile .based,
  body.justify-intro .svc .tagline,body.justify-intro .svc .body,body.justify-intro .train-band .tagline,body.justify-intro .train-band .body,
  body.justify-intro .post p:not(.cat),.split .body,.split .tagline,.tile p:not(.mono):not(.cat),
  .jp,.jus,.box p,.faq3 p,.qa3 p,.prose p,.prose li,.post .ex,.feat .ex,.art-ex,.ct-lead,.intro-p,
  .scene-hero .sc-lead,.scene-hero .sc-where,
  .index-intro .lead,.index-intro p,.shoot-head .lead,.mdl-body,.dir-body,.wa-lead,.wa-p,.g-list p,.design-head .lead,.design-paras p,
  .blog-card p,.cal-note p,.cp-head p,.more-tile p,.tp-body p,.sam-body,.relic-head p,.robo p{text-align:left!important}

  /* scene header: the animation shows in full at the top, its last glow fades into the black under the words */
  .scene-hero::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 450px,#000 512px,#000 100%)}
  .scene-hero .sc-in{padding-top:500px}

  /* contact: the form comes first under the #contact anchor; the camera eye follows as a shorter closing image */
  body.contact-tiles .contact .formhalf{order:-1}
  body.contact-tiles .contact .cam{height:300px}
  .formhalf .h2 + form{margin-top:28px}
}

@media (min-width:761px) and (max-width:1100px){
  .wrap{padding:0 32px}
  .sh{column-gap:20px}
  .sh h2{font-size:52px}
  /* scene header: as on phones, the whole animation shows across the top (the 1440 x 760 still at full width)
     and the words start below it on black, so nothing covers the subject */
  .scene-hero{display:block;min-height:0;background-size:100% auto;background-position:center top}
  .scene-hero::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) calc(52.78vw - 80px),#000 calc(52.78vw - 4px),#000 100%)}
  .scene-hero .sc-in{padding:calc(52.78vw - 24px) 48px 64px}
  .scene-hero .sc-in > *{max-width:640px}
  .scene-hero h1{font-size:44px;max-width:640px}

  /* blog: lead post across the top, two below */
  .posts{grid-template-columns:1fr 1fr}
  .posts .lead-post{grid-column:1/-1}
  body.paper .lead-post h3{font-size:34px}

  /* contact: narrower camera eye, single-column form */
  body.contact-tiles .contact{padding:0 32px;gap:16px;grid-template-columns:5fr 7fr}
  .contact{min-height:0}
  .formhalf.pad{padding:52px 44px}
  .formhalf .h2{font-size:48px}
  .frow{grid-template-columns:1fr;gap:0}
  .send{flex-wrap:wrap;gap:18px 28px}

  /* four-step process rows: two by two */
  .steps{grid-template-columns:1fr 1fr;row-gap:36px}

  /* footer */
  .foot-top{grid-template-columns:1fr;gap:30px}
  .foot-right{align-items:flex-start}
  .foot-links{justify-content:flex-start}
}

/* ==== Concepts ==== */
@media (min-width:761px) and (max-width:1100px){
  /* samurai series: the copy above the fifteen directions, the strip in three rows of five */
  .sam-card{grid-template-columns:1fr;gap:36px;padding:48px 48px}
  .sam-card h2{font-size:48px}
  .sam-strip{grid-template-columns:repeat(5,1fr);gap:10px;margin-top:8px}
  .sam-strip button{aspect-ratio:4/5}

  .relic-head{display:block}
  .relic-head h2{font-size:52px;margin-bottom:20px}
  .relic-head p{max-width:640px}

  .gal figcaption{flex-direction:column;gap:4px}
  .gal figcaption b{font-size:20px}

  .music-tile{grid-template-columns:1fr;gap:16px}
  .land-copy{left:40px;max-width:400px}
  .land-copy h3{font-size:36px}

  .red-band{grid-template-columns:1fr;gap:28px;padding:56px 52px 60px}
  .rb-line{font-size:56px}
}

/* ==== Shorter phone layout (4 Oct): swipe rows for repeated cards and image sets, tighter rhythm. Phones only. ==== */
@media (max-width:760px){
  /* swipe row: the same style on every page. Cards are 82% of the screen so the next one peeks in,
     snapping to the 20px gutter; the row bleeds to the screen edges and hides its scrollbar */
  .sam-pair,.relic-story,.gal-pair{
    display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 20px;
    margin-left:-20px;margin-right:-20px;padding:0 20px 2px;scrollbar-width:none;overscroll-behavior-x:contain}
  .sam-pair::-webkit-scrollbar,.relic-story::-webkit-scrollbar,.gal-pair::-webkit-scrollbar{display:none}
  .sam-pair > *,.relic-story > *,.gal-pair > *{flex:0 0 82vw;max-width:82vw;scroll-snap-align:start;min-width:0}

  /* tighter section rhythm */
  body.paper .sec{padding-top:56px}
  .sh,body.paper .sh{margin-bottom:24px}

  /* 01 samurai series: the stage and the chime door share one swipe row at the top; the fifteen thumbnails
     run as one swipe strip under it; the fifteen directions swipe in two rows inside the card */
  .sam-pair{order:1;align-items:flex-start}
  .sam-pair .sam-fig,.sam-pair .chime-tile{order:0;margin:0}
  .sam-pair .sam-stage,.sam-pair .chime-media{aspect-ratio:2/3}
  .sam-strip{order:2;display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 20px;
    margin:4px -20px 0;padding:0 20px 2px;scrollbar-width:none;overscroll-behavior-x:contain}
  .sam-strip::-webkit-scrollbar{display:none}
  .sam-strip button{flex:0 0 60px;scroll-snap-align:start}
  .sam-card{order:3}
  .sam-copy{margin-bottom:22px}
  .sam-dirs{grid-template-columns:none;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:50%;column-gap:14px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 22px;margin:0 -22px;padding:0 22px;
    scrollbar-width:none;overscroll-behavior-x:contain}
  .sam-dirs::-webkit-scrollbar{display:none}
  .sam-dirs li{scroll-snap-align:start}
  .sam-dirs button{min-height:40px}
  .sam-card{padding:26px 22px 26px}
  /* the chime door's sound switch sits beside its caption, as on desktop */
  .sam-pair .chime-tile figcaption{flex-direction:row;align-items:flex-start;gap:14px;margin-top:12px}

  /* 02 the relic: the two story stills swipe */
  .relic-story{margin-top:28px;gap:12px}
  .relic-sec .relic-hero{margin:24px 0 12px}
  .relic-band{padding:52px 0 56px}

  /* 03 posters, brands and illustration: each pair swipes */
  .gal-pair + .gal-pair{margin-top:24px}
  .gal-w{margin-top:24px}
  .music-tile{margin-top:24px}

  /* 04 creative AI: the closing statement a size smaller */
  .rb-line{font-size:38px}
  .red-band{gap:22px}

  /* contact: shorter closing camera eye; name and email side by side */
  body.contact-tiles .contact .cam{height:200px}
  .formhalf .h2 + form{margin-top:22px}
  .formhalf .frow{grid-template-columns:1fr 1fr;gap:14px}
}
