/* ============================================================
   CVIJA MONT — Design System
   Direction: "Kaljenje" (steel tempering colours)
   Palette derived from anthracite RAL 7016, galvanised zinc,
   and the straw-gold temper colour steel takes at ~230 °C.
   Type: Archivo (variable wdth/wght) / IBM Plex Sans / IBM Plex Mono
   Mobile-first. Author: Apis Development
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* surfaces */
  --void: #0a0c0e;
  --steel: #111519;
  --steel-2: #171c21;
  --steel-3: #1d242a;

  /* rules / hairlines */
  --rule: #242c33;
  --rule-soft: #1a2026;
  --rule-strong: #36414a;

  /* ink */
  --white: #edf1f3;
  --zinc: #96a1aa;
  --zinc-dim: #68727a;

  /* accents — zlato je uzorkovano direktno iz logotipa (#DEAD01) */
  --temper: #dead01;      /* tačno zlato iz logotipa */
  --temper-hi: #f7c518;   /* hover / highlight */
  --temper-mid: #b08a02;  /* gradijenti, srednji ton */
  --temper-dim: #6e5604;  /* prigušene ivice, znak navoda */
  --blueprint: #3e6fa8;

  /* zlato u rgb komponentama — za rgba() slojeve */
  --temper-rgb: 222, 173, 1;

  /* semantic */
  --bg: var(--void);
  --fg: var(--white);

  /* type */
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  --t-lg: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --t-xl: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  --t-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.9rem);
  --t-3xl: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
  --t-4xl: clamp(2.7rem, 1.35rem + 5.2vw, 6.1rem);

  /* space */
  --gut: 20px;
  --sec: clamp(64px, 9vw, 140px);
  --maxw: 1320px;

  /* motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --d: 0.6s;

  --nav-h: 62px;
}

@media (min-width: 768px) {
  :root { --gut: 40px; --nav-h: 76px; }
}
@media (min-width: 1200px) {
  :root { --gut: 56px; }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip (a ne hidden) — hidden pravi scroll kontejner i ubija position: sticky */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

/* stariji pregledači bez overflow: clip */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--temper); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--temper);
  outline-offset: 3px;
}

/* film grain — subtle, fixed, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. TYPE PRIMITIVES ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 105, "wght" 700;
  text-transform: uppercase;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--temper);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--temper);
  flex: none;
}

.mono { font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: 0.02em; }
.dim { color: var(--zinc); }
.dimmer { color: var(--zinc-dim); }
.gold { color: var(--temper); }

.lede {
  font-size: var(--t-lg);
  color: var(--zinc);
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }

.sec-head { margin-bottom: clamp(36px, 5vw, 68px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.sec-head p { margin-top: 20px; }

/* engineering hairline used as a section divider */
.rule-x {
  height: 1px;
  background: var(--rule);
  position: relative;
}
.rule-x::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 56px; height: 3px;
  background: var(--temper);
}

/* CAD crop-mark corner brackets — the recurring structural device */
.brk { position: relative; }
.brk::before, .brk::after {
  content: "";
  position: absolute;
  width: 11px; height: 11px;
  border-color: var(--rule-strong);
  border-style: solid;
  transition: border-color 0.4s var(--e-out);
  pointer-events: none;
}
.brk::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.brk::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.brk:hover::before, .brk:hover::after { border-color: var(--temper); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--rule-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--e-out), border-color 0.4s var(--e-out), transform 0.35s var(--e-out);
  will-change: transform;
}
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--temper);
  transform: translateY(101%);
  transition: transform 0.5s var(--e-out);
}
.btn:hover { color: var(--void); border-color: var(--temper); }
.btn:hover::before { transform: translateY(0); }

.btn--solid { --btn-bg: var(--temper); --btn-fg: var(--void); --btn-bd: var(--temper); font-weight: 500; }
.btn--solid::before { background: var(--white); }
.btn--solid:hover { color: var(--void); border-color: var(--white); }

.btn--ghost { --btn-bd: var(--rule); }
.btn--sm { padding: 11px 18px; font-size: var(--t-xs); }
.btn--wide { width: 100%; }

.btn-arrow { transition: transform 0.4s var(--e-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* text link with underline sweep */
.tlink {
  position: relative;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--temper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--e-out);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 6. SCROLL PROGRESS — "weld seam" ---------- */
.seam {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.seam__bead {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background:
    repeating-linear-gradient(90deg,
      var(--temper) 0 5px,
      var(--temper-hi) 5px 7px,
      var(--temper) 7px 12px);
  box-shadow: 0 0 12px rgba(var(--temper-rgb), 0.5);
}

/* ---------- 7. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--e-out), border-color 0.5s var(--e-out), backdrop-filter 0.5s;
}
.nav.is-stuck {
  background: rgba(10, 12, 14, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
/* monogram je sada raster (assets/logo-mark-dark.png); contain drži proporciju
   i sprečava pomeranje layouta jer su width/height u HTML-u eksplicitni */
.logo__mark { width: 32px; height: 32px; flex: none; object-fit: contain; }
.logo__txt {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.logo__txt small {
  display: block;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--zinc-dim);
  font-weight: 400;
  margin-top: 3px;
}

.nav__menu { display: none; }
.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 36px);
  }
  .nav__menu a {
    font-family: var(--f-mono);
    font-size: var(--t-xs);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--zinc);
    position: relative;
    padding-block: 6px;
    transition: color 0.35s var(--e-out);
  }
  .nav__menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--temper);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--e-out);
  }
  .nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--white); }
  .nav__menu a:hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { display: inline-flex; }
  .burger { display: none !important; }
}

.burger {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  flex: none;
  transition: border-color 0.35s;
}
.burger:hover { border-color: var(--temper); }
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform 0.45s var(--e-out), opacity 0.25s;
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* full-screen mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--void);
  padding: calc(var(--nav-h) + 32px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--e-out);
  overflow-y: auto;
}
.mmenu.is-open { clip-path: inset(0 0 0 0); }
.mmenu__list li { border-bottom: 1px solid var(--rule-soft); }
.mmenu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 0;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(22px);
}
.mmenu.is-open .mmenu__list a { animation: mIn 0.6s var(--e-out) forwards; }
.mmenu__list li:nth-child(1) a { animation-delay: 0.14s; }
.mmenu__list li:nth-child(2) a { animation-delay: 0.20s; }
.mmenu__list li:nth-child(3) a { animation-delay: 0.26s; }
.mmenu__list li:nth-child(4) a { animation-delay: 0.32s; }
.mmenu__list li:nth-child(5) a { animation-delay: 0.38s; }
.mmenu__list li:nth-child(6) a { animation-delay: 0.44s; }
.mmenu__list .idx {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--temper);
  letter-spacing: 0.12em;
}
@keyframes mIn { to { opacity: 1; transform: translateY(0); } }

.mmenu__logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: clamp(24px, 5vh, 44px);
}

.mmenu__foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 8px;
}
.mmenu__foot a { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--zinc); }
.mmenu__foot a:hover { color: var(--temper); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: clamp(40px, 8vh, 96px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* horizontalni prevlak je naš; vertikalni skrol i pinch-zoom prolaze dalje */
  touch-action: pan-y pinch-zoom;
}

/* --- 8a. FOTO SLAJDER (pun okvir, ispod svega) --- */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__slide.is-on { opacity: 1; }

.hero__slide picture,
.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns — traje koliko slajd plus prelaz, da se pokret ne prekine
   usred pretapanja. Namerno jedva primetno: ako se vidi kao pokret,
   preterano je. */
.hero__slide img { transform: scale(1); will-change: transform; }
.hero__slide.is-on img { animation: kenburns 7.2s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* --- 8b. SCRIM — usmeren, da fotografija ostane čitljiva ---
   Mobilno (osnovno): tekst stoji preko sredine slike, pa je scrim
   vertikalan — tamniji gore i dole, otvoreniji u sredini. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(10, 12, 14, 0.82) 0%,
      rgba(10, 12, 14, 0.58) 45%,
      rgba(10, 12, 14, 0.88) 100%);
}

/* Zaseban sloj samo za traku navigacije. Nav nema pozadinu dok se ne
   skroluje, pa se preko vedrog neba (slajd 2) linkovi gube. */
.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 14, 0.72) 0%, transparent 16%);
}

/* Desktop: tekst je levo, pa scrim ide dijagonalno — leva strana
   zaštićena, desna otvorena da se fotografija vidi. Drugi sloj sidri
   dno zbog spec reda i plutajuće šine. */
@media (min-width: 1024px) {
  .hero__scrim {
    background:
      linear-gradient(100deg,
        rgba(10, 12, 14, 0.88) 0%,
        rgba(10, 12, 14, 0.72) 32%,
        rgba(10, 12, 14, 0.34) 62%,
        rgba(10, 12, 14, 0.22) 100%),
      linear-gradient(to top,
        rgba(10, 12, 14, 0.85) 0%,
        transparent 42%);
  }
}

/* blueprint grid backdrop — prigušen da ne konkuriše fotografiji */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(62, 111, 168, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 111, 168, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0;
  transition: opacity 1.4s ease 0.3s;
}
.is-loaded .hero__grid { opacity: 0.4; }

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  gap: clamp(34px, 5vw, 56px);
}
/* Crtež više nije druga kolona nego sloj preko fotografije, pa tekst
   ostaje u jednoj koloni i samo se ograničava po širini. */
@media (min-width: 1024px) {
  .hero__inner > div { max-width: min(100%, 660px); }
}
@media (min-width: 1280px) {
  .hero__inner > div { max-width: min(100%, 720px); }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--zinc);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 15px 7px 11px;
  margin-bottom: 24px;
}
.hero__tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--temper);
  box-shadow: 0 0 0 0 rgba(var(--temper-rgb), 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--temper-rgb), 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(var(--temper-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--temper-rgb), 0); }
}

.hero h1 {
  font-family: var(--f-display);
  font-size: var(--t-4xl);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 100, "wght" 700;
}
.hero h1 .ln { display: block; overflow: hidden; padding-top: 0.12em; margin-top: -0.12em; }
/* Ulazna koreografija herojaa je namerno sabijena u odnosu na prvu verziju.
   Razlog je merljiv: LCP element na ovoj strani je .hero__sub (fotografiju
   Chrome ne uzima u obzir jer prekriva ceo vidljivi deo ekrana i tretira je
   kao pozadinu). Dok je kašnjenje bilo 0.6s + 0.9s, LCP je padao oko FCP +
   1050ms. Redosled i stepenasti ulaz su ostali isti, samo se sve dešava
   ranije — to je stvarno, a ne kozmetičko ubrzanje prikaza sadržaja. */
.hero h1 .ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.8s var(--e-out);
}
.is-loaded .hero h1 .ln > span { transform: translateY(0); }
.hero h1 .ln:nth-child(1) > span { transition-delay: 0.08s; }
.hero h1 .ln:nth-child(2) > span { transition-delay: 0.14s; }
.hero h1 .ln:nth-child(3) > span { transition-delay: 0.20s; }

.hero h1 em {
  font-style: normal;
  color: var(--temper);
  font-variation-settings: "wdth" 118, "wght" 700;
}

.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--zinc);
  font-size: var(--t-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--e-out) 0.24s, transform 0.55s var(--e-out) 0.24s;
}
.is-loaded .hero__sub { opacity: 1; transform: none; }

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--e-out) 0.38s, transform 0.6s var(--e-out) 0.38s;
}
.is-loaded .hero__actions { opacity: 1; transform: none; }

.hero__specs {
  margin-top: clamp(34px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  opacity: 0;
  transition: opacity 0.7s ease 0.5s;
}
.is-loaded .hero__specs { opacity: 1; }
@media (min-width: 560px) { .hero__specs { grid-template-columns: repeat(4, 1fr); } }
.hero__specs div { background: var(--void); padding: 15px 14px; }
.hero__specs dt {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: 6px;
}
.hero__specs dd {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* CAD figure — sada je linijski sloj PREKO fotografije:
   pravi čelik dole, tehnički crtež gore. Ne hvata pokazivač. */
.hero__cad {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  /* mobilno: gore desno, kao tekstura iza teksta (.hero__inner je z-index 3) */
  top: calc(var(--nav-h) + 4px);
  right: calc(var(--gut) * -0.25);
  width: 68%;
}
@media (min-width: 1024px) {
  .hero__cad {
    top: 50%;
    right: var(--gut);
    transform: translateY(-50%);
    width: min(44%, 540px);
  }
}
/* Prigušenje ide na sam crtež, a ne na <figure> — inače bi i natpis
   ispod bio pomnožen istom prozirnošću i postao nečitljiv. */
.hero__cad svg { width: 100%; height: auto; overflow: visible; opacity: 0.16; }
@media (min-width: 1024px) { .hero__cad svg { opacity: 0.28; } }

.hero__cad .cad-figcap { opacity: 0; transition: opacity 0.9s ease 1.9s; }
.is-loaded .hero__cad .cad-figcap { opacity: 0.7; }
@media (max-width: 1023px) { .hero__cad .cad-figcap { display: none; } }
.cad-draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.is-loaded .cad-draw { animation: draw 2.1s var(--e-io) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cad-node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-loaded .cad-node { animation: nodeIn 0.5s var(--e-out) forwards; }
.cad-label { opacity: 0; }
.is-loaded .cad-label { animation: fadeIn 0.7s ease forwards; }
@keyframes nodeIn { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }

.cad-figcap {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
}

/* --- 8c. KONTROLE SLAJDERA (dole desno) ---
   Isti jezik kao ostatak sajta: IBM Plex Mono, verzal, 0.14em razmak,
   radius 2px, bez pilula. Crtice su nastavak motiva mernе trake sa
   donje šine. */
.hero__ctrl {
  position: absolute;
  z-index: 4;
  /* Mobilno: gore desno, ispod navigacije. Dno herojaa je na malim
     ekranima već zauzeto — spec red odozgo, plutajuća šina odozdo —
     pa kontrole tamo nemaju čist prostor. */
  top: calc(var(--nav-h) + 6px);
  right: var(--gut);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.9s ease 1.1s;
}
.is-loaded .hero__ctrl { opacity: 1; }

.hero__count { color: var(--zinc); white-space: nowrap; }
.hero__count b { color: var(--temper); font-weight: 400; }

.hero__ticks { display: flex; align-items: center; gap: 9px; }
.hero__tick {
  width: 34px;
  padding-block: 10px;   /* dodirna meta, crtica ostaje tanka */
  border-radius: 2px;
  display: block;
  position: relative;
}
.hero__tick::after {
  content: "";
  display: block;
  height: 1.5px;
  width: 100%;
  /* preko fotografije --rule-strong nestaje, pa neaktivne crtice idu na
     --zinc-dim; aktivna ostaje zlatna i pune širine */
  background: var(--zinc-dim);
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 0.6s var(--e-out), background-color 0.6s var(--e-out);
}
.hero__tick[aria-current="true"]::after { background: var(--temper); transform: scaleX(1); }
.hero__tick:hover::after { background: var(--temper-mid); }
.hero__tick[aria-current="true"]:hover::after { background: var(--temper); }

/* Desktop: dole desno, iznad plutajuće šine (fab 52px + njen donji odmak) */
@media (min-width: 1024px) {
  .hero__ctrl {
    top: auto;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
@media (min-width: 1024px) and (min-height: 720px) { .scroll-hint { display: flex; } }
.scroll-hint i {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--temper), transparent);
  animation: hint 2s var(--e-io) infinite;
  transform-origin: top;
}
@keyframes hint { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 9. MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--rule);
  background: var(--steel);
  overflow: hidden;
  padding-block: 15px;
  display: flex;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 0;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline: 17px;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 500;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--zinc);
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 5px; height: 5px;
  background: var(--temper);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- 10. REVEALS ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--e-out), transform 0.85s var(--e-out);
}
[data-rv].rv-in { opacity: 1; transform: none; }
[data-rv="clip"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--e-out), opacity 0.6s ease;
}
[data-rv="clip"].rv-in { clip-path: inset(0 0 0 0); }
[data-rv="left"] { transform: translateX(-24px); }
[data-rv="left"].rv-in { transform: none; }

/* ---------- 11. SERVICES (bento) ---------- */
.bento {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(172px, auto); }
  .bento > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 3; }
  .bento > :nth-child(3) { grid-column: span 3; }
  .bento > :nth-child(4) { grid-column: span 2; }
  .bento > :nth-child(5) { grid-column: span 2; }
  .bento > :nth-child(6) { grid-column: span 2; }
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 26px 24px;
  background-color: var(--steel);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s var(--e-out), transform 0.5s var(--e-out), background 0.5s var(--e-out);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--temper-rgb), 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--e-out);
}
.svc:hover { border-color: var(--rule-strong); transform: translateY(-3px); background-color: var(--steel-2); }
.svc:hover::before { opacity: 1; }

/* Izdvojena kartica „Metalne konstrukcije" — fotografija kao najdublji sloj,
   iznad nje zatamnjenje koje se ka dnu pojačava da naslov i tagovi ostanu
   čitljivi, pa tek onda blueprint mreža.
   Slojevi background-image se crtaju odozgo nadole redom kojim su navedeni.
   VAŽNO: .svc koristi background-color (ne skraćenicu) baš zato da bi se
   ovo ovde uklopilo — ne pretvarati u background. */
.bento > :nth-child(1) {
  /* URL kroz promenljivu da bi se varijanta menjala bez ponavljanja
     celog spiska slojeva; na uskim ekranima ista 640 datoteka koju
     hero već ima u kešu */
  --foto: url("../assets/foto-konstrukcija-640.webp");
  background-image:
    linear-gradient(rgba(62, 111, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 111, 168, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom,
      rgba(17, 21, 25, 0.70) 0%,
      rgba(17, 21, 25, 0.86) 52%,
      rgba(17, 21, 25, 0.97) 100%),
    var(--foto);
  background-size: 30px 30px, 30px 30px, cover, cover;
  background-position: -1px -1px, -1px -1px, center, center 32%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}
@media (min-width: 700px) {
  .bento > :nth-child(1) { --foto: url("../assets/foto-konstrukcija-1024.webp"); }
}

.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--temper);
}
.svc__ico { width: 34px; height: 34px; flex: none; opacity: 0.85; transition: opacity 0.4s, transform 0.6s var(--e-out); }
.svc__ico * { stroke: var(--zinc); transition: stroke 0.45s var(--e-out); }
.svc:hover .svc__ico { opacity: 1; transform: translateY(-2px); }
.svc:hover .svc__ico * { stroke: var(--temper); }

.svc h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 650;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.svc p { color: var(--zinc); font-size: var(--t-sm); line-height: 1.62; }

.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc__tags li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 4px 8px;
  transition: color 0.4s, border-color 0.4s;
}
.svc:hover .svc__tags li { color: var(--zinc); border-color: var(--rule-strong); }

/* ---------- 12. PROCESS ---------- */
.proc { display: grid; gap: 0; }
@media (min-width: 1024px) { .proc-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: start; } }
.proc-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-soft);
  position: relative;
  transition: opacity 0.5s var(--e-out);
}
.step:last-child { border-bottom: 1px solid var(--rule-soft); }
.step__n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  color: var(--zinc-dim);
  padding-top: 5px;
  transition: color 0.45s var(--e-out);
}
.step h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 620;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 9px;
  transition: color 0.45s var(--e-out);
}
.step p { color: var(--zinc); font-size: var(--t-sm); max-width: 54ch; }
.step::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--temper);
  transition: width 0.7s var(--e-out);
}
.step.is-active::after { width: 100%; }
.step.is-active .step__n { color: var(--temper); }

/* ---------- 13. PROJECTS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 9px 15px;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.filters button:hover { color: var(--white); border-color: var(--rule-strong); }
.filters button.is-on { color: var(--temper); border-color: var(--temper-dim); background: rgba(var(--temper-rgb), 0.06); }

.grid-p { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-p { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-p { grid-template-columns: repeat(3, 1fr); } }

.proj {
  position: relative;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  background: var(--steel);
  overflow: hidden;
  transition: opacity 0.45s var(--e-out), transform 0.45s var(--e-out), border-color 0.45s;
}
.proj.is-hidden { display: none; }
.proj:hover { border-color: var(--rule-strong); }
.proj__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--steel-2), var(--steel));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.proj__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(62, 111, 168, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 111, 168, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  transition: transform 0.9s var(--e-out), opacity 0.6s;
}
.proj:hover .proj__media::before { transform: scale(1.08); opacity: 0.65; }
.proj__media svg { width: 44%; max-width: 130px; opacity: 0.5; transition: opacity 0.5s, transform 0.7s var(--e-out); position: relative; z-index: 1; }
.proj__media svg * { stroke: var(--zinc); }
.proj:hover .proj__media svg { opacity: 0.95; transform: scale(1.05); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; }

/* Kartice sa stvarnom fotografijom: blueprint mreža se sklanja da ne leži
   preko slike. Kartice koje su ostale na crtežu je zadržavaju netaknutu. */
.proj__media.is-foto::before { content: none; }
.proj__media.is-foto { background: var(--steel); }
.proj__media.is-foto picture { display: block; width: 100%; height: 100%; }
.proj__media.is-foto img { transition: transform 0.9s var(--e-out), opacity 0.5s; opacity: 0.92; }
.proj:hover .proj__media.is-foto img { transform: scale(1.05); opacity: 1; }

.proj__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  background: rgba(10, 12, 14, 0.75);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 4px 8px;
}
.proj__body { padding: 18px 18px 20px; }
.proj__body h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 620;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.proj__body p { font-size: var(--t-sm); color: var(--zinc); }
.proj__meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}

/* ---------- 14. STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--void); padding: 30px 22px; }
.stat__v {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--temper);
}
.stat__v sup { font-size: 0.42em; vertical-align: super; margin-left: 2px; }
.stat__l {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc);
  line-height: 1.6;
}

/* ---------- 15. CONFIGURATOR ---------- */
.cfg {
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--steel);
  overflow: hidden;
}
.cfg__head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cfg__head h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 640;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.cfg__prog { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--zinc-dim); text-transform: uppercase; }
.cfg__body { padding: 24px 22px 26px; }

.cfg__q { margin-bottom: 26px; }
.cfg__q > label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zinc);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 14px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--e-out);
}
.chip:hover { color: var(--white); border-color: var(--rule-strong); transform: translateY(-1px); }
.chip.is-on { color: var(--void); background: var(--temper); border-color: var(--temper); font-weight: 500; }

.cfg__out {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
  background: var(--void);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--zinc);
  line-height: 1.8;
  min-height: 96px;
}
.cfg__out b { color: var(--temper); font-weight: 500; }

/* ---------- 16. TESTIMONIALS ---------- */
.quotes { display: grid; gap: 12px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  background: var(--steel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.5s, transform 0.5s var(--e-out);
}
.quote:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.quote__mark {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--temper-dim);
}
.quote p { font-size: var(--t-sm); color: var(--zinc); line-height: 1.72; flex: 1; }
.quote footer {
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
.quote footer b { display: block; color: var(--white); font-weight: 500; margin-bottom: 4px; letter-spacing: 0.08em; }

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--rule-soft); }
.faq__i { border-bottom: 1px solid var(--rule-soft); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 22px 0;
  font-family: var(--f-body);
  font-size: var(--t-lg);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.35s;
}
.faq__q:hover { color: var(--temper); }
.faq__q i {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  margin-top: 3px;
}
.faq__q i::before, .faq__q i::after {
  content: "";
  position: absolute;
  background: var(--temper);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--e-out), opacity 0.3s;
}
.faq__q i::before { width: 13px; height: 1.5px; }
.faq__q i::after { width: 1.5px; height: 13px; }
.faq__i.is-open .faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
  overflow: hidden;
  height: 0;
  transition: height 0.5s var(--e-out);
}
.faq__a > div { padding-bottom: 24px; color: var(--zinc); font-size: var(--t-sm); max-width: 78ch; }

/* ---------- 18. CONTACT ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 60px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.info-list { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.info {
  background: var(--void);
  padding: 20px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.4s;
}
.info:hover { background: var(--steel); }
.info svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.info svg * { stroke: var(--temper); }
.info dt {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: 5px;
}
.info dd { font-size: var(--t-base); line-height: 1.5; }
.info dd a:hover { color: var(--temper); }

.form { display: grid; gap: 14px; }
@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }

.field { position: relative; display: block; }
.field span {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--steel);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 13px 14px;
  font-size: var(--t-base);
  transition: border-color 0.35s, background 0.35s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--temper);
  background: var(--steel-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--zinc-dim); }

.form__note { font-size: var(--t-xs); color: var(--zinc-dim); font-family: var(--f-mono); line-height: 1.7; }
.form__msg {
  display: none;
  padding: 14px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
}
.form__msg.ok { display: block; border: 1px solid var(--temper-dim); background: rgba(var(--temper-rgb), 0.08); color: var(--temper); }
.form__msg.err { display: block; border: 1px solid #7a3a3a; background: rgba(180, 70, 70, 0.1); color: #e59a9a; }

.map-frame {
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  filter: grayscale(1) invert(0.92) contrast(0.86) hue-rotate(180deg);
  transition: filter 0.6s var(--e-out);
}
.map-frame:hover { filter: grayscale(0.6) invert(0.9) contrast(0.9) hue-rotate(180deg); }
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- 19. CTA BAND ---------- */
/* background-color (ne skraćenica) da bi fotografija mogla da se složi
   preko nje; zlatni radijalni sjaj ostaje na ::before, dakle iznad svega. */
.cta-band {
  position: relative;
  border-block: 1px solid var(--rule);
  background-color: var(--steel);
  --foto: url("../assets/foto-hala-640.webp");
  background-image:
    linear-gradient(to right,
      rgba(17, 21, 25, 0.93) 0%,
      rgba(17, 21, 25, 0.82) 52%,
      rgba(17, 21, 25, 0.94) 100%),
    var(--foto);
  background-size: cover, cover;
  background-position: center, center 62%;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}
@media (min-width: 700px)  { .cta-band { --foto: url("../assets/foto-hala-1024.webp"); } }
@media (min-width: 1280px) { .cta-band { --foto: url("../assets/foto-hala-1600.webp"); } }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at 78% 20%, rgba(var(--temper-rgb), 0.1), transparent 60%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: var(--t-3xl);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 20. FOOTER ---------- */
.foot { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 78px); padding-bottom: 26px; }
.foot__top { display: grid; gap: 38px; }
@media (min-width: 860px) { .foot__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.foot h4 {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot ul { display: grid; gap: 10px; }
.foot ul a { font-size: var(--t-sm); color: var(--zinc); transition: color 0.3s, padding-left 0.35s var(--e-out); }
.foot ul a:hover { color: var(--temper); padding-left: 6px; }
.foot__brand p { margin-top: 18px; color: var(--zinc); font-size: var(--t-sm); max-width: 40ch; }
.foot__bot {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
.foot__bot a:hover { color: var(--temper); }

/* ---------- 21. FLOATING RAIL (AI + back to top, on one line) ---------- */
.rail {
  position: fixed;
  left: 0; right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: max(16px, calc((100vw - var(--maxw)) / 2 + var(--gut) - 8px));
}
.rail > * { pointer-events: auto; }

/* measuring-tape connector between the two controls */
.rail__tape {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.7s var(--e-out), transform 0.9s var(--e-out);
  display: none;
}
@media (min-width: 900px) { .rail__tape { display: block; } }
.is-loaded .rail__tape { opacity: 1; transform: scaleX(1); }
.rail__tape::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--rule-strong) 1px, transparent 1px);
  background-size: 26px 100%;
  height: 5px;
  top: -2px;
  opacity: 0.55;
}

.fab {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(17, 21, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  position: relative;
  transition: border-color 0.4s var(--e-out), background 0.4s, transform 0.4s var(--e-out), opacity 0.4s;
}
.fab:hover { border-color: var(--temper); background: var(--steel-2); transform: translateY(-2px); }
.fab svg { width: 21px; height: 21px; }
.fab svg * { stroke: var(--white); transition: stroke 0.4s; }
.fab:hover svg * { stroke: var(--temper); }

.fab--ai { padding-inline: 0; }
.fab--ai .ping {
  position: absolute;
  top: -4px; right: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--temper);
  animation: pulse 2.6s infinite;
}
.fab--top { opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-on { opacity: 1; visibility: visible; transform: none; }

/* circular scroll indicator around back-to-top */
.fab--top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.fab--top .ring circle {
  fill: none;
  stroke-width: 1.5;
  stroke: var(--temper);
  stroke-dasharray: var(--c, 200);
  stroke-dashoffset: var(--c, 200);
  transition: stroke-dashoffset 0.15s linear;
}

.fab__tip {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc);
  background: var(--steel-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 7px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--e-out);
}
.fab--ai .fab__tip { left: calc(100% + 10px); }
.fab--top .fab__tip { right: calc(100% + 10px); }
.fab:hover .fab__tip { opacity: 1; }
@media (max-width: 899px) { .fab__tip { display: none; } }

/* ---------- 22. AI ASSISTANT PANEL ---------- */
.ai {
  position: fixed;
  z-index: 160;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px);
  max-height: min(78svh, 660px);
  display: flex;
  flex-direction: column;
  background: rgba(13, 16, 19, 0.96);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transform-origin: bottom left;
  transition: opacity 0.4s var(--e-out), transform 0.5s var(--e-out), visibility 0.4s;
}
.ai.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 560px) {
  .ai { right: auto; width: 396px; left: max(20px, calc((100vw - var(--maxw)) / 2 + var(--gut) - 8px)); }
}

.ai__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  flex: none;
}
.ai__avatar {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--temper-dim);
  border-radius: 2px;
  background: rgba(var(--temper-rgb), 0.08);
}
.ai__avatar img { width: 22px; height: 22px; object-fit: contain; }
.ai__id { flex: 1; min-width: 0; }
.ai__id b {
  display: block;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 106, "wght" 640;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.ai__id span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-top: 2px;
}
.ai__id span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #5fbf7a;
}
.ai__close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 2px; transition: border-color 0.3s; }
.ai__close:hover { border-color: var(--temper); }
.ai__close svg { width: 13px; height: 13px; }
.ai__close svg * { stroke: var(--zinc); }

.ai__log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.ai__log::-webkit-scrollbar { width: 5px; }
.ai__log::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 4px; }

.msg { max-width: 88%; font-size: 0.875rem; line-height: 1.62; animation: msgIn 0.45s var(--e-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(9px); } }
.msg--bot { align-self: flex-start; }
.msg--bot .bubble {
  background: var(--steel-2);
  border: 1px solid var(--rule-soft);
  border-radius: 2px 10px 10px 10px;
  padding: 12px 14px;
  color: var(--white);
}
.msg--me { align-self: flex-end; }
.msg--me .bubble {
  background: var(--temper);
  color: var(--void);
  border-radius: 10px 2px 10px 10px;
  padding: 12px 14px;
  font-weight: 500;
}
.bubble b { color: var(--temper); font-weight: 600; }
.msg--me .bubble b { color: var(--void); }
.bubble a { color: var(--temper); text-decoration: underline; text-underline-offset: 3px; }
.msg--me .bubble a { color: var(--void); }
.bubble ul { margin-top: 8px; display: grid; gap: 5px; }
.bubble li { padding-left: 14px; position: relative; color: var(--zinc); }
.bubble li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: var(--temper); transform: rotate(45deg); }

.ai__typing { display: flex; gap: 4px; padding: 13px 14px; background: var(--steel-2); border: 1px solid var(--rule-soft); border-radius: 2px 10px 10px 10px; width: fit-content; }
.ai__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--zinc-dim); animation: blink 1.3s infinite; }
.ai__typing i:nth-child(2) { animation-delay: 0.18s; }
.ai__typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; flex: none; }
.ai__chips button {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zinc);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 11px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.ai__chips button:hover { color: var(--temper); border-color: var(--temper-dim); background: rgba(var(--temper-rgb), 0.07); }

.ai__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--rule-soft); flex: none; }
.ai__form input {
  flex: 1;
  min-width: 0;
  background: var(--steel);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 11px 12px;
  font-size: 0.875rem;
}
.ai__form input:focus { outline: none; border-color: var(--temper); }
.ai__send {
  width: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--temper);
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s var(--e-out);
}
.ai__send:hover { background: var(--temper-hi); transform: translateX(2px); }
.ai__send svg { width: 16px; height: 16px; }
.ai__send svg * { stroke: var(--void); }

.ai__foot {
  padding: 0 16px 11px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  text-align: center;
  flex: none;
}

/* ---------- 23. LIGHTBOX ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(6, 8, 9, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: var(--gut);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__box { max-width: 760px; width: 100%; border: 1px solid var(--rule-strong); background: var(--steel); border-radius: 2px; padding: clamp(24px, 4vw, 40px); transform: scale(0.97); transition: transform 0.5s var(--e-out); }
.lb.is-open .lb__box { transform: none; }
.lb__box h3 { font-family: var(--f-display); font-variation-settings: "wdth" 102, "wght" 660; font-size: var(--t-xl); text-transform: uppercase; margin-bottom: 14px; }
.lb__box p { color: var(--zinc); font-size: var(--t-sm); }
.lb__specs { margin-top: 22px; display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
@media (min-width: 560px) { .lb__specs { grid-template-columns: repeat(3, 1fr); } }
.lb__specs div { background: var(--steel); padding: 14px; }
.lb__specs dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--zinc-dim); margin-bottom: 5px; }
.lb__specs dd { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--white); }
.lb__x { margin-top: 24px; }

/* ---------- 24. PAGE HEADER (inner pages) ---------- */
.phead {
  padding-top: calc(var(--nav-h) + clamp(52px, 8vw, 110px));
  padding-bottom: clamp(44px, 6vw, 80px);
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.phead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(62, 111, 168, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 111, 168, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}
.phead__inner { position: relative; z-index: 1; }
.phead h1 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 102, "wght" 700;
  font-size: var(--t-3xl);
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-block: 18px 20px;
}
.crumbs { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zinc-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--temper); }

/* ---------- 25. DETAIL BLOCKS (usluge page) ---------- */
.detail { display: grid; gap: clamp(28px, 4vw, 54px); padding-block: clamp(44px, 6vw, 78px); border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 900px) { .detail { grid-template-columns: 0.85fr 1.15fr; } }
.detail:last-of-type { border-bottom: 0; }
.detail__k { position: relative; }
@media (min-width: 900px) { .detail__k > div { position: sticky; top: calc(var(--nav-h) + 34px); } }
.detail__k h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 680;
  font-size: var(--t-2xl);
  text-transform: uppercase;
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin-block: 16px 16px;
}
.detail__k .idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--temper); }
.detail__v p + p { margin-top: 16px; }
.detail__v p { color: var(--zinc); }
.speclist { margin-top: 26px; display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
@media (min-width: 640px) { .speclist { grid-template-columns: repeat(2, 1fr); } }
.speclist li {
  background: var(--steel);
  padding: 15px 16px;
  font-size: var(--t-sm);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: background 0.4s;
}
.speclist li:hover { background: var(--steel-2); }
.speclist li::before {
  content: "";
  width: 5px; height: 5px;
  flex: none;
  margin-top: 9px;
  background: var(--temper);
  transform: rotate(45deg);
}

/* ---------- 26. CUSTOM CURSOR (desktop only) ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--e-out), height 0.35s var(--e-out), border-color 0.35s, background 0.35s, opacity 0.3s;
    opacity: 0;
  }
  .cursor.is-live { opacity: 1; }
  .cursor.is-hot { width: 46px; height: 46px; border-color: var(--temper); background: rgba(var(--temper-rgb), 0.09); }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 4px; height: 4px;
    background: var(--temper);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
  }
  .cursor-dot.is-live { opacity: 1; }
}

/* ---------- 27. UTIL ---------- */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 300;
  background: var(--temper);
  color: var(--void);
  padding: 10px 16px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  transition: top 0.3s;
}
.skip:focus { top: 12px; }

.mt-l { margin-top: clamp(30px, 4vw, 48px); }
.center { text-align: center; }

/* ---------- 28. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero h1 .ln > span { transform: none !important; }
  .hero__sub, .hero__actions, .hero__specs, .rail__tape { opacity: 1 !important; transform: none !important; }
  .hero__grid { opacity: 0.4 !important; }

  /* Slajder: bez autoplaya (JS), bez Ken Burnsa, bez pretapanja.
     Globalno skraćenje trajanja nije dovoljno — `forwards` bi zamrznuo
     kadar na scale(1.08), pa se animacija gasi izričito. */
  .hero__slide img,
  .hero__slide.is-on img { animation: none !important; transform: none !important; }
  .hero__slide { transition: none !important; }
  .hero__ctrl, .hero__cad .cad-figcap { opacity: 1 !important; }
  .cad-draw { stroke-dashoffset: 0 !important; }
  .cad-node, .cad-label { opacity: 1 !important; }
  .marquee__track { animation: none !important; }
  .cursor, .cursor-dot { display: none !important; }
}

/* info dl kao fleks dete */
.info dl { flex: 1; min-width: 0; }
