/* Artificial Media v3 · prototip (13. 10. 2026.)
   Pismo: AM Puni (brand/05-logo/runda9-font). Crvena: REC crvena iz dosadašnjih tokena (#E23B2E). */
/* @font-face za AM Puni je u css/ampuni-font.css (generirano, pismo ugrađeno). */
:root {
  --bg: #ECE8DF;          /* papir za scenarij: topla, nježno siva bijela (Kristian, 13. 10. 2026.) */
  --paper: url("../img/paper.png");   /* zrno papira (tools/make_paper.py) */
  --ink: #1D1B18;         /* tinta pisaćeg stroja: toplo crna */
  --red: #E23B2E;         /* REC crvena: ART i ME */
  --red-dim: rgba(226, 59, 46, .25);
  --ghost: rgba(29, 27, 24, .09);
  --bar: #0A0A0A;
  --bar-ink: #F4F3EF;
  --mute: #6F6A60;
  --bar-h: 56px;
  --script: "Courier Prime", "Courier New", Courier, monospace;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;   /* moderno pismo za reelove i sučelje */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; cursor: default; scrollbar-gutter: stable; }   /* strelica i iznad teksta; linkovi i gumbi imaju ruku */
html.locked { overflow: hidden; overscroll-behavior: none; }   /* tijek se ne može preskočiti (js/main.js, Flow) */
body { margin: 0; background: var(--bg) var(--paper) repeat; background-size: 256px 256px; color: var(--ink); font-family: var(--script); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- crna traka ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 20;
  display: flex; align-items: center; padding: 0 24px;
  background: var(--bar);
  transform: translateY(-101%); visibility: hidden;   /* skrivena traka ne smije ostaviti ni crticu na vrhu (mobitel) */
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s;
}
.bar.on { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(244, 243, 239, .08); }   /* traka nad crnim reelovima */
.bar-logo {
  font-family: "AM Puni"; font-size: 26px; line-height: 1; color: var(--bar-ink);
  text-decoration: none; white-space: nowrap; padding-top: 2px;
}
.bar-logo .r { color: var(--red); }
.bar-logo:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 320vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg) var(--paper) repeat; background-size: 256px 256px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.paper-base { fill: var(--bg); }
.hint {
  cursor: pointer;
  position: absolute; left: 50%; bottom: 26px; margin: 0; transform: translateX(-50%);
  font: 12px/1 var(--script); letter-spacing: .28em; color: var(--mute); transition: opacity .3s;
}

/* ---------- drugi slide: tri trake s videom (Kristian, 19. 10. i 10. 11. 2026.) ----------
   Trake su u pozornici heroja, iznad pokrova. Na jedan pokret ulaze vodoravno, jedna za drugom (js/main.js, Bands, vremena u T):
   gornja s lijeve strane, srednja s desne, donja s lijeve. Svaka traka je točno trećina visine; video je viši od nje i pomaknut, pa ostaje isti kadar. Kreće se samo transform. */
.hero.has-cards { height: 620vh; height: 620svh; }   /* 220 za zum u slovo D + 3 × 100 (ostalo od dizanja karata; trake ih preskoče, a treba ih slobodan scroll) + 100 pozornica */
.cards { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.hero:not(.has-cards) .cards { display: none; }
html.cards-dark { background: #0A0A0A; }
.card {
  position: absolute; left: 0; right: 0; top: 0; overflow: hidden; background: #0A0A0A;
  height: var(--band-h, 33.334%); box-shadow: 0 -18px 50px rgba(0, 0, 0, .5);
}
.card.c2 { top: var(--band-h, 33.333%); }
.card.c3 { top: calc(2 * var(--band-h, 33.333%)); height: var(--band-h3, 33.334%); }
.card.c1, .card.c3 { transform: translate3d(calc(-100% - 90px), 0, 0); }   /* čeka izvan ekrana, na strani s koje ulazi */
.card.c2 { transform: translate3d(calc(100% + 90px), 0, 0); }
.card.seat { transform: none; }                                      /* sjela: bez vlastitog sloja, tekst je oštar */
.cards.bands .card { transition: transform var(--band-in, 1050ms) var(--band-ease, cubic-bezier(.16, 1, .3, 1)); will-change: transform; }   /* sloj samo dok se traka miče (Bands) */
.card-v { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.card.c1 .card-v { top: -100%; height: 300%; }                       /* u trećini ostane sredina kadra */
.card.c2 .card-v { top: -50%; height: 200%; }
.card::before {                                                      /* blago zatamnjenje iza rečenice */
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 100%;
  background: linear-gradient(180deg, rgba(8, 8, 8, .5) 0%, rgba(8, 8, 8, .22) 75%, rgba(8, 8, 8, 0) 100%);
}
.card-t {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 100%; margin: 0;
  display: flex; align-items: center; padding: 0 clamp(20px, 4vw, 64px);
  font: 400 clamp(34px, 5.6vw, 108px)/.86 "AM Puni", "Arial Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em;
  color: #F4F3EF; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.card-t .dot { color: var(--red); }
/* ZAKLJUČAK (21. 10. 2026.): na pokret prema dolje nakon treće karte rečenice na kartama izblijede, a trake odu svaka na svoju
   stranu (gornja lijevo, srednja desno, donja lijevo) i otkriju #sum: lijevo papir s rečenicom, desno video. Natrag: obrnutim redom.
   Klase na .cards: fade (rečenice na kartama), open (#sum vidljiv), out (trake vani), in (rečenica). VREMENA su u js/main.js (Sum, T):
   tamo se postave varijable --sum-fade, --sum-out, --sum-step, --sum-vfade, --sum-in, --sum-rise i --sum-back. */
/* samo dok je zaključak otvoren (open) */
.cards.open .card { transition: transform var(--sum-back) cubic-bezier(.65, 0, .35, 1); }
.cards.open .card.c3 { transition-delay: 0s; } .cards.open .card.c2 { transition-delay: var(--sum-step); } .cards.open .card.c1 { transition-delay: calc(2 * var(--sum-step)); }
.cards.out .card { transition-duration: var(--sum-out); }
.cards.out .card.c1 { transform: translate3d(calc(-100% - 90px), 0, 0); transition-delay: 0s; }   /* + 90 px da ne ostane sjena trake */
.cards.out .card.c2 { transform: translate3d(calc(100% + 90px), 0, 0); transition-delay: var(--sum-step); }
.cards.out .card.c3 { transform: translate3d(calc(-100% - 90px), 0, 0); transition-delay: calc(2 * var(--sum-step)); }
.card-t > span { transition: opacity var(--sum-fade) ease; }
.cards.fade .card-t > span { opacity: 0; }
/* SPLIT (27. 10. 2026.): zajednički izgled bloka WHERE ART (#sum) i ekrana WHO WE ARE? iza njega: pola ekrana papir s naslovom, pola video.
   .split--text-left: papir lijevo; .split--text-right: video lijevo. Na mobitelu (dolje) papir gore, video dolje. */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-paper {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 3vw 0 6vw; background: var(--bg) var(--paper) repeat; background-size: 256px 256px;
}
.split-t { margin: 0; font: 400 5.6vw/.86 "AM Puni", "Arial Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); text-wrap: balance; }
.split-t .r { color: var(--red); }
.split-media { position: relative; overflow: hidden; background: #0A0A0A; }
.split-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split--text-right .split-media { order: -1; }
.split-screen { height: 100vh; height: 100svh; }
/* WHO WE ARE? (10. 11. 2026.): leži točno preko bloka WHERE ART (negativni margin), polovice čekaju izvan ekrana (js/main.js, Who, klasa in): video odozdo, papir odozgo.
   Ujedno je vrata sekcije #why: pokret dolje nastavi kretanje polovica (video gore, papir dolje) i otkrije tablicu (js/main.js, Why, klasa apart). */
#split-2 { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; overflow: hidden; pointer-events: none; }
#split-2 .split-paper, #split-2 .split-media { transition: transform var(--who-in, 1050ms) var(--who-ease, cubic-bezier(.16, 1, .3, 1)); }
#split-2 .split-media { transform: translate3d(0, 100%, 0); }
#split-2 .split-paper { transform: translate3d(0, -100%, 0); }
#split-2.in .split-paper, #split-2.in .split-media { transform: none; }
#split-2.moving .split-paper, #split-2.moving .split-media { will-change: transform; }   /* sloj samo dok se polovice miču (Who, Why) */
#split-2.apart .split-paper, #split-2.apart .split-media { transition: transform var(--why-split, 900ms) cubic-bezier(.65, 0, .35, 1); }
#split-2.apart .split-media { transform: translate3d(0, -100%, 0); }
#split-2.apart .split-paper { transform: translate3d(0, 100%, 0); }

/* ---------- ZAŠTO AI PRODUKCIJA (#why, 29. 10. 2026.) ----------
   Leži točno ispod ekrana WHO WE ARE? (negativni margin), crna; skrivena dok taj ekran ne stoji, jer je inače preko bloka WHERE ART. Tablica: zaglavlje (TRADITIONAL SHOOT sivo, ARTIFICIAL MEDIA crveno) i četiri reda;
   svaki red: naziv s podnaslovom, brojka klasične produkcije (siva) i naša (papir) s trakama ispod, a pod tablicom footnote.
   Sve mora stati u jedan ekran: redovi se stisnu ako treba, veličine prate i visinu ekrana. Podaci: js/why-data.js. Vremena: js/main.js (Why, T). */
.why {
  --why-grey: #8A867E; --why-line: rgba(236, 232, 223, .25);
  position: relative; z-index: 0; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; overflow: hidden; visibility: hidden;
  background: #0A0A0A; color: var(--bg);
}
.why.under { visibility: visible; }
.why-in { position: absolute; left: 8vw; right: 8vw; top: calc(var(--bar-h) + 3vh); bottom: 88px; display: flex; flex-direction: column; }   /* sadržaj 84vw, između crne trake i SCROLL-a */
.why-tag { flex: none; margin: 0 0 3.4vh; font: .85rem/1 var(--script); letter-spacing: .28em; text-transform: uppercase; color: var(--bg); }
.why-table { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.why-head, .why-row { display: grid; grid-template-columns: 34fr 33fr 33fr; column-gap: 3vw; align-items: center; border-bottom: 1px solid var(--why-line); }
.why-head { flex: none; padding-bottom: 1.4vh; }
.why-h { font: .85rem/1.2 var(--script); letter-spacing: .18em; text-transform: uppercase; }
.why-h--trad { color: var(--why-grey); }
.why-h--am { color: var(--red); }
.why-row { flex: 0 1 16vh; min-height: 0; }
.why-dim { margin: 0; font: 1rem/1.3 var(--script); letter-spacing: .06em; text-transform: uppercase; color: var(--bg); }
.why-sub { margin: .5em 0 0; font: .68rem/1.2 var(--script); letter-spacing: .18em; text-transform: uppercase; color: var(--why-grey); }
.why-cell { min-width: 0; }
.why-num { position: relative; margin: 0 0 1.2vh; font: 400 5vw/.86 "AM Puni", "Arial Black", Impact, sans-serif; font-size: min(5vw, 8.5svh); white-space: nowrap; }
.why-cell--trad .why-num { color: var(--why-grey); }
.why-cell--am .why-num { color: var(--bg); }
.why-from { font: .85rem/1 var(--script); letter-spacing: .18em; text-transform: uppercase; color: var(--why-grey); }
.why-from { position: absolute; left: 0; bottom: 100%; margin-bottom: 5px; }   /* iznad broja, da brojevi i trake u redu ostanu poravnati */
.why-bar { display: block; height: 4px; }
.why-bar b { display: block; width: max(24px, calc(var(--f, 1) * 100%)); height: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease; }   /* --f računa js/main.js (Why) */
.why-cell--trad .why-bar b { background: var(--why-grey); }
.why-cell--am .why-bar b { background: var(--red); }
.why-note { flex: none; max-width: 62em; margin: 14px 0 0; font: 400 .75rem/1.45 var(--ui); color: var(--why-grey); }
.why-note a { color: inherit; }
.why-note a:hover { color: var(--bg); }
.why-note a:focus-visible { outline: 1px solid var(--red); outline-offset: 2px; }
/* red dolazi (klasa on): fade s pomakom; traka naraste do svoje širine; krivulja je ista kao kod brojača (js/main.js, count) */
.why-row, .why-note { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.why-row.on, .why-note.on { opacity: 1; transform: none; transition: opacity var(--why-in, 400ms) ease, transform var(--why-in, 400ms) ease; }
.why-row.on .why-bar b { transform: none; transition: transform var(--why-count, 600ms) var(--why-ease, cubic-bezier(.33, 1, .68, 1)); }
.why-go {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; margin: 0; padding: 8px 14px 8px calc(14px + .28em); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 13px/1 var(--script); letter-spacing: .28em; color: var(--bg);
  opacity: 0; transition: opacity .5s ease; pointer-events: none; cursor: pointer;
}
.why-go::after { content: ""; width: 1px; height: 26px; margin-left: -.28em; background: currentColor; animation: go-line 1.6s ease-in-out infinite; }
.why.ready .why-go { opacity: 1; pointer-events: auto; }
/* blok WHERE ART (#sum) leži ispod karata i ulazi s njihovim izlaskom (klase open i in na .cards, js/main.js, Sum) */
.sum { position: absolute; inset: 0; visibility: hidden; }
.cards.open .sum { visibility: visible; }
.sum .split-t { white-space: nowrap; opacity: 0; transform: translateY(var(--sum-rise)); transition: opacity .2s ease, transform .2s ease; }
.cards.in .sum .split-t { opacity: 1; transform: none; transition: opacity var(--sum-in) ease-out, transform var(--sum-in) ease-out; }
.sum .split-v { opacity: 0; }
.cards.open .sum .split-v { opacity: 1; transition: opacity var(--sum-vfade) ease; }   /* video uđe kad krene prva traka */
/* SCROLL (js/main.js, Flow, klasa ready na .cards): na trećoj karti nakon sekunde mira, dolje u sredini; na zaključku 1,5 s nakon
   rečenice, na desktopu dolje lijevo na papiru, tintom. Svaki pokret prema dolje je jedan korak: treća karta → trake → reelovi. */
.cards-go {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; margin: 0; padding: 8px 14px 8px calc(14px + .28em); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 13px/1 var(--script); letter-spacing: .28em; color: #F4F3EF; text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .5s ease; pointer-events: none; cursor: pointer;
}
.cards-go::after { content: ""; width: 1px; height: 26px; margin-left: -.28em; background: currentColor; animation: go-line 1.6s ease-in-out infinite; }
.cards.ready .cards-go { opacity: 1; pointer-events: auto; }
.cards.in .cards-go { left: 6vw; transform: none; padding: 8px 0; color: var(--ink); text-shadow: none; }
@keyframes go-line {
  0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- petlja: ART / ME kao scenarij ---------- */
.loop { position: relative; height: 180vh; }   /* tekst se tipka sam; sekcija malo zastane dok se čita */
.loop-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6vh;
  padding: 32px 24px;
  background: var(--bg) var(--paper) repeat; background-size: 256px 256px;   /* papir stoji s tekstom, ne klizi dok se tipka */
}
.name {
  -webkit-user-select: none; user-select: none;
  margin: 0; font-family: "AM Puni"; font-size: clamp(44px, 8.4vw, 134px); line-height: .82; white-space: nowrap; text-align: left;
}
.name .m { display: none; }
.name .p { color: var(--ghost); transition: color .4s ease, opacity .4s ease; display: inline-block; }
[data-beat="1"] .me,
[data-beat="2"] .me, [data-beat="2"] .art { color: var(--red); }
[data-beat="3"] .me, [data-beat="3"] .art { color: var(--red-dim); }
[data-beat="3"] .ai { color: var(--ink); }
[data-beat="4"] .tool, [data-beat="4"] .ai { color: var(--ink); }
[data-beat="4"] .art, [data-beat="4"] .me { color: var(--red); opacity: 1; animation: close-loop .7s cubic-bezier(.2, .8, .2, 1); }
/* kad je sve otipkano: blok pod mišem pali samo svoj dio imena */
.focusable[data-focus="me"] .p, .focusable[data-focus="art"] .p, .focusable[data-focus="ai"] .p { color: var(--ghost); animation: none; }
.focusable[data-focus="me"] .me, .focusable[data-focus="art"] .art { color: var(--red); }
.focusable[data-focus="ai"] .ai { color: var(--ink); }
.focusable .blk { cursor: default; }
@keyframes close-loop { 0% { transform: translateY(0); } 35% { transform: translateY(-6%); } 100% { transform: translateY(0); } }

.script {
  -webkit-user-select: none; user-select: none;
  width: 50ch; max-width: 100%; text-align: center;
  font-family: var(--script); font-weight: 700; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.45; color: var(--ink);
}
.script .blk { margin: 0 0 2.6em; }   /* mjesta za crveni marker između blokova */
.script .blk:last-child { margin-bottom: 0; }
.script .ln { display: block; white-space: pre-wrap; }
.script .dlg { max-width: 44ch; margin: 0 auto; }
.script .rest { visibility: hidden; }        /* još neotipkano: drži mjesto, pa se ništa ne pomiče */
/* crveni marker (rukom dopisano nakon tipkanja) */
.marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.marks path { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; opacity: .92; filter: url(#marker-rough); mix-blend-mode: multiply; }
.caret { display: inline-block; position: relative; width: 0; height: 1.1em; vertical-align: -.2em; }
.caret::after { content: ""; position: absolute; left: 1px; top: 0; width: .6em; height: 100%; background: var(--ink); animation: blink 1s steps(1) infinite; }
.caret.typing::after { animation: none; }   /* dok tipka, kursor je pun; kad stane, trepće */
@keyframes blink { 50% { opacity: 0; } }

/* ---------- gumb za zvuk ---------- */
.sound {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  font: 700 12px/1 var(--script); letter-spacing: .2em; color: #F4F3EF; background: rgba(14, 14, 14, .78);
  border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer;
}
.sound span { color: var(--red); }
.bar.on ~ .sound { top: calc((var(--bar-h) - 32px) / 2); bottom: auto; background: rgba(40, 40, 40, .9); }   /* kad je traka gore, SOUND je u njoj, da ne pokrije ploču reelova */
.sound[aria-pressed="true"] span { color: #F4F3EF; }
.sound:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- THE WORK (#work, 29. 10. 2026.; js/reels.js, projekti u js/reels-data.js) ----------
   Mockup brand/14-the-work-mockup-desktop.pdf: gore naslov i rečenica, lijevo monitor i ispod ploča s projektima, desno kartica projekta,
   dolje SCROLL. Na desktopu sve stane u jedan ekran ispod crne trake (ako ne stane, manji je monitor, ne tekst). */
.work {
  --s-bg: #0A0A0A; --s-ink: #F4F3EF; --s-dim: rgba(244, 243, 239, .6); --s-low: rgba(244, 243, 239, .35); --s-line: rgba(244, 243, 239, .12);
  --pad: clamp(20px, 3.9vw, 56px); --gap: clamp(10px, 2.2vh, 20px); --ease: cubic-bezier(.65, 0, .25, 1);
  position: relative; z-index: 1; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding: var(--bar-h) var(--pad) 0;
  background: var(--s-bg); color: var(--s-ink); font-family: var(--ui);
}
html.dark { background: #0A0A0A; }   /* traka za scrollbar uz crnu sekciju (js/reels.js) */
.wk-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding: clamp(16px, 3.6vh, 32px) 0 clamp(14px, 2.7vh, 24px); }
.wk-title { margin: 0; display: flex; align-items: flex-start; gap: 14px; font: 400 min(7.2vw, 11.6vh)/1 "AM Puni"; }
.wk-tw { display: block; overflow: hidden; height: .74em; }        /* samo visina velikog slova: naslov izroni odozdo */
.wk-tw > span { display: block; white-space: nowrap; line-height: .74; padding-top: .005em; transform: translateY(102%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.wk-tw .r { color: var(--red); }
.wk-n { font: 500 14px/1 var(--ui); letter-spacing: .06em; color: var(--s-dim); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .6s .5s; }
.wk-note { margin: 0; font: 400 13px/1.4 var(--script); color: var(--s-dim); opacity: 0; transition: opacity .7s .35s; }
.wk-body { flex: 1; min-height: 0; display: flex; gap: 48px; }
.wk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wk-screen { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.wk-tap { display: none; }

/* monitor: veličinu po formatu klipa računa js/reels.js (layout, --mw i --mh); prijelaz je gladak */
.monitor {
  position: relative; flex: none; width: var(--mw, 100%); height: var(--mh, 56%); background: #000; outline: 1px solid rgba(244, 243, 239, .1);
  transition: width .75s var(--ease), height .75s var(--ease);
}
.monitor.no-anim { transition: none; }
.monitor::before, .monitor::after {                                   /* zastor: monitor se otvori od sredine, kao ekran */
  content: ""; position: absolute; z-index: 6; left: -1px; right: -1px; height: calc(50% + 1px); background: var(--s-bg); pointer-events: none;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1) .1s;
}
.monitor::before { top: -1px; transform-origin: 50% 0; }
.monitor::after { bottom: -1px; transform-origin: 50% 100%; }
.monitor.open::before, .monitor.open::after { transform: scaleY(0); }
.screen { position: absolute; inset: 0; overflow: hidden; background: #000; }
.v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.v.on { opacity: 1; }
.frame { position: absolute; z-index: 3; inset: 0; pointer-events: none; }   /* kutne oznake kao u tražilu kamere */
.vf { position: absolute; z-index: 3; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .78); pointer-events: none; opacity: 0; transition: opacity .5s 1s, transform .7s cubic-bezier(.2, .8, .2, 1) 1s; }
.vf.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; transform: translate(14px, 14px); }
.vf.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; transform: translate(-14px, 14px); }
.vf.bl { bottom: 14px; left: 12px; border-width: 0 0 2px 2px; transform: translate(14px, -14px); }
.vf.br { bottom: 14px; right: 12px; border-width: 0 2px 2px 0; transform: translate(-14px, -14px); }
.hud {
  position: absolute; z-index: 3; top: 24px; display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--ui); letter-spacing: .08em; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transition: opacity .5s 1.1s;
}
.hud-tl { left: 46px; }
.hud-tr { right: 46px; }
.monitor.tight .hud { top: 16px; }                                   /* uski monitor (9:16): HUD iznad kutnih oznaka, gore desno samo omjer */
.monitor.tight .hud-tl { left: 16px; }
.monitor.tight .hud-tr { right: 16px; }
.monitor.tight .vf.tl, .monitor.tight .vf.tr { top: 42px; }
.monitor.tight .fmt-name { display: none; }
.rec { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(226, 59, 46, .7); }
.monitor.playing .rec i { animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.prog { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); pointer-events: none; }
.prog i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }

/* ploča kao na filmskoj kameri: udubljena ploča, tvrde tipke (PREV, projekti, NEXT) */
.wk-deck {
  flex: none; display: flex; align-items: stretch; gap: 3px; padding: 3px; border-radius: 8px; container-type: inline-size;
  background: #040404; border: 1px solid rgba(244, 243, 239, .07); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .7s .5s;
}
.wk-cards { flex: 1; min-width: 0; display: flex; gap: 3px; }
.wk-key {
  position: relative; border: 0; border-radius: 5px; cursor: pointer; text-align: left; font-family: var(--ui); color: rgba(244, 243, 239, .65);
  background: linear-gradient(180deg, #1d1d1d 0%, #131313 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .7);
  transition: color .25s, box-shadow .25s, transform .08s;
}
.wk-key:hover { color: rgba(244, 243, 239, .9); }
.wk-key:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9); }
.wk-key:focus-visible, .wk-watch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wk-nav { flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0; color: rgba(244, 243, 239, .75); }
.wk-nav span { font: 600 8.5px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; }
.wk-p { flex: 1 1 0; min-width: 0; height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 10px; overflow: hidden; }
.wk-th { flex: none; width: 64px; height: 36px; border-radius: 2px; background: #070707 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: .7; transition: opacity .25s; }
.wk-pt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-pl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: 100%; }   /* broj iznad naziva: naziv stane cijel */
.wk-pn { flex: none; font: 400 20px/1 "AM Puni"; color: rgba(244, 243, 239, .4); transition: color .25s; }
.wk-pname { min-width: 0; font: 600 14px/1 var(--ui); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-pt small { font: 700 9.5px/1 var(--script); letter-spacing: .2em; white-space: nowrap; opacity: .8; }
.wk-led { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: #2b1211; box-shadow: inset 0 0 1px #000; transition: background-color .2s, box-shadow .2s; }
.wk-pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.wk-p[aria-current="true"] {
  color: #fff; background: linear-gradient(180deg, #282828 0%, #1b1b1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(244, 243, 239, .2), 0 1px 2px rgba(0, 0, 0, .7);
}
.wk-p[aria-current="true"] .wk-th { opacity: 1; }
.wk-p[aria-current="true"] .wk-pn { color: var(--red); }
.wk-p[aria-current="true"] .wk-led { background: var(--red); box-shadow: 0 0 7px 1px rgba(226, 59, 46, .9); }
.wk-p[aria-current="true"] .wk-pbar { opacity: 1; }
.wk-p:disabled { opacity: .35; cursor: default; color: rgba(244, 243, 239, .65); background: #0e0e0e; box-shadow: inset 0 0 0 1px rgba(244, 243, 239, .08); transform: none; }
@media (min-width: 901px) {                                          /* uža ploča (manji ekran): kartice bez sličice */
  @container (max-width: 860px) { .wk-th { display: none; } }
}

/* kartica projekta */
.wk-card { width: 384px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: var(--gap); opacity: 0; transition: opacity .7s .6s; }
.wk-card.swap > * { animation: wk-swap .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wk-swap { from { opacity: 0; transform: translateY(6px); } }
.wk-pnr { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--s-line); padding-bottom: 14px; }
.wk-cap { font: 700 11px/1 var(--script); letter-spacing: .3em; text-transform: uppercase; color: var(--s-dim); }
.wk-pnum { font: 400 30px/1 "AM Puni"; }
.wk-pnum b { font-weight: 400; color: var(--red); }
.wk-pnum i { font-style: normal; color: var(--s-low); }
.wk-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wk-name h3 { margin: 0; font: 400 58px/.8 "AM Puni"; }
.wk-tag { font: 700 10px/1 var(--script); letter-spacing: .25em; color: var(--red); border: 1px solid var(--red); padding: 6px 6px 5px 8px; }
.wk-facts { margin: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); row-gap: 11px; column-gap: 12px; font: 400 14px/1.3 var(--ui); }
.wk-facts dt { font: 700 10.5px/1.6 var(--script); letter-spacing: .22em; text-transform: uppercase; color: var(--s-dim); }
.wk-facts dd { margin: 0; color: var(--s-ink); }
.wk-desc { margin: 0; font: 400 15px/1.5 var(--ui); color: rgba(244, 243, 239, .85); }
.wk-clips { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--s-line); }
.wk-clips li { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--s-line); color: var(--s-dim); }
.wk-clips b { width: 34px; flex: none; font: 400 24px/1 "AM Puni"; color: var(--s-low); }
.wk-clips .ct { flex: 1; min-width: 0; font: 500 14px/1 var(--ui); }
.wk-clips .cd { font: 500 12px/1 var(--ui); color: var(--s-dim); font-variant-numeric: tabular-nums; }
.wk-clips li[aria-current="true"] { color: var(--s-ink); box-shadow: inset 0 -2px 0 var(--red); }
.wk-clips li[aria-current="true"] b { color: var(--red); }
.wk-watch {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 12px 0 8px; border: 0; border-bottom: 1px solid var(--red); background: none; cursor: pointer;
  font: 700 11px/1 var(--script); letter-spacing: .3em; text-transform: uppercase; color: var(--s-ink);
}

@media (min-width: 901px) and (max-height: 760px) {                  /* nizak ekran: manji razmaci u kartici projekta (tekst ostaje iste veličine) */
  .work { --gap: 10px; }
  .wk-clips li { min-height: 34px; padding: 6px 0; }
  .wk-pnr { padding-bottom: 10px; }
}

/* SCROLL: dolje u sredini, isti kao na drugim ekranima; klik = pokret dolje (js/reels.js → Flow) */
.wk-go {
  flex: none; align-self: center; margin: 0; padding: 14px 14px 14px calc(14px + .28em);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 13px/1 var(--script); letter-spacing: .28em; color: var(--s-ink); cursor: pointer;
  opacity: 0; transition: opacity .5s ease;
}
.wk-go::after { content: ""; width: 1px; height: 26px; margin-left: -.28em; background: currentColor; animation: go-line 1.6s ease-in-out infinite; }

/* ulazak u sekciju (js/reels.js doda .in) */
.work.in .wk-tw > span { transform: none; }
.work.in .wk-n, .work.in .wk-note, .work.in .wk-deck, .work.in .wk-card { opacity: 1; }
.work.in .wk-go { opacity: 1; transition-delay: 1.4s; }
.monitor.open .vf, .monitor.open .hud { opacity: 1; transform: none; }

/* ---------- sljedeće (privremeno) ---------- */
/* privremeno (26. 10. 2026.): prazan papir ispod ekrana 3; ovdje dolaze sljedeće sekcije */
.next { height: 50vh; height: 50svh; background: var(--bg) var(--paper) repeat; background-size: 256px 256px; }
.todo { margin: 0; padding: 26px 34px; border: 1px dashed rgba(244, 243, 239, .25); font: 14px/1.4 var(--script); color: rgba(244, 243, 239, .5); text-align: center; }

/* #why na niskom ekranu računala: manji broj i razmaci, da FROM ostane unutar reda */
@media (min-width: 641px) and (max-height: 720px) {
  .why-tag { margin-bottom: 2vh; }
  .why-num { font-size: min(5vw, 7svh); }
  .why-from { margin-bottom: 2px; }
  .why-note { max-width: none; margin-top: 8px; }
}

/* ---------- mobitel ---------- */
@media (max-width: 640px) {
  .card-t { font-size: clamp(30px, 9.4vw, 46px); line-height: .9; padding: 0 16px; }
  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }    /* mobitel: gore papir s naslovom, dolje video */
  .split--text-right .split-media { order: 0; }
  .why-in { left: 16px; right: 16px; top: calc(var(--bar-h) + 1.4svh); bottom: 50px; }     /* mobitel: dva stupca, naziv preko cijele širine */
  .why-tag { margin-bottom: 1.4svh; font-size: .75rem; }
  .why-head, .why-row { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .why-head { padding-bottom: 6px; }
  .why-h { font-size: .75rem; }
  .why-h--dim, .why-h-x { display: none; }
  .why-row { flex: 0 1 15svh; align-content: center; }
  .why-label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; margin-bottom: 13px; }
  .why-dim { font-size: .8rem; line-height: 1.2; }
  .why-sub { margin: 0; font-size: .58rem; letter-spacing: .12em; }
  .why-num { margin-bottom: 5px; font-size: 10.4vw; font-size: min(10.4vw, 5.6svh); }
  .why-from { margin-bottom: 3px; font-size: .7rem; }
  .why-bar { height: 3px; }
  .why-note { margin-top: 8px; font-size: .68rem; line-height: 1.35; }
  .why-go { bottom: 0; padding-top: 6px; padding-bottom: 6px; gap: 5px; }
  .why-go::after { height: 14px; }
  .split-t { font-size: 12vw; }
  #split-2.apart .split-media { transform: translate3d(0, 100%, 0); }    /* mobitel: papir je gore, video dolje, pa se otvore prema van */
  #split-2.apart .split-paper { transform: translate3d(0, -100%, 0); }
  .cards.in .cards-go { left: 50%; transform: translateX(-50%); padding: 8px 14px 8px calc(14px + .28em); color: #F4F3EF; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }   /* mobitel: dolje je video */
  :root { --bar-h: 48px; }
  .bar { padding: 0 16px; }
  .bar-logo { font-size: 21px; }
  .name { font-size: 15.5vw; }
  .name .m { display: inline; }
  .loop-stage { gap: 4vh; padding-left: 16px; padding-right: 16px; }
  .sound { right: 12px; bottom: 12px; }
  .script { width: 100%; font-size: 15px; }
}

/* THE WORK na tabletu i mobitelu: naslov i rečenica, monitor preko širine (9:16 visok koliko stane), "Tap to watch with sound",
   ploča s karticama koja se lista prstom vodoravno (bez PREV / NEXT), kartica projekta, SCROLL. Sekcija smije biti viša od ekrana. */
@media (max-width: 900px) {
  .work { height: auto; overflow: visible; padding: var(--bar-h) 0 0; }
  .wk-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 16px 18px; }
  .wk-title { gap: 8px; font-size: min(16vw, 120px); }               /* "THE WORK." i (03) u jednom redu */
  .wk-n { font-size: 12px; }
  .wk-body { flex-direction: column; gap: 0; }
  .wk-screen { flex: none; padding: 0 16px; }
  .wk-tap { display: block; margin: 10px 16px 0; text-align: center; font: 500 11px/1 var(--ui); letter-spacing: .06em; color: var(--s-dim); }
  .wk-deck { margin: 14px 16px 0; }
  .wk-nav { display: none; }
  .wk-cards { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 3px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .wk-cards::-webkit-scrollbar { display: none; }
  .wk-p { flex: none; height: 64px; gap: 10px; padding: 0 22px 0 8px; scroll-snap-align: start; }
  .wk-p:disabled { padding-left: 12px; }
  .wk-pl { flex-direction: row; align-items: baseline; gap: 7px; }
  .wk-pn { font-size: 16px; }
  .wk-pname { font-size: 12px; overflow: visible; }
  .wk-pt { gap: 6px; }
  .wk-pt small { font-size: 8.5px; letter-spacing: .16em; }
  .wk-led { top: 7px; right: 8px; }
  .wk-card { width: auto; padding: 22px 16px 0; gap: 16px; }
  .wk-name h3 { font-size: 40px; }
  .wk-pnum { font-size: 22px; }
  .wk-facts { grid-template-columns: 112px minmax(0, 1fr); row-gap: 9px; column-gap: 10px; font-size: 13px; }
  .wk-facts dt { font-size: 10px; letter-spacing: .18em; }
  .wk-desc { font-size: 14px; }
  .wk-go { margin-top: 18px; }
  .hud-tl { left: 40px; } .hud-tr { right: 40px; }
  .hud { top: 22px; font-size: 11px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #split-2 { margin-top: 0; }
  #split-2 .split-paper, #split-2 .split-media { transform: none !important; transition: none !important; }
  .why { margin-top: 0; visibility: visible; }                      /* bez razdvajanja: #why stoji ispod ekrana WHO WE ARE?, sve odmah vidljivo */
  .why-row, .why-note { opacity: 1 !important; transform: none !important; transition: none !important; }
  .why-bar b { transform: none !important; transition: none !important; }
  .card, .card-t > span, .sum .split-t, .sum .split-v { transition: none !important; }
  .bar { transition: none; }
  .caret::after { animation: none; }
  [data-beat="4"] .art, [data-beat="4"] .me { animation: none; }
  .work *, .work *::before, .work *::after { transition: none !important; animation: none !important; }
  .work .monitor::before, .work .monitor::after { display: none; }
}
