/* Prosperus · v3.12 light studies. Inner heroes pair the words with a light study or the glass stage,
   and the homepage film gets its own place on a phone instead of hiding behind the text. */

/* Inner heroes: words left, light right. */
.workhero.has-visual .wrap{display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:clamp(28px,5vw,80px); align-items:center}
.workhero.has-visual .wh-text{min-width:0}
.workhero.has-visual .wrap > .steps3{grid-column:1/-1}
.workhero.has-visual .index{max-width:none}

/* A light study: a soft-edged window of light, no frame. */
.wh-visual{position:relative; margin:0; min-width:0}
.study{aspect-ratio:4/5; max-height:min(72vh,680px); width:100%; justify-self:end; border-radius:34px; overflow:hidden; isolation:isolate;
  background:#E3DED5; box-shadow:0 40px 80px -40px rgba(25,50,90,.35), 0 0 0 .5px rgba(255,255,255,.5) inset;
  -webkit-mask-image:radial-gradient(140% 120% at 50% 40%, #000 62%, transparent 100%); mask-image:radial-gradient(140% 120% at 50% 40%, #000 62%, transparent 100%)}
.study.wide{aspect-ratio:5/4}
.study video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%}
.study.wide video{object-position:18% 50%}
.study::after{content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  background:radial-gradient(70% 50% at 10% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(0deg, rgba(15,23,32,.22), transparent 30%)}
.study .lbl{position:absolute; right:18px; bottom:16px; z-index:2; font-size:10.5px; color:#fff; opacity:.8; text-shadow:0 1px 6px rgba(15,23,32,.55)}
:root[data-theme="dark"] .study{background:#141b24; box-shadow:0 40px 90px -40px rgba(0,0,0,.7), 0 0 0 .5px rgba(255,255,255,.08) inset}
:root[data-theme="dark"] .study video{filter:brightness(.72) saturate(.9)}

/* The glass stage that used to stand in the homepage hero, now on Work and App development. */
.stage-wrap .stage4{height:clamp(360px,40vw,560px)}

@media (prefers-reduced-motion:reduce){.study video{display:none} .study{background-size:cover}}

@media (max-width:860px){
  .workhero.has-visual .wrap{grid-template-columns:minmax(0,1fr); gap:28px}
  .study{aspect-ratio:4/3; max-height:none; justify-self:stretch; border-radius:26px}
  .study.wide{aspect-ratio:16/10}
  .stage-wrap .stage4{height:300px}
  .stage-wrap .stage4 .gp{font-size:120px}
}

/* Homepage film on a phone: the words first, then the glass and its light in full view below them. */
@media (max-width:760px){
  .hero4:has(.hero-film){flex-direction:column; align-items:stretch; padding-bottom:0}
  .hero4:has(.hero-film) > .wrap{order:1}
  .hero-film{position:relative; inset:auto; order:2; z-index:0; width:100%; aspect-ratio:4/5; margin-top:-56px;
    -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%); mask-image:linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%)}
  .hero-film video{object-position:66% 62%; transform:scale(1.12); transform-origin:66% 62%}
  .hero-film::after,.hero-film::before{display:none}
  .hero-film-label{bottom:auto; top:auto; right:16px; position:absolute; order:3; margin-top:0; bottom:9%}
}
