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

/* ==== Home ==== */
@media (max-width:760px){
  /* who we are: the eye tile sits as a shorter band under the intro */
  .eye-tile{min-height:0;height:300px;gap:24px}
  .who-eye{width:56%}
  .eye-tile .eye-cap{font-size:12px}
}
@media (min-width:761px) and (max-width:1100px){
  /* who we are: intro full width, the eye tile as a band beneath */
  .intro-grid{gap:16px}
  .intro-tile,.photo-tile{grid-column:1/-1}
  .intro-tile{padding:48px 48px}
  .offer-line{font-size:52px}
  .photo-tile.eye-tile{min-height:0;height:340px}
  .who-eye{width:auto;height:58%;max-width:none}

  /* services: the two halves keep side by side, with tablet-sized type and natural height */
  body.join-a .sec-services .svc{padding:0 32px;gap:16px;margin-bottom:16px}
  body.join-a .sec-services .svc.pair{height:auto}
  .svc.pair{grid-template-columns:2fr 3fr}
  .svc.pair.flip{grid-template-columns:3fr 2fr}
  .svc.pair .media{min-height:560px}
  .svc.pair .pad{padding:52px 40px}
  .svc.pair .num{font-size:104px;margin-bottom:24px}
  .svc.pair h3{font-size:46px}
  .svc.pair .tagline{font-size:22px}
  body.join-a .train-band{margin:0 32px}
  .train-band{height:auto;min-height:480px}
  .band-body{max-width:52%;padding:56px 0 56px 44px;justify-content:center;min-height:480px}
  .train-band h3{font-size:46px}
  .train-band .tagline{font-size:22px}

  /* how we work: the statement scales with the screen */
  #process .giant{font-size:min(192px,18.5vw)}
}

/* ==== Shorter phone layout (4 Oct): swipe rows for repeated cards, 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 */
  #journal .posts,#process .steps{
    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}
  #journal .posts::-webkit-scrollbar,#process .steps::-webkit-scrollbar{display:none}
  #journal .posts > *,#process .steps > *{flex:0 0 82vw;max-width:82vw;scroll-snap-align:start;min-width:0}

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

  /* who we are: the eye band a little shorter */
  .intro-tile{padding:28px 22px}
  .eye-tile{height:230px;gap:18px}
  .who-eye{width:50%}

  /* services: the three service cards stack one under another, full width (Louis, 5 Oct: not a swipe row).
     The 20px side gutter comes from combo.css, as on every other phone section. */
  body.paper #services .wrap .sh{margin-bottom:24px}
  body.join-a .sec-services .svc{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
  .svc.pair .media{flex:none;aspect-ratio:4/3}
  .svc.pair .pad{padding:28px 22px 30px}
  .svc.pair .num,.train-band .num{font-size:60px;margin-bottom:14px}
  .svc.pair h3,.train-band h3{font-size:34px;margin-bottom:10px}
  .svc.pair .tagline,.train-band .tagline{font-size:19px;margin-bottom:10px}
  .svc.pair .body,.train-band .body{margin-bottom:22px}
  .train-band{display:flex;flex-direction:column;border-radius:22px}
  .train-band img{aspect-ratio:4/3;flex:none}
  .band-body{padding:28px 22px 30px}

  /* how we work: smaller statement, the four steps swipe */
  .giant{font-size:68px}
  body.paper .deck{margin:22px 0 26px}
  #process .steps li{padding-top:16px}
  .steps h4{margin:10px 0 6px}

  /* blog: the three posts swipe, one card size */
  body.paper .lead-post h3{font-size:24px}
  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 */
  body.contact-tiles .contact .cam{height:200px}
  .formhalf .h2 + form{margin-top:22px}
  /* contact form: name and email side by side */
  .formhalf .frow{grid-template-columns:1fr 1fr;gap:14px}
}
