/* 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}
}

/* ==== Creative AI ==== */
@media (max-width:760px){
  /* AI photoshoots: the mosaic rows regrid into a two-column gallery (wide shots full width, portraits in pairs) */
  #shoots .mosaic{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #shoots .m-row{display:contents!important}
  #shoots .m-row figure{width:auto!important;flex:none;margin:0;aspect-ratio:4/5;border-radius:12px}
  #shoots .m-row:nth-child(1) figure:nth-child(2){order:1;grid-column:1/-1;aspect-ratio:var(--ar)}
  #shoots .m-row:nth-child(1) figure:nth-child(1){order:2}
  #shoots .m-row:nth-child(2) figure:nth-child(2){order:3}
  #shoots .m-row:nth-child(2) figure:nth-child(1){order:4;grid-column:1/-1;aspect-ratio:var(--ar)}
  #shoots .m-row:nth-child(2) figure:nth-child(3){order:5}
  #shoots .m-row:nth-child(2) figure:nth-child(4){order:6}
  #shoots .mosaic .m-h{order:7;grid-column:1/-1;margin:18px 0 0}
  #shoots .m-row:nth-child(4) figure:nth-child(1){order:8;grid-column:1/-1}
  #shoots .m-row:nth-child(4) figure:nth-child(2){order:9}
  #shoots .m-row:nth-child(4) figure:nth-child(3){order:10}

  /* writing and agents: the two tiles share one rhythm */
  .flow-kick{margin:20px 0 24px}
}
@media (min-width:761px) and (max-width:1100px){
  .index-tile{grid-template-columns:1fr;gap:40px;padding:48px 48px}
  .index-list{align-self:start}
  .specs{grid-template-columns:1fr 1fr}
  .cal-row{grid-template-columns:1fr;gap:28px}
  .cal-note{max-width:620px}
  .shoot-head{grid-template-columns:1fr;gap:28px}
  .rows li{grid-template-columns:220px 1fr}
  .red-in{grid-template-columns:1fr;gap:28px}
  .red-line{font-size:48px}
  .models{grid-template-columns:1fr;gap:36px}
  .brand-cols{grid-template-columns:repeat(3,1fr);row-gap:32px}
  .cp-head{grid-template-columns:1fr;gap:14px}
  #writing .sh h2{font-size:48px}
  .wa-grid{grid-template-columns:1fr;gap:16px}
  .g-list.g-list3{column-gap:28px}
  .band-red .giant{font-size:min(172px,15vw);white-space:normal}
  .ways{grid-template-columns:1fr;gap:16px}
  .faq3{padding:8px 40px}
}

/* ==== 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 */
  .ekc-row,.specs,#editorials .ed-row,#film .ek-bw,#brand .pair,#websites .pair,.brand-cols,.g-list.g-list3,.cols4.cols3,
  #shoots .m-row,#shoots .rows,#process .steps,.ways,#journal .posts{
    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}
  .ekc-row::-webkit-scrollbar,.specs::-webkit-scrollbar,.ed-row::-webkit-scrollbar,#film .ek-bw::-webkit-scrollbar,
  #brand .pair::-webkit-scrollbar,#websites .pair::-webkit-scrollbar,.brand-cols::-webkit-scrollbar,.g-list.g-list3::-webkit-scrollbar,
  .cols4.cols3::-webkit-scrollbar,#shoots .m-row::-webkit-scrollbar,#shoots .rows::-webkit-scrollbar,#process .steps::-webkit-scrollbar,
  .ways::-webkit-scrollbar,#journal .posts::-webkit-scrollbar{display:none}
  .ekc-row > *,.specs > *,.ed-row > *,#film .ek-bw > *,#brand .pair > *,#websites .pair > *,.brand-cols > *,.g-list.g-list3 > *,
  .cols4.cols3 > *,#shoots .rows > *,#process .steps > *,.ways > *,#journal .posts > *{flex:0 0 82vw;max-width:82vw;scroll-snap-align:start;min-width:0}

  /* swipe rows inside a white tile: the same, bleeding to the tile's edges */
  .two-ways,.more-tile{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 22px;
    scrollbar-width:none;overscroll-behavior-x:contain}
  .two-ways{margin:4px -22px 22px;padding:0 22px 2px}
  .two-ways::-webkit-scrollbar,.more-tile::-webkit-scrollbar{display:none}
  .two-ways > *,.more-tile > *{flex:0 0 76%;max-width:76%;scroll-snap-align:start;min-width:0}

  /* tighter section rhythm */
  .sec{padding-top:56px}
  .sh,body.paper .sh{margin-bottom:24px}
  #campaign .ek-deck,#social > .deck,#brand > .deck,#film .film-deck{margin-bottom:26px}
  #social .wide-label,#design .label{margin-bottom:24px}
  .specs{margin-top:0}
  #motion3d .world-fig{margin-bottom:26px}
  body.paper #websites .lead.web-lead{margin-bottom:24px}
  body.paper #design .mono.label{margin-bottom:24px}
  body.paper #writing .sh.sh-h,body.paper #campaign .sh.sh-h{margin-bottom:24px}
  body.paper .shoot-head{margin-bottom:24px}
  .client-proj.cp-first{margin-top:24px;padding-top:28px}
  .cols4.cols3{margin-top:0}
  .wa-grid{margin-top:0}
  #campaign .ek-deck{margin-top:-12px}
  .big-n{font-size:64px}
  .sh .kicker.kn{gap:8px}

  /* 01 what we make: the eleven areas swipe in two rows inside the tile */
  .index-tile{grid-template-columns:minmax(0,1fr);gap:22px}
  .index-intro{min-width:0}
  .index-list{display:grid;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:76%;column-gap:18px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 22px;margin:0 -22px;padding:0 22px 2px;
    scrollbar-width:none;overscroll-behavior-x:contain;min-width:0}
  .index-list::-webkit-scrollbar{display:none}
  .index-list li{scroll-snap-align:start;border-bottom:0}
  .index-list li:nth-child(even),.index-list li:last-child{border-bottom:1px solid #dcdad5}

  /* 02 campaign: the three shots swipe at one portrait size */
  .ekc-row{flex-wrap:nowrap}
  .ekc-row figure,.ekc-row figure:first-child{flex:0 0 82vw;aspect-ratio:4/5}

  /* 03 social: the six formats swipe */
  .specs{margin:0 -20px 30px}
  .specs article{padding-top:14px}

  /* 04 shoots: the three uses swipe; each row of photos is a swipe strip at one height, every photo uncropped */
  .shoot-head{gap:24px;grid-template-columns:minmax(0,1fr)}
  .shoot-head > *{min-width:0}
  #shoots .rows{margin-bottom:22px}
  #shoots .rows li{border-bottom:1px solid #dcdad5}
  #shoots .mosaic{display:block}
  #shoots .m-row{display:flex!important;flex-wrap:nowrap;gap:10px;margin:0 -20px 10px}
  #shoots .m-row figure,#shoots .m-row figure[style*="1.9"],#shoots .m-row figure[style*="1.66"]{
    flex:0 0 auto!important;height:220px;width:calc(220px * var(--ar))!important;aspect-ratio:auto!important;scroll-snap-align:start;border-radius:12px}
  #shoots .mosaic .m-h{margin:16px 0 10px}

  /* 06 editorials: the three scenarios swipe */
  .ed-row figure img{aspect-ratio:4/5;height:auto}

  /* 07 film: the two black and white shots swipe */
  #film .ek-bw figure{aspect-ratio:4/3}

  /* 08 brand: the two pairs of identities and the five parts swipe */
  #brand .pair,#websites .pair{gap:12px}
  .brand-cols{margin:28px -20px 30px}

  /* 10 writing: the five kinds of writing swipe in two rows inside the tile */
  .wa-grid{grid-template-columns:minmax(0,1fr)}
  .wa-tile{min-width:0}
  .care-tile.wa-tile .rows{display:grid;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:76%;column-gap:18px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 22px;margin:0 -22px 24px;padding:0 22px 2px;
    scrollbar-width:none;overscroll-behavior-x:contain}
  .care-tile.wa-tile .rows::-webkit-scrollbar{display:none}
  .care-tile.wa-tile .rows li{scroll-snap-align:start;border-bottom:0;align-content:start}
  .care-tile.wa-tile .rows li:nth-child(even),.care-tile.wa-tile .rows li:last-child{border-bottom:1px solid #dcdad5}

  /* 11 3D and motion: the three disciplines swipe */
  .hp-row{margin-bottom:28px}

  /* 11 design: the two notes under the lead swipe as a pair */
  .design-paras{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0 20px;
    margin:0 -20px;padding:0 20px 2px;scrollbar-width:none;overscroll-behavior-x:contain}
  .design-paras::-webkit-scrollbar{display:none}
  .design-paras > p{flex:0 0 82vw;max-width:82vw;scroll-snap-align:start;min-width:0;margin:0}

  /* 13 more: the four extras swipe inside the tile */
  .more-tile{padding:0 22px}
  .more-tile article,.more-tile article:nth-child(odd),.more-tile article:nth-child(even){border-top:0;padding:24px 0 26px}

  /* 14 how it runs: smaller statement, the four steps swipe */
  .band-red .giant{font-size:68px}
  #process .deck{margin:22px 0 26px}
  #process .steps li{padding-top:16px}

  /* questions: a little less padding round each question (still a large tap area) */
  .qa3 summary{padding:17px 0}

  /* blog: the three posts swipe, one card size */
  body.paper .lead-post h3,body.paper .post h3{font-size:24px}
  body.paper .post figure,body.paper .lead-post figure{aspect-ratio:3/2;margin-bottom:16px}
  body.paper .post{padding:10px 10px 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}
}
