/* Show "Sumrak": cetiri stanice, jedan sloj scene, bez sekvence kadrova. */
html{overscroll-behavior-y:none}
.show{position:relative;height:100vh;height:100svh;background:#0d0c0b}
.show__stage{position:relative;height:100%;overflow:hidden}
/* Stanice su prave pozicije skrola: scena stoji, JS vodi potez po potez do iduce. */
html.seq .show{height:400vh;height:400svh}
html.seq .show__stage{position:sticky;top:0;height:100vh;height:100svh}
.show__mark{position:absolute;left:0;top:calc(var(--i)*100svh);width:1px;height:100vh;height:100svh;pointer-events:none}
html:not(.seq) .show__mark{display:none}

.scene{position:absolute;inset:0;overflow:hidden}
.scene__world{position:absolute;left:50%;top:50%;width:max(100vw,calc(100vh*16/9));width:max(100vw,calc(100svh*16/9));aspect-ratio:16/9;transform:translate(-50%,-50%) scale(1);transform-origin:50% 50%;transition:transform 1.9s cubic-bezier(.6,.02,.2,1);will-change:transform}
.show[data-step="0"] .scene__world{transform:translate(-50%,-50%) translate(9%,-4%) scale(1.22)}
.scene__base,.scene__night,.scene__dim,.fire__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scene__night{opacity:0;transition:opacity 1.7s ease}
.show[data-step="2"] .scene__night,.show[data-step="3"] .scene__night{opacity:1}
.no-anim *{transition:none!important}
.scene__dim{background:#0c0a08;opacity:0;transition:opacity .45s;pointer-events:none}
.scene.active .scene__dim{opacity:.58}
.scene__glow,.scene__el{position:absolute;opacity:0;transition:opacity .4s;pointer-events:none}
.scene__glow{mix-blend-mode:screen}.scene__glow.on{opacity:.55}
.scene__el{filter:brightness(1.1) saturate(1.05)}.scene__el.on{opacity:1}
.scene svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.scene__hit{fill:transparent}
.show[data-step="1"] .scene__hit{cursor:pointer;pointer-events:all}
.scene__edge{fill:none;stroke:var(--glow);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;pointer-events:none;opacity:0;stroke-dasharray:1;stroke-dashoffset:1;filter:drop-shadow(0 0 5px rgba(255,200,130,.75))}
.scene__edge.on{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset .85s cubic-bezier(.4,.1,.2,1),opacity .15s}
.scene__dot{position:absolute;width:44px;height:44px;margin:-22px;padding:0;border:0;background:none;cursor:pointer;color:var(--ink);font:inherit;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.show[data-step="1"] .scene__dot{opacity:1;visibility:visible;transition:opacity .6s .9s}
.scene__dot::before{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff;box-shadow:0 1px 7px rgba(0,0,0,.5)}
.scene__dot::after{content:"";position:absolute;inset:6px;border-radius:50%;border:1.5px solid rgba(255,255,255,.9);animation:breathe 2.6s ease-out infinite}
.scene__dot[data-i="1"]::after{animation-delay:.65s}.scene__dot[data-i="2"]::after{animation-delay:1.3s}.scene__dot[data-i="3"]::after{animation-delay:1.95s}
.scene__dot:focus-visible{outline:2px solid var(--glow);outline-offset:2px;border-radius:50%}
.scene__dot span{position:absolute;left:40px;top:50%;transform:translateY(-50%);white-space:nowrap;background:rgba(18,17,16,.78);padding:5px 10px;font-size:15px;pointer-events:none}
.scene__dot.flip span{left:auto;right:40px}
.scene__dot.on::before{background:var(--glow)}
@keyframes breathe{0%{transform:scale(.7);opacity:.95}70%,100%{transform:scale(1.5);opacity:0}}

/* Mala kartica u nebu: scena se ne pomice */
.panel{position:absolute;z-index:8;top:clamp(88px,12vh,128px);right:var(--gutter);width:min(460px,calc(100vw - 2*var(--gutter)));padding:30px 34px 34px;background:rgba(20,19,18,.84);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .3s,transform .4s var(--ease),visibility 0s .3s}
.scene-open .panel{opacity:1;visibility:visible;transform:none;transition:opacity .3s,transform .4s var(--ease)}
.panel small{display:block;font-size:16px;letter-spacing:.02em;color:var(--ink-2)}
.panel h2{margin:4px 0 18px;font-weight:300;font-size:clamp(36px,3.4vw,48px);line-height:1.05}
.panel ul{margin:0 0 22px;padding:0;list-style:none;font-size:18px;line-height:1.4}
.panel li{padding:11px 0;border-top:1px solid var(--rule)}
.panel__go{display:block;text-align:center;background:var(--ink);color:#191817;text-decoration:none;padding:16px 18px;font-size:18px;transition:background .25s}
.panel__go:hover{background:var(--glow)}
.panel__x{position:absolute;top:10px;right:10px;width:44px;height:44px;background:none;border:0;color:var(--ink);font-size:24px;cursor:pointer}

/* Tekst i upravljanje */
.show__stage::before{content:"";position:absolute;z-index:6;left:0;right:0;top:0;height:150px;background:linear-gradient(rgba(10,9,8,.5),rgba(10,9,8,0));pointer-events:none}
.show__stage::after{content:"";position:absolute;z-index:6;left:0;right:0;bottom:0;height:40%;background:linear-gradient(rgba(10,9,8,0),rgba(10,9,8,.66));pointer-events:none;transition:opacity .9s}
.show[data-step="1"] .show__stage::after{opacity:.55}
.show__intro{position:absolute;z-index:7;left:var(--gutter);right:var(--gutter);bottom:clamp(104px,17vh,176px);max-width:900px;transition:opacity .5s,transform .6s var(--ease)}
.show__intro h1{margin:0;font-weight:300;font-size:clamp(38px,6.4vw,92px);line-height:1.02;letter-spacing:-.01em;text-shadow:0 2px 28px rgba(0,0,0,.35)}
.show:not([data-step="0"]) .show__intro{opacity:0;transform:translateY(-16px);pointer-events:none}
.show__bar{position:absolute;z-index:9;left:0;right:0;bottom:24px;display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:none}
.show__bar>*{pointer-events:auto}
.show__hint{margin:0;padding:8px 16px;background:rgba(18,17,16,.72);font-size:17px;opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s var(--ease);pointer-events:none}
.show[data-step="1"] .show__hint{opacity:1;transform:none;transition-delay:1.2s}
.hint-touch{display:none}
@media (hover:none){.hint-touch{display:inline}.hint-mouse{display:none}}
.show__next{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;padding:6px 14px;background:none;border:0;color:#fff;font:inherit;font-size:17px;cursor:pointer;text-shadow:0 1px 8px rgba(0,0,0,.65)}
.show__next i{display:block;width:1px;height:30px;background:currentColor;transform-origin:top;animation:cue 2s var(--ease) infinite}
@keyframes cue{0%{transform:scaleY(0)}55%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
.show[data-step="2"] .show__next,.show[data-step="3"] .show__next{display:none}
.fire__btn{display:none;appearance:none;border:0;background:var(--ink);color:#191817;font:inherit;font-size:var(--fs-lead);padding:18px 40px;cursor:pointer;transition:background .25s}
.fire__btn:hover{background:var(--glow)}
.fire__btn:focus-visible{outline:2px solid var(--glow);outline-offset:3px}
.show[data-step="2"] .fire__btn{display:block;animation:btnIn .7s var(--ease) 1.1s both}
@keyframes btnIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.show__skip{position:absolute;right:var(--gutter);bottom:24px;z-index:10;font-size:var(--fs-small);padding:12px 2px;text-shadow:0 1px 8px rgba(0,0,0,.7)}

/* Vatra: plamen, LED, kuca, pa cijela scena */
.fire__img{opacity:0}
.fire__z1{--fx:73.4%;--fy:72.2%;-webkit-mask-image:radial-gradient(ellipse 24% 34% at var(--fx) var(--fy),#000 40%,transparent 100%);mask-image:radial-gradient(ellipse 24% 34% at var(--fx) var(--fy),#000 40%,transparent 100%);transition:opacity .9s ease}
.fire__z2{--kx:32.4%;--ky:63.2%;-webkit-mask-image:radial-gradient(ellipse 36% 30% at var(--kx) var(--ky),#000 45%,transparent 100%);mask-image:radial-gradient(ellipse 36% 30% at var(--kx) var(--ky),#000 45%,transparent 100%);transition:opacity 1s ease .35s}
.fire__z3{--hx:45%;--hy:22.1%;-webkit-mask-image:radial-gradient(ellipse 52% 46% at var(--hx) var(--hy),#000 45%,transparent 100%);mask-image:radial-gradient(ellipse 52% 46% at var(--hx) var(--hy),#000 45%,transparent 100%);transition:opacity 1.2s ease .75s}
.fire__z4{transition:opacity 1.4s ease 1.3s}
.show[data-step="3"] .fire__img{opacity:1}
.fire__flicker{position:absolute;left:74%;top:67.1%;width:26%;aspect-ratio:2/1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,170,90,.42),rgba(255,140,60,0));mix-blend-mode:screen;opacity:0;pointer-events:none}
.show[data-step="3"] .fire__flicker{animation:flicker 3.1s steps(9,end) 1.2s infinite}
@keyframes flicker{0%{opacity:.55}12%{opacity:.8}21%{opacity:.5}34%{opacity:.72}47%{opacity:.6}58%{opacity:.86}71%{opacity:.52}86%{opacity:.76}100%{opacity:.55}}
.fire__after{position:absolute;z-index:9;left:var(--gutter);right:var(--gutter);bottom:clamp(84px,11vh,112px);opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;transition:opacity .4s,visibility 0s .4s}
.show[data-step="3"] .fire__after{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .8s 1s,transform .8s 1s var(--ease)}
.fire__after p{margin:0 0 12px;max-width:16em;font-size:clamp(30px,4.4vw,64px);font-weight:300;line-height:1.1;text-shadow:0 2px 20px rgba(0,0,0,.6)}
.fire__after a{display:inline-block;padding:6px 0;font-size:var(--fs-lead);text-shadow:0 1px 8px rgba(0,0,0,.6)}

/* Bez animacija ili JS-a: staticna scena s istim sadrzajem */
html:not(.seq) .show{height:auto}
html:not(.seq) .show__stage{height:auto;overflow:visible}
html:not(.seq) .show__stage::before,html:not(.seq) .show__stage::after,html:not(.seq) .show__bar,html:not(.seq) .fire__after{display:none}
/* N2 (60): staticni prikaz (reduced motion): naslov odmah ispod scene, bez 120 px praznog bloka; top:auto jer mobilno top:96px
   na relativnom elementu gura naslov preko "Skip to collections". */
html:not(.seq) .show__intro{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:clamp(28px,4vw,48px) var(--gutter) 8px;opacity:1!important;transform:none!important}
html:not(.seq) .scene{position:relative;inset:auto;aspect-ratio:16/9}
html:not(.seq) .scene__world{left:0;top:0;width:100%;transform:none!important}
html:not(.seq) .scene__dot{opacity:1;visibility:visible}
html:not(.seq) .scene__hit{cursor:pointer;pointer-events:all}
html:not(.seq) .show__skip{position:static;display:inline-block;margin:14px var(--gutter)}

@media (max-width:760px),(orientation:portrait){
  .scene__world{width:max(100vw,calc(100svh*9/16));aspect-ratio:9/16;left:calc(50% - (max(100vw,100svh*9/16) - 100vw)*.36)} /* K25: novi uspravni kadar ima vatriste uz desni rub, pa se visak sirine reze vise slijeva */
  .show[data-step="0"] .scene__world{transform:translate(-50%,-50%) translate(0,6%) scale(1.14)}
  .show__intro{top:96px;bottom:auto}
  .show__intro h1{font-size:clamp(30px,8.6vw,38px);line-height:1.08;text-shadow:0 1px 18px rgba(0,0,0,.45)}
  .show__stage::before{height:300px;background:linear-gradient(rgba(10,9,8,.5),rgba(10,9,8,.28) 55%,rgba(10,9,8,0))}
  .show__stage::after{height:30%}
  .show__skip{display:none}
  .scene__dot span{display:none}
  .fire__z1{--fx:83.8%;--fy:73.8%}.fire__z2{--kx:38.8%;--ky:68.3%}.fire__z3{--hx:31.8%;--hy:45.4%}
  .fire__flicker{left:83.9%;top:71.6%;width:60%}
  .panel{position:fixed;top:auto;left:0;right:0;bottom:0;width:100%;padding:18px 20px 22px;transform:translateY(102%);z-index:40}
  .scene-open .panel{transform:none}
  html:not(.seq) .scene{aspect-ratio:9/16}
}
/* Skrol-prica radi i uz 'smanji animacije' (vodi je korisnikov skrol; klijent je inace vidio staticnu stranicu). Gase se samo petlje. */
@media (prefers-reduced-motion:reduce){.scene__dot::after,.show__next i{animation:none}}

/* W6 hover */
.show__next:hover span,.show__skip:hover{color:var(--glow)}
.scene__dot:hover span{color:var(--glow)}

/* K26 (klijent): na mobitelu je kartica tocke prekrivala sliku. Samo naslov, ostalo sitno u jednom retku, manji gumb. */
@media (max-width:760px),(orientation:portrait){
  .panel{padding:12px 18px 14px}
  .panel small{font-size:12px}
  .panel h2{margin:1px 44px 5px 0;font-size:25px}
  .panel ul{margin:0 0 10px;font-size:13px;line-height:1.4;color:var(--ink-2)}
  .panel li{display:inline;padding:0;border:0}
  .panel li+li::before{content:" \00b7 "}
  .panel__go{display:inline-block;padding:12px 18px;font-size:14px}
  .panel__x{top:2px;right:4px}
}
