/* =========================================================
   CONEXIN — style.css
   Paleta i motiv preuzeti iz logotipa: antracit / signalna crvena / beton siva,
   kosi paralelogram (~27°) kao grafički element.
   ========================================================= */

:root {
  --ink: #1b1a18;
  --ink-2: #252422;
  --ink-3: #32312e;
  --red: #e52a2b;
  --red-2: #c81e1f;
  --grey: #b3b4b3;
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --white: #ffffff;
  --surface: #1b1a18;
  --surface-2: #252422;
  --surface-3: #32312e;
  --on-ink: #ffffff;
  --header-bg: rgba(244, 242, 238, .88);
  --text: #2b2a28;
  --muted: #6c6a65;
  --line: rgba(27, 26, 24, .12);
  --line-light: rgba(255, 255, 255, .12);

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --skew: -27deg;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --fill: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 1.6em; font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, transform .2s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -2px -30%; z-index: -1; background: var(--fill);
  transform: skewX(var(--skew)) translateX(-105%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: skewX(var(--skew)) translateX(0); }
.btn:active { transform: translateY(1px); }
.btn svg { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-red { --bg: var(--red); --fill: var(--ink); }
.btn-ghost { --bg: transparent; --fill: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { color: var(--ink); border-color: #fff; }
.btn-outline { --bg: transparent; --fg: var(--ink); --fill: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { color: var(--on-ink); }
.btn-outline-light { --bg: transparent; --fill: #fff; border: 1px solid var(--line-light); }
.btn-outline-light:hover { color: var(--ink); }
.btn-sm { padding: .75em 1.2em; font-size: 13px; }
.btn-block { width: 100%; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; font-size: 20px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- typography helpers ---------- */
.eyebrow, .section-num {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.2rem;
}
.section-num::before { content: ""; width: 28px; height: 2px; background: currentColor; transform: skewX(var(--skew)); }
.section-title { font-size: clamp(32px, 4.6vw, 58px); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; }
.about-text .section-title { margin-bottom: 28px; }
.section-title em, .hero-title em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); font-weight: 400; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px 60px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }
.section-head > div:first-child { max-width: 720px; }
.section-intro { max-width: 430px; color: var(--muted); margin: 0; }
.dark { background: var(--surface); color: #d9d7d2; }
.dark .section-title { color: #fff; }
.dark .section-intro { color: #a4a29c; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease), transform .45s var(--ease);
  color: #fff;
}
.site-header.is-scrolled {
  --header-h: 70px; background: var(--header-bg); color: var(--ink);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; margin-right: auto; z-index: 2; }
.brand-mark { width: 44px; height: 32px; --logo-dark: currentColor; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: translateX(3px); }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-size: 27px; font-weight: 500; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--red); }
.brand-name i { font-style: normal; color: var(--grey); }
.brand-name sup { font-size: 9px; font-weight: 500; letter-spacing: .04em; vertical-align: top; position: relative; top: 3px; margin-left: 2px; opacity: .8; }
.brand-tag { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; opacity: .9; }
.brand-tag b { font-weight: 300; opacity: .6; margin: 0 1px; }

.main-nav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.main-nav a[data-nav] { position: relative; font-size: 15px; font-weight: 500; padding: 6px 0; letter-spacing: .01em; }
.main-nav a[data-nav]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a[data-nav]:hover::after, .main-nav a[data-nav].is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-mobile-foot { display: none; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--surface); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s var(--ease-in-out), transform 7.5s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,19,17,.9) 0%, rgba(20,19,17,.62) 45%, rgba(20,19,17,.15) 100%),
    linear-gradient(0deg, rgba(20,19,17,.85) 0%, rgba(20,19,17,0) 40%);
}
.hero-bars { position: absolute; right: -6vw; top: 0; bottom: 0; width: 34vw; pointer-events: none; }
.hero-bars span { position: absolute; top: -10%; bottom: -10%; width: 7vw; transform: skewX(var(--skew)); opacity: 0; animation: barIn 1.4s var(--ease) forwards; }
.hero-bars span:first-child { right: 46%; background: rgba(229,42,43,.85); mix-blend-mode: multiply; animation-delay: .5s; }
.hero-bars span:last-child { right: 26%; background: rgba(179,180,179,.22); animation-delay: .7s; }
@keyframes barIn { from { opacity: 0; translate: 0 30%; } to { opacity: 1; translate: 0 0; } }

.hero-content { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(229,42,43,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229,42,43,0); } 100% { box-shadow: 0 0 0 0 rgba(229,42,43,0); } }
.hero-title { font-size: clamp(46px, 8.4vw, 118px); font-weight: 500; letter-spacing: -.035em; line-height: .96; margin-bottom: 30px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-anim { display: inline-block; opacity: 0; transform: translateY(40px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero-title .hero-anim { transform: translateY(105%); }
.hero-lead.hero-anim { display: block; }
.hero-actions.hero-anim { display: flex; }
.eyebrow.hero-anim { display: inline-flex; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-foot { position: relative; display: flex; align-items: center; gap: 30px; padding-bottom: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-caption { display: flex; gap: 18px; align-items: baseline; font-size: 14px; color: rgba(255,255,255,.75); min-width: 0; }
.hero-caption #hero-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.hero-count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.hero-count b { color: #fff; font-weight: 500; }
.hero-progress { display: flex; gap: 8px; margin-left: auto; }
.hero-progress button { width: 44px; height: 24px; position: relative; }
.hero-progress button::before, .hero-progress button i { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.25); }
.hero-progress button i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-active i { animation: fillbar var(--dur, 6s) linear forwards; }
.hero-progress button.is-done i { transform: scaleX(1); }
@keyframes fillbar { to { transform: scaleX(1); } }
.scroll-cue { width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; flex: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--paper); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 26px 40px; border-right: 1px solid var(--line); position: relative; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(42px, 5vw, 68px); font-weight: 500; line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.stat::after { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 3px; background: var(--red); }
.stat:not(:first-child)::after { left: 26px; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; display: flex; align-items: center; gap: 30px; overflow: hidden; background: var(--paper); }
.marquee-label { flex: none; margin: 0 0 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); max-width: 120px; line-height: 1.4; }
.marquee-track { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: #8f8d87; letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.marquee-row span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; aspect-ratio: 1 / 0.86; }
.about-img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-img:hover img { transform: scale(1.05); }
.about-img.a1 { inset: 0 0 8% 0; }
.about-img.a1 img { object-position: 70% 50%; }
.about-badge { position: absolute; left: 0; bottom: 4%; background: var(--surface); color: #fff; padding: 20px 28px; display: flex; flex-direction: column; font-size: 19px; letter-spacing: .04em; line-height: 1.35; font-weight: 400; }
.about-badge b { font-weight: 500; } .about-badge b:nth-child(2) { color: var(--red); } .about-badge b:nth-child(3) { color: var(--grey); }
.slash-deco { position: absolute; top: -26px; right: 8%; width: 60px; height: 130px; background: var(--red); transform: skewX(var(--skew)); z-index: -1; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { font-size: 34px; color: var(--ink); margin-top: 2px; }
.values b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.values span { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { overflow: hidden; }
.services::before { content: ""; position: absolute; top: 0; right: 8%; width: 220px; height: 100%; background: linear-gradient(180deg, rgba(229,42,43,.07), transparent 60%); transform: skewX(var(--skew)); pointer-events: none; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.service {
  position: relative; padding: 42px 36px 40px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  overflow: hidden; isolation: isolate; transition: color .4s;
}
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-2); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleY(1); }
.service:hover::after { transform: scaleX(1); }
.service-n { position: absolute; top: 34px; right: 34px; font-family: var(--mono); font-size: 12px; color: #6f6d68; }
.service-ico { font-size: 54px; color: #fff; margin-bottom: 30px; transition: transform .6s var(--ease); }
.service:hover .service-ico { transform: translateY(-4px) scale(1.06); }
.service h3 { font-size: 23px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.service p { font-size: 15.5px; color: #a4a29c; margin-bottom: 22px; }
.service ul li { position: relative; padding-left: 20px; font-size: 14.5px; color: #cfccc6; line-height: 1.5; margin-bottom: 8px; }
.service ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 2px; background: var(--red); transform: skewX(var(--skew)); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding-bottom: clamp(60px, 8vw, 110px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line); }
.step { position: relative; padding-right: 10px; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px;
  font-family: var(--mono); font-weight: 500; font-size: 17px; color: #fff; isolation: isolate;
}
.step-n::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: skewX(var(--skew)); z-index: -1; transition: background .4s; }
.step:hover .step-n::before { background: var(--red); }
.step h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; color: var(--ink); }
.step p { color: var(--muted); font-size: 15.5px; }

/* =========================================================
   PROJECTS – slider
   ========================================================= */
.projects { padding-top: clamp(60px, 8vw, 110px); background: var(--white); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dark .chip { border-color: var(--line-light); color: #d9d7d2; }
.dark .chip:hover { border-color: #fff; }
.dark .chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.slider { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.slider-track {
  --gap: clamp(14px, 2vw, 26px);
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 0 10px; scrollbar-width: none; cursor: grab; outline: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider-track.is-dragging .p-card { pointer-events: none; }

.p-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3); min-width: 0; scroll-snap-align: start; position: relative; text-align: left;
  display: flex; flex-direction: column; animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } }
.p-card .p-img { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; -webkit-user-drag: none; user-select: none; }
.p-card:hover img { transform: scale(1.07); }
.p-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,19,17,.55), transparent 50%); opacity: .7; transition: opacity .5s; }
.p-card:hover .p-img::after { opacity: 1; }
.p-open {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 20px;
  transform: scale(.6) rotate(-90deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.p-card:hover .p-open, .p-card:focus-visible .p-open { transform: none; opacity: 1; }
.p-city { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.p-body { padding: 18px 2px 0; }
.p-body h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; color: var(--ink); margin-bottom: 6px; transition: color .3s; }
.p-card:hover h3 { color: var(--red); }
.p-body p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.p-num { position: absolute; left: 18px; top: 16px; z-index: 2; font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(27,26,24,.6); padding: 4px 9px; border-radius: 2px; backdrop-filter: blur(6px); }

.slider-ui { display: flex; align-items: center; gap: 30px; margin-top: 34px; }
.slider-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); width: 20%; transition: transform .25s linear, width .3s; }
.slider-nav { display: flex; gap: 10px; }

.all-projects { margin-top: clamp(50px, 6vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.all-projects summary { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 24px); font-weight: 500; color: var(--ink); }
.all-projects summary::-webkit-details-marker { display: none; }
.all-projects summary b { font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--red); margin-left: 8px; vertical-align: middle; }
.all-projects summary svg { font-size: 26px; transition: transform .45s var(--ease); }
.all-projects[open] summary svg { transform: rotate(135deg); color: var(--red); }
.all-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 34px; }
.all-projects[open] .all-projects-grid { animation: fadeUp .6s var(--ease); }
.ap-item { background: var(--white); padding: 22px 22px 20px; transition: background .3s; }
.ap-item:hover { background: var(--paper); }
.ap-item button { text-align: left; width: 100%; }
.ap-city { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.ap-item h4 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 6px 0 6px; }
.ap-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.ap-item .ap-photo { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   GERMANY
   ========================================================= */
.germany { overflow: hidden; }
.count-inline { font-variant-numeric: tabular-nums; }
.de-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 70px; }
.de-featured.is-three { grid-template-columns: 1.35fr 1fr 1fr; }
.de-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; text-align: left; color: #fff; isolation: isolate; }
.de-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.de-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,19,17,.95) 0%, rgba(20,19,17,.4) 50%, rgba(20,19,17,.05) 100%); }
.de-card:hover img { transform: scale(1.06); }
.de-card .de-body { padding: 30px; width: 100%; }
.de-card .ap-city { color: #ff6a6b; }
.de-card h3 { font-size: clamp(21px, 2vw, 27px); font-weight: 500; margin: 8px 0 10px; }
.de-card p { font-size: 15px; color: rgba(255,255,255,.75); margin: 0 0 16px; line-height: 1.5; }
.de-client { font-size: 13px; color: rgba(255,255,255,.6); display: block; }
.de-client b { color: #fff; font-weight: 500; }
.de-card .more { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 18px; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.de-card:hover .more { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

.de-stats { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); margin-bottom: 80px; }
.de-stat { padding: 30px 24px 30px 0; }
.de-stat + .de-stat { padding-left: 24px; border-left: 1px solid var(--line-light); }
.de-stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.de-stat span { display: block; font-size: 14px; color: #a4a29c; margin: 8px 0 16px; }
.de-stat .bar { height: 3px; background: var(--line-light); position: relative; overflow: hidden; }
.de-stat .bar i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.de-stats.is-visible .bar i { transform: scaleX(var(--p)); }

.ref-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.ref-title { font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: #fff; }
.ref-controls { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.search { position: relative; display: block; width: min(420px, 100%); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #8f8d87; pointer-events: none; }
.search input {
  width: 100%; padding: 14px 18px 14px 48px; border-radius: 100px; border: 1px solid var(--line-light);
  background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 15px; transition: border-color .3s, background .3s;
}
.search input::placeholder { color: #8f8d87; }
.search input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.07); }

.ref-table { border-top: 1px solid var(--line-light); }
.ref-row { display: grid; grid-template-columns: 60px 1.1fr 1.5fr 1.1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; align-items: start; }
.ref-th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8f8d87; padding: 14px 0; }
.ref-body-row { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); transition: background .25s; }
.ref-body-row:hover { background: rgba(255,255,255,.03); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.ref-n { font-family: var(--mono); font-size: 12.5px; color: #6f6d68; padding-top: 2px; }
.ref-c { color: #fff; font-weight: 500; }
.ref-s b { display: block; color: #e8e6e1; font-weight: 400; }
.ref-s small { display: block; color: #8f8d87; font-size: 13.5px; }
.ref-w { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-light); color: #cfccc6; white-space: nowrap; }
.tag.t-vik { border-color: rgba(95,160,220,.45); color: #9cc6ee; }
.tag.t-grijanje { border-color: rgba(229,42,43,.5); color: #ff8b8c; }
.tag.t-ventilacija { border-color: rgba(120,200,170,.45); color: #9fdcc4; }
.tag.t-elektro { border-color: rgba(240,200,80,.45); color: #f1d27f; }
.tag.t-zavarivanje { border-color: rgba(255,160,90,.45); color: #ffb98a; }
mark { background: rgba(229,42,43,.35); color: #fff; border-radius: 2px; padding: 0 2px; }
.ref-empty { padding: 50px 0; text-align: center; color: #8f8d87; border-bottom: 1px solid var(--line-light); }
.ref-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.ref-foot #ref-info { font-family: var(--mono); font-size: 13px; color: #8f8d87; }

/* =========================================================
   CAREER
   ========================================================= */
.career { background: var(--paper); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 60px; }
.perk { background: var(--white); padding: 26px 24px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; transition: transform .4s var(--ease), box-shadow .4s; }
.perk:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(27,26,24,.25); }
.perk svg { font-size: 34px; margin-bottom: 12px; color: var(--ink); }
.perk b { font-weight: 600; color: var(--ink); }
.perk span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.career-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.job { border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job-head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 0; text-align: left; }
.job-idx { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 26px; flex: none; }
.job-head h3 { font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; color: var(--ink); flex: 1; transition: color .3s; }
.job-head:hover h3 { color: var(--red); }
.job-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; flex: none; transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.job.is-open .job-toggle { transform: rotate(135deg); background: var(--red); border-color: var(--red); color: #fff; }
.job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.job.is-open .job-body { grid-template-rows: 1fr; }
.job-body > div { overflow: hidden; visibility: hidden; transition: visibility 0s .55s; }
.job.is-open .job-body > div { visibility: visible; transition: none; }
.job-inner { padding: 0 0 30px 44px; }
.job-desc { color: var(--text); margin-bottom: 22px; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 24px; }
.job-cols h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 12px; }
.job-cols dl { margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.job-cols dt { color: var(--muted); font-size: 13px; }
.job-cols dd { margin: 0 0 4px; color: var(--ink); font-weight: 500; }
.job-cols li { position: relative; padding-left: 22px; font-size: 14.5px; margin-bottom: 8px; line-height: 1.45; }
.job-cols li svg { position: absolute; left: 0; top: 3px; color: var(--red); font-size: 15px; }
.job-note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.apply { position: sticky; top: 96px; }
.apply-card { background: var(--surface); color: #d9d7d2; padding: clamp(28px, 3.5vw, 46px); border-radius: var(--radius); position: relative; overflow: hidden; }
.apply-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 70px; height: 220px; background: var(--red); transform: skewX(var(--skew)); opacity: .9; }
.apply-title { font-size: clamp(23px, 2.3vw, 30px); font-weight: 500; color: #fff; max-width: 85%; margin-bottom: 8px; position: relative; }
.apply-sub { font-size: 14px; color: #8f8d87; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field label { font-size: 14px; color: #cfccc6; margin-bottom: 8px; font-weight: 500; }
.req { color: var(--red); margin-left: 3px; }
.field input[type=text], .field input[type=email], .select select, .file {
  width: 100%; height: 54px; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.04);
  color: #fff; font: inherit; font-size: 16px; padding: 0 16px; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:focus, .select select:focus, .file:focus-within { outline: none; border-color: #fff; background: rgba(255,255,255,.07); }
.field.has-error input, .field.has-error .file, .field.has-error select { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,42,43,.18); }
.field.is-valid input, .field.is-valid .file, .field.is-valid select { border-color: rgba(120,200,170,.55); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid #cfccc6; border-bottom: 1.6px solid #cfccc6; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #8f8d87; }
.select option { background: var(--surface); color: #fff; }
.file { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-ico { font-size: 20px; color: #8f8d87; }
.file-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8f8d87; font-size: 15px; }
.file.has-file .file-name { color: #fff; }
.file.has-file .file-ico { color: var(--red); }
.file-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; transition: transform .4s var(--ease); }
.file:hover .file-plus { transform: rotate(90deg); }
.file.is-drag { border-style: dashed; border-color: var(--red); background: rgba(229,42,43,.08); }
.err { min-height: 0; font-size: 13px; color: #ff7b7c; margin-top: 6px; display: none; }
.has-error .err { display: block; animation: fadeUp .35s var(--ease); }
.field-submit { justify-content: flex-end; }
.field-submit .btn { height: 54px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: .0; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: #8f8d87; margin: 4px 0 0; }
.form-status { margin: 12px 0 0; font-size: 14px; color: #ff7b7c; min-height: 1px; }
.apply-success { text-align: center; padding: 30px 0 10px; animation: fadeUp .6s var(--ease); }
.apply-success h3 { color: #fff; font-size: 28px; font-weight: 500; margin: 20px 0 10px; }
.apply-success .btn { margin-top: 10px; --fg: #fff; border-color: var(--line-light); --fill: #fff; }
.apply-success .btn:hover { color: var(--ink); }
.success-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 36px; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.apply.flash .apply-card { animation: flash 1s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--red); } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-top: 0; background: var(--paper); }
.contact-box { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; box-shadow: 0 40px 80px -50px rgba(27,26,24,.35); }
.contact-text p:not(.section-num) { color: var(--muted); max-width: 440px; margin: 20px 0 30px; }
.contact-cards { display: grid; gap: 12px; position: relative; z-index: 1; }
.c-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.c-card > svg:first-child { font-size: 26px; color: var(--red); }
.c-card span { flex: 1; font-size: 18px; color: var(--ink); line-height: 1.35; font-weight: 500; }
.c-card small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.c-arrow { font-size: 20px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.c-card:hover { border-color: var(--ink); transform: translateX(6px); box-shadow: 0 16px 30px -22px rgba(27,26,24,.4); }
.c-card:hover .c-arrow { transform: translateX(4px) rotate(-45deg); color: var(--red); }
.contact-deco { position: absolute; right: -60px; bottom: -80px; width: 420px; height: 310px; opacity: .05; pointer-events: none; --logo-dark: var(--ink); }
.contact-deco svg { width: 100%; height: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--surface); color: #a4a29c; padding: 90px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.brand-light { color: #fff; margin-bottom: 22px; }
.brand-light .brand-mark { --logo-dark: #fff; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 20px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--red); margin-top: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--line-light); font-size: 13.5px; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.to-top svg { transform: rotate(-90deg); transition: transform .4s var(--ease); }
.to-top:hover svg { transform: rotate(-90deg) translateX(4px); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(15,14,13,.85); backdrop-filter: blur(6px); animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-panel { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: grid; grid-template-columns: 1.6fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; animation: lbIn .55s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.lb-media { margin: 0; background: var(--surface); min-height: 300px; display: grid; place-items: center; overflow: hidden; }
.lb-media img { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: cover; animation: fadeIn .5s; }
.lb-media.no-img { background: var(--surface) repeating-linear-gradient(-63deg, transparent 0 22px, rgba(255,255,255,.04) 22px 44px); }
.lb-info { padding: 46px 38px 34px; display: flex; flex-direction: column; overflow-y: auto; }
.lb-city { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lb-info h3 { font-size: clamp(25px, 2.6vw, 34px); font-weight: 500; color: var(--ink); margin-bottom: 26px; }
.lb-info dl { margin: 0 0 22px; display: grid; gap: 14px; }
.lb-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lb-info dd { margin: 2px 0 0; color: var(--ink); font-size: 16px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.lb-tags span { font-size: 13px; padding: 4px 12px; border-radius: 100px; background: var(--paper); color: var(--ink); }
.lb-nav { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.lb-nav span { font-family: var(--mono); font-size: 13px; color: var(--muted); flex: 1; text-align: center; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--white); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img .about-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-in-out); }
.js .reveal-img .a2 { transition-delay: .25s; }
.js .reveal-img.is-visible .about-img { clip-path: inset(0 0 0 0); }
.js .reveal-img .about-badge, .js .reveal-img .slash-deco { opacity: 0; transform: translateY(20px); transition: opacity .8s .6s var(--ease), transform .8s .6s var(--ease); }
.js .reveal-img .slash-deco { transform: skewX(var(--skew)) translateY(40px); }
.js .reveal-img.is-visible .about-badge { opacity: 1; transform: none; }
.js .reveal-img.is-visible .slash-deco { opacity: 1; transform: skewX(var(--skew)); }
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .steps.is-visible::before { transform: scaleX(1); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .de-featured { grid-template-columns: 1fr 1fr; }
  .de-featured.is-three { grid-template-columns: 1fr 1fr; }
  .de-featured.is-three .de-card:first-child { grid-column: 1 / -1; min-height: 420px; }
  .career-grid { grid-template-columns: 1fr; }
  .apply { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .all-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .p-card { flex-basis: calc((100% - var(--gap)) / 2); }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; background: var(--surface); color: #fff;
    display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
  }
  .nav-open .main-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .brand-mark { --logo-dark: #fff; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a[data-nav] { font-size: clamp(34px, 9vw, 52px); font-weight: 500; display: inline-block; padding: 4px 0; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease); }
  .nav-open .main-nav a[data-nav] { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(1) a { transition-delay: .2s; } .nav-open .main-nav li:nth-child(2) a { transition-delay: .25s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: .3s; } .nav-open .main-nav li:nth-child(4) a { transition-delay: .35s; }
  .nav-open .main-nav li:nth-child(5) a { transition-delay: .4s; } .nav-open .main-nav li:nth-child(6) a { transition-delay: .45s; }
  .main-nav a[data-nav]::after { height: 3px; bottom: 6px; }
  .nav-mobile-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-light); opacity: 0; transition: opacity .6s .5s; }
  .nav-open .nav-mobile-foot { opacity: 1; }
  .nav-mobile-foot a { display: flex; align-items: center; gap: 12px; color: #cfccc6; font-size: 17px; }
  .nav-mobile-foot svg { color: var(--red); font-size: 20px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 34px 20px 30px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(odd)::after { left: 0; }
  .stat:nth-child(even)::after { left: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .steps::before { display: none; }
  .de-stats { grid-template-columns: repeat(3, 1fr); }
  .de-stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .de-stat:nth-child(n+4) { border-top: 1px solid var(--line-light); }
  .ref-controls { align-items: stretch; width: 100%; }
  .search { width: 100%; }
  .perks { grid-template-columns: 1fr 1fr; }
  .contact-box { grid-template-columns: 1fr; }
  .lb-panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-media { max-height: 50vh; }
  .lb-media img { max-height: 50vh; }
  .lb-info { overflow: visible; padding: 30px 26px 26px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-bars { width: 60vw; right: -24vw; opacity: .7; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,19,17,.94) 10%, rgba(20,19,17,.55) 60%, rgba(20,19,17,.35) 100%); }
  .hero-foot { gap: 16px; }
  .hero-caption { flex-direction: column; gap: 4px; }
  .scroll-cue { display: none; }
  .hero-progress button { width: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .marquee { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 0; }
  .marquee-label { margin: 0 var(--gutter); max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 34px 26px; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; margin: 0; }
  .p-card { flex-basis: 86%; }
  .slider-ui { gap: 18px; }
  .round-btn { width: 46px; height: 46px; }
  .all-projects-grid { grid-template-columns: 1fr; }
  .de-featured, .de-featured.is-three { grid-template-columns: 1fr; }
  .de-card, .de-featured .de-card:first-child { min-height: 380px; }
  .de-stats { grid-template-columns: 1fr 1fr; }
  .de-stat, .de-stat + .de-stat { padding: 24px 16px 24px 0; border-left: 0; }
  .de-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-light); }
  .de-stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .ref-th { display: none; }
  .ref-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; position: relative; }
  .ref-n { position: absolute; right: 0; top: 20px; }
  .ref-c { padding-right: 44px; }
  .ref-w { margin-top: 6px; }
  .ref-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .perks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .perk { padding: 20px 18px; }
  .job-inner { padding-left: 0; }
  .job-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .apply-title { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .c-card span { font-size: 16px; }
  .lightbox { padding: 0; }
  .lb-panel { max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 23px; }
  .brand-tag { font-size: 10px; }
  .brand-mark { width: 38px; height: 28px; }
  .perk svg { font-size: 28px; margin-bottom: 8px; }
}
@media (max-width: 340px) {
  .perks { grid-template-columns: 1fr; }
  .stat-num { font-size: 38px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-anim, .js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-row { animation: none !important; }
}

/* =========================================================
   GRADILIŠTA U TIJEKU
   ========================================================= */
.ongoing .section-num .dot { margin-right: 2px; }
.ongoing .section-num b { color: #fff; font-weight: 500; }
.ongoing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.og-card { display: flex; flex-direction: column; text-align: left; background: var(--surface-2); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.og-card:hover { transform: translateY(-6px); border-color: rgba(229,42,43,.6); box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.og-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.og-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.og-card:hover .og-img img { transform: scale(1.06); }
.og-img.no-img { background: var(--surface-3) repeating-linear-gradient(-63deg, transparent 0 22px, rgba(255,255,255,.03) 22px 44px); }
.og-ph { width: 90px; height: 66px; opacity: .25; --logo-dark: #fff; }
.og-badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 100px; background: rgba(27,26,24,.75); backdrop-filter: blur(6px); color: #fff; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.og-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.og-body .ap-city { color: #ff6a6b; }
.og-body h3 { font-size: 22px; font-weight: 500; color: #fff; margin: 2px 0 4px; }
.og-body p { font-size: 15px; color: #a4a29c; margin: 0 0 6px; line-height: 1.5; }
.og-client { font-size: 13.5px; color: #8f8d87; }
.og-client b { color: #e8e6e1; font-weight: 500; }
.og-progress { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; }
.og-progress b { font-family: var(--mono); font-size: 13px; color: #fff; font-weight: 500; min-width: 40px; text-align: right; }
.og-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line-light); overflow: hidden; position: relative; }
.og-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red-2), var(--red)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .og-card.reveal:not(.is-visible) .og-bar i { transform: scaleX(0); }
.og-dates { font-size: 13px; color: #8f8d87; display: flex; align-items: center; gap: 6px; }
.lb-info .og-progress { padding-top: 6px; }
.lb-info .og-bar { background: var(--paper-2); }
.lb-info .og-progress b { color: var(--ink); }

/* ---------- broj fotografija na kartici ---------- */
.p-count { position: absolute; right: 18px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(27,26,24,.6); padding: 4px 9px; border-radius: 2px; backdrop-filter: blur(6px); }

/* =========================================================
   SJEDIŠTE
   ========================================================= */
.hq { position: relative; margin: 0 0 clamp(40px, 5vw, 60px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface); isolation: isolate; }
.hq img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hq.is-visible img { transform: scale(1); }
.hq::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,17,.88) 0%, rgba(20,19,17,.55) 38%, rgba(20,19,17,0) 65%); }
.hq-cap { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: min(520px, 55%); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hq-cap .section-num { margin-bottom: 14px; }
.hq-cap h3 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; letter-spacing: -.015em; margin-bottom: 22px; }
.hq-facts li { position: relative; padding-left: 22px; font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 6px; }
.hq-facts li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: var(--red); transform: skewX(var(--skew)); }

/* =========================================================
   LIGHTBOX – galerija
   ========================================================= */
.lb-media { position: relative; }
.lb-img-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 19px; transition: background .3s, color .3s, transform .3s var(--ease); }
.lb-img-nav:hover { background: var(--red); color: #fff; }
.lb-img-nav.prev { left: 16px; } .lb-img-nav.next { right: 16px; }
.lb-img-nav[hidden], .lb-thumbs[hidden] { display: none; }
.lb-thumbs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 6px; padding: 12px; overflow-x: auto; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); scrollbar-width: none; }
.lb-thumbs button { flex: 0 0 64px; height: 46px; border-radius: 3px; overflow: hidden; opacity: .55; outline: 2px solid transparent; transition: opacity .3s, outline-color .3s; }
.lb-thumbs button.is-active, .lb-thumbs button:hover { opacity: 1; outline-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- admin prečac ---------- */
.admin-fab { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 100px; background: var(--surface); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); transition: background .3s, transform .3s var(--ease); animation: fadeUp .6s var(--ease); }
.admin-fab:hover { background: var(--red); transform: translateY(-2px); }
.admin-fab svg { font-size: 17px; }

@media (max-width: 960px) {
  .hq { aspect-ratio: auto; }
  .hq img { position: absolute; inset: 0; }
  .hq::after { background: linear-gradient(0deg, rgba(20,19,17,.92) 0%, rgba(20,19,17,.5) 60%, rgba(20,19,17,.2) 100%); }
  .hq-cap { position: relative; width: 100%; min-height: 380px; }
}
@media (max-width: 720px) {
  .ongoing-grid { grid-template-columns: 1fr; }
  .lb-thumbs button { flex-basis: 52px; height: 38px; }
}

/* =========================================================
   BIRAČ JEZIKA
   ========================================================= */
.i18n-wait body { opacity: 0; }
body { transition: opacity .25s; }
.lang-switch { position: relative; z-index: 2; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 11px; border-radius: 100px; border: 1px solid rgba(255,255,255,.35); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; transition: border-color .3s, background .3s; }
.lang-btn svg { font-size: 16px; }
.lang-btn .lang-chev { font-size: 14px; opacity: .7; transition: transform .3s var(--ease); }
.lang-btn:hover { border-color: currentColor; }
.is-scrolled .lang-btn { border-color: var(--line); }
.is-scrolled .lang-btn:hover { border-color: var(--ink); }
.lang-switch.is-open .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; text-align: left; font-size: 15px; transition: background .2s; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--paper); }
.lang-menu b { font-family: var(--mono); font-size: 12px; font-weight: 500; width: 26px; color: var(--muted); }
.lang-menu button[aria-checked="true"] { color: var(--red); }
.lang-menu button[aria-checked="true"] b { color: var(--red); }
.lang-menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.nav-open .lang-btn { border-color: rgba(255,255,255,.35); }
@media (max-width: 960px) {
  .header-inner { gap: 10px; }
  .lang-btn { height: 36px; padding: 0 8px 0 9px; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .header-cta { display: none; }
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 18px; }
  .main-nav a[data-nav] { font-size: 14.5px; }
}

/* ---------- jezici s drugim pismom ---------- */
html[lang="hi"], html[lang="ne"] { --font: "Jost", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="hi"] body, html[lang="ne"] body { line-height: 1.75; }
html[lang="hi"] :is(.section-num, .eyebrow, .ap-city, .p-city, .lb-city, .hq-cap .section-num, .job-cols h4, .ref-th, .og-badge, .c-card small, .site-footer h4),
html[lang="ne"] :is(.section-num, .eyebrow, .ap-city, .p-city, .lb-city, .hq-cap .section-num, .job-cols h4, .ref-th, .og-badge, .c-card small, .site-footer h4) {
  font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 14px;
}
html[lang="hi"] :is(.section-title, .hero-title), html[lang="ne"] :is(.section-title, .hero-title) { line-height: 1.25; letter-spacing: 0; }
html[lang="uk"] .hero-title, html[lang="hi"] .hero-title, html[lang="ne"] .hero-title { font-size: clamp(40px, 7vw, 96px); }
.lang-menu { max-height: min(70vh, 460px); overflow-y: auto; }

/* =========================================================
   TAMNA TEMA
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121110;
  --paper-2: #23211e;
  --white: #1a1917;
  --text: #d6d3cd;
  --muted: #9b978f;
  --ink: #f1efea;
  --line: rgba(255, 255, 255, .1);
  --surface: #0b0a09;
  --surface-2: #1c1b19;
  --surface-3: #2a2926;
  --on-ink: #121110;
  --header-bg: rgba(18, 17, 16, .86);
}
html[data-theme="dark"] .step-n { color: var(--on-ink); }
html[data-theme="dark"] .step:hover .step-n { color: #fff; }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
html[data-theme="dark"] .contact-box { box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); }
html[data-theme="dark"] .perk:hover, html[data-theme="dark"] .c-card:hover { box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
html[data-theme="dark"] .marquee-row span { color: #6f6c66; }
html[data-theme="dark"] .marquee-row span:hover { color: var(--ink); }
html[data-theme="dark"] .contact-deco { opacity: .06; }
html[data-theme="dark"] img { filter: brightness(.94); }
html[data-theme="dark"] .hero-slide { filter: none; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* ---------- gumb za temu ---------- */
.theme-btn { position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 17px; overflow: hidden; transition: border-color .3s, background .3s; flex: none; }
.theme-btn:hover { border-color: currentColor; }
.is-scrolled .theme-btn { border-color: var(--line); }
.is-scrolled .theme-btn:hover { border-color: var(--ink); }
.nav-open .theme-btn { border-color: rgba(255,255,255,.35); }
.theme-btn svg { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
.theme-btn .ico-moon { transform: translateY(0) rotate(0); }
.theme-btn .ico-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] .theme-btn .ico-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
html[data-theme="dark"] .theme-btn .ico-sun { transform: none; opacity: 1; }
@media (max-width: 960px) { .theme-btn { width: 36px; height: 36px; } }
@media (max-width: 400px) {
  .header-inner { gap: 6px; }
  .lang-btn .lang-chev { display: none; }
  .lang-btn { padding: 0 9px; }
}

/* ---------- fokus na karticama (tipkovnica) ---------- */
.p-card:focus-visible { outline: none; }
.p-card:focus-visible .p-img { outline: 2px solid var(--red); outline-offset: 3px; }
.p-card:focus:not(:focus-visible), .de-card:focus:not(:focus-visible), .og-card:focus:not(:focus-visible), .ap-item button:focus:not(:focus-visible) { outline: none; }
.de-card:focus-visible, .og-card:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.ap-item button:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 2px; }
