/* Catalogue presentations (js/showcase.js). Colours and type are the works' own. */
.cat-show{position:absolute;display:block;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;opacity:0;pointer-events:none;transition:opacity .3s ease}
.cat-cover{position:absolute;display:block;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;container-type:size;transition:opacity .25s ease}
.cat-strip.is-open .cat-show{opacity:1;transition:opacity .45s ease .2s}
.cat-strip.is-open .cat-cover{opacity:0}
/* a designed cover carries its own name and is not dimmed */
.cat-strip.has-show::after{display:none}
.cat-strip.has-show .cat-cover{filter:brightness(.96)}
.cat-strip.has-show:hover .cat-cover,.cat-strip.has-show:focus-visible .cat-cover{filter:none}
/* the featured work: a pear edge while closed */
.cat-strip.is-featured:not(.is-open)::before{content:"";position:absolute;z-index:3;left:0;right:0;top:0;height:5px;background:var(--pear)}
.cat-stage.is-lying .cat-strip.is-featured:not(.is-open)::before{right:auto;bottom:0;height:auto;width:5px}
html.gdl-now .cat-show,html.gdl-now .cat-cover{transition:none !important}

/* ---------- Coachfio ---------- */
.cfo,.cf-cover{--cf-ink:#10182A;--cf-sky:#E9EEF7;--cf-blue:#2F7DF6;--cf-violet:#7C5CFF;--cf-cyan:#35C8E8;--cf-soft:#5C9DFF}
.cfo{background:var(--cf-sky);text-align:left}
.cfo .cf-sky{position:absolute;border-radius:50%;opacity:.5;filter:blur(28px)}
.cfo .cf-s1{left:-22%;top:-38%;width:92%;height:118%;background:radial-gradient(circle at 42% 42%,var(--cf-blue),#2f7df600 63%)}
.cfo .cf-s2{left:58%;top:-22%;width:74%;height:94%;background:radial-gradient(circle,var(--cf-violet),#7c5cff00 63%)}
.cfo .cf-s3{left:18%;top:46%;width:72%;height:92%;background:radial-gradient(circle,var(--cf-cyan),#35c8e800 64%)}
.cfo .cf-s4{left:34%;top:4%;width:80%;height:104%;background:radial-gradient(circle,var(--cf-soft),#5c9dff00 63%)}
.cf-rig{position:absolute;display:block;left:50%;top:50%;width:765px;height:600px;transform:translate(-50%,-50%) scale(var(--k,1))}
.cf-win{position:absolute;display:block;left:40px;top:54px;width:590px;height:410px;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 0 0 .5px #10182a26,0 2px 6px #10182a14,0 26px 60px -18px #1c2f6a4d}
.cf-bar{position:relative;height:28px;display:flex;align-items:center;justify-content:center;background:#f6f8fc;border-bottom:1px solid #10182a12}
.cf-lights{position:absolute;left:11px;top:11px;display:flex;gap:5px}
.cf-lights i{width:6px;height:6px;border-radius:50%;background:#10182a26}
.cf-url{display:flex;align-items:center;gap:5px;height:18px;padding:0 12px;border-radius:6px;background:#10182a0a;font:500 10px/1 "JetBrains Mono",ui-monospace,monospace;color:#44536f;letter-spacing:-.01em;text-transform:none}
.cf-url svg{width:8px;height:9px}
.cf-view{position:relative;display:block;height:382px;overflow:hidden;background:var(--cf-sky)}
.cfo .cf-page{display:block;width:100%;height:auto;max-width:none}
.cfo .cf-nav{position:absolute;left:0;top:0;width:100%;height:auto}
.cf-glass{position:absolute;-webkit-backdrop-filter:blur(11px) saturate(1.8);backdrop-filter:blur(11px) saturate(1.8)}
.cf-win .cf-glass{left:20.06px;top:3.28px;width:549.8px;height:26.2px;border-radius:8.2px}
.cf-phone{position:absolute;display:block;left:556px;top:186px;width:172px;height:358px;padding:6px;border-radius:29px;background:var(--cf-ink);box-shadow:inset 0 0 0 1px #ffffff1f,0 2px 6px #10182a26,0 30px 60px -20px #1c2f6a73}
.cf-phone .cf-view{height:100%;border-radius:23px}
.cf-phone .cf-glass{left:8.2px;top:5.74px;width:143.6px;height:25.4px;border-radius:8.2px}
.cfo.is-small .cf-phone{display:none}
.cfo.is-small .cf-rig{width:650px;height:470px}
.cfo.is-small .cf-win{left:30px;top:30px}

/* closed: the hero sky of coachfio.com, the name as its wordmark is set, the real mark */
.cf-cover{color:var(--cf-ink);background:
  radial-gradient(60% 34% at 14% 16%,#2f7df680,#2f7df600 100%),
  radial-gradient(70% 30% at 96% 36%,#7c5cff66,#7c5cff00 100%),
  radial-gradient(70% 30% at 40% 84%,#35c8e866,#35c8e800 100%),
  radial-gradient(80% 36% at 60% 56%,#5c9dff59,#5c9dff00 100%),var(--cf-sky)}
.cf-name{position:absolute;left:50%;top:50%;white-space:nowrap;font-family:"Archivo",sans-serif;font-weight:600;font-size:min(94cqw,13.4cqh);line-height:1;letter-spacing:-.03em;text-transform:none;transform:translate(-50%,-50%) rotate(-90deg) translateY(.024em)}
.cf-mark{position:absolute;left:50%;bottom:5cqh;width:min(56cqw,9cqh);transform:translateX(-50%)}
/* lying strips (phones): name across, mark at the right */
.is-lying .cf-name{font-size:min(13cqw,62cqh);transform:translate(-50%,-50%)}
.is-lying .cf-mark{left:auto;right:12px;bottom:50%;width:min(8cqw,62cqh);transform:translateY(50%)}

/* ---------- GoGevgelija: colours read from the app ---------- */
.ggo,.gg-cover{--gg-red:#B91C1C;--gg-red-hi:#D42A26;--gg-red-lo:#991B1B;--gg-ground:#FAFAFA;--gg-ink:#111827}
.ggo{contain:layout paint;background:
  radial-gradient(90% 70% at 18% 0%,var(--gg-red-hi),#d42a2600 70%),
  linear-gradient(170deg,var(--gg-red) 40%,var(--gg-red-lo))}
.gg-sheet{position:absolute;display:block;left:0;right:0;bottom:0;height:31%;background:var(--gg-ground);border-radius:34px 34px 0 0}
.gg-rig{position:absolute;display:block;left:50%;top:50%;width:765px;height:600px;transform:translate(-50%,-50%) scale(var(--k,1))}
.gg-phone{position:absolute;display:block;width:226px;height:478px;padding:5px;border-radius:32px;background:var(--gg-ink);box-shadow:inset 0 0 0 1px #ffffff1c,0 2px 5px #45000026,0 26px 44px -22px #3d000080}
.gg-screen{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:27px;background:#fff}
.ggo .gg-screen img{position:absolute;left:0;top:0;display:block;width:100%;height:100%;max-width:none}
.ggo .gg-screen .gg-b{opacity:0}
.gg-p1{left:24px;top:84px}
.gg-p2{left:270px;top:30px}
.gg-p3{left:516px;top:102px}
.ggo.is-small .gg-rig{width:830px;height:524px}
.ggo.is-small .gg-p1{left:22px;top:18px}
.ggo.is-small .gg-p2{left:302px;top:8px}
.ggo.is-small .gg-p3{left:582px;top:28px}
.ggo.is-small .gg-sheet{height:36%;border-radius:18px 18px 0 0}

.gg-cover{background:#fff}
.gg-name{position:absolute;left:50%;top:50%;white-space:nowrap;color:var(--gg-red);font-family:Poppins,"Helvetica Neue",Arial,sans-serif;font-weight:700;font-size:min(76cqw,10.6cqh);line-height:1;letter-spacing:-.035em;text-transform:none;transform:translate(-50%,-50%) rotate(-90deg) translateY(-.09em)}
.gg-stores{position:absolute;left:50%;bottom:4.5cqh;display:flex;flex-direction:column;align-items:center;gap:min(14cqw,1.6cqh);width:min(68cqw,7cqh);transform:translateX(-50%)}
.gg-store{position:relative;display:block;flex:none;width:100%;aspect-ratio:1;border:1px solid #A6A6A6;border-radius:22%;background:#000}
.gg-store img{position:absolute;left:20%;top:20%;display:block;width:60%;height:60%;max-width:none;object-fit:contain}
.is-lying .gg-name{font-size:min(10cqw,60cqh);transform:translate(-50%,-50%) translateY(-.06em)}
.is-lying .gg-stores{left:auto;right:8px;bottom:50%;flex-direction:row;gap:7px;width:auto;transform:translateY(50%)}
.is-lying .gg-store{width:76cqh}

/* ---------- case view of a work with a story: one screen, picture left, story right ----------
   If a window is too short for it, the page simply scrolls; nothing is clipped. */
.case.cl .case-bar{padding-top:.85rem;padding-bottom:.85rem}
.cl .case-in{padding:clamp(1rem,2.6vh,1.8rem) var(--gutter) clamp(1.2rem,3vh,2rem)}
.cl-grid{display:grid;grid-template-columns:minmax(0,min(56%,calc((100vh - 370px) * 1.6),calc((100vh - 320px) * 1.25))) minmax(0,1fr);column-gap:clamp(1.8rem,3vw,3.2rem);align-items:stretch}
.cl-a,.cl-b{display:flex;flex-direction:column}
.cl .cg-view{position:relative;flex:none;overflow:hidden;aspect-ratio:16 / 10;width:100%;background:#061d33}
.cg-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease}
.cg-still.is-gone{opacity:0;pointer-events:none}
.cg-still[hidden]{display:none}
.cg-live{position:absolute;inset:0}
.cg-live[hidden],.cg-shot[hidden]{display:none}
.cg-live .cat-show{left:0;top:0;transform:none;width:100%;height:100%;opacity:1;pointer-events:auto}
.cg-shot{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.cl-pics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-top:.7rem}
.cl .cg-thumb{display:block;padding:0;border-radius:0;aspect-ratio:16 / 10;overflow:hidden;border:2px solid transparent;background:#061d33;transition:border-color .25s ease}
.cl .cg-thumb img{display:block;width:100%;height:100%;object-fit:contain;opacity:.55;transition:opacity .25s ease}
.cl .cg-thumb:hover img,.cl .cg-thumb:focus-visible img,.cl .cg-thumb[aria-pressed="true"] img{opacity:1}
.cl .cg-thumb[aria-pressed="true"]{border-color:var(--pear)}
/* when the story is the taller column, the facts and link move down to end with it */
.cl-facts{margin:auto 0 0;padding:1.2rem 0 0;list-style:none}
.cl-facts li{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:1rem;border-top:1px solid #fefffa24;padding:.45rem 0;font-family:var(--display);font-size:.95rem;letter-spacing:.06em;text-transform:uppercase}
.cl-facts li span:first-child{opacity:.55}
.cl-links{display:flex;flex-wrap:wrap;gap:.6rem;flex:none;margin:.8rem 0 0}
.cl .case-visit{flex:none;margin:0}
.cl-head .title{margin:0;line-height:.86}
.cl-head .meta{margin:.45rem 0 0}
.cl-lead{margin:.9rem 0 clamp(1rem,2.1vh,1.35rem);font-size:clamp(15.5px,1.2vw,19px);font-weight:300;line-height:1.5;color:var(--ghost);text-wrap:pretty}
/* the two columns end on the same line: the story's last line meets the bottom of the link */
.cl-b{justify-content:space-between}
.cl-b > *{flex:none}
.cl-b hr{width:100%;height:0;margin:0;border:0;border-top:1px solid #fefffa24}
.cl-b section{padding:clamp(1rem,2.1vh,1.35rem) 0}
.cl-b section:last-child{padding-bottom:0}
.cl-b h3{margin:0 0 .3rem;font-family:var(--display);font-weight:400;font-size:1.05rem;letter-spacing:.06em;line-height:1.2;text-transform:uppercase}
.cl-text{margin:0;font-size:clamp(14.5px,1.05vw,16.5px);font-weight:300;line-height:1.5;color:var(--ghost-soft);text-wrap:pretty}
ol.cl-text{padding-left:1.15em}
ol.cl-text li{padding-left:.2em}
html[lang="mk"] :is(.cl-facts li,.cl-b h3){font-weight:700}
/* short screens: the story column gets more width and closer lines; the letters keep their size */
@media (max-height:880px){
  .cl-grid{grid-template-columns:minmax(0,min(48%,calc((100vh - 370px) * 1.6))) minmax(0,1fr)}
  .cl-text,.cl-lead{line-height:1.38}
  .cl-b section{padding:.4rem 0}
  .cl-lead{margin:.55rem 0 .6rem}
  .cl-b h3{margin-bottom:.15rem}
}
/* phones and upright tablets: one column, in reading order */
@media (max-width:900px),(orientation:portrait){
  .cl-grid{grid-template-columns:minmax(0,1fr)}
  .cl-a,.cl-b{display:contents}
  .cl .cg-view{order:1}
  .cl-pics{order:2;gap:.5rem;margin-top:.6rem}
  .cl-head{order:3;margin-top:1.5rem}
  .cl-b hr,.cl-b section{order:4}
  .cl-b section:last-child{padding-bottom:clamp(.55rem,1.4vh,.95rem)}
  .cl-facts{order:5;margin-top:.6rem;padding-top:0}
  .cl-facts li{grid-template-columns:6.5rem minmax(0,1fr)}
  .cl-links{order:6}
  .cl-text{font-size:15.5px}
}

/* the 2px selection border sits outside the picture, so the picture area stays exactly 16:10 */
.cl .cg-thumb{aspect-ratio:auto;border:0;outline:2px solid transparent;outline-offset:0}
.cl .cg-thumb img{aspect-ratio:16 / 10;height:auto}
.cl .cg-thumb[aria-pressed="true"]{outline-color:var(--pear)}
.cl .cg-thumb:focus-visible{outline:2px solid var(--ghost)}
.cl-pics{padding:0 2px}
