/* Lovro's Production portfolio
   Okvir je monokroman i oštar, boja dolazi samo iz fotografija.
   Potpis: "AF lock" kutovi tražila (crop marks) koji se zaključaju na fokusiranom kadru. */

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --line: #262626;
  --dim: #3d3d3d;
  --mute: #8c8c8c;
  --paper: #f3f2ef;
  --signal: #ff3b2f; /* samo REC indikator i greške */

  --ui: cubic-bezier(.51, .01, .2, 1);      /* 300ms, sučelje */
  --page: cubic-bezier(.44, 0, .28, .99);   /* 1s, veliki pokreti */
  --out: cubic-bezier(.16, 1, .3, 1);

  --pad: clamp(16px, 3.5vw, 50px);
  --gap: clamp(8px, 1.2vw, 16px);
  --header-h: 72px;

  /* skala 1.333 (kvarta) od baze 17px: 17 · 23 · 30 · 40 · 54 · 71 · 95 · 126 */
  --t-hero: clamp(64px, 10.6vw, 176px);
  --t-xl: clamp(46px, 6.6vw, 104px);
  --t-l: clamp(36px, 4.4vw, 71px);
  --t-m: clamp(26px, 2.7vw, 40px);
  --t-s: clamp(16px, 1.2vw, 18px);
  --t-xs: 14px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--t-s);
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
::selection { background: var(--paper); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; font-weight: 500; }
.skip:focus { top: 12px; }

/* Maske za tekst: redovi izranjaju odozdo */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .12em 0; margin: 0 -.1em -.12em 0; }
.mask > span { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; }

/* ---------- AF lock (kutovi tražila) ---------- */
.af { position: relative; }
.af::after {
  --c: var(--paper); --l: 22px; --w: 2px;
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.08);
  transition: opacity .3s var(--ui), transform .3s var(--ui);
}
@media (hover: hover) and (pointer: fine) {
  .af:hover::after { opacity: 1; transform: scale(1); }
}
.af.is-locked::after { opacity: 1; transform: scale(1); }

/* ---------- Gumbi (oštri, ispuna raste iz sredine) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1.5px solid currentColor;
  transition: color .3s var(--ui), border-color .3s var(--ui);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ui);
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light::before { background: var(--ink); }
.btn--ghost { color: var(--paper); border-color: rgba(243, 242, 239, .55); background: rgba(10, 10, 10, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--line { color: var(--paper); border-color: var(--dim); }
.btn--line em { font-style: normal; font-family: "Geist Mono", monospace; font-size: 13px; color: var(--mute); transition: color .3s var(--ui); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); }
  .btn--light:hover { color: var(--paper); }
  .btn--ghost:hover, .btn--line:hover { color: var(--ink); border-color: var(--paper); }
  .btn--line:hover em { color: var(--ink); }
}
.btn--big { height: 60px; padding: 0 32px; font-size: 17px; }

.circle {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--dim); color: var(--paper);
  transition: background .3s var(--ui), color .3s var(--ui), border-color .3s var(--ui);
}
.circle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
.circle--light { border-color: rgba(243, 242, 239, .4); background: rgba(10, 10, 10, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (hover: hover) and (pointer: fine) { .circle:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); } }

.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }
.rec--lg { width: .14em; height: .14em; margin-right: .08em; vertical-align: .32em; }
@media (prefers-reduced-motion: no-preference) {
  .rec { animation: rec 1.6s steps(1) infinite; }
}
@keyframes rec { 50% { opacity: .2; } }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.js .loader { display: block; }
.loader.is-done { display: none; }
.loader__shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader__shutter--top { top: 0; }
.loader__shutter--bottom { bottom: 0; }
.loader__name {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: .22em;
  font-size: clamp(44px, 9vw, 140px); font-weight: 600; letter-spacing: -0.045em; line-height: .9;
}
.loader__name .mask > span { transform: translateY(110%); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  transition: transform .4s var(--ui), background-color .3s ease;
}
.header.is-solid { background: rgba(10, 10, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-100%); }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; display: inline-flex; align-items: flex-start; gap: 4px; margin-right: auto; }
.brand__mark { width: 9px; height: 9px; margin-top: 2px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ui); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.header__cta { height: 42px; padding: 0 18px; font-size: 14px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 42px; font-size: 14px; font-weight: 500; color: #c9c8c4; border: 1.5px solid var(--line); transition: color .3s var(--ui), border-color .3s var(--ui); }
@media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--paper); border-color: var(--paper); } }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ui); }
.menu-btn i:first-of-type { top: 17px; } .menu-btn i:last-of-type { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--pad) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: clamp(44px, 13vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; padding: 4px 0; }
.mobile-menu__foot { display: flex; gap: 24px; color: var(--mute); font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-2); }
.hero__frames { position: absolute; inset: 0; }
.hero__frames img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1); filter: blur(18px);
  transition: opacity 1.2s var(--page), filter 1.4s var(--page), transform 7s cubic-bezier(.2, .6, .3, 1);
}
/* novi kadar dolazi mutan i preblizu, pa se "izoštri" i lagano odmiče: povlačenje fokusa */
.hero__frames img.is-on { opacity: 1; transform: scale(1); filter: blur(0); z-index: 2; }
.hero__frames img.is-off { opacity: 1; transform: scale(1); filter: blur(0); z-index: 1; transition: none; }
.af-box {
  position: absolute; z-index: 3; width: clamp(96px, 12vw, 168px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  --c: rgba(243, 242, 239, .9); --l: 18px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat; opacity: .35;
}
.af-box.is-hunting { animation: af-hunt 1.4s var(--ui) both; }
@keyframes af-hunt {
  0% { transform: scale(1.5); opacity: 0; }
  40% { transform: scale(.94); opacity: 1; }
  55% { transform: scale(1.03); opacity: .4; }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: .35; }
}
.hero__scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 50%, rgba(10,10,10,.82) 100%); pointer-events: none; }
.hero__viewfinder { position: absolute; z-index: 3; inset: calc(var(--header-h) + 8px) var(--pad) var(--pad); pointer-events: none; }
.hero__viewfinder span { position: absolute; width: 28px; height: 28px; border-color: rgba(243,242,239,.85); border-style: solid; border-width: 0; }
.vf-tl { top: 0; left: 0; border-top-width: 2px !important; border-left-width: 2px !important; }
.vf-tr { top: 0; right: 0; border-top-width: 2px !important; border-right-width: 2px !important; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px !important; border-left-width: 2px !important; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px !important; border-right-width: 2px !important; }
.hero__meta {
  position: absolute; z-index: 3; top: calc(var(--header-h) + 26px); left: calc(var(--pad) + 22px);
  display: flex; align-items: center; gap: 10px;
  font-family: "Geist Mono", monospace; font-size: 13px; letter-spacing: .02em;
}
.hero__content { position: relative; z-index: 4; width: 100%; padding: 0 calc(var(--pad) + 22px) calc(var(--pad) + 14px); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(16px, 2vw, 28px); }
.hero__sub { max-width: 34ch; font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; line-height: 1.25; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__title {
  font-size: var(--t-hero); font-weight: 650; letter-spacing: -0.055em; line-height: .86;
  margin-left: -.04em;
}
/* naslov uvijek u dva reda: Lovro's / Production */
.hero__title .mask { display: block; }

/* ---------- Klijenti ---------- */
.clients { padding: clamp(36px, 4.4vw, 64px) 0 clamp(28px, 3.4vw, 48px); border-bottom: 1.5px solid var(--line); }
.clients__label { padding: 0 var(--pad); margin-bottom: clamp(20px, 2.4vw, 32px); color: var(--mute); font-size: 15px; font-weight: 500; }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  flex: none; display: flex; align-items: center; gap: clamp(48px, 6vw, 96px);
  margin: 0; padding: 0 clamp(24px, 3vw, 48px); list-style: none;
  animation: marquee 46s linear infinite;
}
.marquee__track li { flex: none; display: flex; align-items: center; }
.marquee__track img { display: block; width: auto; height: 36px; opacity: .72; transition: opacity .3s var(--ui); }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .marquee__track img:hover { opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 28px; flex: 1; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* ---------- Izjava ---------- */
.statement { display: grid; grid-template-columns: 2fr 10fr; gap: var(--gap); padding: clamp(80px, 11vw, 160px) var(--pad); }
.statement__label { color: var(--mute); font-size: 15px; font-weight: 500; padding-top: .7em; }
.statement__text { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; max-width: 26ch; }

/* ---------- Poglavlja ---------- */
.work { position: relative; }
.chapters-bar {
  position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--pad); background: rgba(10,10,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: top .4s var(--ui);
}
.chapters-bar::-webkit-scrollbar { display: none; }
body.header-visible .chapters-bar { top: var(--header-h); }
.chapters-bar a {
  flex: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px;
  font-size: 14px; font-weight: 500; color: var(--mute); border: 1.5px solid var(--line);
  transition: color .3s var(--ui), background .3s var(--ui), border-color .3s var(--ui);
}
.chapters-bar a.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .chapters-bar a:hover { color: var(--paper); border-color: var(--paper); } .chapters-bar a.is-active:hover { color: var(--ink); } }

.chapter { padding: clamp(80px, 11vw, 160px) var(--pad) 0; scroll-margin-top: 60px; }
.chapter--flush { padding-left: 0; padding-right: 0; }
.chapter--flush .chapter__head { padding: 0 var(--pad); }
.chapter__head { margin-bottom: clamp(28px, 4vw, 56px); }
.chapter__title { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.05em; line-height: .92; }
.chapter__info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(16px, 2vw, 28px); }
.chapter__info p { max-width: 44ch; color: #c9c8c4; }

/* media osnova */
.media { position: relative; overflow: hidden; background: var(--ink-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .reveal-media { clip-path: inset(100% 0 0 0); }

/* Brend: harmonika */
.accordion { display: flex; gap: var(--gap); height: min(72vh, 760px); }
.accordion .media { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--page); cursor: zoom-in; }
.accordion .media.is-open { flex-grow: 5.5; }
.accordion img { transition: transform .9s var(--page); }

/* Portreti: postava */
.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.lineup .media { aspect-ratio: 4 / 5; cursor: zoom-in; }
.lineup img { transition: filter .4s var(--ui), transform .9s var(--page); }
@media (hover: hover) and (pointer: fine) {
  .lineup:hover .media:not(:hover) img { filter: grayscale(1) brightness(.4); }
  .lineup .media:hover img { transform: scale(1.03); }
}

/* Eventi: horizontalni film */
.pan { overflow: hidden; }
.pan__track { display: flex; gap: var(--gap); padding: 0 var(--pad); height: min(74vh, 780px); width: max-content; will-change: transform; }
.pan__track .media { height: 100%; flex: none; cursor: zoom-in; }
.pan__track .media img { height: 100%; width: auto; }

/* Dron: polijetanje */
.liftoff { position: relative; }
.liftoff__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 0 var(--pad); }
.liftoff__grid .media { aspect-ratio: 3 / 2; cursor: zoom-in; }
.liftoff__grid .media.is-center { z-index: 2; }
.liftoff.is-pinned { height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.liftoff.is-pinned .liftoff__grid { width: 100%; }

/* Nekretnine: oglas */
.listing__stage { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.listing__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing__stage img.is-entering { clip-path: inset(0 100% 0 0); animation: wipe .8s var(--page) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.listing__bar { display: flex; gap: 16px; align-items: center; margin-top: var(--gap); }
.listing__thumbs { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.listing__thumbs::-webkit-scrollbar { display: none; }
.listing__thumbs button { flex: none; width: 112px; aspect-ratio: 3 / 2; position: relative; overflow: hidden; opacity: .4; transition: opacity .3s var(--ui); }
.listing__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.listing__thumbs button[aria-selected="true"] { opacity: 1; }
.listing__thumbs button.af::after { inset: 4px; --l: 12px; }
@media (hover: hover) and (pointer: fine) { .listing__thumbs button:hover { opacity: 1; } }
.listing__arrows { display: flex; gap: 6px; }

/* Sport: kadrovi redom; pejzažni dva stupca, uspravni jedan */
.sportgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 26vw, 420px); gap: var(--gap); }
.sportgrid .media { cursor: zoom-in; }
.sportgrid .is-wide { grid-column: span 2; }

/* ---------- Video ---------- */
.video { padding: clamp(110px, 14vw, 200px) var(--pad) 0; scroll-margin-top: 40px; }
.video__head { margin-bottom: clamp(28px, 4vw, 56px); }

.video__head p { margin-top: clamp(16px, 2vw, 28px); max-width: 46ch; color: #c9c8c4; }
.cinema { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: var(--gap); }
.cinema .vcard--feature { grid-column: 1 / 3; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.cinema .vcard--feature.vcard--right { grid-column: 2 / 4; }
.vcard { position: relative; overflow: hidden; background: var(--ink-2); cursor: pointer; display: block; width: 100%; text-align: left; }
.vcard video, .vcard > img { width: 100%; height: 100%; object-fit: cover; }
.vcard--wide { aspect-ratio: 16 / 9; }
.vcard--tall { aspect-ratio: 9 / 16; }
.vcard__play {
  position: absolute; z-index: 3; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  transform: scale(.8); opacity: 0; transition: transform .3s var(--ui), opacity .3s var(--ui);
}
.vcard__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.vcard--feature .vcard__play { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .vcard:hover .vcard__play { opacity: 1; transform: scale(1); } }
.vcard:focus-visible .vcard__play { opacity: 1; transform: scale(1); }
.video__sub { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.035em; margin: clamp(64px, 8vw, 110px) 0 clamp(20px, 2.4vw, 32px); }
.reels { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: var(--gap); }

.player { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,5,.96); display: grid; place-items: center; padding: 64px var(--pad); }
.player[hidden] { display: none; }
.player video { max-width: 100%; max-height: calc(100dvh - 128px); background: #000; }
.player__close { position: absolute; top: 12px; right: 12px; }

/* ---------- Proces ---------- */
.process { padding: clamp(120px, 15vw, 220px) var(--pad) 0; }
.process__title { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.05em; line-height: .9; margin-bottom: clamp(32px, 4vw, 64px); }
.process__list { counter-reset: none; }
.process__item { display: grid; grid-template-columns: 6fr 5fr; gap: var(--gap); align-items: baseline; padding: clamp(22px, 2.6vw, 36px) 0; border-top: 1.5px solid var(--line); }
.process__item h3 { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.05em; line-height: .95; color: var(--dim); transition: color .4s var(--ui), transform .4s var(--ui); }
.process__item p { max-width: 40ch; color: #c9c8c4; }
.process__item.is-active h3 { color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .process__item:hover h3 { color: var(--paper); transform: translateX(18px); } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); padding: clamp(120px, 15vw, 220px) var(--pad) clamp(80px, 10vw, 140px); scroll-margin-top: 20px; }
.contact__title { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.05em; line-height: .9; }
.contact__intro > p { margin: 22px 0 36px; max-width: 36ch; color: #c9c8c4; }
.contact__direct { display: grid; gap: 0; }
.direct { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1.5px solid var(--line); font-weight: 500; transition: padding .3s var(--ui); }
.direct[hidden] { display: none; }
.direct__k { color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .direct:hover { padding-left: 12px; } .direct:hover .direct__k { color: var(--paper); } }

.form { display: grid; gap: 28px; align-content: start; }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-size: 15px; font-weight: 500; color: #c9c8c4; margin-bottom: 12px; padding: 0; }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__chips span { display: inline-flex; height: 44px; align-items: center; padding: 0 16px; border: 1.5px solid var(--dim); font-size: 15px; font-weight: 500; transition: background .3s var(--ui), color .3s var(--ui), border-color .3s var(--ui); }
.form__chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form__chips input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .form__chips label:hover span { border-color: var(--paper); } }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: #c9c8c4; }
.field .opt { color: var(--mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--paper); background: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: 0; padding: 14px 14px; min-height: 52px;
  transition: border-color .3s var(--ui);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paper); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--signal); }
.field input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.field__err { color: #ff7a70; font-size: 14px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { color: #c9c8c4; font-size: 15px; max-width: 40ch; }

/* ---------- Mobilni dock ---------- */
.dock { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--pad) calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__links { display: flex; gap: 28px; padding: 22px 0; border-top: 1.5px solid var(--line); font-weight: 500; }
.footer__links a { color: #c9c8c4; transition: color .3s var(--ui); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--paper); } }
.footer__word { font-size: clamp(40px, 9.4vw, 170px); font-weight: 650; letter-spacing: -0.065em; line-height: .8; white-space: nowrap; margin: clamp(20px, 4vw, 60px) 0 clamp(18px, 2vw, 28px) -.04em; }
.footer__legal { color: var(--mute); font-size: 14px; }

/* ---------- Galerija + lightbox ---------- */
.gallery { position: fixed; inset: 0; z-index: 70; background: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.gallery[hidden] { display: none; }
.gallery__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--pad); background: rgba(10,10,10,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gallery__bar h2 { font-size: var(--t-m); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.gallery__nav { display: flex; gap: 6px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.gallery__nav::-webkit-scrollbar { display: none; }
.gallery__nav button {
  flex: none; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--mute); border: 1.5px solid var(--line);
  transition: color .3s var(--ui), background .3s var(--ui), border-color .3s var(--ui);
}
.gallery__nav button.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .gallery__nav button:hover { color: var(--paper); border-color: var(--paper); } .gallery__nav button.is-active:hover { color: var(--ink); } }
.gallery__section { display: grid; gap: var(--gap); }
.gallery__section + .gallery__section { margin-top: clamp(48px, 6vw, 96px); }
.gallery__heading { font-size: var(--t-l); font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin: clamp(16px, 2vw, 28px) 0 clamp(8px, 1vw, 16px); }
.gallery__grid { padding: 8px var(--pad) clamp(48px, 6vw, 96px); max-width: 1600px; margin: 0 auto; }
.gallery__row { display: flex; gap: var(--gap); }
.gallery__grid button { display: block; min-width: 0; position: relative; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-open .gallery__grid button { animation: rise .8s var(--out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(5,5,5,.97); display: grid; place-items: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; padding: 64px clamp(16px, 7vw, 110px); width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 128px); object-fit: contain; }
.lightbox__count { position: absolute; left: var(--pad); top: 24px; font-family: "Geist Mono", monospace; font-size: 13px; color: #c9c8c4; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }

/* ---------- Mobitel ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header__cta { display: none; }
  .menu-btn { display: block; margin-right: -10px; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 18%, rgba(10,10,10,0) 46%, rgba(10,10,10,.88) 78%); }
  .hero__content { padding: 0 calc(var(--pad) + 14px) calc(var(--pad) + 18px); }
  .hero__meta { left: calc(var(--pad) + 14px); }
  .hero__title { font-size: clamp(48px, 16.5vw, 120px); white-space: normal; line-height: .88; }
  .footer__word { font-size: clamp(48px, 16.5vw, 120px); white-space: normal; line-height: .86; }
  .hero__title .mask { display: block; }
  .hero__viewfinder span { width: 20px; height: 20px; }
  .statement { grid-template-columns: 1fr; gap: 14px; }
  .chapter__info { flex-direction: column; align-items: flex-start; }

  /* Brend: kartice se slažu jedna na drugu dok skrolaš */
  .accordion { display: block; height: auto; }
  .accordion .media, .accordion .media.is-open {
    position: sticky; top: calc(var(--header-h) + 72px + var(--i) * 12px);
    display: block; width: 100%; height: 64vh; max-height: 560px; margin-bottom: 18vh;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
  }
  .accordion .media:last-child { margin-bottom: 0; }
  /* Portreti: dva stupca, drugi pomaknut */
  .lineup { grid-template-columns: 1fr 1fr; }
  .lineup .media:nth-child(even) { margin-top: 48px; }

  .pan { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--pad); }
  .pan::-webkit-scrollbar { display: none; }
  .pan__track { height: 62vh; max-height: 520px; }
  .pan__track .media { scroll-snap-align: start; }

  /* Dron: puni ekran, kadar po kadar */
  .liftoff__grid { grid-template-columns: 1fr; padding: 0; gap: 10px; }
  .liftoff__grid .media { aspect-ratio: 4 / 5; }
  .liftoff__grid .media:nth-child(n+7) { display: none; }

  .listing__stage { aspect-ratio: 4 / 3; }
  .listing__arrows { display: none; }
  .listing__thumbs { margin-right: calc(var(--pad) * -1); }
  .listing__thumbs button { width: 92px; }

  .sportgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .sportgrid .is-wide { aspect-ratio: 3 / 2; }
  .sportgrid .is-tall { aspect-ratio: 4 / 5; }

  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1.5px solid var(--line);
    transform: translateY(100%); transition: transform .5s var(--page);
  }
  .dock.is-on { transform: none; }
  .dock .btn { height: 48px; justify-content: center; }
  .dock .btn:first-child { flex: 1; }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .cinema { grid-template-columns: 1fr; }
  .cinema .vcard--feature, .cinema .vcard--feature.vcard--right { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .reels::-webkit-scrollbar { display: none; }
  .reels .vcard { flex: none; width: 58vw; scroll-snap-align: start; }
  .vcard__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 1; transform: scale(1); }
  .vcard--tall .vcard__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }

  .process__item { grid-template-columns: 1fr; gap: 10px; }
  .contact { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .gallery__row.is-wide { flex-direction: column; }
  .gallery__row.is-wide button { flex: none !important; width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; margin: 0; }
  .lightbox__prev { left: auto; right: 72px; }
}
@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .hero__ctas { width: 100%; }
  .btn--big { width: 100%; justify-content: center; }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal-media { clip-path: none; }
}
