/* Storytellers Landing FX: efekti, ki jih globalni razredi ne zmorejo (psevdo elementi, animacije, JS stanja) */
@property --st-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

html:has(.st-page) { scroll-behavior: smooth; }
body:has(.st-page) { background: #0B0A09; color: #F2EBDD; margin: 0; -webkit-font-smoothing: antialiased; }
body:has(.st-page) ::selection { background: rgba(255,106,43,.35); color: #F2EBDD; }

#st-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* poudarjena beseda v naslovih */
.st-page .st-h1 em, .st-page .st-h2 em, .st-page .st-h3 em, .st-page .st-proj-title em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: #FF6A2B; letter-spacing: -0.01em;
}

/* samodejno stevilcenje sekcij */
.st-page { counter-reset: stslate; }
.st-page .st-section { counter-increment: stslate; }
.st-page .st-num::before { content: counter(stslate, decimal-leading-zero) " / "; color: #FF6A2B; }
.st-page .st-lab b { color: #FF6A2B; font-weight: 400; }

/* svetlobna crta po robu sekcije */
.st-page .st-slate::before {
  content: ""; position: absolute; left: -30%; top: -1px; width: 30%; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, #FF6A2B, #F5C76B, transparent);
  animation: st-scan 7s linear infinite;
}
@keyframes st-scan { to { left: 100%; } }

/* kartice s krozeco obrobo */
.st-page .st-orbit {
  background: conic-gradient(from var(--st-ang), #2E2A26 0deg, #2E2A26 250deg, #FF6A2B 320deg, #F5C76B 340deg, #2E2A26 360deg);
  animation: st-orbit 6s linear infinite; transition: transform .25s ease;
}
.st-page .st-orbit:hover { animation-duration: 2.2s; }
.st-page .st-orbit:nth-child(3n+2) { animation-delay: -2s; }
.st-page .st-orbit:nth-child(3n+3) { animation-delay: -4s; }
@keyframes st-orbit { to { --st-ang: 360deg; } }
.st-page .st-orbit-in::before {
  content: ""; position: absolute; right: -30%; top: -30%; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,106,43,.2), transparent 65%);
}
.st-page .st-orbit > .st-pack { border: 0; border-radius: 17px; }
.st-page .st-orbit .st-list li::before { background: #F5C76B; }

/* oznake (chips) */
.st-page .st-chips span { padding: 4px 10px; border: 1px solid #2E2A26; border-radius: 999px; }
.st-page .st-plat span { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: #211E1B; color: #F5C76B; }

/* storitve: luc sledi kurzorju */
.st-page .st-svc { --mx: 50%; --my: 50%; }
.st-page .st-svc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,106,43,.16), transparent 62%); }
.st-page .st-svc:hover::after { opacity: 1; }

/* tekoci trak */
.st-page .st-marq-in { animation: st-marq 22s linear infinite; }
@media (max-width: 767px) { .st-page .st-marq-in { animation-duration: 12s; } }
.st-page .st-marq-item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF6A2B; flex: none; }
.st-page .st-marq-item:nth-child(odd) { color: #A39A8F; }
@keyframes st-marq { to { transform: translateX(-50%); } }

/* projekti: kreative (slike), brez gumba za predvajanje */
.st-page .st-proj-img .st-lab { color: #F2EBDD; }
@media (max-width: 767px) {
  .st-page .st-proj-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,0) 30%, rgba(11,10,9,.55) 55%, rgba(11,10,9,.94) 100%); }
  .st-page .st-proj-body .st-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .st-page .st-proj-meta > .st-meta:last-child { display: none; }
  .st-page .st-proj-title { font-size: 30px; }
}

/* zadnji projekt: Optika Clarus */
.st-page .st-feat-title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: #FF6A2B; text-transform: none; letter-spacing: -0.02em; }
.st-page .st-feat-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,10,9,0) 45%, rgba(11,10,9,.7)); }
.st-page .st-feat-frame > * { position: relative; z-index: 1; color: #F2EBDD; }
.st-page .st-feat-main::before { content: "\25CF  REC   TC 00:00:30:00"; position: absolute; right: 18px; top: 14px; z-index: 1; white-space: pre; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .12em; color: #F2EBDD; opacity: .85; }
.st-page .st-feat-main { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.st-page .st-feat-main:hover { transform: scale(1.01); }
.st-page .st-deliv-item span { flex: none; width: 24px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .1em; color: #FF6A2B; }
.st-page .st-collab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF6A2B; flex: none; }

/* stevilke */
.st-page .st-stat-num em { font-family: inherit; font-style: normal; font-weight: 700; color: #FF6A2B; letter-spacing: 0; }
.st-page .st-stat:first-child { border-left: 0; }
.st-page .st-stat { position: relative; }
.st-page .st-stat::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: linear-gradient(90deg, #FF6A2B, transparent); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.st-page .st-stat.on::after { width: 100%; }
@media (max-width: 767px) { .st-page .st-stat::after { display: none; } }
.st-page .st-honest .st-lead { max-width: 640px; }

/* mnenja */
.st-page .st-q-text::before { content: "\201E"; display: block; font-family: "Instrument Serif", Georgia, serif; font-size: 64px; line-height: .6; color: #FF6A2B; margin-bottom: 8px; }
.st-page .st-q-vid::after { content: "\25B6"; position: absolute; left: 24px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(242,235,221,.4);
  display: grid; place-items: center; font-size: 18px; color: #F2EBDD; background: rgba(11,10,9,.35); padding-left: 4px; box-sizing: border-box; }
.st-page .st-q-vid .st-lab { color: #F2EBDD; }

/* koraki s svetlobnim zarkom */
.st-page .st-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #2E2A26; }
.st-page .st-steps::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: var(--prog, 0%); border-radius: 3px;
  background: linear-gradient(90deg, transparent, #FF6A2B); box-shadow: 0 0 18px #FF6A2B; }
.st-page .st-step::before { content: ""; position: absolute; top: -40px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #0B0A09; border: 1px solid #A39A8F; transition: background .3s, border-color .3s; }
.st-page .st-step.on::before { background: #FF6A2B; border-color: #FF6A2B; }
@media (max-width: 767px) {
  .st-page .st-steps::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .st-page .st-steps::after { left: 4px; top: 6px; width: 3px; height: var(--prog, 0%); max-height: calc(100% - 12px); background: linear-gradient(180deg, transparent, #FF6A2B); }
  .st-page .st-step::before { top: 3px; left: -30px; }
}

/* paketi: zavihki in seznami */
.st-page .st-tab[aria-selected="true"], .st-page .st-tab.e--selected { background-color: #F2EBDD; color: #0B0A09; }
.st-page .st-tab * { color: inherit; font: inherit; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0; margin: 0; }
.st-page .st-tabs-menu::-webkit-scrollbar { display: none; }
.st-page .st-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-page .st-list li { display: flex; gap: 10px; }
.st-page .st-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #A39A8F; margin-top: 9px; }
.st-page .st-price span, .st-page .st-price small { font-size: 15px; font-weight: 400; color: #A39A8F; letter-spacing: 0; }
.st-page .st-slate { overflow: clip; }
/* logotip: prozorna slika 16:9, negativni robovi obrezejo prazen prostor okoli znaka */
.st-page img.st-logo { width: 128px !important; height: 72px !important; max-width: none; object-fit: contain; margin: -13px -12px -19px -19px; }
.st-page img.st-biglogo { width: 131.6% !important; max-width: none; height: auto !important; aspect-ratio: auto; object-fit: contain;
  margin: calc(clamp(32px, 7vw, 80px) - 13%) 0 calc(16px - 19.8%) -19.3%; }
.st-page .st-terms .st-small span::before { content: "\00B7"; color: #FF6A2B; margin-right: 8px; }
.st-page .st-terms .st-small span { margin-right: 18px; display: inline-block; }
.st-page .st-terms .st-btn, .st-page .st-terms a { white-space: normal; max-width: 100%; box-sizing: border-box; text-align: center; }
@media (max-width: 767px) { .st-page .st-terms .st-btn, .st-page .st-terms a { width: auto; align-self: flex-start; font-size: 14px; padding: 12px 18px; line-height: 1.25; } }

/* obrazec */
.st-page .st-form input, .st-page .st-form textarea { box-sizing: border-box; }
.st-page .st-form textarea { min-height: 130px; resize: vertical; }
.st-page .st-form ::placeholder { color: #6f675e; }

/* meni na telefonu: fiksen header (sticky se na iOS trese) */
@media (max-width: 1024px) {
  .st-page .st-nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .st-page .st-header { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; }
  .st-page { padding-top: 78px !important; }
}
.st-page .st-nav.st-open .st-nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 76px;
  background: #171513; border: 1px solid #2E2A26; border-radius: 20px; padding: 10px; z-index: 60; }
.st-page .st-nav-link.active { color: #F2EBDD; background: #171513; box-shadow: inset 0 0 0 1px #2E2A26; }
.st-page .st-nav-link.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #FF6A2B; margin-right: 8px; vertical-align: 2px; }

/* footer: utripajoca luc ob velikem logotipu */
.st-page .st-footer::after { content: ""; position: absolute; right: 4%; bottom: 14%; width: 22%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,106,43,.35), transparent 60%); animation: st-breathe 5s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: .45; transform: scale(.9); } }

/* hero: kosi zgodbe, ki se sestavijo */
.st-stage .piece { position: absolute; left: 0; top: 0; backface-visibility: hidden; border-radius: 14px; border: 1px solid #2E2A26; background: #171513; overflow: hidden; will-change: transform; transform-origin: center; font-family: "Space Grotesk", sans-serif; }
.st-stage .pl { position: absolute; left: 10px; top: 9px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #A39A8F; z-index: 2; }
.st-stage .pc-frame { background: linear-gradient(160deg, #4a3324 0%, #1d1612 50%, #0e0c0a 100%); }
.st-stage .pc-frame .rec { position: absolute; right: 10px; top: 9px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: #F2EBDD; display: flex; align-items: center; gap: 6px; }
.st-stage .pc-frame .rec i { width: 7px; height: 7px; border-radius: 50%; background: #FF6A2B; animation: st-blink 1.4s steps(2) infinite; }
.st-stage .pc-frame .tc { position: absolute; left: 10px; bottom: 9px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #F2EBDD; }
.st-stage .pc-frame .sil { position: absolute; right: 18%; bottom: 0; width: 34%; height: 72%; background: #0B0A09; border-radius: 50% 50% 0 0 / 40% 40% 0 0; opacity: .75; }
.st-stage .pc-script { padding: 34px 14px 12px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; line-height: 1.7; color: #A39A8F; }
.st-stage .pc-script b { color: #F2EBDD; font-weight: 400; display: block; }
.st-stage .pc-script .ln { height: 6px; border-radius: 3px; background: #211E1B; margin: 7px 0; }
.st-stage .pc-ad { padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.st-stage .pc-ad .img { flex: 1; border-radius: 8px; background: linear-gradient(135deg, #2b211b, #5b3a26); }
.st-stage .pc-ad .row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #A39A8F; }
.st-stage .pc-ad .row span:last-child { background: #F2EBDD; color: #0B0A09; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.st-stage .pc-car { padding: 34px 10px 10px; display: flex; gap: 6px; }
.st-stage .pc-car div { flex: 1; border-radius: 6px; background: #0B0A09; border: 1px solid #2E2A26; padding: 7px; font-size: 10px; line-height: 1.05; font-weight: 700; color: #F2EBDD; display: flex; align-items: flex-end; }
.st-stage .pc-car div:last-child { background: #F2EBDD; color: #0B0A09; }
.st-stage .pc-res { padding: 34px 12px 12px; display: flex; align-items: flex-end; gap: 6px; }
.st-stage .pc-res i { flex: 1; border-radius: 4px 4px 0 0; background: #211E1B; }
.st-stage .pc-res i:last-child { background: #F5C76B; }
.st-stage .pc-post { display: flex; flex-direction: column; }
.st-stage .pc-post .ph { flex: 1; margin: 32px 10px 0; border-radius: 8px; background: radial-gradient(circle at 30% 30%, #6b4630, #1b1512 70%); }
.st-stage .pc-post .bar { display: flex; gap: 10px; padding: 8px 12px; color: #A39A8F; font-size: 13px; }
.st-stage .reel { position: absolute; left: 0; top: 0; border-radius: 14px; overflow: hidden; opacity: 0; border: 1px solid #2E2A26; will-change: transform, opacity;
  background: linear-gradient(150deg, #5a3a26 0%, #1d1612 55%, #0b0a09 100%); }
.st-stage .reel iframe { position: absolute; top: 50%; left: 50%; width: 177.78%; height: 177.78%; min-width: 100%; min-height: 100%; max-width: none !important; max-height: none !important; transform: translate(-50%,-50%); border: 0; pointer-events: none; }
.st-stage .reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.1) 30%, rgba(11,10,9,.6)); }
.st-stage .assembled { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; opacity: 0; z-index: 3; }
.st-stage .assembled .lg { display: none !important; }
.st-stage .assembled span { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #F2EBDD; }
.st-hero .st-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #A39A8F; }
.st-hero .st-hint i { width: 1px; height: 28px; background: linear-gradient(#FF6A2B, transparent); animation: st-drip 1.8s ease-in-out infinite; }
@keyframes st-blink { 50% { opacity: 0; } }
@keyframes st-drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* v Elementor editorju hero ne sme biti 250vh visok in kosi ne smejo zakriti urejanja */
body.elementor-editor-active .st-hero { height: auto; }
body.elementor-editor-active .st-hero-pin { position: relative; height: auto; min-height: 0; padding-bottom: 40px; }
body.elementor-editor-active .st-stage { display: none; }

@media (prefers-reduced-motion: reduce) {
  .st-page *, .st-page *::before, .st-page *::after { animation: none !important; transition: none !important; }
  html:has(.st-page) { scroll-behavior: auto; }
}
