/* Batagel redesign. Bright "clean water" world, one accent (water blue). Radius system: pills for buttons, 20px for surfaces. */
:root {
  --ink: #edf3f6;
  --ink-2: #ffffff;
  --ink-3: #e2ebef;
  --fg: #0a1a22;
  --muted: #4a626d;
  --line: rgba(10, 26, 34, .12);
  --accent: #0a66ff;
  --accent-ink: #ffffff;
  --paper: #ffffff;
  --r: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  --display: "Archivo", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #c3d2d9; border-radius: 10px; border: 2px solid var(--ink); }
html { scrollbar-color: #c3d2d9 var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }

/* z-scale: canvas 0, content 1, grain 50, nav 60, curtain 100 */
#gl { position: fixed; inset: 0; width: 100vw; height: 100lvh; z-index: 0; display: block; }
main, .footer { position: relative; z-index: 1; }
.solid { background: var(--ink-2); }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  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");
}

/* ---------- curtain intro ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 22px;
  clip-path: inset(0 0 0 0);
}
.curtain__mark {
  font: 800 clamp(28px, 5vw, 56px)/1 var(--display); font-stretch: 125%;
  letter-spacing: .02em; color: var(--fg);
}
.curtain__bar { width: min(240px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.curtain__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.no-js .curtain, .reduced .curtain { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 72px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 32px;
  transition: background .5s var(--ease-out), backdrop-filter .5s, translate .6s var(--ease-out);
}
.nav.is-scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 -1px 0 var(--line); }
.nav.is-hidden { translate: 0 -100%; }
.nav__logo {
  font: 800 20px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-decoration: none; margin-right: auto;
}
.nav__logo sup { font: 500 10px var(--body); color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.nav__links { display: flex; gap: 28px; }
.nav__links span { font-size: 15px; color: var(--muted); cursor: default; user-select: none; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 26px;
  border-radius: 999px; font: 500 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform .2s var(--ease-out), color .35s;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(10, 26, 34, .22); background: rgba(255,255,255,.5); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .btn--solid:hover::before, .btn--ghost:hover::before { transform: translateY(0); }
  .btn--ghost:hover { color: var(--ink); }
}
.btn--big { --h: 64px; padding: 0 34px; font-size: 18px; margin-top: 36px; }
.nav__cta { --h: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- type ---------- */
.h2 {
  font: 700 clamp(40px, 6.4vw, 96px)/.98 var(--display); font-stretch: 112%;
  letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance;
}
.h2--xl { font-size: clamp(52px, 9vw, 140px); font-stretch: 125%; letter-spacing: -.04em; line-height: .92; }
.h3 { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--display); font-stretch: 110%; letter-spacing: -.02em; margin: 0 0 32px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 46ch; margin: 0; text-wrap: pretty; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; will-change: transform; }
.split .w, .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span, .split-words .w > span { display: inline-block; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(32px, 6vh, 64px); }
.hero__inner { width: 100%; max-width: 1400px; margin: 0 auto; }
@media (min-width: 901px) { .hero { align-items: center; } .hero__inner > * { max-width: 54%; } }
.hero__title {
  font: 800 clamp(52px, 7.4vw, 124px)/.92 var(--display); font-stretch: 116%;
  letter-spacing: -.045em; margin: 0 0 clamp(24px, 4vh, 44px);
}
.hero__title em { font-style: italic; font-weight: 300; font-stretch: 100%; color: var(--accent); padding-right: .06em; }
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__sub { max-width: 34ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.notice {
  position: absolute; left: var(--pad); top: 96px; max-width: calc(100% - 2 * var(--pad));
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 14px; color: var(--fg);
  transition: box-shadow .3s, background .3s;
}
.notice b { background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; padding: 5px 10px; border-radius: 999px; flex: none; }
.notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice i { color: var(--accent); flex: none; transition: transform .4s var(--ease-out); }
.notice:hover { box-shadow: inset 0 0 0 1px rgba(10,102,255,.5); }
.notice:hover i { transform: translateX(4px); }
.hero__since {
  position: absolute; right: var(--pad); top: 110px;
  font: 300 clamp(14px, 1.1vw, 16px)/1 var(--body); color: var(--muted);
  display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums;
}
.hero__since span { font-size: 12px; }

/* ---------- filter story ---------- */
.filter { height: 420vh; position: relative; }
.filter__pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; justify-items: end; padding: 0 var(--pad); max-width: 1400px; margin: 0 auto; }
.filter__stage {
  grid-area: 1 / 1; width: min(46%, 620px); opacity: 0; visibility: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
}
.filter__h { font: 700 clamp(36px, 4.6vw, 72px)/1 var(--display); font-stretch: 112%; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.filter__num {
  font: 800 clamp(96px, 13vw, 210px)/.85 var(--display); font-stretch: 120%; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: .04em;
  text-shadow: 0 10px 60px rgba(255, 255, 255, .5);
}
.filter__num small { font-size: .26em; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--accent); margin-top: .2em; }
.filter__p { color: var(--fg); opacity: .78; max-width: 36ch; font-size: clamp(17px, 1.5vw, 21px); margin: 18px 0 0; text-shadow: 0 2px 24px rgba(255,255,255,.9); }
.filter__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; height: 1px; background: var(--line); }
.filter__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- novosti ---------- */
.novosti { margin-bottom: clamp(96px, 14vh, 180px); }
.novosti__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.novosti__list li { border-bottom: 1px solid var(--line); }
.novosti__list a, .novosti__static {
  display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 28px 0;
  text-decoration: none; position: relative; isolation: isolate;
}
.novosti__list a::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.novosti__cat { font-size: 14px; color: var(--accent); transition: color .3s; }
.novosti__t { font: 600 clamp(24px, 3.2vw, 48px)/1.05 var(--display); font-stretch: 110%; letter-spacing: -.03em; transition: transform .6s var(--ease-out), color .3s; }
.novosti__list i { font-size: 28px; transition: transform .6s var(--ease-out); }
.novosti__static { cursor: default; }
.novosti__static .novosti__t { color: var(--muted); }
@media (hover: hover) {
  .novosti__list a:hover::before { transform: scaleY(1); }
  .novosti__list a:hover { color: var(--accent-ink); }
  .novosti__list a:hover .novosti__cat { color: var(--accent-ink); }
  .novosti__list a:hover .novosti__t { transform: translateX(14px); }
  .novosti__list a:hover i { transform: rotate(-45deg); }
}
.tagline { font: 300 italic clamp(20px, 2vw, 28px)/1.2 var(--display); color: var(--accent); margin: -12px 0 24px; }

/* ---------- sesanje ---------- */
.sesanje { padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 12vh, 140px); border-radius: 32px 32px 0 0; margin-top: -32px; box-shadow: 0 -30px 80px rgba(10,60,140,.08); }
.sesanje__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.specimen {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #eef4f7 55%, #cfdde4 100%);
  display: grid; place-items: center; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 40px 80px -30px rgba(10, 102, 255, .25), 0 30px 60px -30px rgba(20, 50, 80, .25);
}
.specimen img { width: 72%; mix-blend-mode: multiply; transform: translateZ(40px); }
.specimen__glow { position: absolute; inset: 0; background: radial-gradient(40% 40% at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.7), transparent 70%); mix-blend-mode: soft-light; pointer-events: none; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 48px 0 0; }
.spec { padding: 26px 0 22px; border-top: 1px solid var(--line); }
.spec:nth-child(odd) { padding-right: 24px; }
.spec dt { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.spec dd { margin: 0; font: 700 clamp(40px, 4.4vw, 68px)/1 var(--display); font-stretch: 115%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.spec small { font: 400 16px var(--body); letter-spacing: 0; color: var(--accent); margin-left: 6px; }

.marquee { margin: clamp(80px, 12vh, 140px) 0; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 300 clamp(30px, 4vw, 60px)/1 var(--display); font-stretch: 110%; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { color: var(--accent); font-size: clamp(26px, 3vw, 44px); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.lineup__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.lineup h4 { font: 500 13px/1 var(--body); color: var(--accent); margin: 0 0 16px; letter-spacing: .02em; }
.lineup ul { list-style: none; margin: 0 0 36px; padding: 0; }
.lineup li { font: 500 clamp(20px, 1.8vw, 26px)/1.5 var(--display); font-stretch: 105%; letter-spacing: -.01em; transition: transform .4s var(--ease-out), color .3s; width: fit-content; }
@media (hover: hover) { .lineup li:hover { transform: translateX(10px); color: var(--accent); } }

/* ---------- likanje ---------- */
.likanje { height: 360vh; position: relative; }
.likanje__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--pad) clamp(40px, 8vh, 80px); gap: 32px; max-width: 1400px; margin: 0 auto; }
.likanje__copy { min-width: 0; }
.likanje__p { margin-top: 8px; color: var(--fg); opacity: .85; text-shadow: 0 2px 24px rgba(255,255,255,.9); }
.likanje__meter { text-align: right; font-variant-numeric: tabular-nums; }
.likanje__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.likanje__val { font: 700 clamp(48px, 6vw, 88px)/1 var(--display); font-stretch: 120%; letter-spacing: -.04em; }
.likanje__val::after { content: "%"; font-size: .35em; color: var(--accent); margin-left: 4px; vertical-align: top; }

/* ---------- stirea ---------- */
.stirea { padding: clamp(96px, 14vh, 180px) 0; border-radius: 32px 32px 0 0; margin-top: -32px; box-shadow: 0 -30px 80px rgba(10,60,140,.08); }
.stirea__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.stirea__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.fact b { display: block; font: 700 clamp(26px, 2.6vw, 38px)/1 var(--display); font-stretch: 115%; letter-spacing: -.03em; margin-bottom: 8px; }
.fact span { color: var(--muted); font-size: 15px; }
.stirea__photo { margin: 0; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #ffffff, #eef4f7 60%, #cfdde4); max-width: 380px; padding: 20px; }
.stirea__photo img { mix-blend-mode: multiply; width: 100%; }
.bars { padding-top: 12px; }
.bars__title { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.bar { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 16px; padding: 11px 0; }
.bar span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.bar i { display: block; height: 10px; border-radius: 10px; background: #c9d7de; width: calc(var(--w) * 1%); min-width: 4px; transform-origin: left; transform: scaleX(var(--s, 0)); transition: transform 1.4s var(--ease-out); }
.bar b { font: 600 15px var(--body); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.bar--hero { padding-top: 22px; }
.bar--hero span { color: var(--fg); font-weight: 600; }
.bar--hero i { height: 22px; background: var(--accent); box-shadow: 0 10px 40px -8px rgba(10, 102, 255, .45); }
.bar--hero b { font: 700 clamp(22px, 2vw, 30px) var(--display); font-stretch: 115%; color: var(--accent); }
.bars__note { font-size: 13px; color: var(--muted); margin: 24px 0 0; }

/* ---------- bela tehnika ---------- */
.bela { padding: clamp(80px, 12vh, 160px) 0; }
.bela__lead { margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.tile {
  position: relative; border-radius: var(--r); padding: 26px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease-out);
}
.tile i { position: absolute; top: 18px; right: 18px; font-size: 64px; color: var(--accent); opacity: .9; transition: transform .8s var(--ease-out); }
.tile h3 { font: 600 clamp(22px, 2vw, 30px)/1.05 var(--display); font-stretch: 110%; letter-spacing: -.02em; margin: 0 0 6px; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); }
@media (hover: hover) { .tile:hover i { transform: translateY(-6px) rotate(-8deg) scale(1.08); } }
.tile--a { grid-column: span 7; grid-row: span 2; background: radial-gradient(90% 80% at 85% 10%, rgba(10,102,255,.22), transparent 60%), linear-gradient(160deg, #dce9fb, #f3f7fa); }
.tile--a i { font-size: clamp(120px, 14vw, 220px); opacity: .55; }
.tile--a h3 { font-size: clamp(36px, 4vw, 60px); }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 5; background: linear-gradient(135deg, #e3ecf0 0%, #f6f9fa 100%); }
.tile--d { grid-column: span 4; background: #0a1a22; color: #fff; box-shadow: none; }
.tile--d p { color: #a9bcc5; }
.tile--d i { color: #6ea8ff; }
.tile--e { grid-column: span 4; }
.tile--f { grid-column: span 4; background: repeating-linear-gradient(115deg, rgba(10,26,34,.05) 0 1px, transparent 1px 14px), var(--ink-3); }
.tile--g { grid-column: span 12; min-height: 160px; flex-direction: row; align-items: flex-end; justify-content: space-between; background: linear-gradient(90deg, var(--accent) 0%, #38a8ff 100%); color: #fff; box-shadow: none; }
.tile--g p { color: rgba(255,255,255,.85); }
.tile--g i { color: var(--accent-ink); }

/* ---------- podjetje ---------- */
.podjetje { padding: clamp(80px, 12vh, 160px) 0; overflow: hidden; }
.podjetje__grid { display: block; }
.podjetje__copy { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: end; margin-top: clamp(-80px, -5vw, -24px); position: relative; }
.podjetje__copy .lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.year {
  white-space: nowrap; font: 900 clamp(120px, 27vw, 440px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.07em;
  font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px rgba(10, 102, 255, .35);
}
.quote { font: 500 clamp(28px, 3vw, 46px)/1.1 var(--display); font-stretch: 105%; letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance; }
.quote__by { font-size: 15px; color: var(--accent); margin: 0; }

/* ---------- servis ---------- */
.servis { padding: clamp(80px, 12vh, 160px) 0 clamp(60px, 8vh, 100px); }
.servis__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.card {
  font-style: normal; border-radius: var(--r); padding: clamp(28px, 3vw, 44px);
  background: linear-gradient(160deg, #e2edfd, #f7fafc); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(20,60,120,.3);
}
.card h3 { font: 700 28px/1 var(--display); font-stretch: 115%; letter-spacing: -.02em; margin: 0 0 16px; }
.card p { color: var(--muted); margin: 0 0 24px; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card li { display: flex; align-items: center; gap: 12px; }
.card li i { color: var(--accent); font-size: 20px; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }
.servis__thanks { color: var(--muted); margin-top: 72px; }

/* ---------- footer ---------- */
.footer { padding: 80px 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer__brand { font: 900 clamp(64px, 15vw, 240px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.05em; }
.footer__cols { display: flex; gap: 48px; color: var(--muted); font-size: 15px; }
.footer__cols p { margin: 0; }
.footer__cols a { text-decoration: none; color: var(--fg); }
.footer__cols a:hover { color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; margin-top: 56px; font-size: 13px; color: var(--muted); }
.footer__top { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- reveals (JS adds .js on html) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal-fade { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .sesanje__grid, .stirea__grid, .podjetje__grid, .servis__grid { grid-template-columns: 1fr; }
  .specimen { max-width: 440px; width: 100%; margin: 0 auto; }
  .lineup__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); }
  .tile--a, .tile--g { grid-column: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 1; }
  .tile--a { grid-row: span 1; min-height: 260px; }
  .tile--e { grid-column: span 2; }
  .year { font-size: 34vw; }
  .podjetje__copy { grid-template-columns: 1fr; margin-top: 24px; }
  .filter__pin { align-items: end; justify-items: start; padding-bottom: 72px; }
  .filter__stage { width: 100%; }
  .podjetje__copy .lead { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 96px; }
  .hero__title { font-size: clamp(46px, 14vw, 72px); }
  .notice {
  position: absolute; left: var(--pad); top: 96px; max-width: calc(100% - 2 * var(--pad));
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 14px; color: var(--fg);
  transition: box-shadow .3s, background .3s;
}
.notice b { background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; padding: 5px 10px; border-radius: 999px; flex: none; }
.notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice i { color: var(--accent); flex: none; transition: transform .4s var(--ease-out); }
.notice:hover { box-shadow: inset 0 0 0 1px rgba(10,102,255,.5); }
.notice:hover i { transform: translateX(4px); }
.hero__since { top: 84px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; justify-content: center; padding: 0 18px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .lineup__grid { grid-template-columns: 1fr; }
  .lineup ul { margin-bottom: 24px; }
  .tile { padding: 20px; }
  .tile i { font-size: 44px; }
  .tile h3 { font-size: 20px; }
  .tile--g { flex-direction: column; align-items: flex-start; }
  .bar { grid-template-columns: 92px 1fr auto; gap: 10px; }
  .bar span { font-size: 13px; }
  .likanje__pin { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .likanje__meter { position: absolute; top: 92px; right: var(--pad); }
  .footer__cols { flex-direction: column; gap: 20px; }
  .footer__brand { font-size: 17vw; }
  .year { font-size: 30vw; }
  .notice { top: 84px; font-size: 13px; border-radius: 20px; }
  .notice span { white-space: normal; line-height: 1.3; }
  .novosti__list a, .novosti__static { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; }
  .novosti__cat { grid-column: 1 / -1; }
  .nav__cta { --h: 38px; padding: 0 16px; font-size: 14px; }
  .btn--big { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .js .reveal, .js .reveal-fade { opacity: 1; transform: none; }
  .bar i { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* no WebGL: keep the world, drop the 3D */
.no-gl .hero { background: radial-gradient(40% 50% at 72% 38%, rgba(10,102,255,.25), transparent 70%), var(--ink); }
.no-gl .likanje { background: linear-gradient(170deg, #dfe9f0, var(--ink)); }

/* ---------- hero stage: sunny studio wall behind the 3D product ---------- */
.stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #d9e4ec 0%, #e6eef4 60%, #dfe8ef 100%); }
.stage__glow { position: absolute; inset: 0; background:
  radial-gradient(38% 46% at 70% 50%, rgba(10, 102, 255, .16), transparent 70%),
  radial-gradient(30% 30% at 74% 40%, rgba(255, 255, 255, .9), transparent 70%); }
.stage__window {
  position: absolute; right: 4%; top: 4%; width: 40vw; height: 66vh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3.2vw;
  transform: perspective(900px) rotateY(-28deg) rotateZ(-7deg) skewX(-10deg);
  filter: blur(16px); opacity: .85;
}
.stage__window i { background: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, .55)); border-radius: 6px; box-shadow: 0 0 80px 24px rgba(255, 255, 255, .55); }
.stage__word {
  position: absolute; left: 50%; top: 31%; translate: -50% -50%;
  font: 900 21vw/0.8 var(--display); font-stretch: 125%; letter-spacing: -.05em; white-space: nowrap;
  color: rgba(255, 255, 255, .5); -webkit-text-stroke: 1.5px rgba(10, 102, 255, .1);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.stage__word span { display: inline-block; }
.stage__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 35%, rgba(214, 226, 235, .6) 100%); }
#gl { background: transparent; }

.hotspots { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; will-change: transform; }
.hotspot__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(10, 102, 255, .2); flex: none; margin: -7px 0 0 -7px; animation: ping 2.4s var(--ease-out) infinite; }
.hotspot__line { width: 54px; height: 1px; background: rgba(10, 26, 34, .35); margin-top: -7px; flex: none; }
.hotspot__label {
  margin-top: -7px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px -12px rgba(16, 48, 94, .35), inset 0 0 0 1px rgba(255,255,255,.9);
  font-size: 13px; color: var(--muted); white-space: nowrap; display: grid; line-height: 1.25;
}
.hotspot__label b { font: 700 15px var(--display); font-stretch: 110%; color: var(--fg); }
.hotspot--left { flex-direction: row-reverse; }
.hotspot--left .hotspot__dot { margin: -7px -7px 0 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(10, 102, 255, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(10, 102, 255, 0); } }
@media (max-width: 900px) { .hotspots { display: none; } .stage__word { top: 22%; font-size: 30vw; } .stage__window { width: 70vw; height: 40vh; right: -10%; } }
@media (prefers-reduced-motion: reduce) { .hotspot__dot { animation: none; } }

/* keep hero copy readable over the oak floor */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 243, 246, .78) 0%, rgba(237, 243, 246, .45) 38%, rgba(237, 243, 246, 0) 58%); }
.hero__sub { color: #34495a; }
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(0deg, rgba(237, 243, 246, .92) 0%, rgba(237, 243, 246, .7) 42%, rgba(237, 243, 246, 0) 62%); }
}
