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

/* ==== Training ==== */
@media (max-width:760px){
  /* register form: the privacy note at a readable size */
  .reg-privacy{font-size:14px}
  .reg-pick legend{font-size:12px}
}
@media (min-width:761px) and (max-width:1100px){
  .l6-head{grid-template-columns:1fr;gap:18px}
  .fmt-list.fmt3{grid-template-columns:1fr;row-gap:30px}
  .fmt-list.fmt3 p:not(.fmt-k){max-width:640px}
  .yw-grid{gap:40px}
  .why-deck{font-size:20px}
  .starts{grid-template-columns:1fr;gap:16px}
  .red-in{grid-template-columns:1fr;gap:28px}
  .red-line{font-size:50px}
  .faq3{padding:8px 40px}
}

/* ==== 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 */
  .fmt-list.fmt3,.why-cards,#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}
  .fmt-list.fmt3::-webkit-scrollbar,.why-cards::-webkit-scrollbar,#journal .posts::-webkit-scrollbar{display:none}
  .fmt-list.fmt3 > *,.why-cards > *,#journal .posts > *{flex:0 0 82vw;max-width:82vw;scroll-snap-align:start;min-width:0}

  /* swipe row inside a white box: the same, bleeding to the box's edges */
  .l6-grid{display:flex;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}
  .l6-grid::-webkit-scrollbar{display:none}
  .l6-grid > *{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}
  .big-n{font-size:64px}
  .sh .kicker.kn{gap:8px}

  /* 01 six areas: the six skills swipe inside the box */
  .learn6{padding-bottom:22px}
  .l6-head{padding-bottom:20px}
  .l6-grid li,.l6-grid li:nth-child(2n),.l6-grid li:last-child{padding:22px 0 6px!important;border-left:0!important;border-bottom:0!important;border-top:1px solid #e4e1d9}

  /* 02 three ways to train: swipe */
  .fmt-list.fmt3{margin-bottom:0}

  /* 03 executive course: the four outcomes in a tighter list */
  .yw-list{margin-top:24px}
  .yw-list li{padding:16px 0}

  /* 04 why us: the three cards swipe, one height */
  .why-cards{align-items:stretch}
  .why-deck{margin-bottom:26px}

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

  /* register: shorter closing camera eye; paired fields 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}
}
