/* v54 upgrades from the Studio Library (F02, M90 showcase, M81, M162).
   Additive only: remove this file + upgrade.js and the site is exactly v53 again. */

/* F02 — Commissioner (self-hosted, OFL licence, no Google request) */
@font-face{font-family:"Commissioner";src:url("assets/fonts/commissioner-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-21FF,U+2212,U+2215}
@font-face{font-family:"Commissioner";src:url("assets/fonts/commissioner-greek.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0370-03FF,U+1F00-1FFF}
body,button,input,select,textarea,#copper-motion-demo{font-family:"Commissioner",Arial,Helvetica,sans-serif}
h1,h2,.about-quote,.pj-text h3,.sp-amount{font-feature-settings:"ss01" 0;letter-spacing:-.035em}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}

/* M81 — quote fills with copper while scrolling */
.up-fill .about-quote span{background:linear-gradient(90deg,#d77b43 var(--fill,0%),#5a4737 var(--fill,0%));-webkit-background-clip:text;background-clip:text;color:transparent}

/* M162 — step line draws itself, circles light up in order */
.up-steps .enquiry-steps li:not(:last-child)::after{transform:scaleY(0);transform-origin:top;transition:transform .7s cubic-bezier(.6,0,.3,1);transition-delay:calc(var(--s,0) * .45s + .2s)}
.up-steps .enquiry-steps li::before{transition:background-color .4s,border-color .4s,color .4s;transition-delay:calc(var(--s,0) * .45s)}
.up-steps .enquiry-steps.up-in li:not(:last-child)::after{transform:none}
.up-steps .enquiry-steps.up-in li:not(:first-child)::before{border-color:#d77b43;color:#f1c7a7}

@media (prefers-reduced-motion:reduce){
  .up-fill .about-quote span{background:none;color:#d5a274}
  .up-steps .enquiry-steps li::after{transform:none!important;transition:none}
}

/* M90 — "Cinematic showcase" for Selected work (desktop, motion allowed).
   Each project: laptop frame tilts up from lying back (Apple-style), grows to fill the screen,
   the project name sits huge behind it and fills with copper; the next project wipes up from below.
   Phones/tablets and reduce-motion keep the original layout. Same photos, texts and links. */
html.up-sh .projects{display:block}
html.up-sh .up-run{position:relative;height:calc(var(--n,2) * 135vh + 40vh)}
html.up-sh .up-stage{position:sticky;top:0;height:100vh;overflow:hidden;display:grid;align-items:end;justify-items:end;padding-bottom:7vh;isolation:isolate}
html.up-sh .up-stage::after{content:"";position:absolute;left:30%;right:0;bottom:-18vh;height:42vh;border-radius:50%;background:radial-gradient(closest-side,#d77b4342,transparent);filter:blur(20px);z-index:-1;pointer-events:none}
html.up-sh .up-stage .pj{display:contents}
/* giant names */
html.up-sh .up-names{position:absolute;inset:0;z-index:-1;pointer-events:none}
html.up-sh .up-name{position:absolute;left:0;right:0;top:7vh;margin:0;text-align:left;white-space:nowrap;font-size:clamp(90px,11.5vw,210px);font-weight:800;line-height:.9;letter-spacing:-.06em;text-transform:uppercase;
  transform:translateX(var(--x,0));opacity:var(--o,0);
  background:linear-gradient(90deg,#d77b43 var(--fill,0%),transparent var(--fill,0%));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:1.5px #6b4b31}
/* frames */
html.up-sh .up-frames{position:relative;width:min(64vw,1080px,calc(60vh * 1.86));aspect-ratio:1.86;perspective:1600px}
html.up-sh .up-frames .pj-media{position:absolute;inset:0;aspect-ratio:auto;height:100%;padding-top:2.6%;border-radius:14px;background:#1d1610;cursor:none;
  box-shadow:0 50px 100px -30px #000,0 0 0 1px #ffffff17;transform-origin:50% 90%;
  clip-path:inset(var(--c,0%) 0 0 0 round 14px);
  transform:translateY(var(--ty,0%)) rotateX(var(--rx,0deg)) scale(var(--s,1));filter:brightness(var(--b,1));will-change:transform,clip-path}
html.up-sh .up-frames .pj-media::before{content:"";position:absolute;left:1.4%;top:.85%;width:9px;height:9px;border-radius:50%;background:#e2664f;box-shadow:15px 0 #e3a64a,30px 0 #6dbb63;z-index:2}
html.up-sh .up-frames .pj-media::after{content:attr(data-host);position:absolute;left:50%;top:.55%;transform:translateX(-50%);min-width:min(42%,340px);padding:3px 14px;border-radius:7px;background:#2a2018;color:#b9a796;font-size:11.5px;text-align:center;z-index:2}
html.up-sh .up-frames .pj-media img{height:100%;object-position:top center;transform:scale(var(--k,1.08));transition:none}
html.up-sh .up-frames .pj-media:hover img{transform:scale(calc(var(--k,1.08) + .015));transition:transform .6s}
/* info card over the frame, bottom-left */
html.up-sh .up-texts{position:absolute;left:0;bottom:clamp(24px,6vh,64px);width:min(430px,34vw);z-index:3;pointer-events:none}
html.up-sh .up-texts .pj-text{position:absolute;left:0;right:0;bottom:0;padding:24px 26px 26px;border-radius:18px;background:rgba(23,18,13,.72);border:1px solid #ffffff14;-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);box-shadow:0 30px 60px -20px #000c;
  opacity:0;transform:translateY(24px);transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
html.up-sh .up-texts .pj-text.is-on{opacity:1;transform:none;pointer-events:auto}
html.up-sh .up-texts .pj-text>*{opacity:1!important;transform:none!important}
html.up-sh .up-texts .pj-num{margin-bottom:8px}
html.up-sh .up-texts h3{margin:0;font-size:clamp(30px,2.6vw,42px);font-weight:600;letter-spacing:-.04em;line-height:1;color:#f7f2e9}
html.up-sh .up-texts .pj-desc{margin-top:12px;font-size:15.5px}
html.up-sh .up-texts .pj-built{margin-top:14px}
html.up-sh .up-texts .pj-link{margin-top:16px}
html.up-sh .up-texts .pj-text:not(.is-on) a{visibility:hidden}
/* progress */
html.up-sh .up-rail{position:absolute;right:0;top:3.5vh;display:flex;align-items:center;gap:14px;font-size:13px;letter-spacing:.14em;color:#8f7c6a;font-variant-numeric:tabular-nums;z-index:3}
html.up-sh .up-rail i{display:block;width:120px;height:1px;background:#3a2c20;position:relative;overflow:hidden}
html.up-sh .up-rail i::after{content:"";position:absolute;inset:0;background:#d77b43;transform-origin:left;transform:scaleX(var(--p,0))}
html.up-sh .up-rail b{color:#f3c29d;font-weight:500}
@media (max-height:700px){html.up-sh .up-texts .pj-built{display:none}}
