/* Studiora website — professional photography on the home page: hero collage, trade photos, project mosaic,
   site-to-office story, colourful stats band and photo banner. Loaded after responsive.css, so it can override it. */

/* ---------------------------------------------------------------- shared */
.hph,.aud-photo,.mz,.s2o-art figure{margin:0;overflow:hidden;background:var(--soft)}
.hph img,.aud-photo img,.mz img,.s2o-art img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------------------------------------------------------------- hero collage */
.hero-photos{position:relative;height:540px;isolation:isolate}
.hero-photos .blob{position:absolute;border-radius:50%;filter:blur(40px);opacity:.55;z-index:-1;pointer-events:none}
.blob.b-a{width:46%;aspect-ratio:1;left:2%;top:-4%;background:color-mix(in srgb,var(--brand) 55%,transparent)}
.blob.b-b{width:40%;aspect-ratio:1;right:-4%;bottom:-6%;background:color-mix(in srgb,var(--coral) 60%,transparent)}
.blob.b-c{width:26%;aspect-ratio:1;right:22%;top:30%;background:color-mix(in srgb,#ffc94d 55%,transparent)}
.hph{position:absolute;border-radius:28px;box-shadow:0 34px 70px -30px rgba(23,26,46,.55)}
.hph.hp-a{left:13%;right:5%;top:7%;bottom:11%}
.hph.hp-b,.hph.hp-c{border:6px solid var(--panel);border-radius:22px}
.hph.hp-b{left:0;bottom:0;width:36%;height:40%;animation:floaty 7s ease-in-out infinite}
.hph.hp-c{right:0;top:0;width:31%;height:31%;animation:floaty 7s ease-in-out -3.5s infinite}
.hph figcaption{position:absolute;left:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.9);color:#171a2e;font-size:11.5px;font-weight:700;backdrop-filter:blur(6px)}
.hph.hp-a img{transition:transform 6s ease}
.hero-photos:hover .hph.hp-a img{transform:scale(1.04)}
.hero-photos .hb{z-index:3}
.hero-photos .hb.b1{left:4%;top:13%;right:auto}
.hero-photos .hb.b2{right:-1%;top:40%;left:auto}
.hero-photos .hb.b3{left:39%;bottom:2%;right:auto;top:auto}

/* ---------------------------------------------------------------- trade photos (audience tabs) */
.aud-photo{position:relative;border-radius:26px;aspect-ratio:4/3.1;box-shadow:0 30px 60px -32px rgba(23,26,46,.5)}
.aud-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(23,26,46,.55))}
.aud-photo figcaption{position:absolute;left:16px;right:16px;bottom:16px;z-index:1;display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.92);color:#171a2e;backdrop-filter:blur(8px)}
.aud-photo figcaption .e{font-size:26px}
.aud-photo figcaption b{display:block;font-size:15px}.aud-photo figcaption small{color:#5c6080;font-size:12.5px}
.aud-pane.in .aud-photo img{animation:zoomin 1.2s ease}
@keyframes zoomin{from{transform:scale(1.08)}to{transform:none}}

/* ---------------------------------------------------------------- project mosaic */
.mosaic-sec{background:linear-gradient(180deg,var(--panel),color-mix(in srgb,var(--brand) 5%,var(--panel)))}
.mosaic{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-auto-rows:clamp(190px,13.5vw,260px);gap:16px}
.mz{position:relative;border-radius:22px;cursor:default}
.mz.m1{grid-row:span 2}.mz.m4{grid-column:span 2}.mz.m6{grid-column:span 2}
.mz img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.mz:hover img{transform:scale(1.07)}
.mz::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(17,19,40,.82));transition:opacity .3s}
.mz figcaption{position:absolute;left:20px;right:20px;bottom:18px;z-index:1;color:#fff}
.mz figcaption b{display:block;font-size:clamp(17px,1.35vw,22px);font-weight:800;letter-spacing:-.01em}
.mz figcaption span{font-size:13.5px;opacity:.85}
.mz figcaption::before{content:"";display:block;width:28px;height:4px;border-radius:4px;margin-bottom:10px;background:var(--coral)}
.mz.m2 figcaption::before{background:#ffc94d}.mz.m3 figcaption::before{background:#4ade80}
.mz.m4 figcaption::before{background:#a5a8ff}.mz.m5 figcaption::before{background:#38bdf8}.mz.m6 figcaption::before{background:#f472b6}

/* ---------------------------------------------------------------- site to office */
.s2o{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(30px,4vw,70px);align-items:center}
.s2o-art{position:relative;height:clamp(380px,34vw,540px)}
.s2o-art figure{position:absolute;border-radius:26px;box-shadow:0 34px 70px -32px rgba(23,26,46,.55)}
.s2o-main{left:0;top:0;right:16%;bottom:12%}
.s2o-small{right:0;bottom:0;width:38%;height:48%;border:6px solid var(--bg)}
.ui-card{position:absolute;z-index:2;display:flex;gap:10px;align-items:center;padding:11px 14px;border-radius:14px;background:var(--panel);border:1px solid var(--border);box-shadow:0 18px 40px -16px rgba(23,26,46,.4);font-size:12px;animation:floaty 6s ease-in-out infinite}
.ui-card b{display:block;font-size:13.5px}.ui-card small{color:var(--muted)}
.ui-card .ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none}
.ui-card .ic.g{background:#dcfce7;color:#15803d}.ui-card .ic.o{background:#ffe9e2;color:var(--coral)}
.ui-card.u1{left:-14px;bottom:20%}.ui-card.u2{right:6%;top:6%;animation-delay:-3s}
.s2o-h{font-size:clamp(28px,2.6vw,42px);font-weight:800;margin:12px 0 14px;line-height:1.12}
.checks{list-style:none;padding:0;margin:22px 0 28px;display:grid;gap:12px}
.checks li{position:relative;display:block;padding-left:36px;font-size:15.5px}
.checks li::before{content:"✓";position:absolute;left:0;top:-1px;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-size:13px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--brand),var(--coral))}

/* ---------------------------------------------------------------- colourful stats band */
.stats-band{padding:clamp(18px,2vw,28px);border-radius:28px;background:linear-gradient(115deg,var(--brand) 0%,#7b5cf0 45%,var(--coral) 100%);box-shadow:0 30px 60px -30px rgba(91,91,214,.7);position:relative;overflow:hidden}
.stats-band::before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-80px;top:-160px;background:rgba(255,255,255,.12)}
.stats-band .stat{position:relative;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22);backdrop-filter:blur(4px)}
.stats-band .stat b{color:#fff}.stats-band .stat span{color:rgba(255,255,255,.88)}

/* ---------------------------------------------------------------- colourful module icons */
.mods .mod:nth-child(6n+2) .ic{background:#ffe9e2;color:#e8603f}
.mods .mod:nth-child(6n+3) .ic{background:#dcfce7;color:#15803d}
.mods .mod:nth-child(6n+4) .ic{background:#fef3c7;color:#b45309}
.mods .mod:nth-child(6n+5) .ic{background:#e0f2fe;color:#0369a1}
.mods .mod:nth-child(6n+6) .ic{background:#fce7f3;color:#be185d}

/* ---------------------------------------------------------------- photo banner */
.cta.cta-photo{background:linear-gradient(105deg,rgba(17,19,40,.94) 0%,rgba(17,19,40,.82) 45%,rgba(91,91,214,.55) 100%),var(--bg) center/cover no-repeat;min-height:300px}
.cta.cta-photo::before,.cta.cta-photo::after{display:none}

/* ---------------------------------------------------------------- dark theme */
:root[data-theme="dark"] .hph figcaption{background:rgba(23,26,46,.85);color:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hph figcaption{background:rgba(23,26,46,.85);color:#fff}}

/* ---------------------------------------------------------------- sizes: fit every screen */
@media (min-width:1061px){
  .hero3d .hero-photos{height:clamp(400px,calc(100vh - 220px),820px);height:clamp(400px,calc(100svh - 220px),820px)}
  .hero-photos .hb{font-size:clamp(12px,.75vw,14px)}
}
@media (max-width:1060px){
  .hero-photos{height:clamp(360px,62vw,560px);max-width:760px;width:100%;margin:10px auto 0}
  .s2o{grid-template-columns:minmax(0,1fr)}
  .s2o-art{height:clamp(320px,70vw,520px);max-width:760px;width:100%;margin:0 auto}
  .mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(170px,30vw,260px)}
  .mz.m1{grid-row:span 2}.mz.m4,.mz.m6{grid-column:span 1}.mz.m6{grid-column:1/-1}
}
@media (max-width:640px){
  .hero-photos{height:clamp(280px,88vw,400px)}
  .hph.hp-a{left:8%;right:2%;top:6%;bottom:14%;border-radius:22px}
  .hph.hp-b{width:40%;height:38%;border-width:4px}.hph.hp-c{width:34%;height:30%;border-width:4px}
  .hph figcaption{font-size:10.5px;padding:3px 8px;left:7px;bottom:7px}
  .mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(140px,40vw,200px);gap:10px}
  .mz{border-radius:16px}.mz.m1{grid-column:1/-1;grid-row:span 1}
  .mz figcaption{left:12px;right:12px;bottom:10px}.mz figcaption span{display:none}.mz figcaption::before{margin-bottom:6px;width:22px}
  .mz figcaption b{font-size:15px}
  .ui-card{display:none}
  .s2o-art{height:clamp(260px,78vw,380px)}
  .aud-photo{aspect-ratio:4/3.4;border-radius:20px}
  .aud-photo figcaption{left:10px;right:10px;bottom:10px;padding:9px 11px}
  .stats-band{border-radius:20px}
  .cta.cta-photo{background:linear-gradient(180deg,rgba(17,19,40,.9),rgba(17,19,40,.8)),var(--bg) center/cover no-repeat}
}
@media (prefers-reduced-motion:reduce){.hph.hp-b,.hph.hp-c,.ui-card{animation:none}.aud-pane.in .aud-photo img{animation:none}}
.s2o .checks b,.why-st .checks b{display:inline}
