/* PIXEL WAVE — stil */
:root {
  --bg: #08080a;
  --ink: #f3f1ec;
  --muted: #9a9aa2;
  --line: rgba(243, 241, 236, .12);
  --glass: rgba(18, 18, 22, .55);
  --accent: #e22828;
  --accent-2: #ff5a3c;
  --radius: 18px;
  --pad: clamp(16px, 5vw, 72px);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(34px, 5.6vw, 76px); text-transform: uppercase; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- pozadina ---------- */
#wave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.webgl-ready #wave { opacity: 1; }
.bg-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0,0,0,.75) 100%); }
.bg-grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }
.no-webgl body, .no-webgl .bg-vignette {
  background: radial-gradient(80% 60% at 70% 20%, rgba(226,40,40,.25), transparent 60%), var(--bg);
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- gumbi ---------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none;
  font: 700 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px var(--accent); background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: none; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 12px; }
.btn-block { width: 100%; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 14px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(10,10,12,.6); border-color: var(--line); backdrop-filter: blur(14px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 15px/1 var(--display); letter-spacing: .04em; }
.brand img { border-radius: 50%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(-20deg) scale(1.08); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 90px; position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,10,.75) 0%, rgba(8,8,10,.35) 45%, transparent 70%), linear-gradient(transparent 60%, rgba(8,8,10,.6)); }
.hero > * { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { font-size: clamp(38px, min(7vw, 11.5vh), 116px); text-transform: uppercase; line-height: .92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.hero-sub { max-width: 560px; margin-top: 30px; font-size: clamp(17px, 1.6vw, 20px); color: #cfcdc8; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; display: flex; gap: clamp(24px, 5vw, 64px); padding: 0; margin: 56px 0 0; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font: 800 clamp(24px, 3vw, 36px)/1 var(--display); }
.hero-facts span { font-size: 13px; color: var(--muted); margin-top: 6px; }
.scroll-hint { position: absolute; right: var(--pad); bottom: 36px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.scroll-hint span { width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: rgba(8,8,10,.5); backdrop-filter: blur(6px); transform: rotate(-2deg) scale(1.04); }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font: 800 clamp(26px, 4vw, 54px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee span:nth-of-type(even) { -webkit-text-stroke: 1px var(--ink); color: transparent; }
.marquee i { color: var(--accent); font-style: normal; font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sekcije ---------- */
section { position: relative; }
.section-head { padding: 0 var(--pad); margin-bottom: clamp(36px, 5vw, 64px); max-width: 1100px; }
.section-head .muted { margin-top: 18px; max-width: 520px; }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 700; }

/* radovi: horizontalni skrol */
.work { height: 400vh; margin-top: 12vh; }
.work-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-head { padding: 0 var(--pad); margin-bottom: 36px; }
.work-head .muted { margin-top: 14px; }
.work-track { display: flex; gap: clamp(16px, 2.5vw, 32px); padding: 0 var(--pad); will-change: transform; }
.work-card {
  position: relative; flex: 0 0 auto; width: clamp(280px, 52vw, 820px); aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111;
  padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s; filter: saturate(.85) brightness(.8); }
.work-card:hover img { transform: scale(1); filter: none; }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.work-meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.work-meta em { font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.work-meta strong { font: 600 clamp(16px, 1.8vw, 24px)/1.2 var(--display); }
.play { position: absolute; z-index: 1; top: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid var(--line); transition: background .3s, transform .3s; }
.play::before { content: ""; position: absolute; left: 22px; top: 18px; border-left: 16px solid #fff; border-block: 10px solid transparent; }
.work-card:hover .play { background: var(--accent); transform: scale(1.1); }
.work-more { display: grid; place-items: center; width: clamp(240px, 30vw, 420px); background: linear-gradient(135deg, rgba(226,40,40,.25), rgba(20,20,24,.6)); backdrop-filter: blur(10px); }
.work-more::after { display: none; }
.work-more span { font: 800 clamp(20px, 2.4vw, 32px)/1.15 var(--display); text-transform: uppercase; text-align: center; }
.work-more b { color: var(--accent); }
.work-progress { margin: 36px var(--pad) 0; height: 2px; background: var(--line); }
.work-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* reelsi */
.reels { padding: 14vh 0 10vh; }
.reels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 22px); padding: 0 var(--pad); }
.reel { margin: 0; position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111; }
.reel:nth-child(4n+2) { transform: translateY(8%); }
.reel:nth-child(4n+4) { transform: translateY(-6%); }
.reel video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.reel:hover video { transform: scale(1.04); }
.reel figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-shadow: 0 1px 10px #000; }
.reel::before { content: ""; position: absolute; z-index: 1; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background .3s, box-shadow .3s; }
.reel.playing::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* usluge */
.services { padding: 16vh 0 12vh; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 var(--pad); }
.service {
  padding: 30px 26px 34px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(16px) saturate(130%);
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
  transition: border-color .4s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.service:hover { border-color: rgba(226,40,40,.6); transform: translateY(-6px); }
.service .num, .step .num { font: 600 13px/1 var(--display); color: var(--accent); }
.service h3 { margin-top: auto; font-size: 22px; }
.service p { color: #bdbbb6; font-size: 15px; }

/* proces */
.process { padding: 12vh var(--pad); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.process-head { position: sticky; top: 20vh; }
.process-head .muted { margin-top: 20px; max-width: 420px; }
.process-head h2 { font-size: clamp(30px, 4.2vw, 60px); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.step { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px); }
.step img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; filter: grayscale(.4) contrast(1.05); transition: filter .5s; }
.step:hover img { filter: none; }
.step h3 { margin: 10px 0 8px; font-size: 22px; }
.step p { color: #bdbbb6; font-size: 15px; }

/* manifest */
.manifesto { min-height: 120vh; display: flex; align-items: center; padding: 10vh var(--pad); }
.manifesto-text { font: 800 clamp(30px, 5.4vw, 84px)/1.06 var(--display); text-transform: uppercase; letter-spacing: -.02em; max-width: 1400px; }
.manifesto-text .w { opacity: .14; transition: opacity .25s, color .25s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hot { color: var(--accent); }

/* cijene */
.pricing { padding: 10vh 0 14vh; }
.price-wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 380px); gap: 22px; padding: 0 var(--pad); align-items: end; }
.price-card { padding: 34px; border-radius: 24px; border: 1px solid rgba(226,40,40,.5); background: linear-gradient(160deg, rgba(226,40,40,.18), rgba(14,14,18,.7) 45%); backdrop-filter: blur(18px); box-shadow: 0 30px 80px -40px rgba(226,40,40,.6); }
.price-card h3 { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: #d6d4cf; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 26px; }
.price b { font: 800 clamp(56px, 7vw, 88px)/1 var(--display); }
.price-lead { font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--display); margin: 16px 0 28px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 12px; align-items: baseline; }
.price-card li::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--accent); transform: translateY(-1px); }
.price-alt { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px); display: grid; gap: 14px; }
.price-alt p { color: #bdbbb6; }

/* faq */
.faq { padding: 10vh 0; }
.faq-list { padding: 0 var(--pad); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font: 600 clamp(17px, 1.8vw, 22px)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--body); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 26px; color: #bdbbb6; max-width: 720px; }

/* kontakt */
.contact { padding: 14vh var(--pad) 12vh; }
.contact-title { font-size: clamp(48px, 10vw, 160px); text-transform: uppercase; line-height: .9; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: 60px; }
.contact-direct { display: flex; flex-direction: column; gap: 24px; }
.contact-mail { font: 800 clamp(22px, 3.2vw, 44px)/1.1 var(--display); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .5s cubic-bezier(.2,.8,.2,1); width: fit-content; word-break: break-all; }
.contact-mail:hover { background-size: 100% 3px; }
.contact-links { display: flex; gap: 22px; flex-wrap: wrap; }
.contact-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.contact-links a:hover { color: var(--ink); }
.contact-form { display: grid; gap: 16px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px); }
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.contact-form select option { background: #111; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* footer */
.site-footer { padding: 40px var(--pad) 30px; border-top: 1px solid var(--line); background: rgba(8,8,10,.7); backdrop-filter: blur(10px); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom { margin-top: 26px; font-size: 13px; color: var(--muted); }
.to-top { text-decoration: none; color: var(--muted); font-weight: 700; }
.to-top:hover { color: var(--accent); }

/* video player */
.player { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #000; color: var(--ink); overflow: visible; }
.player::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.player-frame { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 24px; cursor: pointer; }

/* ulazne animacije */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .faq-list .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3), .faq-list .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4), .faq-list .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- responzivno ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process-head { position: static; }
}
@media (max-width: 820px) {
  .site-header { inset: 10px 12px auto; gap: 12px; }
  .site-header > .btn-sm { margin-left: auto; }
  .menu-toggle { display: grid; gap: 6px; place-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: fixed; inset: 70px 12px auto; flex-direction: column; gap: 0; padding: 10px; border-radius: 20px; background: rgba(12,12,14,.92); border: 1px solid var(--line); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .3s; }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 14px; font-size: 18px; color: var(--ink); }
  .scroll-hint { display: none; }

  /* radovi: na mobitelu klasičan vodoravni swipe */
  .work { height: auto; margin-top: 10vh; }
  .work-sticky { position: static; height: auto; }
  .work-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; transform: none !important; }
  .work-track::-webkit-scrollbar { display: none; }
  .work-card { width: 84vw; scroll-snap-align: center; }
  .work-progress { display: none; }

  .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .reel:nth-child(n) { transform: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .step { grid-template-columns: 96px 1fr; gap: 16px; }
  .price-wrap, .contact-grid { grid-template-columns: 1fr; }
  .manifesto { min-height: 90vh; }
}
@media (max-width: 420px) {
  .site-header .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}
