/* =========================================================
   DAAB Elektro, Bojan Bertoncelj s.p.
   Smer: "Luč v grafitu". Temna grafitna podlaga iz loga,
   fotografije svetijo kot prižgani prostori, rumena strela
   iz loga je naglas, ki se pojavi redko.
   ========================================================= */

:root {
  --graphite: #1c1e21;      /* podlaga, grafit iz loga, potemnjen */
  --graphite-2: #24272b;    /* paneli */
  --graphite-3: #2e3236;    /* dvignjeni paneli */
  --line: #3b4046;          /* tanke črte */
  --line-strong: #6b7178;   /* robovi interaktivnih polj (3:1) */
  --text: #edeae4;          /* topla bela, kot LED 3000K */
  --muted: #a9a49b;
  --volt: #f4b41a;          /* rumena strela iz loga */
  --spark: #ee8b1e;         /* oranžna iz loga, zelo redko */
  --on-volt: #1c1e21;

  --font: "Archivo", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  --wrap: min(1240px, 100% - 48px);
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--volt); color: var(--on-volt); }

:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--volt); color: var(--on-volt);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.wrap { width: var(--wrap); margin-inline: auto; }

main { display: block; }
main:focus { outline: none; }

/* ---------- Okolje: en fiksni sloj za vsem ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 0%, rgba(244, 180, 26, .07), transparent 70%),
    radial-gradient(50vw 60vh at 0% 100%, rgba(238, 139, 30, .05), transparent 70%),
    var(--graphite);
}
.ambient::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(40vw 40vw at 50% 50%, rgba(237, 234, 228, .035), transparent 70%);
  animation: drift 70s linear infinite;
  animation-delay: -20s;
}
@keyframes drift {
  0%   { transform: translate3d(-15%, -10%, 0); }
  50%  { transform: translate3d(15%, 10%, 0); }
  100% { transform: translate3d(-15%, -10%, 0); }
}

/* ---------- Žica: podpisni element, levi rob strani ---------- */
.wire {
  position: fixed; left: max(14px, calc((100vw - 1240px) / 2 - 44px)); top: 0; bottom: 0;
  width: 14px; z-index: 5; pointer-events: none;
}
.wire::before { /* tir žice */
  content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1.5px; background: var(--line);
}
.wire-live {
  position: absolute; left: 5.5px; top: 0; width: 2.5px; height: 100%;
  background: linear-gradient(180deg, rgba(244,180,26,.15), var(--volt));
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.wire-spark {
  position: absolute; left: 1px; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--volt); transform: translateY(calc(var(--p, 0) * (100vh - 12px)));
  box-shadow: 0 0 0 4px rgba(244,180,26,.18), 0 0 18px 4px rgba(244,180,26,.55);
}
.wire-node {
  position: absolute; left: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--graphite); border: 1.5px solid var(--line-strong);
  transition: background-color .4s, border-color .4s;
}
.wire-node.lit { background: var(--volt); border-color: var(--volt); }
@media (max-width: 1100px) { .wire { display: none; } }

/* ---------- Glava ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(28, 30, 33, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: auto; }
.brand-name {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.1;
  font-variation-settings: "wdth" 118;
}
.brand-sub { font-size: .78rem; color: var(--muted); line-height: 1.2; }
/* ime in s.p. tesneje skupaj, sredinsko ob logotipu */
.brand > span:last-child { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1.1; }
.brand > span:last-child br { display: none; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 10px 14px; font-weight: 500; font-size: .98rem;
  color: var(--muted); transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--volt); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative;
  transition: transform .35s var(--ease-out), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-volt { background: var(--volt); color: var(--on-volt); }
.btn-volt:hover { transform: translateY(-2px); background: #ffc433; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(28, 30, 33, .35); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Tipografija ---------- */
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.display {
  font-variation-settings: "wdth" 125;
  font-size: clamp(2.8rem, 8.2vw, 7.4rem);
  line-height: .95; letter-spacing: -.02em;
}
.h2 { font-variation-settings: "wdth" 118; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.h3 { font-variation-settings: "wdth" 112; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text); max-width: 46ch; margin: 0; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }
.prose p { max-width: 62ch; }

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-tight { padding-block: clamp(64px, 8vw, 110px); }

/* ---------- Prehod med stranmi: 0,7 s pojemanje ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999;
  background: var(--graphite); pointer-events: none;
  animation: page-in .7s var(--ease-out) forwards;
}
body.leaving::before { animation: page-out .35s ease-in forwards; }
@keyframes page-in { from { opacity: 1; } to { opacity: 0; } }
@keyframes page-out { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Razkritja ob drsenju navzdol ---------- */
.reveal .r {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in .r { opacity: 1; transform: none; }
.reveal.in .r:nth-child(2) { transition-delay: .09s; }
.reveal.in .r:nth-child(3) { transition-delay: .18s; }
.reveal.in .r:nth-child(4) { transition-delay: .27s; }
.reveal.in .r:nth-child(5) { transition-delay: .36s; }
.reveal.done .r, .reveal.done .r:nth-child(n) { transition-delay: 0s; }

/* =========================================================
   DOMOV
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  isolation: isolate; overflow: hidden;
}
/* Ozadje strani Domov: fiksno, video se premika z drsenjem */
.hero-media { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform: scale(1.06);
  filter: brightness(.16) saturate(.6);
}
.hero-media ~ .ambient { background-color: transparent; } /* na Domov je ozadje video */
.hero-media video { opacity: 0; transition: opacity .8s var(--ease-out); }
.hero-media video.ready { opacity: 1; }
.hero-media::after { /* zatemnitev, ko se spustimo pod glavno sliko */
  content: ""; position: absolute; inset: 0; background: var(--graphite);
  opacity: var(--dim, 0);
}
/* Prižig luči ob nalaganju */
.lights-on .hero-media img, .lights-on .hero-media video {
  animation: switch-on 2.4s var(--ease-out) .35s forwards, settle 14s var(--ease-out) .35s forwards;
}
@keyframes switch-on {
  0%   { filter: brightness(.16) saturate(.6); }
  8%   { filter: brightness(.7) saturate(.9); }
  12%  { filter: brightness(.22) saturate(.6); }
  20%  { filter: brightness(.85) saturate(1); }
  26%  { filter: brightness(.5) saturate(.9); }
  100% { filter: brightness(1) saturate(1.02); }
}
@keyframes settle { to { transform: scale(1); } }

.hero::after { /* scrim za berljivost */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,30,33,.55) 0%, rgba(28,30,33,0) 22%),
    linear-gradient(0deg, rgba(28,30,33,.96) 0%, rgba(28,30,33,.72) 30%, rgba(28,30,33,0) 62%),
    linear-gradient(90deg, rgba(28,30,33,.55) 0%, rgba(28,30,33,0) 55%);
}
.hero-inner { padding-bottom: clamp(48px, 9vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero-kicker { font-weight: 500; color: var(--muted); margin: 0 0 18px; font-size: 1rem; }
.hero h1 { margin-bottom: 26px; text-wrap: balance; font-size: clamp(1.6rem, 8.2vw, 6.6rem); }
@media (max-width: 600px) { .hero h1 { font-variation-settings: "wdth" 108; font-size: 8.6vw; } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); }
.lights-on .hero h1 .line > span { animation: rise 1.1s var(--ease-out) forwards; }
.lights-on .hero h1 .line:nth-child(1) > span { animation-delay: 1.0s; }
.lights-on .hero h1 .line:nth-child(2) > span { animation-delay: 1.14s; }
@keyframes rise { to { transform: none; } }

.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.hero-foot .lede, .hero-actions, .hero-kicker { opacity: 0; transform: translateY(14px); }
.lights-on .hero-foot .lede, .lights-on .hero-actions, .lights-on .hero-kicker { animation: fade-up 1s var(--ease-out) forwards; }
.lights-on .hero-kicker { animation-delay: .9s; }
.lights-on .hero-foot .lede { animation-delay: 1.35s; }
.lights-on .hero-actions { animation-delay: 1.5s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute; right: max(24px, calc((100vw - 1240px) / 2)); bottom: 32px;
  width: 1px; height: 64px; background: var(--line); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--volt); animation: cue 2.8s var(--ease-inout) infinite; animation-delay: -1s;
}
@keyframes cue { to { top: 100%; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* Uvod: izkušnje v stavkih */
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-statement { font-variation-settings: "wdth" 118; font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.08; }
.intro-statement .spark { color: var(--spark); }
.intro-body p {font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.65; max-width: 54ch; color: var(--text); }
.intro-body p + p { color: var(--muted); }
.firms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.firms li {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-variation-settings: "wdth" 112; font-size: .95rem;
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Seznam storitev s pojavno sliko */
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 24px;
  padding: clamp(20px, 2.6vw, 30px) 0; position: relative;
}
.svc-list .svc-name {
  font-weight: 700; font-variation-settings: "wdth" 120;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1.05;
  transition: transform .5s var(--ease-out), color .3s var(--ease-out);
}
.svc-list .svc-desc { grid-column: 1 / -1; color: var(--muted); max-width: 60ch; font-size: 1rem; }
.svc-list .svc-go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .3s var(--ease-out), border-color .3s, transform .4s var(--ease-out);
}
.svc-list .svc-go svg { width: 18px; height: 18px; }
.svc-list a:hover .svc-name { transform: translateX(14px); }
.svc-list a:hover .svc-go { background: var(--volt); border-color: var(--volt); color: var(--on-volt); transform: rotate(-45deg); }

/* Slika ob kazalcu: znotraj vrstice (med črtama), prosojna in pod besedilom */
.svc-list a { overflow: hidden; isolation: isolate; }
.svc-list a > :not(.svc-peek) { position: relative; z-index: 1; }
.svc-peek {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: clamp(260px, 32vw, 440px); aspect-ratio: 4 / 3;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.92);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.svc-peek [hidden] { display: none !important; }
.svc-peek.show { opacity: .32; transform: translate3d(-50%, -50%, 0) scale(1); }
.svc-peek img { width: 100%; height: 100%; object-fit: cover; }
.svc-peek .peek-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
@media (hover: none) { .svc-peek { display: none; } }

/* Naše reference: galerija s tremi mesti (levo, sredina, desno) */
.refs { text-align: center; }
.refs-stage {
  position: relative; margin-top: clamp(28px, 4vw, 48px);
  container-type: inline-size; aspect-ratio: 100 / 38;
}
.ref-item {
  position: absolute; left: 26cqw; top: 0; width: 48cqw; height: 36cqw;
  padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer;
  transition: left .7s var(--ease-out), top .7s var(--ease-out), width .7s var(--ease-out), height .7s var(--ease-out), opacity .5s var(--ease-out);
}
.ref-img {
  display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--graphite-2); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out), border-radius .7s var(--ease-out);
}
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-cap {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  white-space: nowrap; font-size: .92rem; opacity: 0; transition: opacity .4s var(--ease-out), color .3s;
}
/* mesta */
.ref-item.is-center { z-index: 2; cursor: default; }
.ref-item.is-center .ref-img { box-shadow: 0 40px 80px -36px rgba(0,0,0,.85); }
.ref-item.is-left, .ref-item.is-right { top: 11cqw; width: 14cqw; height: 14cqw; z-index: 1; }
.ref-item.is-left { left: 7cqw; }
.ref-item.is-right { left: 79cqw; }
.ref-item.is-left .ref-img, .ref-item.is-right .ref-img { border-radius: 10px; }
.ref-item.is-left .ref-cap, .ref-item.is-right .ref-cap { opacity: 1; transition-delay: .35s; }
.ref-item.is-off-left, .ref-item.is-off-right { top: 14cqw; width: 8cqw; height: 8cqw; opacity: 0; pointer-events: none; }
.ref-item.is-off-left { left: 0; }
.ref-item.is-off-right { left: 92cqw; }
/* lebdenje: rahla povečava */
.ref-item.is-center:hover .ref-img { transform: scale(1.02); }
.ref-item.is-left:hover .ref-img, .ref-item.is-right:hover .ref-img,
.ref-item.is-left:focus-visible .ref-img, .ref-item.is-right:focus-visible .ref-img { transform: scale(1.08); border-color: var(--volt); }
.ref-item.is-left:hover .ref-cap, .ref-item.is-right:hover .ref-cap { color: var(--text); }
.ref-item:focus-visible { outline: none; }
.ref-copy { margin: 22px auto 0; max-width: 60ch; min-height: 3.4em; }
.ref-copy .lede { margin: 0 auto; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.ref-copy.out .lede { opacity: 0; transform: translateY(10px); }
@media (max-width: 720px) {
  .refs-stage { aspect-ratio: 100 / 112; }
  .ref-item { left: 0; width: 100cqw; height: 75cqw; }
  .ref-item.is-left, .ref-item.is-right { top: 80cqw; width: 22cqw; height: 22cqw; }
  .ref-item.is-left { left: 0; }
  .ref-item.is-right { left: 78cqw; }
  .ref-item.is-off-left, .ref-item.is-off-right { top: 84cqw; width: 14cqw; height: 14cqw; }
  .ref-item.is-off-left { left: -8cqw; }
  .ref-item.is-off-right { left: 94cqw; }
  .ref-item.is-left .ref-cap { left: 0; transform: none; }
  .ref-item.is-right .ref-cap { left: auto; right: 0; transform: none; }
}

/* Mnenja strank */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--radius);
  background: rgba(36, 39, 43, .88); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out);
}
a.review { color: inherit; text-decoration: none; }
.review:hover, .review:focus-visible { transform: translateY(-4px); border-color: var(--line-strong); }
.review-link {
  margin-top: auto; padding-top: 14px; font-size: .92rem; font-weight: 600; color: var(--volt);
  text-decoration: underline; text-decoration-color: rgba(244, 180, 26, .35); text-underline-offset: 4px;
  transition: text-decoration-color .3s;
}
.review:hover .review-link { text-decoration-color: var(--volt); }
.review p { margin: 0; }
.review-src { font-weight: 700; font-variation-settings: "wdth" 112; color: var(--text); font-size: 1.05rem; }
.review-score { font-weight: 800; font-variation-settings: "wdth" 125; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; margin-top: 8px !important; }
.stars { color: var(--volt); letter-spacing: .12em; font-size: 1.15rem; }
.review-title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-variation-settings: "wdth" 112; line-height: 1.2; margin: 8px 0 0; text-wrap: balance; }
.review-meta { color: var(--muted); font-size: .95rem; }
.review-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.review-tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(244, 180, 26, .5); color: var(--text); font-size: .92rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* Projekti: asimetrična mreža */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--graphite-2); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.proj:hover img { transform: scale(1.04); }
.proj figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(0deg, rgba(28,30,33,.88), rgba(28,30,33,0));
  font-weight: 600; font-size: .98rem;
}
.proj figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.proj.a { grid-column: span 7; aspect-ratio: 16 / 10; }
.proj.b { grid-column: span 5; }
.proj.c { grid-column: span 5; aspect-ratio: 4 / 3; }
.proj.d { grid-column: span 7; }
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .proj.a, .proj.b, .proj.c, .proj.d { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Zaključni poziv */
.cta-band { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,30,33,.95) 0%, rgba(28,30,33,.8) 45%, rgba(28,30,33,.35) 100%); }
.cta-inner { padding: clamp(40px, 7vw, 96px); display: grid; gap: 22px; max-width: 760px; }
.cta-inner .h2 { text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* =========================================================
   PODSTRANI: skupna glava
   ========================================================= */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { margin-bottom: 20px; }
.page-head .display { font-size: clamp(2.6rem, 7vw, 6rem); }

/* =========================================================
   STORITVE: ruleta
   ========================================================= */
.wheel-section { padding-top: 0; padding-bottom: clamp(56px, 8vw, 100px); }
.wheel {
  position: relative; height: clamp(380px, 52vw, 560px);
  perspective: 1100px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.wheel.dragging { cursor: grabbing; }
.wheel-stage { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.wheel-card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(220px, 26vw, 320px); aspect-ratio: 3 / 4;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; backface-visibility: hidden;
  will-change: transform, opacity;
}
.wheel-card .face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  background: var(--graphite-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75);
  transition: border-color .4s var(--ease-out);
}
.wheel-card .face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wheel-card .face::after { /* senca na stranskih karticah */
  content: ""; position: absolute; inset: 0; background: var(--graphite);
  opacity: var(--shade, 0); transition: opacity .2s linear;
}
.wheel-card.active .face { border-color: rgba(244, 180, 26, .7); }
.wheel-card .tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(28,30,33,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600;
}
.wheel-card .empty {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); font-size: .92rem; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(237,234,228,.03) 0 12px, transparent 12px 24px),
    var(--graphite-2);
}
.wheel-card .empty svg { width: 56px; height: 56px; color: var(--volt); opacity: .8; }

.wheel-info { text-align: center; min-height: 150px; margin-top: 8px; }
.wheel-info .h3 { margin-bottom: 10px; }
.wheel-info p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.wheel-info .swap { transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
/* besedilo se premakne v isto smer kot kartice */
.wheel-info .swap.to-left { opacity: 0; transform: translateX(-60px); }
.wheel-info .swap.to-right { opacity: 0; transform: translateX(60px); }
.wheel-info .swap.no-anim { transition: none; }

.wheel-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 6px; }
.round-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer;
  transition: background-color .3s var(--ease-out), border-color .3s, color .3s, transform .3s var(--ease-out);
}
.round-btn:hover { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.round-btn:active { transform: scale(.94); }
.round-btn svg { width: 20px; height: 20px; }
.wheel-dots { display: flex; gap: 8px; }
.wheel-dots button {
  width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center;
}
.wheel-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong);
  transition: transform .3s var(--ease-out), background-color .3s;
}
.wheel-dots button[aria-current="true"]::before { background: var(--volt); transform: scale(1.5); }
.wheel-hint { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* Potek dela */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px 24px 8px 0; border-top: 1px solid var(--line); position: relative; }
.steps li::before {
  content: counter(s); display: block; font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: 2.6rem; line-height: 1; color: var(--volt); margin-bottom: 18px;
}
.steps li::after { /* vozlišče na žici */
  content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--graphite); border: 2px solid var(--volt);
}
.steps h3 { font-size: 1.2rem; font-variation-settings: "wdth" 112; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .98rem; max-width: 28ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   Pojavna okna (modal) in oblaček za kontakt
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(16, 17, 19, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(880px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: 20px;
  display: grid; grid-template-columns: 1fr 1.1fr;
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-media { min-height: 280px; background: var(--graphite-3); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media .empty { height: 100%; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-body .h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.modal-body p { color: var(--muted); }
.modal-body ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.modal-body li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
.modal-body li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); transform: translateY(-1px) rotate(45deg); }
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(28,30,33,.8); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.modal-close:hover { transform: rotate(90deg); border-color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; max-height: 240px; }
}
body.no-scroll { overflow: hidden; }

/* Oblaček: hiter kontakt */
.bubble { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.bubble-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--volt); color: var(--on-volt); display: grid; place-items: center; position: relative;
  box-shadow: 0 16px 34px -12px rgba(244, 180, 26, .55);
  transition: transform .4s var(--ease-out);
}
.bubble-btn:hover { transform: scale(1.06); }
.bubble-btn svg { width: 24px; height: 24px; transition: transform .45s var(--ease-out), opacity .3s; position: absolute; }
.bubble-btn .i-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.bubble.open .bubble-btn .i-phone { opacity: 0; transform: rotate(90deg) scale(.6); }
.bubble.open .bubble-btn .i-close { opacity: 1; transform: none; }
.bubble-btn::after { /* utrip, ki pritegne pogled */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--volt);
  animation: ping 4.5s var(--ease-out) infinite; animation-delay: -1.5s; opacity: 0;
}
.bubble.open .bubble-btn::after { animation: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 40%, 100% { transform: scale(1.7); opacity: 0; } }

.bubble-card {
  position: absolute; right: 0; bottom: 76px; width: min(320px, calc(100vw - 40px));
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transform-origin: 100% 100%; transform: scale(.6) translateY(10px); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out), visibility 0s linear .45s;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7);
}
.bubble.open .bubble-card { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-out), opacity .3s var(--ease-out), visibility 0s; }
.bubble-card .bc-title { font-weight: 700; font-variation-settings: "wdth" 112; margin: 0 4px 10px; }
.bubble-card a {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; transition: background-color .25s;
}
.bubble-card a:hover { background: var(--graphite-3); }
.bubble-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--graphite-3); display: grid; place-items: center; color: var(--volt); }
.bubble-card .ic svg { width: 18px; height: 18px; }
.bubble-card small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.bubble-card strong { font-weight: 600; font-size: .98rem; line-height: 1.3; word-break: break-word; }
.bubble .bubble-card a > span { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.bubble.open .bubble-card a > span { opacity: 1; transform: none; }
.bubble.open .bubble-card a:nth-of-type(2) > span { transition-delay: .06s; }
.bubble.open .bubble-card a:nth-of-type(3) > span { transition-delay: .12s; }

/* =========================================================
   O NAS
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(28,30,33,.8); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--volt); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; z-index: 1; padding: 0 0 44px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--graphite); border: 2px solid var(--line-strong); transition: border-color .4s, background-color .4s;
}
.timeline li.lit::before { border-color: var(--volt); background: var(--volt); }
.timeline .when { font-weight: 800; font-variation-settings: "wdth" 120; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; display: block; margin-bottom: 8px; }
.timeline p { color: var(--muted); max-width: 52ch; margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line); }
.value svg { width: 32px; height: 32px; color: var(--volt); margin-bottom: 18px; }
.value h3 { font-size: 1.25rem; font-variation-settings: "wdth" 112; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.area { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.area-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--graphite-2); }
.area-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.95); }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-table {
  width: 100%; border-collapse: collapse; border-top: 1px solid var(--line);
}
.contact-table th, .contact-table td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.contact-table th { width: 34%; color: var(--muted); font-weight: 500; padding-right: 20px; }
.contact-table td { font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.contact-table a { border-bottom: 1px solid var(--line-strong); transition: border-color .25s, color .25s; }
.contact-table a:hover { border-color: var(--volt); color: var(--volt); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid.contact-solo { grid-template-columns: minmax(0, 760px); justify-content: start; }

.form { display: grid; gap: 18px; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.6vw, 40px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--graphite); border: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23edeae4' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a867f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(244, 180, 26, .22); }
.field .err { display: none; color: #ffb4a0; font-size: .88rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a6b; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .88rem; margin: 0; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { display: none; border-radius: 14px; padding: 16px 18px; font-weight: 500; }
.form-status.ok { display: block; background: rgba(244, 180, 26, .12); border: 1px solid rgba(244, 180, 26, .45); }
.form-status.fail { display: block; background: rgba(255, 138, 107, .1); border: 1px solid rgba(255, 138, 107, .45); }

/* =========================================================
   Noga
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 1rem; font-variation-settings: "wdth" 112; margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { transition: color .25s; }
.footer-grid a:hover { color: var(--volt); }
.footer-brand img { width: 52px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Mobilni meni
   ========================================================= */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    background: rgba(28, 30, 33, .97); padding: 0 24px;
    clip-path: circle(0 at calc(100% - 46px) 38px);
    transition: clip-path .6s var(--ease-inout), visibility 0s linear .6s; visibility: hidden;
  }
  .menu-open .nav-links { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; transition: clip-path .6s var(--ease-inout), visibility 0s; }
  .nav-links a { font-size: 2rem; font-weight: 700; font-variation-settings: "wdth" 120; color: var(--text); padding: 10px 14px; }
  .nav-links a::after { bottom: 6px; }
  .menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =========================================================
   Zmanjšano gibanje: vse v končnem stanju
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .hero-media img { filter: none; transform: none; }
  .hero-media video { display: none; }
  .hero h1 .line > span, .hero-foot .lede, .hero-actions, .hero-kicker { transform: none; opacity: 1; }
  .reveal .r { opacity: 1; transform: none; }
  .ref-item .ref-img { transform: none !important; }
  body::before { display: none; }
  .timeline::after { transform: scaleY(1); }
}
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
