/* =========================================================
   PEMA INŠTALACIJE — oblikovni sistem
   Pisavi: Archivo (besedilo in naslovi), IBM Plex Mono (tehnične oznake)
   Paleta: izpeljana iz logotipa PEMA — modra cev (#016faa) in rdeči "MA" (#db251c)
   na nevtralnem papirju; temni pasovi v globoki modro-črni
   ========================================================= */

:root {
  --paper: #f4f4f1;
  --paper-2: #eaebe7;
  --paper-3: #dfe1dc;
  --white: #fcfcfa;
  --ink: #0f141a;
  --ink-2: #29303a;
  --muted: #5f656d;
  --line: rgba(15, 20, 26, .12);
  --line-2: rgba(15, 20, 26, .24);

  --night: #0b1118;
  --night-2: #121a24;
  --on-night: #eef1f4;
  --on-night-2: rgba(238, 241, 244, .64);
  --line-night: rgba(238, 241, 244, .14);

  /* barvi logotipa */
  --blue: #016faa;
  --blue-deep: #01527f;
  --red: #db251c;
  --accent: var(--blue);
  --accent-light: #5cb4e6;

  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* tipografska lestvica — edina, ki jo uporablja vsa stran */
  --fs-display: clamp(2.375rem, 1.1rem + 4.4vw, 4.75rem);
  --fs-h1: clamp(2.125rem, 1.35rem + 2.75vw, 3.875rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.8vw, 3.125rem);
  --fs-title: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.4375rem);
  --fs-statement: clamp(1.375rem, 1.05rem + 1.1vw, 2rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --gap: clamp(16px, 2.2vw, 32px);
  --sec: clamp(88px, 10vw, 152px);
  --nav-h: 96px;      /* glava ob scrollu */
  --nav-top: 156px;   /* glava na vrhu strani */
  --logo-h: 78px;
  --logo-top: 124px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
  animation: pageIn .8s var(--ease-out) both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
html.is-leaving body { opacity: 0; transition: opacity .28s var(--ease); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-size: .875rem; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- postavitev ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .72); }
.section--flush-top { padding-top: 0; }
.section--paper2 { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- tipografija ---------- */
.label {
  display: inline-flex; align-items: center; gap: .85em;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 1px;
  background: var(--accent);
}
.label--plain::before { display: none; }
.section--night .label, .label--light { color: var(--on-night-2); }
.section--night .label::before, .label--light::before { background: var(--accent-light); }

.mono {
  font-family: var(--f-mono); font-size: var(--fs-label);
  letter-spacing: .08em; text-transform: uppercase; font-weight: 400;
}

.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.034em; font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; font-weight: 500; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.014em; font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.section--night .lead { color: var(--on-night-2); }
.statement {
  font-size: var(--fs-statement);
  line-height: 1.24;
  letter-spacing: -.024em;
  font-weight: 400;
  color: var(--ink);
}
.muted { color: var(--muted); }

/* besedilna povezava s črto */
.tlink {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: 5px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: -.005em;
}
.tlink::before, .tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
}
.tlink::before { opacity: .25; }
.tlink::after { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 15px; height: 15px; transition: transform .5s var(--ease-out); }
.tlink:hover svg { transform: translateX(3px); }
.tlink--ext:hover svg { transform: translate(2px, -2px); }

/* ---------- gumbi ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--line-light { border-color: rgba(238, 241, 244, .34); color: var(--on-night); }
.btn--line-light:hover { background: var(--on-night); border-color: var(--on-night); color: var(--ink); }

.iconbtn {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.iconbtn:disabled { opacity: .35; pointer-events: none; }

/* ---------- NAVIGACIJA ---------- */
/* Na vrhu strani je glava višja in logotip velik; ob scrollu se oboje skrči.
   --bar = trenutna višina glave (uporablja tudi mobilni meni). */
.nav {
  --bar: var(--nav-top);
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--bar);
  color: var(--ink);
  transition: height .5s var(--ease-out), color .35s var(--ease);
}
.nav.is-scrolled { --bar: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-dark { color: var(--on-night); }
.nav.is-open { color: var(--on-night); }
.nav.is-open::before { opacity: 0; }

.nav__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
}
/* tanka črta pod glavo na vrhu strani — logotip in meni sedita v "pasu" nad vsebino */
.nav__inner::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px;
  background: var(--line);
  transition: opacity .35s var(--ease);
}
.nav.is-dark .nav__inner::after { background: rgba(238, 241, 244, .16); }
.nav.is-scrolled .nav__inner::after, .nav.is-open .nav__inner::after { opacity: 0; }

.brand {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center;
  margin-right: auto;
}
/* izvirni barvni logotip, brez podlage: modri "P" in rdeči "MA" ostaneta v svojih barvah,
   črni del cevi in napis "inštalacije" sledita podlagi (črna na svetlem, bela na temnem) */
.brand__logo { display: block; height: 74px; width: auto; aspect-ratio: 150 / 126; overflow: visible; color: #1d1a18; }
.brand__logo .lg-fit, .brand__logo text { transition: fill .35s var(--ease); }
.nav .brand__logo {
  height: var(--logo-top);
  position: relative; top: 14px;
  transition: height .5s var(--ease-out), top .5s var(--ease-out), color .35s var(--ease), filter .35s var(--ease);
}
.nav.is-scrolled .brand__logo { height: var(--logo-h); top: 4px; }
.nav.is-dark .brand__logo, .nav.is-open .brand__logo, .footer .brand__logo { color: #fff; }
/* na fotografiji: modra rahlo posvetljena za kontrast, mehka senca za čitljivost */
.nav.is-dark .brand__logo, .nav.is-open .brand__logo { filter: drop-shadow(0 2px 14px rgba(5, 9, 14, .45)); }
.nav.is-dark .brand__logo [fill="#016faa"], .nav.is-open .brand__logo [fill="#016faa"],
.footer .brand__logo [fill="#016faa"] { fill: #1a86c8; }
.nav.is-dark .brand__logo ellipse, .nav.is-open .brand__logo ellipse,
.footer .brand__logo ellipse { fill: #0b1118; stroke: #1a86c8; }
.nav.is-dark .brand__logo .lg-fit, .nav.is-open .brand__logo .lg-fit, .footer .brand__logo .lg-fit { fill: #dfe4e9; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.footer__brand .brand { margin-right: 0; }
.footer__brand .brand__logo { height: 112px; }

.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 38px); }
.nav__links a {
  position: relative; display: block; padding: 8px 0;
  font-size: var(--fs-small); font-weight: 450; letter-spacing: -.004em;
  opacity: .7; transition: opacity .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__menu-foot { display: none; }

.nav__tel {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 2px;
  font-size: .875rem; font-weight: 500; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav__tel svg { width: 14px; height: 14px; flex: none; }
.nav__tel:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nav.is-dark .nav__tel, .nav.is-open .nav__tel { border-color: rgba(238, 241, 244, .3); }
.nav.is-dark .nav__tel:hover, .nav.is-open .nav__tel:hover { background: var(--on-night); border-color: var(--on-night); color: var(--ink); }

.nav__burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- HERO (Domov) ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); }
.hero__pin {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 1080px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(238, 241, 244, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 244, .045) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center -1px;
}
.hero__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* ob scrollu JS zamika .hero__media navzdol (parallax) in ga rahlo potemni */
.hero__media { position: absolute; inset: 0; will-change: transform; }
/* prehod: nova fotografija se počasi pretopi PREK prejšnje (ta ostane polno vidna pod njo),
   zato ni temnega "luknje" na sredini prehoda; ob tem se rahlo umiri iz povečave */
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.04) brightness(.92);
  opacity: 0; z-index: 0; transform: scale(1.06);
  transition: none;
}
.hero__slide.is-active {
  opacity: 1; z-index: 2; transform: scale(1);
  transition: opacity 2.2s cubic-bezier(.45, 0, .2, 1), transform 9s cubic-bezier(.2, .6, .3, 1);
}
.hero__slide.is-prev {
  opacity: 1; z-index: 1; transform: scale(1);
  transition: transform 9s cubic-bezier(.2, .6, .3, 1);
}
/* tovornjak z žerjavom: na ležečih zaslonih pečena kompozicija s fotografijo ob desnem robu,
   da naslov levo ne prekrije tovora; pokončni zasloni dobijo izvirni izrez */
.hero__slide--panel { object-position: 100% 50%; transform-origin: 100% 50%; transform: scale(1.03); }
@media (max-aspect-ratio: 1/1) { .hero__slide--panel { object-position: 52% 78%; transform-origin: 50% 50%; } }

/* uvod: fotografija se odpre med dvema cevema (rdeča = dovod, modra = povratek) */
.js .hero__media { animation: heroOpen 1.5s var(--ease-io) .35s both; }
@keyframes heroOpen { from { clip-path: inset(49.6% 0 49.6% 0); } to { clip-path: inset(0 0 0 0); } }
.hero__seam { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.js .hero__seam { display: block; }
.hero__seam i {
  position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px;
  transform-origin: 50% 50%;
  animation: seamGrow .5s var(--ease-out) both, seamFade .6s var(--ease) 1.65s forwards;
}
.hero__seam i:first-child { background: var(--red); animation-name: seamGrow, seamUp, seamFade; animation-duration: .5s, 1.5s, .6s; animation-timing-function: var(--ease-out), var(--ease-io), var(--ease); animation-delay: 0s, .35s, 1.65s; animation-fill-mode: both, both, forwards; }
.hero__seam i:last-child { background: var(--blue); animation-name: seamGrow, seamDown, seamFade; animation-duration: .5s, 1.5s, .6s; animation-timing-function: var(--ease-out), var(--ease-io), var(--ease); animation-delay: 0s, .35s, 1.65s; animation-fill-mode: both, both, forwards; }
@keyframes seamGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes seamUp { from { top: 49.6%; } to { top: 0; } }
@keyframes seamDown { from { top: 50.4%; } to { top: 100%; } }
@keyframes seamFade { to { opacity: 0; } }

.hero__shade {
  position: absolute; inset: 0; z-index: 3;
  transition: opacity 2.2s cubic-bezier(.45, 0, .2, 1);
  background:
    linear-gradient(180deg, rgba(7, 11, 16, .5) 0%, rgba(7, 11, 16, 0) 22%),
    linear-gradient(0deg, rgba(7, 11, 16, .9) 0%, rgba(7, 11, 16, .58) 34%, rgba(7, 11, 16, 0) 62%),
    linear-gradient(90deg, rgba(7, 11, 16, .72) 0%, rgba(7, 11, 16, .38) 44%, rgba(7, 11, 16, 0) 68%);
}
/* svetlejša senca, kadar je fotografija le na desni (ozadje levo je že temno) */
@media (min-aspect-ratio: 1/1) { .hero.is-soft .hero__shade { opacity: .5; } }
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vh, 88px); }
/* sedež + leto: izpostavljena oznaka (dovod/povratek črtica, steklena podlaga) */
.hero__label {
  gap: 0; margin-bottom: clamp(22px, 3.4vh, 34px);
  padding: .78em 1.15em .78em 1em;
  font-size: clamp(.9375rem, .82rem + .3vw, 1.0625rem); font-weight: 500; letter-spacing: .1em; color: #fff;
  background: rgba(7, 11, 16, .46);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 241, 244, .2); border-radius: 2px;
}
.hero__label::before {
  width: 3px; height: 1.35em; margin-right: .95em; border-radius: 0;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50% 100%);
}
.hero__since { display: inline-flex; align-items: center; color: rgba(238, 241, 244, .78); }
.hero__since::before { content: ""; width: 1px; height: 1.1em; margin: 0 1em; background: rgba(238, 241, 244, .32); }
.hero__since b { margin-left: .5em; font-weight: 500; color: #fff; }
.hero__title {
  font-size: var(--fs-display);
  line-height: .98; letter-spacing: -.042em; font-weight: 500;
  max-width: none;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: block; transform: translateY(108%); animation: lineUp 1.3s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .95s; }
.hero__title .line:nth-child(2) > span { animation-delay: .34s; color: rgba(238, 241, 244, .7); }
@keyframes lineUp { to { transform: none; } }
.hero__lead {
  max-width: 46ch; margin-top: clamp(22px, 3.2vh, 32px);
  font-size: var(--fs-lead); line-height: 1.55; color: rgba(238, 241, 244, .86);
  text-shadow: 0 1px 18px rgba(7, 11, 16, .5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4.2vh, 42px); }
.hero__label, .hero__lead, .hero__cta, .hero__foot { opacity: 0; animation: fadeUp 1.1s var(--ease-out) forwards; }
.hero__label { animation-delay: .8s; }
.hero__lead { animation-delay: 1.25s; }
.hero__cta { animation-delay: 1.38s; }
.hero__foot { animation-delay: 1.6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__foot { position: relative; z-index: 1; }
.hero__foot-in {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px);
  min-height: 76px;
  border-top: 1px solid var(--line-night);
  font-family: var(--f-mono); font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 241, 244, .84);
}
.hero__count { font-variant-numeric: tabular-nums; color: var(--on-night); white-space: nowrap; }
.hero__count span { color: rgba(238, 241, 244, .78); }
.hero__bars { display: flex; gap: 6px; }
.hero__bars button {
  width: 48px; height: 28px; padding: 0; border: 0; background: transparent;
  position: relative;
}
.hero__bars button::before, .hero__bars button i {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; content: "";
}
.hero__bars button::before { background: rgba(238, 241, 244, .4); }
.hero__bars button i { background: var(--on-night); transform: scaleX(0); transform-origin: left; }
.hero__bars button.is-done i { transform: scaleX(1); }
.hero__bars button.is-active i { animation: barFill var(--slide-dur, 6.5s) linear forwards; }
.hero__bars.is-paused button.is-active i { animation: none; transform: scaleX(1); }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__cap { transition: opacity .35s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero__cap.is-swap { opacity: 0; }
.hero__scope { margin-left: auto; white-space: nowrap; }
.hero__scope i { font-style: normal; opacity: .45; margin: 0 .5em; }

/* ---------- glava razdelka ---------- */
.shead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 22px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.shead > .label { grid-column: 1 / -1; }
.shead__title { grid-column: 1 / span 7; }
.shead__aside { grid-column: 9 / -1; }
.shead__aside .lead { max-width: 40ch; }
.shead--controls .shead__aside { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* ---------- UVOD (Domov) ---------- */
.intro { align-items: stretch; }
.pmedia.intro__media { grid-column: 1 / span 5; width: 100%; height: auto; min-height: 520px; align-self: stretch; margin: 0; }
.intro__media .pmedia__cap, .principles__media .pmedia__cap {
  left: 16px; right: auto; bottom: 16px; padding: 10px 14px;
  background: var(--ink); color: #fff; font-size: .8125rem; letter-spacing: .07em;
}
/* Mala ulica: napis zgoraj (nebo), da ne prekrije tovornjaka */
.intro__media .pmedia__cap { top: 16px; bottom: auto; }
.intro__label { margin-bottom: clamp(22px, 2.4vw, 34px); }
.intro__body { grid-column: 7 / -1; display: flex; flex-direction: column; }
.intro__body .stats { margin-top: auto; padding-top: clamp(40px, 4.4vw, 64px); }
.intro__text { max-width: 23em; }
.w { display: inline-block; opacity: .12; transform: translateY(.18em); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.w.is-on { opacity: 1; transform: none; }
.intro__more { margin-top: clamp(28px, 3.6vw, 44px); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 4.4vw, 64px);
  border-top: 1px solid var(--line);
}
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 22px 24px 0 0; }
.stat + .stat { padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--line); }
.stat__num {
  display: flex; align-items: baseline; gap: .18em;
  font-size: clamp(1.875rem, 1.55rem + 1vw, 2.5rem);
  font-weight: 400; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .36em; letter-spacing: -.01em; font-weight: 450; color: var(--muted); }
.stat__label { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); max-width: 22ch; line-height: 1.45; }
.section--night .stats { border-color: var(--line-night); }
.section--night .stat + .stat { border-color: var(--line-night); }
.section--night .stat__label, .section--night .stat__num small { color: var(--on-night-2); }

/* ---------- STORITVE (Domov): štiri mirne kartice ----------
   Vse štiri storitve so vidne naenkrat; med scrollanjem se nič ne menja.
   Vrstice (fotografija, številka, naziv, opis, seznam) so prek subgrid
   poravnane čez vse kartice. Dodatne fotografije se vrtijo le ob prehodu z miško. */
.srv {
  --srv-dur: 1.8s;   /* = DUR v serviceCards() */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 0;
}
.srv__card {
  display: grid; grid-row: span 5; grid-template-rows: subgrid;
  align-content: start; color: inherit;
}
.srv__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.srv__media {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; background-color: var(--paper-3);
}
.srv__stack { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.srv__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease);
}
.srv__img.is-prev { z-index: 1; opacity: 1; transition: none; }
.srv__img.is-on { z-index: 2; opacity: 1; }
.srv__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; gap: 10px; padding: 56px 16px 15px;
  background: linear-gradient(0deg, rgba(7, 11, 16, .7), rgba(7, 11, 16, .38) 45%, rgba(7, 11, 16, 0));
  font-family: var(--f-mono); font-size: .6875rem; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(238, 241, 244, .92);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.srv__ticks { display: flex; gap: 5px; }
.srv__ticks i { position: relative; width: 22px; height: 2px; background: rgba(238, 241, 244, .3); overflow: hidden; }
.srv__ticks i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.srv__ticks i.is-done::after { transform: scaleX(1); }
.srv__ticks i.is-on::after { animation: barFill var(--srv-dur) linear forwards; }

.srv__head { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.srv__n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .06em; color: var(--muted); transition: color .4s var(--ease); }
.srv__line { position: relative; flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.srv__line::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.srv__arrow {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .6s var(--ease-out);
}
.srv__arrow svg { width: 16px; height: 16px; }
.srv__name {
  display: block; margin-top: 20px;
  font-size: clamp(1.5rem, 1.15rem + .7vw, 1.875rem); font-weight: 500; line-height: 1.1; letter-spacing: -.028em;
}
.srv__desc { display: block; margin-top: 14px; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
.srv__tags {
  display: grid; align-content: start; margin-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.srv__tags span { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.srv__tags span::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px;
  background: var(--line-2); transition: background-color .4s var(--ease);
}

@media (hover: hover) {
  .srv__card:hover .srv__stack { transform: scale(1.035); }
  .srv__card:hover .srv__cap, .srv__card:focus-visible .srv__cap { opacity: 1; transform: none; }
  .srv__card:hover .srv__line::after, .srv__card:focus-visible .srv__line::after { transform: scaleX(1); }
  .srv__card:hover .srv__n { color: var(--blue); }
  .srv__card:hover .srv__arrow, .srv__card:focus-visible .srv__arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }
  .srv__card:hover .srv__tags span::before { background: var(--blue); }
}

.srv__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(40px, 4.4vw, 64px); padding-top: clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--line);
}
.srv__foot .mono { color: var(--muted); }

@media (max-width: 1100px) {
  .srv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv__card:nth-child(n + 3) { margin-top: clamp(48px, 7vw, 72px); }
  .srv__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .srv { grid-template-columns: minmax(0, 1fr); }
  .srv__card { display: block; grid-row: auto; }
  .srv__card + .srv__card { margin-top: 56px; }
  .srv__media { aspect-ratio: 3 / 2; }
  .srv__head { margin-top: 18px; }
  .srv__name { margin-top: 14px; }
  .srv__tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 14px; }
  .srv__tags span { padding: 0; border: 0; gap: 8px; }
}

/* ---------- ZAKAJ PEMA (temni pas: razdelilnik — šest področij, en izvajalec) ----------
   Šest področij je vezanih na eno zbiralko kot krogi na razdelilniku; iz nje vodi
   dvojna cev (dovod/povratek) naravnost v T-kos logotipa. */
.why { overflow: hidden; }

.unite {
  --row: clamp(52px, 2.4rem + 2vw, 78px);
  --trunk: clamp(56px, 11vw, 196px);
  --logo-u: clamp(100px, 3rem + 7.4vw, 176px);
  --pipe-b: #1a86c8;
  --pipe-r: #e0362d;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: stretch;
}

/* področja */
.unite__list { grid-column: 1 / span 6; position: relative; margin: 0; padding: 0; list-style: none; }
.unite__item { display: flex; align-items: center; height: var(--row); }
.unite__n {
  flex: none; width: clamp(44px, 4.4vw, 68px);
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--on-night-2);
}
.unite__name { flex: none; font-size: var(--fs-title); font-weight: 450; line-height: 1; letter-spacing: -.03em; }
.unite__lead { /* vod do zbiralke */
  position: relative; flex: 1 1 auto; min-width: 28px; height: 1px; margin-left: clamp(16px, 1.8vw, 32px);
  background-color: rgba(238, 241, 244, .2); transform-origin: left center;
}
.unite__lead::after { /* priključek na zbiralki */
  content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; background: var(--accent-light);
}
.unite__list::after { /* zbiralka */
  content: ""; position: absolute; right: 0; top: calc(var(--row) / 2); bottom: calc(var(--row) / 2);
  width: 1px; background: rgba(238, 241, 244, .42); transform-origin: top center;
}
@media (hover: hover) {
  .unite__item:hover .unite__lead { background-color: var(--accent-light); }
}

/* en izvajalec */
.unite__one { grid-column: 7 / -1; position: relative; display: grid; grid-template-rows: 1fr auto 1fr; }
.unite__one::before { /* mehak sij za logotipom */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: calc(var(--trunk) + var(--logo-u) * .6); top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(26, 134, 200, .15), rgba(26, 134, 200, 0));
}
.unite__hub { position: relative; z-index: 1; display: flex; align-items: center; margin-left: calc(var(--gap) * -1); }
.unite__trunk { position: relative; flex: none; width: calc(var(--gap) + var(--trunk)); height: 7px; margin-right: -2px; transform-origin: left center; }
.unite__trunk::before, .unite__trunk::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; }
.unite__trunk::before { top: 0; background: var(--pipe-b); }
.unite__trunk::after { bottom: 0; background: var(--pipe-r); }
/* cev zadene T-kos (38,5 % višine znaka), zato je znak spuščen za razliko do sredine */
.unite__logo { position: relative; top: calc(var(--logo-u) * .115); height: var(--logo-u); color: #fff; }
.unite__logo [fill="#016faa"] { fill: #1a86c8; }
.unite__logo ellipse { fill: var(--night); stroke: #1a86c8; }
.unite__logo .lg-fit { fill: #dfe4e9; }
.unite__kicker, .unite__caption {
  position: relative; z-index: 1; padding-left: var(--trunk);
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2);
}
.unite__kicker { align-self: end; padding-bottom: clamp(22px, 2.2vw, 34px); }
.unite__kicker i { font-style: normal; margin: 0 .4em; color: var(--accent-light); }
.unite__caption { align-self: start; padding-top: calc(clamp(22px, 2.2vw, 34px) + var(--logo-u) * .23); }

/* izris ob prihodu na zaslon (brez JS ostane vse vidno) */
.js .unite__n, .js .unite__name {
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease) calc(var(--i) * 60ms), transform 1s var(--ease-out) calc(var(--i) * 60ms);
}
.js .unite__lead {
  transform: scaleX(0);
  transition: transform .8s var(--ease-io) calc(.2s + var(--i) * 60ms), background-color .35s var(--ease);
}
.js .unite__lead::after { opacity: 0; transition: opacity .4s var(--ease) calc(1s + var(--i) * 60ms); }
.js .unite__list::after { transform: scaleY(0); transition: transform .7s var(--ease-io) .8s; }
.js .unite__trunk { transform: scaleX(0); transition: transform .6s var(--ease-io) 1.4s; }
.js .unite__logo { opacity: 0; transform: translateX(-10px); transition: opacity .9s var(--ease) 1.75s, transform 1.1s var(--ease-out) 1.75s; }
.js .unite__kicker, .js .unite__caption, .js .unite__one::before { opacity: 0; transition: opacity 1s var(--ease) 1.95s; }
.unite.is-in :is(.unite__n, .unite__name, .unite__lead, .unite__trunk, .unite__logo, .unite__kicker, .unite__caption),
.unite.is-in .unite__list::after, .unite.is-in .unite__one::before, .unite.is-in .unite__lead::after { opacity: 1; transform: none; }
.unite.is-in .unite__one::before { transform: translate(-50%, -50%); }

/* trije razlogi */
.why .values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 104px); }
.value { padding-top: 22px; border-top: 1px solid var(--line-night); }
.value__n { display: block; margin-bottom: 18px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--accent-light); }
.value p { margin-top: 8px; max-width: 40ch; font-size: var(--fs-small); line-height: 1.6; color: var(--on-night-2); }

@media (max-width: 1023px) {
  .unite__list { grid-column: 1 / span 7; }
  .unite__one { grid-column: 8 / -1; }
  .unite { --trunk: 40px; }
}
/* telefon: zbiralka teče navzdol naravnost v logotip, besedilo ob njem */
@media (max-width: 760px) {
  .unite { --row: 50px; --logo-u: 88px; --bx: 40px; display: block; }
  .unite__list { padding-right: var(--bx); }
  .unite__list::after { right: var(--bx); bottom: 0; }
  .unite__lead::after { right: -2px; }
  .unite__one {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: 16px; align-items: end;
  }
  .unite__one::before { left: auto; right: calc(var(--logo-u) * .6 - 380px); top: 70%; }
  .unite__hub { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; margin-left: 0; }
  .unite__trunk { width: 7px; height: 40px; margin: 0 calc(var(--bx) - 3px) -4px 0; transform-origin: center top; }
  .unite__trunk::before, .unite__trunk::after { top: 0; bottom: 0; width: 2px; height: auto; }
  .unite__trunk::before { left: 0; right: auto; }
  .unite__trunk::after { left: auto; right: 0; }
  .js .unite__trunk { transform: scaleY(0); }
  .unite__logo { top: 0; }
  .unite__kicker, .unite__caption { grid-column: 1; padding: 0; align-self: end; }
  .unite__kicker { grid-row: 1; margin-bottom: 8px; font-size: .625rem; letter-spacing: .06em; white-space: nowrap; }
  .unite__caption { grid-row: 2; padding-bottom: 4px; color: var(--on-night); }
  .why .values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .value { padding-block: 22px; }
  .value:last-child { border-bottom: 1px solid var(--line-night); }
  .value__n { margin-bottom: 10px; }
}

/* ---------- POTEK (en vod skozi pet korakov) ----------
   Tanka črta s kvadratnimi priključki kot pri razdelilniku v Zakaj Pema. Ob prihodu na
   zaslon modri tok steče od koraka do koraka; korak se izpiše, ko ga tok doseže. Enkratno. */
.proc { position: relative; --ty: 40px; }
.proc__track {
  position: absolute; top: var(--ty); left: 4px; right: 0; height: 1px;
  background: var(--line-2);
}
.proc__track::after { /* zaključek voda */
  content: ""; position: absolute; right: 0; top: -4px; width: 1px; height: 9px;
  background: var(--line-2); transition: background-color .6s var(--ease);
}
.proc__fill {
  position: absolute; left: 0; top: 0; width: 0; height: 2px; margin-top: -.5px;
  background: var(--blue);
}
.proc__fill::after { /* svetla čelna točka toka */
  content: ""; position: absolute; right: -10px; top: -3px; width: 28px; height: 8px;
  background: radial-gradient(closest-side, rgba(92, 180, 230, .95), rgba(92, 180, 230, 0));
  opacity: 0; transition: opacity .5s var(--ease);
}
.proc.is-running .proc__fill::after { opacity: 1; }
.proc.is-done .proc__track::after { background: var(--blue); }

.proc__steps {
  position: relative; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--gap);
}
/* vrstice naslov | opis | oznaka poravnane čez vse korake */
.proc__step { position: relative; grid-row: span 3; display: grid; grid-template-rows: subgrid; padding-top: calc(var(--ty) + 34px); }
.proc__top {
  position: absolute; top: 0; left: 0; right: 0; height: calc(var(--ty) - 14px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.proc__n {
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--muted);
  transition: color .6s var(--ease);
}
.proc__ico { display: block; width: 22px; height: 22px; color: var(--muted); transition: color .6s var(--ease); }
.proc__ico svg { display: block; width: 100%; height: 100%; }
.proc__node {
  position: absolute; z-index: 1; left: 0; top: var(--ty); width: 9px; height: 9px; margin-top: -4.5px;
  border: 1px solid var(--ink-2); border-radius: 1px; background: var(--paper);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.proc__step h3 {
  font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--ink);
}
.proc__step p {
  margin-top: 12px; max-width: 32ch;
  font-size: var(--fs-small); line-height: 1.6; color: var(--muted);
}
.proc__step .proc__tag {
  padding-top: 22px;
  font-size: .6875rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* stanje »doseženo« */
.proc__step.is-on .proc__node { background: var(--blue); border-color: var(--blue); animation: procPing 1.1s var(--ease-out); }
.proc__step.is-on .proc__n { color: var(--blue); }
.proc__step.is-on .proc__ico { color: var(--ink-2); }
@keyframes procPing {
  from { box-shadow: 0 0 0 0 rgba(1, 111, 170, .4); }
  to { box-shadow: 0 0 0 12px rgba(1, 111, 170, 0); }
}

/* izpis besedila, ko ga tok doseže (brez JS ostane vse vidno) */
.js .proc__step :is(h3, p, .proc__ico) {
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .9s var(--ease-out), color .6s var(--ease);
}
.js .proc__step p { transition-delay: .07s; }
.js .proc__step .proc__tag { transition-delay: .14s; }
.js .proc__step.is-on :is(h3, p, .proc__ico) { opacity: 1; transform: none; }

.proc__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(36px, 4vw, 56px); padding-top: clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--line);
}
.proc__foot .mono { color: var(--muted); }
.proc__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.proc__links a[href^="tel:"] { font-variant-numeric: tabular-nums; }

/* ---------- REFERENCE (Domov): mreža izbranih izvedb ---------- */
.works {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 16px);
}
.wk { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--paper-3); isolation: isolate; }
.wk--a { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.wk--h { grid-column: span 2; aspect-ratio: auto; }
.wk__media { position: absolute; inset: 0; }
.wk__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.wk:hover .wk__media img { transform: scale(1.05); }
.wk::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 11, 16, .88) 0%, rgba(7, 11, 16, .62) 30%, rgba(7, 11, 16, .22) 56%, rgba(7, 11, 16, 0) 76%);
}
.wk__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(16px, 1.7vw, 26px); color: var(--on-night);
}
.wk__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 241, 244, .72);
}
.wk__meta span:first-child { color: var(--on-night); }
.wk__meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 12px; vertical-align: .12em; background: var(--accent); }
.wk__title { max-width: 26ch; font-size: 1.0625rem; font-weight: 500; line-height: 1.25; letter-spacing: -.014em; }
.wk--a .wk__title, .wk--h .wk__title { font-size: clamp(1.25rem, 1rem + .75vw, 1.75rem); font-weight: 450; letter-spacing: -.025em; }
/* ime objekta (samo kjer ga navaja stranka) */
.objtag {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 2px;
  font-family: var(--f-mono); font-size: .6875rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night);
}
.objtag i { font-style: normal; opacity: .62; }
.objtag i::after { content: ""; display: inline-block; width: 14px; height: 1px; margin-left: 10px; vertical-align: .3em; background: currentColor; }
.objtag--card { display: flex; margin-top: 10px; color: var(--ink); }
.works__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--line);
}
.works__foot .mono { color: var(--muted); }

/* ---------- ZAKLJUČNI KONTAKTNI PAS (umirjena globoka modra) ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(1, 111, 170, .38), transparent 62%),
    radial-gradient(50% 90% at 0% 100%, rgba(1, 82, 127, .22), transparent 70%),
    #0c1f30;
  color: #fff;
  padding-block: clamp(80px, 9vw, 136px);
}
.cta::before { /* tehnična mreža, izgine proti levi */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
}
.cta::after { /* dovod / povratek: rdeča in modra cev na vrhu pasu */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(var(--red) 0 2px, var(--blue) 2px 4px);
}
.cta .label--light { color: rgba(255, 255, 255, .7); }
.cta .label--light::before { background: var(--accent-light); }
.cta__in { align-items: center; }
.cta__lead { grid-column: 1 / span 6; }
.cta__title { margin-top: 24px; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.034em; font-weight: 500; max-width: 14em; }
.cta__text { margin-top: 22px; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .72); }
.cta__actions {
  grid-column: 8 / -1;
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); border-radius: 2px;
}
.cta__tel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 20px; row-gap: 10px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.cta__tel .mono { grid-column: 1 / -1; color: var(--accent-light); }
.cta__tel b {
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); font-weight: 450; line-height: .95; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cta__tel i {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .6s var(--ease-out);
}
.cta__tel i svg { width: 20px; height: 20px; }
.cta__tel:hover i { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }
.cta__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 26px; }
.cta__btns .btn { min-height: 58px; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white svg { color: var(--blue); }
.btn--white:hover { background: var(--blue); color: #fff; }
.btn--white:hover svg { color: #fff; }
.cta .btn--line-light { border-color: rgba(255, 255, 255, .42); color: #fff; }
.cta .btn--line-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cta__meta { margin-top: 22px; color: rgba(255, 255, 255, .58); overflow-wrap: anywhere; }
.cta__meta i { font-style: normal; margin: 0 .8em; opacity: .6; }
.cta :focus-visible { outline-color: #fff; }
/* noga za pasom: brez ponovljenega velikega telefona */
main:has(.cta) + .footer .footer__call { display: none; }

/* ---------- NOGA ---------- */
.footer { background: var(--night); color: var(--on-night); padding-top: clamp(64px, 7vw, 104px); overflow: hidden; }
.footer__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__brand p { max-width: 30ch; font-size: var(--fs-small); color: var(--on-night-2); }
/* partner: Veto Group (svetla različica logotipa za temno nogo) */
.footer__partner {
  display: grid; grid-template-columns: auto auto; align-items: end; gap: 14px 18px;
  margin-right: auto; padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-night);
}
.footer__partner .mono { grid-column: 1 / -1; color: var(--on-night-2); }
.footer__partner img { height: clamp(44px, 3.6vw, 54px); width: auto; transition: opacity .3s var(--ease); }
.footer__partner svg { width: 14px; height: 14px; margin-bottom: 4px; color: var(--on-night-2); transition: color .3s var(--ease), transform .3s var(--ease); }
.footer__partner:hover svg { color: var(--accent-light); transform: translate(2px, -2px); }
.footer__call { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 10px 20px; }
.footer__call .mono { grid-column: 1 / -1; color: var(--on-night-2); }
.footer__call b {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); font-weight: 450; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .3s var(--ease);
}
.footer__call svg {
  box-sizing: content-box; width: 16px; height: 16px; padding: 13px; border: 1px solid var(--line-night);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.footer__call:hover b { color: var(--accent-light); }
.footer__call:hover svg { background-color: var(--accent-light); border-color: var(--accent-light); color: var(--night); }

/* podatki v "glavi risbe": celice, ločene z linijami */
.tblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-night); border-bottom: 1px solid var(--line-night); }
.tblock__cell { min-width: 0; padding: 28px 24px 36px; }
.tblock__cell:first-child { padding-left: 0; }
.tblock__cell + .tblock__cell { border-left: 1px solid var(--line-night); }
.tblock .label { margin-bottom: 18px; color: var(--on-night-2); }
.tblock .label::before { background: var(--accent-light); }
.tblock li + li { margin-top: 8px; }
.tblock a, .tblock p:not(.label) { font-size: var(--fs-small); line-height: 1.65; color: var(--on-night-2); overflow-wrap: anywhere; transition: color .25s; }
.tblock a:hover, .tblock a[aria-current] { color: var(--on-night); }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 24px 0 30px;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-2);
}
.footer__bar a:hover { color: var(--on-night); }
.footer__bar nav { display: flex; gap: 28px; }
.totop { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.totop:hover { color: var(--on-night); }
.totop svg { width: 12px; height: 12px; }

/* ---------- GLAVA PODSTRANI ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 128px)); padding-bottom: clamp(48px, 6vw, 88px); }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 3.6vw, 44px);
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.phero__title { grid-column: 1 / span 9; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.036em; font-weight: 500; }
.phero__lead { grid-column: 9 / -1; grid-row: 2; margin-top: clamp(20px, 2.2vw, 32px); max-width: 36ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.phero--short .phero__title { grid-column: 1 / span 7; }
.phero--tight { padding-bottom: clamp(32px, 3.4vw, 52px); }
.phero .crumbs, .phero__title, .phero__lead { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.phero__title { animation-delay: .1s; }
.phero__lead { animation-delay: .25s; }

.pmedia { position: relative; height: clamp(300px, 50vw, 680px); overflow: hidden; background: var(--paper-3); }
.pmedia img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.pmedia__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 18px;
  background: linear-gradient(0deg, rgba(7, 11, 16, .55), rgba(7, 11, 16, 0));
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 241, 244, .85);
}

/* ---------- STORITVE: podnavigacija + bloki ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease-out);
}
.subnav__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.subnav a {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 20px 0; font-size: var(--fs-small); font-weight: 500; color: var(--muted);
  transition: color .3s var(--ease);
}
.subnav a + a { padding-left: var(--gap); }
.subnav a span { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .06em; }
.subnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.subnav a + a::after { left: var(--gap); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

.svc { padding-block: clamp(72px, 9vw, 136px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 64px); }
.svc:last-of-type { border-bottom: 0; }
.svc__grid { align-items: center; }
.svc__media { grid-column: 1 / span 7; position: relative; aspect-ratio: 5 / 4; overflow: hidden; background-color: var(--paper-3); }
.svc__media > img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; }
.svc__media figcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 241, 244, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
/* tri fotografije na storitev: glavna + dve manjši */
.svc__gal {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, .8vw, 12px); overflow: visible; background-color: transparent;
}
.svc__main, .svc__side { position: relative; overflow: hidden; background-color: var(--paper-3); }
.svc__main { grid-column: 1; grid-row: 1 / span 2; }
.svc__main img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; }
.svc__main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; background: linear-gradient(0deg, rgba(7, 11, 16, .62), rgba(7, 11, 16, 0)); }
.svc__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.svc__side:hover img { transform: scale(1.05); }
.svc__gal figcaption { position: relative; left: auto; right: auto; bottom: auto; grid-column: 1; grid-row: 2; align-self: end; z-index: 1; padding: 0 20px 18px; pointer-events: none; }
.svc--flip .svc__gal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.svc--flip .svc__main, .svc--flip .svc__gal figcaption { grid-column: 2; }
.svc__text { grid-column: 9 / -1; }
.svc--flip .svc__media { grid-column: 6 / -1; grid-row: 1; }
.svc--flip .svc__text { grid-column: 1 / span 4; grid-row: 1; }
.svc__n { display: flex; margin-bottom: 24px; }
.svc__text .h2 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.625rem); letter-spacing: -.028em; }
.svc__text p { margin-top: 20px; color: var(--ink-2); }
.svc__list { margin-top: 32px; border-top: 1px solid var(--line); }
.svc__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.svc__list li::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }
.svc__meta { margin-top: 24px; color: var(--muted); }

/* ---------- REFERENCE: filter, mreža, povečava ---------- */
.gfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 4.4vw, 56px); }
.chipbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 2px; background: transparent;
  font-size: .875rem; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chipbtn span { font-family: var(--f-mono); font-size: .6875rem; color: var(--muted); transition: color .3s; }
.chipbtn:hover { border-color: var(--ink); }
.chipbtn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chipbtn.is-active span { color: rgba(244, 244, 241, .6); }

.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(36px, 4vw, 56px) var(--gap); }
.gcard { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.gcard.is-hidden { display: none; }
.gcard.is-new { animation: fadeUp .7s var(--ease-out) both; }
.gcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.gcard__zoom {
  position: absolute; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.gcard__zoom svg { width: 18px; height: 18px; }
.gcard:hover .gcard__media img { transform: scale(1.045); }
.gcard:hover .gcard__zoom, .gcard:focus-visible .gcard__zoom { opacity: 1; transform: none; }
.gcard__meta { display: block; margin-top: 18px; color: var(--muted); }
.gcard__title { display: block; margin-top: 8px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.35; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 72px minmax(0, 1fr) 72px;
  background: rgba(9, 13, 18, .96); color: var(--on-night);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lightbox__img { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(238, 241, 244, .24); background: transparent; color: var(--on-night);
  transition: background-color .3s, color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--on-night); color: var(--ink); }
.lightbox__close { grid-column: 3; grid-row: 1; align-self: center; justify-self: center; font-size: 1.5rem; line-height: 1; }
.lightbox__nav { grid-row: 2; align-self: center; justify-self: center; }
.lightbox__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__cap {
  grid-column: 2; grid-row: 3; align-self: center;
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-2);
}
.lightbox__cap span { color: var(--on-night); font-variant-numeric: tabular-nums; }

/* ---------- KONTAKT ---------- */
/* podatki + zemljevid: enako visoka stolpca */
.cmain { align-items: stretch; }

.ccard {
  grid-column: 1 / span 5;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: var(--night); color: var(--on-night);
}
.ccard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 241, 244, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 244, .05) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 70% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 70% at 100% 0%, #000 0%, transparent 70%);
}
.ccard .mono { color: var(--on-night-2); }
.ccard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ccard__live {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light);
}
.ccard__live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); }
.ccard__live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-light);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.ccard__tel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding-bottom: 30px; border-bottom: 1px solid var(--line-night);
  font-size: var(--fs-title); font-weight: 450; letter-spacing: -.035em; line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .3s var(--ease);
}
.ccard__tel svg { width: 24px; height: 24px; flex: none; transition: transform .5s var(--ease-out); }
.ccard__tel:hover { color: var(--accent-light); }
.ccard__tel:hover svg { transform: translateX(6px); }
.ccard__rows li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-night); }
.ccard__rows .mono { padding-top: .35em; }
.ccard__v { font-size: 1.0625rem; font-weight: 450; letter-spacing: -.01em; line-height: 1.45; overflow-wrap: anywhere; }
a.ccard__v { transition: color .25s; }
a.ccard__v:hover { color: var(--accent-light); }
.ccard__links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ccard .tlink { color: var(--on-night); font-size: .875rem; }
.ccard__reg { margin: auto 0 0; padding-top: 28px; }
.ccard__reg div { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; padding: 5px 0; }
.ccard__reg dt { font-size: .6875rem; line-height: 1.9; }
.ccard__reg dd { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--on-night-2); }

.cmap { grid-column: 6 / -1; position: relative; min-height: 460px; margin: 0; background: var(--paper-3); overflow: hidden; }
.cmap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.4) contrast(1.02);
  transition: filter .6s var(--ease);
}
.cmap:hover iframe, .cmap:focus-within iframe { filter: none; }

/* povpraševanje: potek ob obrazcu */
.contact { align-items: start; }
.contact__info { grid-column: 1 / span 4; }
.contact__form { grid-column: 6 / -1; }
@media (min-width: 961px) and (min-height: 820px) {
  .contact__info { position: sticky; top: calc(var(--nav-h) + 40px); }
}
.contact__title { margin-top: 22px; font-size: var(--fs-title); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.csteps { margin-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--ink); }
.csteps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.csteps__n { padding-top: .3em; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .06em; color: var(--accent); }
.csteps b { display: block; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.35; }
.csteps li p { margin-top: 6px; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
.contact__note {
  display: grid; grid-template-columns: 7px 1fr; gap: 14px; margin-top: 28px;
  font-size: var(--fs-small); line-height: 1.6; color: var(--muted);
}
.contact__note::before { content: ""; width: 7px; height: 7px; margin-top: .55em; background: var(--accent); border-radius: 1px; }

/* obrazec na "listu": okvirjena polja enake višine, izbire z radijsko piko */
.fsheet {
  position: relative; padding: clamp(24px, 3.4vw, 52px);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 20, 26, .04), 0 28px 56px -32px rgba(15, 20, 26, .18);
}
.form__head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.form__head h2 { margin-top: 14px; font-size: var(--fs-title); letter-spacing: -.03em; }
.form__head > p { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.fgroup { margin-top: 36px; }
.fgroup__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.fgroup__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fgroup__n { color: var(--accent); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { padding: 0; font-size: .875rem; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); }
.field__label em { font-style: normal; color: var(--accent); }
.field__label .opt { font-weight: 400; color: var(--muted); }
legend.field__label { margin-bottom: 8px; }
.input {
  width: 100%; height: 50px; padding: 0 15px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 2px; outline: none;
  font-size: 1rem; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(15, 20, 26, .36); }
.input:hover { border-color: rgba(15, 20, 26, .42); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1, 111, 170, .14); }
.input:user-invalid { border-color: #b4412f; }
textarea.input { height: auto; min-height: 150px; padding: 13px 15px; resize: vertical; line-height: 1.55; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.chip { position: relative; min-width: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: flex; align-items: center; gap: 11px; min-height: 50px; height: 100%; padding: 8px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 2px;
  font-size: .9375rem; line-height: 1.25; color: var(--ink-2); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip span::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(15, 20, 26, .32); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.chip:hover span { border-color: rgba(15, 20, 26, .42); color: var(--ink); }
.chip input:checked + span { border-color: var(--accent); background: rgba(1, 111, 170, .05); color: var(--ink); }
.chip input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(15, 20, 26, .36); border-radius: 2px; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.consent input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
  transition: transform .2s var(--ease);
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.consent em { font-style: normal; color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 26px; }
.form__hint { flex: 1 1 260px; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.form__ok { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--accent); background: var(--paper); font-size: var(--fs-small); }
.form__ok a { text-decoration: underline; text-underline-offset: 3px; }
.form__hint a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.form__ok b { font-weight: 500; color: var(--ink); }
.form__ok--err { border-left-color: #b4412f; }
.form__ok:focus { outline: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot .btn:disabled { opacity: .6; cursor: progress; }

@media (max-width: 960px) {
  .ccard, .cmap { grid-column: 1 / -1; }
  .cmap { min-height: 0; height: 420px; margin-top: 12px; }
  .contact__info, .contact__form { grid-column: 1 / -1; }
  .contact__form { margin-top: 56px; }
}
@media (max-width: 640px) {
  .fsheet { padding: 26px 20px 30px; }
  .form__grid { grid-template-columns: 1fr; gap: 26px; }
  .form__foot .btn { width: 100%; }
  .ccard__rows li, .ccard__reg div { grid-template-columns: 1fr; row-gap: 6px; }
  .ccard__links { grid-column: 1; }
  .ccard__reg div { grid-template-columns: 100px minmax(0, 1fr); }
  .ccard__tel { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .cmap { height: 340px; }
}
/* ---------- O PODJETJU ---------- */
.about { padding-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line); align-items: stretch; }
.pmedia.about__media { grid-column: 1 / span 6; width: 100%; height: auto; min-height: 460px; align-self: stretch; margin: 0; }
.about__body { grid-column: 8 / -1; display: flex; flex-direction: column; }
.about__label { margin-bottom: clamp(22px, 2.4vw, 34px); }
.about__body .statement { max-width: 24em; }
.about__text {
  display: grid; gap: 16px;
  margin-top: auto; padding-top: clamp(36px, 4vw, 56px);
  font-size: var(--fs-small); line-height: 1.65; color: var(--ink-2);
}
.about__text p { max-width: 52ch; }
.about__text strong { font-weight: 600; color: var(--ink); }

.profile { margin-top: clamp(72px, 8vw, 120px); }
.profile__label { grid-column: 1 / span 3; padding-top: 18px; align-self: start; }
.profile__list {
  grid-column: 4 / -1; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--ink);
}
.profile__list > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile__list dt { padding-top: .2em; color: var(--muted); }
.profile__list dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
.sheet { grid-column: 9 / -1; align-self: start; border-top: 1px solid var(--ink); }
.sheet dl { margin: 0; }
.sheet__title { display: flex; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sheet div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sheet dt { padding-top: .2em; color: var(--muted); }
.sheet dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
.sheet dd a { border-bottom: 1px solid var(--line-2); transition: border-color .25s; }
.sheet dd a:hover { border-color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.pmedia.principles__media { grid-column: 1 / span 5; width: 100%; height: auto; min-height: 460px; margin: 0; align-self: stretch; background: var(--paper-3); }
.principles__list { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.principle {
  display: flex; flex-direction: column; min-height: 240px;
  padding: clamp(22px, 2.4vw, 34px); background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .3s var(--ease);
}
.principle:hover { border-color: var(--line-2); }
.principle__top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: clamp(44px, 4.6vw, 72px); }
.principle__n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--accent); }
.principle__top svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.principle h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
.principle p { margin-top: 10px; max-width: 40ch; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }

.objects__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.objects__head .lead { margin-top: 22px; max-width: 30ch; }
.objects { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.object {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.15fr) 28px; align-items: center; column-gap: var(--gap);
  padding: clamp(20px, 2.1vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.object__n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--accent); }
.object h3 { font-size: var(--fs-h3); letter-spacing: -.018em; transition: transform .4s var(--ease-out); }
.object p { font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
.object svg { width: 26px; height: 26px; justify-self: end; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s var(--ease); }
.object:hover h3 { transform: translateX(6px); }
.object:hover svg { stroke: var(--accent); }

/* vodstvo: ime v velikem merilu + "glava risbe" s podatki */
.leader { position: relative; overflow: hidden; }
.leader::before { /* tehnična mreža, ki se proti levi izgubi */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 241, 244, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 244, .05) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(90% 90% at 85% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(90% 90% at 85% 30%, #000 0%, transparent 72%);
}
.leader .container { position: relative; }
.leader__aside { grid-column: 1 / span 3; }
.leader__intro { margin-top: 26px; max-width: 26ch; font-size: var(--fs-small); line-height: 1.6; color: var(--on-night-2); }
.leader__main { grid-column: 5 / -1; }
.leader__name {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -.04em;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line-night);
  position: relative;
}
.leader__name::after { /* dovod / povratek */
  content: ""; position: absolute; left: 0; bottom: -2px; width: clamp(120px, 16vw, 220px); height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .5s;
}
.leader__name .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.leader__name .line > span { display: block; }
.leader__name small {
  display: inline-block; margin-left: .6em; vertical-align: top; margin-top: .35em;
  font-family: var(--f-mono); font-size: max(.2em, .75rem); font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-light);
}
.js .leader__name[data-reveal] { opacity: 1; transform: none; }
.js .leader__name[data-reveal] .line > span { transform: translateY(104%); transition: transform 1.2s var(--ease-out); }
.js .leader__name[data-reveal] .line:nth-child(2) > span { transition-delay: .12s; }
.js .leader__name.is-in .line > span { transform: none; }
.leader__name.is-in::after { transform: scaleX(1); }
html:not(.js) .leader__name::after { transform: scaleX(1); }
.leader__block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line-night); }
.leader__block div { min-width: 0; padding: 22px 20px 24px; }
.leader__block div:first-child { padding-left: 0; }
.leader__block div + div { border-left: 1px solid var(--line-night); }
.leader__block dt { color: var(--on-night-2); }
.leader__block dd { margin: 10px 0 0; font-size: 1.0625rem; font-weight: 450; line-height: 1.35; letter-spacing: -.01em; }
.leader__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3.4vw, 48px); }

/* oprema: barvni logotipi na neskončnem traku */
.intro-sec { padding-bottom: calc(var(--sec) * .8); }
.brands { padding-block: calc(var(--sec) * .72); }
.brands + .section { padding-top: calc(var(--sec) * .8); }
.brands__band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands__track { display: flex; width: max-content; background: var(--white); animation: brandsRoll 38s linear infinite; will-change: transform; }
.brands__set { display: flex; flex: none; }
.brands__set li {
  display: grid; place-items: center; flex: none;
  width: clamp(240px, 26vw, 380px); height: clamp(132px, 13vw, 184px);
  border-right: 1px solid var(--line);
}
.brands__set img { width: auto; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.brands__set li:hover img { transform: scale(1.06); }
.brands__dd { height: clamp(40px, 3.6vw, 54px); }
.brands__pa { height: clamp(48px, 4.4vw, 64px); }
.brands__me { height: clamp(56px, 5vw, 76px); }
.brands__ae { height: clamp(50px, 4.4vw, 66px); }
.brands__ve { height: clamp(46px, 4vw, 60px); }
.brands__se { height: clamp(26px, 2.4vw, 36px); }
@keyframes brandsRoll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands__band { -webkit-mask-image: none; mask-image: none; }
  .brands__track { animation: none; width: 100%; }
  .brands__set { flex: 1; } .brands__set li { flex: 1; width: auto; }
  .brands__set[aria-hidden] { display: none; }
  .brands__set li:nth-child(n + 4) { display: none; }
}
a[href^="tel:"] { white-space: nowrap; }



/* načela s fotografijo ekipe */

/* izbrane reference — kazalo (levo) + pregledovalnik (desno)
   Vse plošče so v isti celici mreže, zato je višina stalna; brez JS so ena pod drugo. */
.refx { --refx-dur: 6.5s; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--gap); }
.refx__index { grid-column: 1 / span 4; grid-row: 1; border-top: 1px solid var(--ink); }
.refx__stage { grid-column: 5 / -1; grid-row: 1 / span 2; display: grid; row-gap: clamp(56px, 6vw, 88px); container-type: inline-size; }
.refx__foot { grid-column: 1 / span 4; grid-row: 2; align-self: end; padding: 40px 24px 0 0; }
.refx__foot p { max-width: 36ch; margin-bottom: 18px; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
html:not(.js) .refx__index { display: none; }
html:not(.js) .refx__stage, html:not(.js) .refx__foot { grid-column: 1 / -1; grid-row: auto; }

.refx__tab {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px;
  padding: clamp(15px, 1.35vw, 20px) 0;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; color: var(--muted);
  transition: color .4s var(--ease);
}
.refx__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.refx__n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .06em; white-space: nowrap; }
.refx__n::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 9px; vertical-align: .12em; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease-out); }
.refx__name {
  font-size: clamp(1.125rem, .98rem + .5vw, 1.4375rem); font-weight: 500; line-height: 1.2; letter-spacing: -.022em;
  color: var(--ink); opacity: .42;
  transition: opacity .4s var(--ease), transform .6s var(--ease-out);
}
.refx__type { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.refx__tab:hover .refx__name { opacity: .75; }
.refx__tab.is-active { color: var(--ink); }
.refx__tab.is-active .refx__name { opacity: 1; transform: translateX(6px); }
.refx__tab.is-active .refx__n::after { transform: scale(1); }
.refx__prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.refx__tab.is-active .refx__prog { transform: scaleX(1); transition: transform .6s var(--ease-out); }
.refx.is-auto .refx__tab.is-active .refx__prog { background: var(--accent); animation: barFill var(--refx-dur) linear both; }
.refx.is-paused .refx__tab.is-active .refx__prog { animation-play-state: paused; }

.refx__panel { --ph-h: calc(100cqw / 1.85); display: grid; grid-template-rows: minmax(var(--ph-h), 1fr) auto; min-width: 0; }
.js .refx__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.js .refx__panel.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .7s var(--ease) .05s, visibility 0s; }

.refx__photos { display: grid; gap: clamp(6px, .7vw, 10px); min-height: 0; }
.refx__photos--a { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.refx__photos--a > :first-child { grid-row: span 2; }
.refx__photos--c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.refx__photos--f { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.refx__photos--f > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.refx__photos--f > :nth-child(2) { grid-column: 2; grid-row: 1; }
.refx__photos--f > :nth-child(3) { grid-column: 2; grid-row: 2; }
.refx__photos--f > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
.refx__photos--d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.refx__ph { position: relative; overflow: hidden; min-height: 0; background: var(--paper-3); }
.refx__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 1.4s var(--ease-out); }
.refx__ph::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; pointer-events: none;
  background: rgba(252, 252, 250, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f141a' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m20 20-5.2-5.2M8 10.5h5M10.5 8v5'/%3E%3C/svg%3E") center / 17px no-repeat;
  border-radius: 2px; opacity: 0; transform: translateY(4px);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.refx__ph:hover::after { opacity: 1; transform: none; }
.refx__panel.is-active .refx__ph:hover img { transform: scale(1.03); }
.js .refx__panel:not(.is-active) .refx__ph img { transform: scale(1.05); }

.refx__info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: start; padding-top: clamp(20px, 2vw, 28px); }
.refx__head { padding-top: 12px; }
.js .refx__info { transition: transform .8s var(--ease-out); }
.js .refx__panel:not(.is-active) .refx__info { transform: translateY(10px); }
.ref__n { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.ref__n span { color: var(--ink); }
.ref__n span::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 12px; vertical-align: .12em; background: var(--accent); }
.refx__title { margin-top: clamp(14px, 1.3vw, 20px); font-size: var(--fs-title); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.refx__place { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.refx__works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.refx__works li { position: relative; padding: 11px 0 11px 15px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); }
.refx__works li::before { content: ""; position: absolute; left: 0; top: calc(11px + .52em); width: 5px; height: 5px; background: var(--accent); }

/* ena pokončna fotografija: slika levo čez celo višino, besedilo desno spodaj */
.refx__panel--side { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--gap); }
.refx__panel--side .refx__photos { grid-row: 1 / -1; grid-template-columns: minmax(0, 1fr); min-height: var(--ph-h); }
.refx__panel--side .refx__info { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
.refx__panel--side .refx__works { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 960px) {
  .refx { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .refx__index, .refx__stage, .refx__foot { grid-column: 1; grid-row: auto; }
  .refx__index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border-top: 0; }
  .refx__tab {
    width: auto; display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 14px; overflow: hidden;
    border: 1px solid var(--line-2); border-radius: 2px;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  }
  .refx__type, .refx__n::after { display: none; }
  .refx__name { font-size: .9375rem; opacity: 1; }
  .refx__tab.is-active { background: var(--ink); border-color: var(--ink); color: rgba(252, 252, 250, .6); }
  .refx__tab.is-active .refx__name { color: var(--white); transform: none; }
  .refx__prog { bottom: 0; }
  .refx:not(.is-auto) .refx__tab.is-active .refx__prog { transform: scaleX(0); }
  .refx.is-auto .refx__tab.is-active .refx__prog { background: var(--accent-light); }
  .refx__foot { padding: 40px 0 0; }
}
@media (max-width: 640px) {
  .refx__index { gap: 6px; }
  .refx__tab { padding: 9px 12px; }
  .refx__photos, .refx__photos--a, .refx__photos--c, .refx__photos--d { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(66vw, 1fr) auto; }
  .refx__photos > .refx__ph:first-child { grid-column: 1 / -1; grid-row: 1; }
  .refx__photos > .refx__ph + .refx__ph { grid-row: 2; aspect-ratio: 4 / 3; }
  .refx__photos > .refx__ph:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .refx__photos--f { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(66vw, 1fr) auto; }
  .refx__photos--f > .refx__ph:nth-child(n + 2) { grid-column: auto; grid-row: 2; aspect-ratio: 3 / 4; }
  .refx__photos--f > .refx__ph:first-child { grid-column: 1 / -1; grid-row: 1; }
  .refx__panel, .refx__panel--side { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .refx__panel--side .refx__photos { grid-row: 1; }
  .refx__panel--side .refx__info { grid-column: 1; grid-row: 2; }
  .refx__info { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .refx__works { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ZASEBNOST ---------- */
.prose { grid-column: 4 / span 7; max-width: 68ch; }
.prose h2 { margin-top: 52px; font-size: 1.375rem; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; color: var(--ink-2); }
.prose a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose__date { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted) !important; }
.prose__aside { grid-column: 1 / span 2; }

/* ---------- prikaz ob scrollu ---------- */
/* Umirjeno: kratek premik, hitro. Elementi, ki pridejo v pogled hkrati, dobijo
   iz JS majhen zamik (--d), zato se razdelek prikaže kot celota, ne kos za kosom. */
.js [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(4% 3% 4% 3%);
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"] img { transform: scale(1.06); transition: transform 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
/* "wipe": samo razkritje okvirja, fotografije znotraj ohranijo svoje premike (parallax, menjava) */
.js [data-reveal="wipe"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="none"] { opacity: 1; transform: none; }
/* Storitve: galerije se prikažejo, ko so fotografije naložene */
.js .svc__gal > span { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.js .svc__gal > span:nth-child(2) { transition-delay: .08s; }
.js .svc__gal > span:nth-child(3) { transition-delay: .16s; }
.js .svc__gal.is-in > span { opacity: 1; transform: none; }
.js .svc__gal figcaption { opacity: 0; transition: opacity .6s var(--ease) .3s; }
.js .svc__gal.is-in figcaption { opacity: 1; }

/* =========================================================
   ODZIVNOST
   ========================================================= */
@media (max-width: 1180px) {
  .hero__scope { display: none; }
}

@media (max-width: 960px) {
  .tblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tblock__cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .tblock__cell:nth-child(n + 3) { border-top: 1px solid var(--line-night); }
  :root { --nav-h: 82px; --nav-top: 118px; --logo-h: 62px; --logo-top: 92px; }
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--bar) + clamp(20px, 5vh, 48px)) var(--pad) clamp(28px, 5vh, 44px);
    background: var(--night); color: var(--on-night);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; counter-reset: m; }
  .nav__links li { overflow: hidden; border-bottom: 1px solid var(--line-night); }
  .nav__links a {
    counter-increment: m;
    display: flex; align-items: baseline; gap: 18px;
    padding: 16px 0;
    font-size: clamp(1.75rem, 7.4vw, 2.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.15;
    opacity: 1; transform: translateY(105%);
    transition: transform .8s var(--ease-out);
  }
  .nav__links a::before {
    content: counter(m, decimal-leading-zero);
    font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; color: var(--on-night-2);
    position: relative; top: -.6em;
  }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent-light); }
  .nav.is-open .nav__links a { transform: none; }
  .nav.is-open .nav__links li:nth-child(2) a { transition-delay: .05s; }
  .nav.is-open .nav__links li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open .nav__links li:nth-child(4) a { transition-delay: .15s; }
  .nav.is-open .nav__links li:nth-child(5) a { transition-delay: .2s; }
  .nav__menu-foot {
    display: grid; gap: 10px; margin-top: 40px;
    font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .04em; color: var(--on-night-2);
    opacity: 0; transition: opacity .6s var(--ease) .3s;
  }
  .nav__menu-foot a { color: var(--on-night); }
  .nav.is-open .nav__menu-foot { opacity: 1; }

  .shead__title { grid-column: 1 / -1; }
  .shead__aside { grid-column: 1 / -1; }
  .shead--controls .shead__aside { justify-content: flex-start; }

  .pmedia.intro__media { grid-column: 1 / -1; order: 2; aspect-ratio: 4 / 5; min-height: 0; margin-top: 48px; }
  .intro__body { grid-column: 1 / -1; }
  .intro__body .stats { margin-top: 0; padding-top: 40px; }
  .intro__media .pmedia__cap, .principles__media .pmedia__cap { left: 10px; bottom: 10px; padding: 7px 10px; font-size: .625rem; white-space: normal; max-width: calc(100% - 20px); line-height: 1.5; }
  .intro__media .pmedia__cap { top: 10px; bottom: auto; }


  .cta__lead, .cta__actions { grid-column: 1 / -1; }
  .cta__actions { margin-top: 48px; max-width: 560px; }

  .phero__title, .phero--short .phero__title { grid-column: 1 / -1; }
  .phero__lead { grid-column: 1 / -1; margin-top: 24px; }

  .svc__media, .svc--flip .svc__media { grid-column: 1 / -1; grid-row: auto; }
  .svc__text, .svc--flip .svc__text { grid-column: 1 / -1; grid-row: auto; margin-top: 40px; }

  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  .about__body, .sheet { grid-column: 1 / -1; }
  .pmedia.about__media { grid-column: 1 / -1; order: 2; aspect-ratio: 3 / 2; min-height: 0; margin-top: 40px; }
  .about__media .pmedia__cap { top: 0; bottom: auto; padding: 16px 20px 36px; background: linear-gradient(180deg, rgba(7, 11, 16, .55), rgba(7, 11, 16, 0)); }
  .about__text { margin-top: 0; }
  .profile__label, .profile__list { grid-column: 1 / -1; }
  .profile__label { padding: 0 0 18px; }
  .sheet { margin-top: 48px; }
  .pmedia.principles__media { grid-column: 1 / -1; aspect-ratio: 4 / 3; min-height: 0; }
  .principles__list { grid-column: 1 / -1; }
  .objects__head { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .objects { grid-column: 1 / -1; }
  .leader__aside, .leader__main { grid-column: 1 / -1; }
  .leader__main { margin-top: 48px; }
  .leader__block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader__block div:nth-child(3) { padding-left: 0; border-left: 0; }
  .leader__block div:nth-child(n + 3) { border-top: 1px solid var(--line-night); }
  .prose, .prose__aside { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .proc__track { top: 11px; left: 4px; right: auto; width: 1px; height: auto; bottom: 0; }
  .proc__track::after { display: none; }
  .proc__fill { width: 2px; height: 0; margin: 0 0 0 -.5px; }
  .proc__fill::after { right: -3px; top: auto; bottom: -10px; width: 8px; height: 28px; }
  .proc__steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .proc__step { grid-row: auto; display: block; padding: 0 0 36px 36px; }
  .proc__step:last-child { padding-bottom: 0; }
  .proc__top { position: static; height: auto; margin-bottom: 12px; }
  .proc__node { top: 11px; }
  .proc__step p { max-width: 46ch; }
  .proc__step .proc__tag { padding-top: 14px; }

  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--4 .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats--4 .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; --nav-top: 104px; --logo-h: 54px; --logo-top: 80px; }
  body { font-size: 1rem; }
  .nav__tel { width: 42px; padding: 0; justify-content: center; }
  .nav__tel span { display: none; }
  .nav__tel svg { width: 16px; height: 16px; }

  .hero__pin { min-height: 600px; }
  .hero__label { font-size: .8125rem; letter-spacing: .06em; padding: .7em .9em .7em .8em; }
  .hero__since::before { margin: 0 .75em; }
  .hero__title { max-width: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__cap { display: none; }
  .hero__foot-in { min-height: 64px; }

  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stats--4 { grid-template-columns: 1fr 1fr; }
  .stats--4 .stat { padding: 24px 0 0; }
  .stats--4 .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); border-top: 0; }
  .stats--4 .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .stats--4 .stat:nth-child(4) { border-top: 1px solid var(--line); }



  .cta__tel i { width: 48px; height: 48px; }
  .cta__meta i { display: block; height: 0; overflow: hidden; }

  .tblock { grid-template-columns: minmax(0, 1fr); }
  .tblock__cell, .tblock__cell:nth-child(3) { padding: 24px 0 26px; }
  .tblock__cell + .tblock__cell { border-left: 0; border-top: 1px solid var(--line-night); }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .footer__call { justify-content: start; }
  .footer__partner { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-night); width: 100%; grid-template-columns: auto 1fr; }

  .subnav__in { display: flex; overflow-x: auto; scrollbar-width: none; gap: 26px; }
  .subnav__in::-webkit-scrollbar { display: none; }
  .subnav a, .subnav a + a { padding: 16px 0; white-space: nowrap; flex: none; }
  .subnav a + a::after { left: 0; }

  .ggrid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 64px minmax(0, 1fr) auto 72px; }
  .lightbox__img { grid-column: 1 / -1; grid-row: 2; }
  .lightbox__close { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 12px; }
  .lightbox__cap { grid-column: 1 / -1; grid-row: 3; padding: 14px 20px 0; }
  .lightbox__nav { grid-row: 4; }
  .lightbox__nav--prev { grid-column: 1; }
  .lightbox__nav--next { grid-column: 2; }


  .object { grid-template-columns: 36px minmax(0, 1fr) 24px; row-gap: 6px; align-items: start; }
  .object h3 { grid-column: 2; }
  .object p { grid-column: 2; grid-row: 2; }
  .object svg { grid-column: 3; grid-row: 1; width: 22px; height: 22px; }
  .object__n { padding-top: .3em; }
  .principles__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .principle { min-height: 0; }
  .principle__top { padding-bottom: 22px; }
  .sheet div { grid-template-columns: 96px minmax(0, 1fr); }
  .profile__list > div { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk--a { grid-row: auto; aspect-ratio: 4 / 3; }
  .wk--h { aspect-ratio: 3 / 2; }
  .wk__body { padding: 14px; gap: 6px; }
  .wk__title { font-size: .9375rem; }
  .wk__meta span + span { display: none; }
  .wk--a .wk__meta span + span, .wk--h .wk__meta span + span { display: inline; }
  .wk:not(.wk--a):not(.wk--h) .objtag { display: none; }
}

@media (max-width: 760px) {
  .svc__gal figcaption { display: none; }
  .svc__main::after { display: none; }
  .chips--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose__aside { margin-bottom: 36px; }
  .subnav__in { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
  .profile__list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero__slide.is-active { transform: none; }
}

/* povečava fotografij (izbrane izvedbe, reference) */
[data-zoom] .wk, img[data-zoom-img] { cursor: zoom-in; }
img[data-zoom-img]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* navigacija na naslovni sliki (vrh strani): večja, polna svetlost, jasen kontrast */
@media (min-width: 961px) {
  .nav:not(.is-scrolled) .nav__links { gap: clamp(24px, 3vw, 46px); }
  .nav:not(.is-scrolled) .nav__links a { font-size: 1.0625rem; font-weight: 550; opacity: .92; }
  .nav:not(.is-scrolled) .nav__links a:hover, .nav:not(.is-scrolled) .nav__links a[aria-current="page"] { opacity: 1; }
  .nav.is-dark:not(.is-scrolled) .nav__links a { color: #fff; text-shadow: 0 1px 14px rgba(5, 9, 14, .6); }
  .nav:not(.is-scrolled) .nav__tel { height: 46px; font-size: .95rem; font-weight: 550; }
  .nav.is-dark:not(.is-scrolled) .nav__tel {
    background: rgba(11, 17, 24, .5); border-color: rgba(238, 241, 244, .5);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .nav.is-dark:not(.is-scrolled) .nav__tel:hover { background: var(--on-night); border-color: var(--on-night); }
}
