/* ==========================================================================
   Nino Škalič — skalic.si
   ========================================================================== */

:root {
  --light: #f3f2ee;
  --dark: #08080a;
  --ink: #0b0b0c;
  --paper: #f2f2ee;
  --muted-l: #5d5d63;
  --muted-d: #9a9aa2;
  --accent: #e6ff4a;
  --line-l: rgba(11, 11, 12, .14);
  --line-d: rgba(242, 242, 238, .16);

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 96px;
  --fs-body: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* text selection: same lime as "kreativec / analitik" */
::selection { background: var(--accent); color: var(--ink); -webkit-text-stroke-color: var(--ink); }

/* binary scramble overlay (see scramble() in main.js) */
.is-scrambling { color: transparent !important; }
.scramble-layer {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  white-space: inherit;
}
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

/* Background canvas (paints dark regions + binary rain) */
#bg {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100vh;
  height: 100lvh; /* phones: still covers the screen when the address bar hides */
  z-index: 0; pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }
/* Fallback when canvas is not running */
html:not(.canvas-on) [data-dark] { background: var(--dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px var(--gutter);
  color: var(--paper);
  pointer-events: none;
  transition: color .3s;
}
.site-header.on-light { color: var(--ink); --lm-a: #242021; --lm-b: #242021; }
.site-header a { pointer-events: auto; text-decoration: none; }
.logo {
  display: flex; flex-direction: column; align-items: flex-start;
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-size: clamp(26px, 3vw, 40px);
  line-height: calc(.925em + 4px); /* 4px visible gap between NINO and ŠKALIČ (incl. the Š caron) */
  letter-spacing: -.01em;
}
.logo span { display: block; }
/* BIZON.expert mark: exactly as wide as "NINO"; white on dark sections, dark on light ones */
.logo-mark { display: block; width: 0; min-width: 100%; height: auto; margin-bottom: 6px; }
.logo-mark .lm-a { fill: var(--lm-a, #fff); transition: fill .3s; }
.logo-mark .lm-b { fill: var(--lm-b, #808184); transition: fill .3s; }
/* after scrolling only the mark stays */
.logo-line { transition: opacity .35s; }
.site-header.scrolled .logo-line { opacity: 0; pointer-events: none; }
.nav { display: flex; flex-direction: column; align-items: flex-end; }
.nav a {
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.12;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Mobile menu (☰ + full-screen overlay); hidden on desktop ---------- */
.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin: -10px -10px 0 0;
  padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 2.5px;
  background: currentColor; border-radius: 2px;
  transition: top .35s cubic-bezier(.7, 0, .2, 1), transform .35s cubic-bezier(.7, 0, .2, 1), opacity .2s;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 45;
  flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 40px;
  background: rgba(8, 8, 10, .94);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  color: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility 0s linear .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.mm-links { list-style: none; margin: 0; padding: 0; }
.mm-links li { opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.mobile-menu.is-open .mm-links li { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links li:nth-child(2) { transition-delay: .06s; }
.mobile-menu.is-open .mm-links li:nth-child(3) { transition-delay: .12s; }
.mm-links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(44px, 13vw, 76px); line-height: .95;
  letter-spacing: -.03em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-d);
}
.mm-links a:active, .mm-links a:hover { color: var(--accent); }
.mm-n { color: var(--accent); }
.mm-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; font-size: var(--fs-body); color: var(--muted-d); }
.mm-foot a { text-decoration: none; }
.mm-foot a:active, .mm-foot a:hover { color: var(--paper); }
html.menu-locked { overflow: hidden; }

/* ---------- Shared type ---------- */
.eyebrow { margin: 0 0 18px; opacity: .65; }
h2.eyebrow { font-weight: 500; }
.eyebrow--case { text-transform: none; } /* keeps "BIZnis ONline expert" (BIZ + ON = BIZON) */
.display .display-sub {
  margin-top: 18px;
  font-weight: 600; font-variation-settings: "wdth" 100;
  font-size: clamp(16px, 1.6vw, 22px); line-height: 1.25;
  letter-spacing: 0; text-transform: none;
  color: var(--muted-d);
  -webkit-text-stroke: 0;
}
.display {
  margin: 0;
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  font-size: clamp(54px, 9.5vw, 150px);
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.display > span { display: block; }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
.dark-block .outline, .site-footer .outline { -webkit-text-stroke-color: var(--paper); }
.about .outline { -webkit-text-stroke-color: var(--ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 300svh; color: var(--paper); }
.hero-sticky {
  position: sticky; top: 0;
  height: 100svh; height: 100dvh; overflow: hidden;
  --split: 0; --heads: 0; --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0;
}
.hero-stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  perspective: 1400px;
}
.portrait {
  position: relative;
  height: min(100svh, 150vw);
  aspect-ratio: 2 / 3;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transform-origin: 50% 70%;
  will-change: transform;
}
.portrait-img, .portrait-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-img { object-fit: contain; }
html.gl-on .portrait-img { visibility: hidden; }
.portrait-split {
  position: absolute; top: 0; bottom: 0; width: 2px;
  left: calc(100% - var(--split) * 53%);
  background: var(--accent);
  box-shadow: 0 0 18px 2px rgba(230, 255, 74, .7);
  opacity: calc(var(--split) * 4);
}

.hero-head {
  margin: 0;
  align-self: center;
  position: relative; z-index: 2;
  color: var(--paper);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  /* fit "SISTEMATIK" (~8.1em wide incl. breathing room) into the space beside the portrait */
  font-size: clamp(30px, min(4.3vw, calc((50vw - 33.4svh) / 8.1)), 88px);
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
  opacity: var(--heads);
  pointer-events: none;
  display: flex; flex-direction: column;
}
.hero-head--l { align-items: flex-end; }
.hero-head--r { align-items: flex-start; }
.hero-head span { display: block; white-space: nowrap; }
.hero-head--l { text-align: right; margin-right: -2.2vw; transform: translate3d(calc((1 - var(--heads)) * -60px + var(--mx) * -14px), calc(var(--my) * -10px), 0); }
.hero-head--r { text-align: left; margin-left: -2.2vw; transform: translate3d(calc((1 - var(--heads)) * 60px + var(--mx) * -14px), calc(var(--my) * -10px), 0); }
.hero-head span:last-child { color: var(--accent); }

.hero-intro {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: 64px;
  opacity: calc(1 - var(--heads) * 1.6);
  pointer-events: none;
}
.hero-h1 span, .hero-sub span { display: block; white-space: nowrap; }
.hero-h1 {
  margin: 0;
  font-weight: 800; font-variation-settings: "wdth" 108;
  font-size: clamp(23px, 2.2vw, 35px); line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--paper);
}
.hero-sub { margin: 10px 0 0; font-size: var(--fs-body); color: var(--muted-d); }
.hud {
  position: absolute; bottom: 20px; z-index: 3;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px;
  color: var(--muted-d);
}
.hud b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.hud em { font-style: normal; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
.hud--l { left: var(--gutter); }
@keyframes blink { 50% { opacity: .2; } }

/* ==========================================================================
   DARK BLOCK
   ========================================================================== */
.dark-block { color: var(--paper); }

/* ---------- Journey (pinned horizontal) ---------- */
.journey { position: relative; }
.journey-sticky {
  position: sticky; top: 0;
  height: 100svh; height: 100dvh; overflow: hidden;
  touch-action: pan-y; /* horizontal swipes are handled in main.js */
}
.journey-track {
  position: absolute; left: 0; top: 0; bottom: 120px;
  display: flex; align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-inline: var(--gutter) 12vw;
  width: max-content;
  padding-top: calc(var(--header-h) - 10px);
  will-change: transform;
}
.journey-intro { flex: 0 0 auto; width: min(84vw, 680px); }
.journey-intro .display {
  /* "STORITVE" ≈ 5.7em wide; also keep three lines + lede inside the viewport height */
  font-size: clamp(40px, min(calc(min(84vw, 680px) / 5.8), calc((100svh - 450px) / 2.6)), 120px);
}
.journey-intro .display span { white-space: nowrap; }
.journey-intro .lede { max-width: 30ch; margin: 28px 0 0; color: var(--muted-d); font-size: var(--fs-body); }

.svc { flex: 0 0 auto; position: relative; }
.svc--up { transform: translateY(-4svh); }
.svc--down { transform: translateY(5svh); }
.svc-media {
  container-type: inline-size;
  position: relative;
  transform: perspective(1000px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .4s;
  border-radius: 14px;
  overflow: hidden;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.svc--wide .svc-media { width: min(84vw, calc((100svh - 400px) * 1.6), 760px); aspect-ratio: 16 / 10; }
.svc--tall .svc-media { width: min(66vw, calc((100svh - 400px) * .75), 380px); aspect-ratio: 3 / 4; }
.svc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.svc-media.is-tilt { transition: transform .12s linear, border-color .3s, box-shadow .4s; border-color: rgba(230, 255, 74, .45); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(230, 255, 74, .15); }
.svc-media.is-tilt::after { opacity: 1; }
.svc-title { transition: color .3s; }
.svc:hover .svc-title { color: var(--accent); }
.svc-bar {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px; padding: 0 14px;
  font-size: 10px; color: var(--muted-d);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--accent); }
.svc-meta { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.svc-num { font-weight: 900; font-variation-settings: "wdth" 115; font-size: 28px; color: var(--accent); line-height: 1; }
.svc-meta .mono { color: var(--muted-d); }
.svc-title {
  margin: 6px 0 6px;
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(20px, 2vw, 28px); line-height: 1;
  text-transform: uppercase; letter-spacing: -.01em;
}
.svc-text { margin: 0; max-width: 46ch; font-size: var(--fs-body); color: var(--muted-d); }
.svc-text strong { color: var(--paper); font-weight: 700; }
.svc--tall .svc-text { max-width: 44ch; }

/* --- mockup primitives --- */
.ln { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 7px; width: 100%; }
.ln--xl { height: clamp(10px, 3.4cqw, 22px); background: rgba(255, 255, 255, .85); margin-top: 1.6cqw; }
.ln--90 { width: 90%; } .ln--80 { width: 80%; } .ln--75 { width: 75%; } .ln--70 { width: 70%; }
.ln--60 { width: 60%; } .ln--55 { width: 55%; } .ln--50 { width: 50%; } .ln--40 { width: 40%; }

/* 01 site */
.mock-site { position: absolute; inset: 34px 0 0; padding: 4cqw 5cqw; display: flex; flex-direction: column; gap: 3.4cqw; background: linear-gradient(180deg, #16161a, #0f0f12); }
.ms-nav { display: flex; align-items: center; gap: 2.4cqw; }
.ms-nav i { width: 4cqw; height: 4cqw; border-radius: 1cqw; background: var(--accent); }
.ms-nav span { width: 7cqw; height: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .25); }
.ms-nav span:first-of-type { margin-left: auto; }
.ms-nav b { width: 12cqw; height: 4cqw; border-radius: 4cqw; border: 1px solid rgba(255, 255, 255, .35); }
.ms-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4cqw; align-items: center; }
.ms-btn { display: inline-block; margin-top: 3cqw; padding: 1.4cqw 2.8cqw; border-radius: 4cqw; background: var(--accent); color: #111; font-weight: 800; font-size: clamp(8px, 1.9cqw, 14px); }
.ms-visual { aspect-ratio: 1; border-radius: 2cqw; background: radial-gradient(circle at 30% 30%, #7c5cff, transparent 60%), radial-gradient(circle at 70% 70%, #00d4ff, transparent 55%), #1d1d24; animation: float 7s ease-in-out infinite; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.ms-grid span { height: 8cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); }
.ms-score { position: absolute; right: 4cqw; bottom: 4cqw; padding: 1.2cqw 2cqw; border-radius: 2cqw; background: rgba(8, 8, 10, .85); border: 1px solid rgba(230, 255, 74, .4); color: var(--muted-d); font-size: 10px; }
.ms-score b { color: var(--accent); font-size: 1.6em; margin-right: 6px; vertical-align: -2px; }

/* 02 shop */
.mock-shop { position: absolute; inset: 34px 0 0; padding: 6cqw; display: flex; flex-direction: column; }
.sh-img { position: relative; flex: 1; border-radius: 4cqw; background: radial-gradient(ellipse at 50% 60%, #ff8a3d 0 22%, transparent 23%), radial-gradient(circle at 50% 50%, #3a2a66, #17141f 70%); }
.sh-tag { position: absolute; top: 4cqw; left: 4cqw; padding: 1.6cqw 3cqw; border-radius: 4cqw; background: var(--accent); color: #111; font-weight: 700; }
.mock-shop .ln:first-of-type { margin-top: 5cqw; background: rgba(255, 255, 255, .7); height: 3cqw; }
.sh-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4cqw; }
.sh-row b { font-size: clamp(14px, 7cqw, 26px); font-weight: 900; }
.sh-stars { color: var(--accent); font-size: clamp(10px, 4cqw, 15px); letter-spacing: .1em; }
.sh-btn { margin-top: 4cqw; padding: 3.4cqw; text-align: center; border-radius: 3cqw; background: var(--paper); color: #111; font-weight: 800; font-size: clamp(11px, 4.4cqw, 16px); }
.sh-toast { position: absolute; top: 10cqw; right: -2px; padding: 2.4cqw 4cqw; border-radius: 3cqw 0 0 3cqw; background: #fff; color: #111; font-size: 9px; animation: toast 5s ease-in-out infinite; }
.sh-toast i { font-style: normal; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: #1fbf6b; color: #fff; }

/* 03 seo */
.mock-seo { position: absolute; inset: 34px 0 0; padding: 4cqw 5cqw; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; gap: 3cqw 4cqw; }
.seo-search { grid-column: 1 / -1; padding: 1.8cqw 3cqw; border-radius: 5cqw; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--paper); text-transform: none; letter-spacing: .02em; font-size: clamp(9px, 1.8cqw, 13px); }
.seo-results { display: flex; flex-direction: column; gap: 2cqw; }
.seo-r { display: flex; gap: 2cqw; align-items: flex-start; padding: 2cqw; border-radius: 1.6cqw; border: 1px solid transparent; }
.seo-r > div { flex: 1; }
.seo-r b { font-size: clamp(9px, 1.9cqw, 14px); color: #8ab4ff; font-weight: 600; }
.seo-r .mono { color: var(--muted-d); padding-top: .3cqw; }
.seo-r--top { border-color: rgba(230, 255, 74, .5); background: rgba(230, 255, 74, .06); }
.seo-r--top .mono { color: var(--accent); }
.seo-chart { width: 100%; height: 100%; align-self: end; }
.seo-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.5s ease-out infinite alternate; }

/* 04 ad */
.mock-ad { position: absolute; inset: 34px 0 0; padding: 5cqw; display: flex; flex-direction: column; gap: 3cqw; }
.ad-head { display: flex; gap: 3cqw; align-items: center; }
.ad-head i { width: 9cqw; height: 9cqw; border-radius: 50%; background: linear-gradient(135deg, #ff4fd8, #ffb84f); flex: none; }
.ad-head > div { flex: 1; }
.ad-head .ln { margin-top: 0; background: rgba(255, 255, 255, .6); }
.ad-sp { display: block; margin-top: 1.6cqw; font-size: 9px; color: var(--muted-d); text-transform: none; letter-spacing: .04em; }
.ad-img { flex: 1; border-radius: 3cqw; background: conic-gradient(from 210deg at 60% 40%, #ff4fd8, #6c5cff, #00d4ff, #e6ff4a, #ff4fd8); filter: saturate(.9); animation: hue 9s linear infinite; }
.ad-cta { display: flex; justify-content: space-between; align-items: center; gap: 3cqw; }
.ad-cta .ln { margin: 0; }
.ad-cta b { flex: none; padding: 2cqw 4cqw; border-radius: 2cqw; background: #2f6bff; font-size: clamp(10px, 3.8cqw, 14px); }
.ad-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.ad-kpis div { padding: 2.4cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .06); }
.ad-kpis small { display: block; font-size: 8px; color: var(--muted-d); }
.ad-kpis b { font-size: clamp(11px, 4.6cqw, 17px); color: var(--accent); letter-spacing: 0; }
.demo { position: absolute; top: 3cqw; right: 3cqw; font-size: 8px; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); color: var(--muted-d); }

/* 05 mail */
.mock-mail { position: absolute; inset: 34px 0 0; padding: 5cqw; background: radial-gradient(circle at 85% 20%, rgba(124, 92, 255, .35), transparent 50%); }
.mail { width: 64%; padding: 3.4cqw; border-radius: 2cqw; background: #f4f4f1; color: #111; }
.mail .ln { background: rgba(0, 0, 0, .12); }
.mail-top { display: flex; justify-content: space-between; color: #6a6a70; font-size: 9px; }
.mail-subj { display: block; margin: 2.4cqw 0 1cqw; font-size: clamp(11px, 2.6cqw, 19px); line-height: 1.15; font-weight: 800; }
.mail-btn { display: inline-block; margin-top: 3cqw; padding: 1.6cqw 3cqw; border-radius: 1.4cqw; background: #111; color: var(--accent); font-weight: 700; font-size: clamp(9px, 1.8cqw, 13px); }
.sms { position: absolute; right: 5cqw; bottom: 6cqw; width: 40%; padding: 2.6cqw 3cqw; border-radius: 3cqw 3cqw .6cqw 3cqw; background: #1fbf6b; color: #04150b; animation: float 6s ease-in-out infinite; }
.sms p { margin: .6cqw 0 0; font-size: clamp(10px, 2.1cqw, 15px); line-height: 1.3; font-weight: 600; }
.sms-from { font-size: 8px; opacity: .7; }

@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes toast { 0%, 15% { transform: translateX(110%); } 25%, 75% { transform: translateX(0); } 85%, 100% { transform: translateX(110%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes hue { to { filter: hue-rotate(360deg) saturate(.9); } }

/* --- timeline --- */
.timeline {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  color: var(--muted-d);
}
.tl-phases { position: relative; height: 18px; margin-bottom: 8px; }
.tl-phase { position: absolute; top: 0; font-size: 10px; padding-left: 2px; }
.tl-phase::after { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 0; border-top: 1px dashed currentColor; }
.tl-phase--a { left: 0; width: 38%; }
.tl-phase--b { left: 40%; right: 0; color: var(--accent); }
.tl-phase--b::after { border-top-style: solid; }
.tl-rail { position: relative; height: 1px; background: rgba(255, 255, 255, .18); }
.tl-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); }
.tl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.tl-items li { padding-top: 10px; font-size: 10px; transition: color .3s; cursor: pointer; }
.tl-items li:hover { color: var(--paper); }
.tl-items li:hover b { opacity: 1; }
.tl-items b { display: block; font-size: 13px; color: var(--paper); opacity: .5; transition: opacity .3s, color .3s; }
.tl-items li.is-on { color: var(--paper); }
.tl-items li.is-on b { color: var(--accent); opacity: 1; }

/* ---------- Process ---------- */
.process { padding: 18vh 0 26vh; }
.process .display { margin-bottom: 7vh; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px; align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-d);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.row > * { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.row:hover { color: var(--ink); }
.row:hover::before { transform: scaleY(1); transform-origin: top; }
.row:hover .row-i { color: var(--ink); transform: translateX(16px); }
.row:hover .row-t { transform: translateX(16px); }
.row:hover .row-d { color: var(--ink); }
.row:last-child { border-bottom: 1px solid var(--line-d); }
.row-i { color: var(--accent); }
.row-t {
  margin: 0;
  font-weight: 900; font-variation-settings: "wdth" 115;
  font-size: clamp(26px, 3.4vw, 52px); line-height: 1;
  text-transform: uppercase; letter-spacing: -.02em;
}
.row-d { margin: 0; color: var(--muted-d); max-width: 40ch; font-size: var(--fs-body); }

/* ==========================================================================
   LIGHT: offers, clients, contact
   ========================================================================== */
/* ---------- About ---------- */
.about { padding: 22vh 0 0; }
.about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-l { container-type: inline-size; }
.about-h span { display: block; white-space: nowrap; }
.about-h {
  margin: 0 0 40px;
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(22px, 9.2cqi, 68px); line-height: .92; /* longest row "SPLETNI EKSPERT" ≈ 10.7em fits the column */
  letter-spacing: -.03em; text-transform: uppercase;
}
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 20px 32px; margin: 0; justify-content: start; }
.stats > div { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.stats dt { color: var(--muted-l); margin-bottom: 6px; }
.stats dd { margin: 0; font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; }
.stats dd span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; font-variation-settings: "wdth" 100; color: var(--muted-l); }
.stats .stats-txt { font-size: 17px; line-height: 1.3; font-weight: 700; }
.stats .stats-txt span { display: block; white-space: nowrap; }
.about-r { padding-top: 34px; }
.about-r p { margin: 0 0 20px; font-size: var(--fs-body); line-height: 1.6; max-width: 58ch; }
.about-r strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(230, 255, 74, .8) 62%); }

.offers { padding: 16vh 0 0; }
.offers-title { margin-bottom: 8px; }
.offer {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 48px;
  gap: 24px; align-items: end;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-l);
  text-decoration: none; color: inherit;
  transition: opacity .3s;
}
.offer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.offer > * { transition: transform .5s cubic-bezier(.7, 0, .2, 1), color .3s, opacity .3s; }
.offer-go { justify-self: end; font-size: 40px; font-weight: 800; line-height: 1; opacity: 0; transform: translate(-24px, 0) rotate(-45deg); }
.offer:hover::after { transform: scaleX(1); transform-origin: left; }
.offer:hover .offer-t { transform: translateX(22px); }
.offer:hover .offer-n,
.offer:hover .offer-d { color: var(--ink); }
.offer:hover .offer-go { opacity: 1; transform: none; }
.offers .wrap:hover .offer:not(:hover) { opacity: .35; }

/* cursor-follow pill */
.follow {
  position: fixed; left: 0; top: 0; z-index: 60;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-weight: 700; white-space: nowrap;
  pointer-events: none;
  transform: translate3d(var(--fx, -200px), var(--fy, -200px), 0) translate(-50%, -50%) scale(var(--fs, 0));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.offer-n { align-self: start; padding-top: 10px; color: var(--muted-l); }
.offer-t {
  margin: 0;
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(32px, 4.8vw, 76px); line-height: .9;
  letter-spacing: -.035em; text-transform: uppercase;
}
.offer-d { margin: 0; padding-left: clamp(48px, 5vw, 96px); max-width: calc(36ch + clamp(48px, 5vw, 96px)); color: var(--muted-l); font-size: var(--fs-body); }

.clients { padding: 14vh 0 0; }
.g-rating-wrap { text-align: center; }
.g-rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 28px; padding: 14px 20px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.g-label { color: var(--muted-l); }
.g-score { font-weight: 900; font-variation-settings: "wdth" 112; font-size: 26px; line-height: 1; }
.g-stars { color: #f5b400; font-size: 20px; letter-spacing: .08em; line-height: 1; }
.g-count { font-weight: 600; font-size: 15px; }
.g-go { font-weight: 800; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.g-rating:hover { background: var(--ink); color: var(--paper); }
.g-rating:hover .g-label { color: var(--muted-d); }
.g-rating:hover .g-go { transform: translateX(4px); }
.marquee {
  overflow: hidden;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; /* drag sideways (main.js) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee.is-dragging { cursor: grabbing; }
.marquee-track { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); width: max-content; will-change: transform; }
.marquee img { -webkit-user-drag: none; height: clamp(72px, 8vw, 112px); width: auto; filter: invert(1) grayscale(1); opacity: .75; transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.marquee:hover img { opacity: .3; }
.marquee img:hover { opacity: 1; transform: scale(1.12); }

.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end;
  padding-top: 16vh; padding-bottom: 22vh;
}
.contact-mail {
  display: block;
  font-weight: 800; font-variation-settings: "wdth" 105;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1;
  letter-spacing: -.03em; text-decoration: none;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}
.contact-mail { background: linear-gradient(var(--accent), var(--accent)) 0 92% / 0% 34% no-repeat; transition: background-size .5s cubic-bezier(.7, 0, .2, 1); }
.contact-mail:hover { background-size: 100% 34%; }
.contact-r { text-align: right; }
.company {
  font-style: normal;
  font-size: var(--fs-body); line-height: 1.55;
}
.company a { text-decoration: none; }
.company-name { font-weight: 800; background: linear-gradient(var(--accent), var(--accent)) 0 92% / 0% 34% no-repeat; transition: background-size .5s cubic-bezier(.7, 0, .2, 1); }
.company-name:hover { background-size: 100% 34%; }
.company a[href^="tel:"]:hover { text-decoration: underline; }
.contact-h {
  margin: 0 0 26px;
  font-weight: 800; font-variation-settings: "wdth" 105;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.03em;
}
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; min-width: 150px;
  border: 0; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: color .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(102%);
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), border-radius .45s;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* ---------- Footer ---------- */
.site-footer { color: var(--muted-d); padding: 120px 0 26px; }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-inline: var(--gutter); }
.footer-in nav { display: flex; gap: 22px; }
.footer-in a { text-decoration: none; }
.footer-in a { position: relative; }
.footer-in a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.footer-in a:hover { color: var(--accent); }
.footer-in a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Legal notice & cookies popup ---------- */
.legal {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  max-width: none; max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0; border: 0; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.legal[open] { animation: legal-in .45s cubic-bezier(.2, .8, .2, 1); }
.legal::backdrop { background: rgba(8, 8, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes legal-in { from { opacity: 0; transform: translateY(24px); } }
.legal-bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: var(--paper); border-bottom: 1px solid var(--line-l);
  color: var(--muted-l);
}
.legal-close {
  padding: 8px 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.legal-close:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal-in { padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px); font-size: 16px; line-height: 1.65; }
.legal-h {
  margin: 0 0 28px;
  font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(28px, 4.4vw, 50px); line-height: .98; letter-spacing: -.03em; text-transform: uppercase;
}
.legal h3 { margin: 36px 0 10px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 19px; font-weight: 800; line-height: 1.25; }
.legal h4 { margin: 20px 0 6px; font-size: 16px; font-weight: 800; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal-in a, .legal-inline { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-inline { padding: 0; border: 0; background: none; font-weight: 700; cursor: pointer; }
.legal-table { overflow-x: auto; margin: 16px 0 18px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.legal th { text-align: left; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted-l); }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-l); vertical-align: top; }

/* ---------- Cookie consent bar ---------- */
.consent {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 70;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 22px 22px 18px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-d);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: legal-in .5s cubic-bezier(.2, .8, .2, 1);
}
.consent[hidden] { display: none; }
.consent-k { margin: 0; color: var(--accent); }
.consent-t { margin: 8px 0 18px; font-size: 15px; line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { flex: 1; min-width: 0; height: 44px; background: var(--paper); color: var(--ink); }
.consent-more { display: inline-block; margin-top: 14px; color: var(--muted-d); text-decoration: underline; text-underline-offset: 3px; }
.consent-more:hover { color: var(--accent); }

@media (max-width: 860px) {
  .legal { width: 100%; max-height: none; height: 100dvh; border-radius: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  :root { --header-h: 84px; }
  /* Mobile: once scrolled, the header becomes a compact frosted bar so it never sits on top of text */
  .site-header { transition: color .3s, background-color .3s, padding .3s, box-shadow .3s; }
  .site-header.scrolled {
    align-items: center;
    padding-top: 12px; padding-bottom: 12px;
    background: rgba(8, 8, 10, .72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }
  .site-header.scrolled.on-light { background: rgba(243, 242, 238, .78); box-shadow: 0 1px 0 rgba(11, 11, 12, .1); }
  .logo-line { max-height: 2em; transition: opacity .35s, max-height .35s; }
  .site-header.scrolled .logo-line { max-height: 0; overflow: hidden; }
  .site-header.scrolled .logo-mark { margin-bottom: 0; }
  /* ☰ replaces the three header links */
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: flex; }
  .site-header.scrolled .menu-btn { margin-top: 0; }
  /* while the menu is open the header sits on the dark overlay: white, no bar */
  .site-header.menu-open,
  .site-header.scrolled.on-light.menu-open {
    color: var(--paper); --lm-a: #fff; --lm-b: #808184;
    background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .hero-stage { grid-template-columns: 1fr; justify-items: center; }
  .hero-head { position: absolute; left: var(--gutter); right: var(--gutter); margin: 0; text-align: left; font-size: clamp(40px, 13vw, 72px); }
  .hero-head--l { top: 14svh; }
  .hero-head--r { bottom: 9svh; text-align: right; }
  .hero-intro { max-width: none; right: var(--gutter); bottom: 58px; text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
  .hero-h1 { font-size: 23px; }
  .hero-h1 span, .hero-sub span { white-space: normal; }
  .hero-sub { font-size: var(--fs-body); }
  .about-in { grid-template-columns: 1fr; }
  .about-r { padding-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:last-child { grid-column: 1 / -1; } /* platforms list: room for its 3 rows */
  .g-rating { justify-content: center; text-align: center; }
  .hud span:nth-child(2) { display: none; }

  .journey-track { bottom: 110px; gap: clamp(56px, 10vw, 160px); } /* double the desktop spacing between services */
  .svc--up, .svc--down { transform: none; }
  .svc { width: min-content; } /* heading and text wrap to the card's width, so it all fits on screen */
  /* every card as wide as 01; the tall mock-ups (02, 04) become square so they still fit */
  .svc--tall .svc-media { width: min(84vw, calc((100svh - 400px) * 1.6), 760px); aspect-ratio: 4 / 3; }
  .svc-text { font-size: var(--fs-body); }
  .tl-items li { font-size: 0; }
  .tl-items b { font-size: 12px; }
  .tl-phase { font-size: 9px; }

  .row { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .offer-go { display: none; }
  .row-d { grid-column: 2; font-size: var(--fs-body); }
  .offer { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .offer-n { padding-top: 0; }
  .offer-d { font-size: var(--fs-body); padding-left: 0; }
  .contact { grid-template-columns: 1fr; gap: 64px; }
  .contact-r { text-align: left; }
}
@media (max-width: 600px) {
  .svc--tall .svc-media { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .footer-in { flex-direction: column; }
}

@media (hover: none) {
  .follow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
