/* Urbano case study (scripts/urbano-case.js), after Metalab's Upwork case: one black ground from top to bottom, the
   name in a serif, a small label and one statement, then one large screen on a full-width panel in Urbano's blue. Loaded only on /work/urbano/ and /sr/radovi/urbano/, after the shared styles. */
@font-face { font-family: 'Zodiak'; src: url('/assets/fonts/zodiak/zodiak-400.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
body[data-page-kind="case"] { --ub: #0141c3; --bg: #050607; --serif: 'Zodiak', Georgia, serif; --sans: 'Geist', 'General Sans', system-ui, sans-serif; --ease: cubic-bezier(.22, 1, .36, 1); --gut: clamp(16px, 1.7vw, 26px); background: var(--bg); }
body[data-page-kind="case"] .page-header { position: absolute; z-index: 20; left: 0; right: 0; top: 0; width: auto; min-height: 76px; margin: 0; padding: 0 var(--gut); color: #fff; }
body[data-page-kind="case"] .page-header a { color: #fff; }
body[data-page-kind="case"] main { background: var(--bg); }

.uc { color: #fff; font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.uc *, .uc *::before, .uc *::after { box-sizing: border-box; }
.uc img, .uc video { display: block; max-width: 100%; height: auto; }
:where(.uc) :where(h1, h2, p, figure, ul, dl, dd) { margin: 0; padding: 0; }
:where(.uc) ul { list-style: none; }
.uc h1, .uc h2, .uc p, .uc li, .uc dt, .uc dd, .uc figcaption, .uc b { color: inherit; }

/* opening: the name, what it is, then the product itself */
.uc-open { padding: clamp(150px, 24vh, 230px) var(--gut) clamp(24px, 3.4vh, 40px); }
.uc .uc-name { max-width: none; font: 400 clamp(72px, 11.4vw, 210px)/.95 var(--serif); letter-spacing: -.035em; }
.uc-meta { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 18px 24px; margin-top: clamp(50px, 13vh, 130px); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; }
.uc-meta dd { opacity: .5; }
.uc-meta a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); transition: border-color .3s; }
.uc-meta dd:has(a) { opacity: 1; } .uc-meta a:hover { border-color: #fff; }

/* a panel: Urbano's blue, edge to edge, with one screen in the middle of it */
.uc-panel { margin: 0; padding: clamp(26px, 7vw, 120px) clamp(16px, 15vw, 280px) clamp(20px, 3.2vw, 50px); background: var(--ub); }
.uc-sec > .uc-panel { margin-inline: calc(var(--gut) * -1); }
.uc .uc-panel + .uc-panel, .uc-two + .uc-panel, .uc-side { margin-top: var(--gut); }
.uc-hero { padding-bottom: clamp(26px, 7vw, 120px); }
.uc figcaption { margin-top: clamp(14px, 2vw, 30px); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.35; color: rgba(255, 255, 255, .72); }
.uc figcaption b { margin-right: .7em; font-weight: 500; color: #fff; }
.uc-win { overflow: hidden; border-radius: clamp(6px, .8vw, 12px); background: #fff; box-shadow: 0 50px 100px -40px rgba(0, 10, 70, .75); }
.uc-win > i { display: none; height: clamp(14px, 1.8vw, 26px); background: radial-gradient(circle at 16px 50%, #c9cfdb 3.5px, transparent 4.1px), radial-gradient(circle at 30px 50%, #c9cfdb 3.5px, transparent 4.1px), radial-gradient(circle at 44px 50%, #c9cfdb 3.5px, transparent 4.1px), #eef0f5; }
.uc-win img, .uc-win video { width: 100%; }
.uc-win video { aspect-ratio: 1440 / 900; object-fit: cover; background: #dfe5f1; }

/* sections */
.uc-sec { padding: clamp(120px, 30vh, 330px) var(--gut) 0; }
.uc-label { margin-bottom: clamp(16px, 2.6vh, 30px); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.3; }
.uc .uc-lead { max-width: 23em; text-wrap: wrap; font: 400 clamp(28px, 4.5vw, 72px)/1.14 var(--sans); letter-spacing: -.035em; }
.uc-say { width: 50%; margin: 0 0 clamp(70px, 18vh, 200px) auto; padding-right: 2vw; }
.uc .uc-state { max-width: 17em; text-wrap: wrap; font: 400 clamp(25px, 3vw, 48px)/1.14 var(--sans); letter-spacing: -.032em; }
.uc-text { max-width: 27em; margin-top: clamp(18px, 3vh, 32px); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .78); }

.uc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.uc-phone { padding: clamp(22px, 4.5vw, 80px) clamp(16px, 3vw, 46px) clamp(18px, 3vw, 46px); }
.uc-phone img { width: min(100%, 330px); margin-inline: auto; border-radius: clamp(14px, 1.8vw, 28px); box-shadow: 0 50px 100px -40px rgba(0, 10, 70, .75); }
.uc-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gut); align-items: start; }
.uc .uc-side .uc-text { margin: 0; padding-top: 4px; }
.uc-side .uc-panel { margin: 0; padding-inline: clamp(16px, 4.5vw, 80px); }

.uc-phones { padding-right: 0; }
.uc-strip { display: flex; gap: var(--gut); padding: 0 var(--gut) 22px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent; }
.uc-strip li { flex: 0 0 clamp(250px, 27vw, 430px); scroll-snap-align: start; }
.uc-strip img { aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; }

.uc-dia { padding-block: clamp(30px, 6vw, 96px); }
.uc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4vw; }
.uc-row.is-b { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uc-row li { position: relative; padding: clamp(12px, 2vh, 22px) 6px; margin-bottom: clamp(30px, 6vh, 60px); border: 1px solid rgba(255, 255, 255, .34); border-radius: 99px; text-align: center; font-size: clamp(13px, 1.5vw, 24px); line-height: 1; letter-spacing: -.02em; }
.uc-row.is-b li { margin: clamp(30px, 6vh, 60px) 0 0; }
.uc-row li::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: clamp(30px, 6vh, 60px); background: rgba(255, 255, 255, .34); }
.uc-row.is-b li::after { top: auto; bottom: 100%; }
.uc-core { display: grid; place-items: center; padding: clamp(20px, 4vh, 44px) 0; border-radius: 14px; background: #fff; color: var(--ub); }
.uc-core b { font: 500 clamp(44px, 6.5vw, 120px)/.9 var(--sans); letter-spacing: -.06em; }

.uc-end { padding-bottom: clamp(50px, 9vh, 110px); }
.uc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(34px, 7vh, 70px); }
.uc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 99px; color: #fff; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.uc-btn span { transition: transform .45s var(--ease); }
.uc-btn.is-main { border-color: #fff; background: #fff; color: #000; }
.uc-btn:hover, .uc-btn:focus-visible { border-color: #fff; background: #fff; color: #000; }
.uc-btn.is-main:hover, .uc-btn.is-main:focus-visible { background: var(--ub); border-color: var(--ub); color: #fff; }
.uc-btn:hover span { transform: translate(3px, -3px); }
.uc-next { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 20px; margin-top: clamp(80px, 16vh, 180px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none; font-size: clamp(15px, 1.15vw, 18px); }
.uc-next b { font: 500 clamp(30px, 5vw, 84px)/1 var(--sans); letter-spacing: -.05em; }
.uc-next b i { display: inline-block; margin-left: .2em; font-style: normal; transition: transform .45s var(--ease); }
.uc-next:hover b i { transform: translate(6px, -6px); }
.uc-next span { opacity: .7; } .uc-next span:last-child { text-align: right; }

/* the long look (the reference's own move): pinned while the screen draws back from a close-up into its frame */
.uc-pin { margin: var(--gut) calc(var(--gut) * -1) 0; }
.uc-pin-in { display: grid; place-items: center; padding: clamp(26px, 7vw, 120px) 0; background: var(--ub); overflow: hidden; }
.uc-pin-fig { width: min(70vw, 132vh); margin: 0; }
.uc-pin + .uc-panel, .uc-pin + .uc-side { margin-top: var(--gut); }
.uc.is-js .uc-pin { height: 290vh; }
.uc.is-js .uc-pin-in { position: sticky; top: 0; height: 100vh; padding: 0; }
.uc.is-js .uc-pin .uc-win { transform-origin: 46% 42%; will-change: transform, filter; }
.uc.is-js .uc-win > img, .uc.is-js .uc-win > video { will-change: transform; }

/* motion (assets/urbano-case.js): everything but the name is driven by the scroll position itself */
.uc.is-js .uc-name { overflow: hidden; padding-block: .08em .16em; margin-block: -.08em -.16em; }
.uc.is-js .uc-name span { display: inline-block; animation: ucUp 1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
.uc.is-js .uc-meta > div { animation: ucIn .9s var(--ease) both; animation-delay: .55s; } .uc.is-js .uc-meta > div:nth-child(2) { animation-delay: .62s; } .uc.is-js .uc-meta > div:nth-child(3) { animation-delay: .69s; } .uc.is-js .uc-meta > div:nth-child(4) { animation-delay: .76s; }
@keyframes ucUp { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
@keyframes ucIn { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.uc.is-js .uc-panel > .uc-win, .uc.is-js .uc-panel > img, .uc.is-js .uc-strip { will-change: transform; }
.uc.is-js .uc-win, .uc.is-js .uc-phone img { transform-origin: 50% 100%; }

@media (max-width: 760px) {
    .uc-open { padding-top: 130px; }
    .uc-meta { grid-template-columns: 1fr 1fr; }
    .uc-say { width: auto; margin-left: 0; padding-right: 0; }
    .uc-panel { padding: 26px 16px 18px; } .uc-hero { padding-bottom: 26px; }
    .uc-sec { padding-top: 110px; }
    .uc-pin-fig { width: 92vw; } .uc.is-js .uc-pin { height: 230vh; }
    .uc-two { grid-template-columns: minmax(0, 1fr); } .uc-phone img { width: min(72%, 300px); }
    .uc-side { grid-template-columns: minmax(0, 1fr); } .uc-side .uc-panel { padding-inline: 14px; }
    .uc-strip li { flex-basis: 66vw; } .uc-strip .uc-phone img { width: 100%; }
    .uc-row { gap: 6px; }
    .uc-next { grid-template-columns: 1fr; gap: 10px; } .uc-next span:last-child { text-align: left; }
}
