/* =========================================================
   Gradbeništvo s.p. – glavni slog
   ========================================================= */

:root {
  --red: #D41F26;
  --red-dark: #B3141A;
  --red-text: #C8191F;     /* rdeča za besedilo na svetli podlagi */
  --red-light: #FF5A5F;    /* rdeča za besedilo na temni podlagi */
  --black: #161616;
  --black-2: #232322;
  --black-3: #0E0E0E;
  --grey-dark: #4A4A48;
  --grey: #5A5A58;
  --grey-mid: #A6A6A3;
  --grey-light: #E4E4E2;
  --bg: #F5F5F4;
  --white: #FFFFFF;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
main { overflow-x: clip; }

img { max-width: 100%; display: block; }

a { color: var(--red-text); }
a:hover { color: var(--red-dark); }

::selection { background: var(--red); color: var(--white); }

:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }

.container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.red { color: var(--red); }

/* =========================================================
   SLIKE – katerakoli velikost se lepo prilega
   ========================================================= */
.photo {
  position: relative;
  overflow: hidden;
  background: #2A2A29;
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* sliko obreže, nikoli raztegne */
  object-position: center;
}
/* Če slike še ni, se pokaže siv okvir z imenom datoteke */
.photo-missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--grey-mid);
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 36px),
    #2A2A29;
}
.photo-missing strong { color: #D6D6D3; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Rdeča zavesa, ki odkrije sliko */
.wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--red);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1s var(--ease-io) var(--d, 0s);
}
.wipe > img { transform: scale(1.25); transition: transform 1.6s var(--ease-out) var(--d, 0s); }
.wipe.is-visible::after { transform: scaleX(0); }
.wipe.is-visible > img { transform: scale(1); }

/* =========================================================
   NALAGALNI ZASLON
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.loader__panel {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: var(--black);
  transition: transform 0.9s var(--ease-io);
}
.loader__panel--top { top: 0; border-bottom: 3px solid var(--red); }
.loader__panel--bottom { bottom: 0; border-top: 3px solid var(--red); }
.loader__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.35s ease;
}
.loader__logo {
  width: min(280px, 60vw);
  animation: loaderPop 0.9s var(--ease-out) both;
}
.loader__bar { width: min(220px, 50vw); height: 4px; background: #333331; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--red); }
.loader__count {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  color: var(--white);
}
.loader.is-hidden .loader__center { opacity: 0; }
.loader.is-hidden .loader__panel--top { transform: translateY(-101%); }
.loader.is-hidden .loader__panel--bottom { transform: translateY(101%); }
.loader.is-gone { display: none; }

@keyframes loaderPop {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   KAZALEC MIŠKE
   ========================================================= */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 900;
    pointer-events: none;
  }
  .cursor {
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid var(--red);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out),
                background 0.3s ease, transform 0.15s linear, opacity 0.3s ease;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--red);
  }
  .cursor.is-hover {
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    background: rgba(212, 31, 38, 0.25);
  }
  .cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
}

/* =========================================================
   NAPREDEK DRSENJA
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
}

/* =========================================================
   GUMBI
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-101%) skewX(-20deg);
  transform-origin: left;
  width: 130%;
  left: -15%;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateX(0) skewX(-20deg); }
/* bleščica, ki šine čez gumb */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  left: -60px;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 70% { left: -60px; }
  85%, 100% { left: 110%; }
}

.btn--red { background: var(--red); color: var(--white); }
.btn--red::before { background: var(--black); }
.btn--red:hover { color: var(--white); box-shadow: 0 12px 28px -10px rgba(212, 31, 38, 0.9); }
.section--dark .btn--red::before,
.header .btn--red::before,
.hero .btn--red::before { background: var(--red-dark); }

.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline::before { background: var(--white); }
.btn--outline::after { display: none; }
.btn--outline:hover { color: var(--black); }

.btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }

.magnetic { transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease-out); }

/* =========================================================
   GLAVA
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 6px solid var(--red);
  transition: box-shadow 0.3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding 0.35s var(--ease-out);
}
.header__logo img {
  height: 72px;
  width: auto;
  transition: height 0.35s var(--ease-out), transform 0.3s ease;
}
.header__logo:hover img { transform: scale(1.04) rotate(-1deg); }

.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.header.is-scrolled .header__inner { padding-top: 8px; padding-bottom: 8px; }
.header.is-scrolled .header__logo img { height: 52px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__phone svg { animation: ring 2.8s ease-in-out infinite; }
@keyframes ring {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(-16deg); }
  78% { transform: rotate(14deg); }
  82% { transform: rotate(-12deg); }
  86% { transform: rotate(8deg); }
  90% { transform: rotate(0); }
}

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid #3A3A38;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   NASLOVNI DEL
   ========================================================= */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 120px;
}
.hero__text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  cursor: default;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-right: 0.12em;
}
.hero__line > span {
  display: inline-block;
  transform: translateY(105%) skewY(8deg);
}
.is-loaded .hero__line > span {
  animation: lineUp 1s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes lineUp {
  to { transform: translateY(0) skewY(0); }
}

/* Glitch – samodejno vsakih nekaj sekund in ob prehodu z miško */
.glitch.is-glitching,
.glitch:hover { animation: glitch 0.5s steps(1) 1; }
@keyframes glitch {
  0%   { text-shadow: 4px 0 var(--red), -4px 0 #00E5FF; transform: translateX(0); }
  15%  { text-shadow: -5px 2px var(--red), 5px -2px #00E5FF; transform: translateX(-3px) skewX(-4deg); }
  30%  { text-shadow: 3px -2px var(--red), -3px 2px #00E5FF; transform: translateX(3px); }
  45%  { text-shadow: -2px 0 var(--red), 2px 0 #00E5FF; transform: translateX(-2px) skewX(3deg); }
  60%  { text-shadow: 6px 1px var(--red), -6px -1px #00E5FF; transform: translateX(2px); }
  80%  { text-shadow: -1px 0 var(--red), 1px 0 #00E5FF; transform: translateX(0); }
  100% { text-shadow: none; transform: none; }
}

.hero__lead { margin: 0; max-width: 520px; font-size: 19px; color: #C4C4C2; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero__anim { opacity: 0; transform: translateY(24px); }
.is-loaded .hero__anim { animation: fadeUp 0.9s var(--ease-out) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Diagonalne rdeče črte v ozadju */
.hero__stripes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__stripes span {
  position: absolute;
  bottom: -40%;
  width: 70px;
  height: 160%;
  background: var(--red);
  opacity: 0.08;
  transform: rotate(32deg);
  animation: stripeDrift 9s ease-in-out infinite alternate;
}
.hero__stripes span:nth-child(1) { left: 58%; }
.hero__stripes span:nth-child(2) { left: 68%; width: 40px; animation-delay: -3s; opacity: 0.06; }
.hero__stripes span:nth-child(3) { left: 80%; width: 110px; animation-delay: -6s; opacity: 0.05; }
@keyframes stripeDrift {
  from { transform: rotate(32deg) translateX(-30px); }
  to   { transform: rotate(32deg) translateX(30px); }
}

/* =========================================================
   TEKOČI TRAK
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.03);
  margin-top: -14px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 28s linear infinite;
}
.marquee__track--reverse { animation-direction: reverse; animation-duration: 34s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i {
  width: 12px; height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Gradbeni trak (rdeče-beli) */
.tape {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--white) 0 14px, var(--black) 14px 28px);
  background-size: 40px 40px;
  animation: tape 1.2s linear infinite;
}
.tape--reverse { animation-direction: reverse; }
@keyframes tape { to { background-position: 40px 0; } }

.marquee--dark {
  background: var(--black);
  transform: rotate(1.2deg) scale(1.03);
  margin: 0 0 -14px;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
}
.marquee--dark span { color: transparent; -webkit-text-stroke: 1.5px var(--white); font-size: 34px; }
.marquee--dark span:nth-of-type(3n+2) { color: var(--red); -webkit-text-stroke: 0; }
.marquee--dark i { background: var(--red); }

/* =========================================================
   RAZDELKI
   ========================================================= */
.section { position: relative; padding: 112px 0; }
.section--white { background: var(--white); }
.section--dark {
  background: var(--black);
  color: var(--white);
  border-top: 6px solid var(--red);
  padding-top: 140px;
}
.section--services, .section--gallery { overflow: hidden; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 48px;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}
.section__lead { margin: 0; font-size: 18px; color: var(--grey-dark); }

/* Naslovi: besede zdrsnejo navzgor ena za drugo */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-right: 0.08em;
}
.split .word > span {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transition: transform 0.9s var(--ease-out) calc(var(--w, 0) * 0.07s + 0.15s);
}
.is-visible .split .word > span,
.split.is-visible .word > span { transform: none; }

/* Velik napis, ki se premika ob drsenju */
.scroll-word {
  position: absolute;
  top: 40px;
  left: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(90px, 15vw, 220px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(22, 22, 22, 0.07);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-text);
}
.eyebrow--dark { color: var(--red-light); }
.eyebrow__line {
  display: inline-block;
  width: 44px; height: 4px;
  background: var(--red);
  transform-origin: left;
}
.reveal .eyebrow__line,
.hero__anim .eyebrow__line { transform: scaleX(0); transition: transform 0.8s var(--ease-out) 0.3s; }
.reveal.is-visible .eyebrow__line,
.is-loaded .hero__anim .eyebrow__line { transform: scaleX(1); }

/* =========================================================
   ANIMACIJA OB DRSENJU
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal--left { transform: translateX(-70px); }
.reveal--right { transform: translateX(70px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   STORITVE
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  perspective: 1000px;
}
.service {
  position: relative;
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  border-top: 4px solid var(--red);
  transform-style: preserve-3d;
  transition: opacity 0.8s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s),
              box-shadow 0.4s ease;
}
.service.is-visible { transition: transform 0.25s ease-out, box-shadow 0.4s ease, opacity 0.8s var(--ease-out); }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.6s var(--ease-out);
}
.service::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 120px; height: 120px;
  background: var(--red);
  transform: rotate(45deg) scale(0);
  transition: transform 0.5s var(--ease-out) 0.05s;
  z-index: -1;
}
.service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  transition: color 0.4s ease;
}
.service p { margin: 0; font-size: 16px; color: var(--grey-dark); transition: color 0.4s ease; }
.service__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  color: var(--red-text);
  transition: transform 0.5s var(--ease-out), color 0.4s ease;
}
.service:hover { box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.5); }
.service:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.service:hover::after { transform: rotate(45deg) scale(1); }
.service:hover h3 { color: var(--white); }
.service:hover p { color: #C4C4C2; }
.service:hover .service__num { color: var(--red-light); transform: translateX(10px) scale(1.15); }

/* =========================================================
   O NAS
   ========================================================= */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about__media {
  flex: 1 1 420px;
  aspect-ratio: 4 / 3.6;
  border-left: 8px solid var(--red);
}
.about__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li { position: relative; padding-left: 40px; font-size: 17px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  background: var(--red);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s var(--ease-out) calc(var(--d, 0s) + 0.3s);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks li.is-visible::before { clip-path: inset(0 0 0 0); }

/* =========================================================
   GALERIJA
   ========================================================= */
.gallery { display: grid; gap: 12px; }
.gallery > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: 0; }   /* preden JS uredi */

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: zoom-in;
  font-family: inherit;
}
.gallery__item > img { transition: transform 0.8s var(--ease-out), filter 0.5s ease; }
.gallery__item .gallery__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 31, 38, 0.85);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.55s var(--ease-io);
}
.gallery__hover svg { transform: scale(0.4) rotate(-90deg); transition: transform 0.5s var(--ease-out) 0.1s; }
.gallery__item:hover .gallery__hover,
.gallery__item:focus-visible .gallery__hover { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.gallery__item:hover .gallery__hover svg,
.gallery__item:focus-visible .gallery__hover svg { transform: none; }
.gallery__item:hover > img { transform: scale(1.1) rotate(1deg); filter: grayscale(0.35) contrast(1.1); }

/* nalaganje: rdeč okvir utripa, dokler slika ne pride */
.gallery__item.is-loading::after { animation: loadPulse 0.9s ease-in-out infinite alternate; }
@keyframes loadPulse { from { opacity: 1; } to { opacity: 0.55; } }
.gallery__item.is-loading { cursor: progress; }

/* --- Predogled na naslovnici: 7 slik + ploščica "celotna galerija" --- */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.gallery-head .section__head { margin-bottom: 0; }
.gallery--preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
}
.gallery--preview > * { aspect-ratio: 1 / 1; }
.gallery--preview > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery--preview > :nth-child(6) { grid-column: span 2; aspect-ratio: auto; }

.gallery__cta {
  position: relative;
  order: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.gallery__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.gallery__cta::after {                       /* poševne črte */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,0.08) 0 14px, transparent 14px 36px);
}
.gallery__cta:hover { color: var(--white); }
.gallery__cta:hover::before { transform: none; }
.gallery__cta-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.gallery__cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
  text-transform: uppercase;
}
.gallery__cta svg { position: absolute; top: 20px; right: 20px; transition: transform 0.5s var(--ease-out); }
.gallery__cta:hover svg { transform: translateX(8px) rotate(-45deg); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark::before { background: var(--red); }
.btn--dark:hover { color: var(--white); box-shadow: 0 14px 30px -12px rgba(212, 31, 38, 0.8); }
.btn--dark svg { transition: transform 0.4s var(--ease-out); }
.btn--dark:hover svg { transform: translateX(6px); }

/* --- Stran galerija.html: zidak (masonry) – slike v svojih razmerjih --- */
.gallery--masonry {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 8px;
  row-gap: 0;
  column-gap: 12px;
}
.gallery--masonry .gallery__item {
  grid-row-end: span 30;
  margin-bottom: 12px;
}

/* Povečava */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 120px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__content {
  position: relative;
  max-width: min(1100px, 84vw);
  max-height: 72vh;
  transform: scale(0.85) rotate(-2deg);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}
.lightbox.is-open .lightbox__content.is-in { transform: none; opacity: 1; }
.lightbox__content img {
  max-height: 72vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border-bottom: 6px solid var(--red);
}
.lightbox__content .photo-missing { position: relative; width: min(800px, 80vw); aspect-ratio: 4 / 3; }
/* trak sličic spodaj */
.lightbox__thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 6px;
  padding: 14px 24px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.lightbox__thumb {
  flex: 0 0 auto;
  position: relative;
  width: 84px; height: 62px;
  padding: 0;
  border: none;
  background: #2A2A29;
  cursor: pointer;
  opacity: 0.4;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}
.lightbox__thumb:hover { opacity: 0.8; }
.lightbox__thumb.is-active { opacity: 1; transform: translateY(-4px); }
.lightbox__thumb.is-active::after { transform: none; }

.lightbox__counter {
  position: absolute;
  left: 24px; top: 26px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: var(--white);
}
.lightbox__counter b { color: var(--red-light); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red-dark); transform: scale(1.1); }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; margin-top: -28px; }
.lightbox__nav--next { right: 20px; top: 50%; margin-top: -28px; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.contact__phone {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 58px);
  color: var(--red-light);
  text-decoration: none;
  width: fit-content;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 4px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s ease;
  animation: phonePulse 2.4s ease-in-out infinite;
}
.contact__phone:hover { color: var(--white); background-size: 100% 4px; animation: glitch 0.5s steps(1) 1; }
@keyframes phonePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 90, 95, 0); }
  50% { text-shadow: 0 0 28px rgba(255, 90, 95, 0.55); }
}
.contact__list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact__list dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-mid); }
.contact__list dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }

.form {
  flex: 1 1 460px;
  background: var(--black-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 4px solid var(--red);
}
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.form__row .field { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; transition: color 0.3s ease; }
.field:focus-within label { color: var(--red-light); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--grey);
  padding: 12px 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input { height: 50px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 31, 38, 0.35), 6px 6px 0 var(--red);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--red-light); animation: shake 0.45s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.form__status { margin: 0; min-height: 24px; font-size: 15px; color: var(--grey-mid); }
.form__status.is-success { color: #7FD69A; animation: fadeUp 0.5s var(--ease-out) both; }

/* =========================================================
   NOGA
   ========================================================= */
.footer {
  position: relative;
  background: var(--black-3);
  color: var(--grey-mid);
  padding-top: 88px;
  border-top: 6px solid var(--red);
  overflow: hidden;
}
.footer::before {                  /* poševne črte kot na logotipu */
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 340px; height: 340px;
  background: repeating-linear-gradient(-55deg, rgba(212,31,38,0.09) 0 26px, transparent 26px 64px);
  pointer-events: none;
}
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
.footer__logo { height: 84px; width: auto; }
.footer__brand p { margin: 20px 0 24px; max-width: 300px; font-size: 15px; line-height: 1.6; }
.footer__title {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--white);
}
.footer__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out) calc(var(--d, 0s) + 0.3s);
}
.reveal.is-visible .footer__title::after { transform: scaleX(1); }

.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #D6D6D3; line-height: 1.5; }
.footer__list svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}
.footer__list li:hover svg { transform: scale(1.2) rotate(-8deg); }
.footer__list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.3s ease;
}
.footer__list a:hover { color: var(--red-light); background-size: 100% 2px; }

.footer__hours { list-style: none; margin: 0; padding: 0; }
.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #2E2E2C;
  font-size: 15px;
}
.footer__hours li:first-child { padding-top: 0; }
.footer__hours span:last-child { color: var(--white); font-weight: 600; text-align: right; }

/* Zemljevid */
.footer__map {
  position: relative;
  height: 360px;
  border-top: 4px solid var(--red);
  overflow: hidden;
  background: #1E1E1D;
}
.footer__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
  pointer-events: none;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease-out);
}
.footer__map:hover iframe { transform: scale(1.12); }
.footer__map-link { position: absolute; inset: 0; z-index: 2; color: inherit; text-decoration: none; }
.footer__map-link:hover { color: inherit; }

.footer__pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  margin: -52px 0 0 -20px;
  opacity: 0;
  transform: translateY(-160px);
}
.footer__map.is-visible .footer__pin { animation: pinDrop 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 1s forwards; }
.footer__pin i {
  position: relative;
  display: block;
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: -4px 6px 14px rgba(0, 0, 0, 0.45);
}
.footer__pin i::after {
  content: "";
  position: absolute;
  inset: 13px;
  background: var(--white);
  border-radius: 50%;
}
.footer__pin::before {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 24px; height: 10px;
  margin: 2px 0 0 -12px;
  border: 2px solid var(--red);
  border-radius: 50%;
  animation: pinPulse 1.8s ease-out infinite;
}
@keyframes pinDrop { to { opacity: 1; transform: none; } }
@keyframes pinPulse {
  from { transform: scale(0.6); opacity: 1; }
  to   { transform: scale(3.2); opacity: 0; }
}

.footer__map-label {
  position: absolute;
  left: 24px; bottom: 24px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  background: var(--black);
  border-left: 5px solid var(--red);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--ease-out);
}
.footer__map-label strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--white);
}
.footer__map-label span { font-size: 14px; color: #C4C4C2; }
.footer__map-label em {
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red-light);
  transition: letter-spacing 0.4s var(--ease-out);
}
.footer__map-link:hover .footer__map-label { transform: translateY(-6px); }
.footer__map-link:hover .footer__map-label em { letter-spacing: 0.1em; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 0 28px;
  font-size: 14px;
}
.footer__bottom p { margin: 0; }
.footer__top {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
}
.footer__top:hover { color: var(--red-light); }

/* =========================================================
   PLAVAJOČA GUMBA
   ========================================================= */
.to-top,
.call-fab {
  position: fixed;
  bottom: 24px;
  z-index: 150;
  width: 52px; height: 52px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), background 0.25s ease;
}
.to-top {
  right: 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--black); color: var(--white); }
.to-top:hover svg { animation: bounceUp 0.6s ease infinite; }
@keyframes bounceUp { 50% { transform: translateY(-4px); } }

.call-fab { display: none; left: 20px; width: 60px; height: 60px; border-radius: 50%; }
.call-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--red);
  animation: fabPulse 1.8s ease-out infinite;
}
.call-fab svg { animation: ring 2.8s ease-in-out infinite; }
.call-fab:hover { color: var(--white); }
@keyframes fabPulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.8); opacity: 0; }
}

/* =========================================================
   TABLICA IN TELEFON
   ========================================================= */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 6px solid var(--red);
    padding: 8px 24px 24px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease-out), visibility 0.5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid #2E2E2C; font-size: 17px; }
  .nav__link::after { bottom: 10px; width: 40px; right: auto; }
  .nav__phone { margin-top: 16px; }
  .nav.is-open .nav__link { animation: slideIn 0.5s var(--ease-out) both; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: 0.05s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: 0.1s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: 0.15s; }

  .header__logo img { height: 56px; }
  .header.is-scrolled .header__logo img { height: 46px; }

  .hero__inner { padding-top: 56px; padding-bottom: 100px; gap: 56px; }
  .section { padding: 80px 0; }
  .section--dark { padding-top: 110px; }
  .marquee span { font-size: 19px; }
  .marquee--dark span { font-size: 26px; }

  .gallery { gap: 8px; }
  .gallery--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--preview > :first-child { grid-row: span 1; aspect-ratio: 2 / 1; }
  .gallery--preview > :nth-child(6) { grid-column: span 1; aspect-ratio: 1 / 1; }
  .gallery__cta { grid-column: span 2; aspect-ratio: 2.4 / 1 !important; }
  .gallery--masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .gallery--masonry .gallery__item { margin-bottom: 8px; }

  .call-fab { display: flex; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .nav__phone { width: 100%; }
  .lightbox__nav { width: 46px; height: 46px; font-size: 28px; margin-top: -23px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* =========================================================
   MANJ GIBANJA (dostopnost)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .hero__anim { opacity: 1; transform: none; }
  .hero__line > span, .split .word > span { transform: none; }
  .marquee__track, .tape { animation: none; }
  .wipe::after, .hero__photo::after { display: none; }
  .hero__frame { clip-path: none; }
  .cursor, .cursor-dot { display: none !important; }
}

/* =========================================================
   NASLOVNI DEL – SLIDER ČEZ CELO ŠIRINO
   ========================================================= */
.hero {
  min-height: max(640px, calc(100vh - 106px));
  min-height: max(640px, calc(100svh - 106px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1E1E1D;
  isolation: isolate;
  clip-path: polygon(115% 0, 130% 0, 115% 100%, 100% 100%);
}
.is-loaded .hero__slider { animation: revealNext 1.5s var(--ease-io) 0.15s forwards; }
.hero__slider > img { opacity: 0; }          /* preden ga JS uredi */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,14,0.94) 0%, rgba(14,14,14,0.78) 36%, rgba(14,14,14,0.25) 72%, rgba(14,14,14,0.35) 100%),
    linear-gradient(to top, rgba(14,14,14,0.9) 0%, rgba(14,14,14,0) 38%);
}
.hero__stripes { z-index: 1; }
.hero__particles { z-index: 2; }
.hero__inner {
  z-index: 3;
  display: block;
  padding-top: 64px;
  padding-bottom: 150px;
}
.hero__text { max-width: 680px; }

/* posamezne slike */
.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  visibility: hidden;
}
.slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.is-prev { z-index: 1; visibility: visible; }
.slide.is-active { z-index: 2; visibility: visible; }
.slide.is-active.is-animating { animation: revealNext 1.2s var(--ease-io) both; }
.slide.is-active.is-animating[data-dir="prev"] { animation-name: revealPrev; }
.slide.is-active > img { animation: kenburns 9s ease-out both; }
.slide.is-prev > img { transform: scale(1.04); filter: brightness(0.45); transition: filter 1.2s ease; }

@keyframes revealNext {
  from { clip-path: polygon(115% 0, 130% 0, 115% 100%, 100% 100%); }
  to   { clip-path: polygon(-15% 0, 130% 0, 115% 100%, -30% 100%); }
}
@keyframes revealPrev {
  from { clip-path: polygon(-30% 0, -15% 0, -30% 100%, -30% 100%); }
  to   { clip-path: polygon(-30% 0, 130% 0, 115% 100%, -30% 100%); }
}
@keyframes kenburns {
  from { transform: scale(1.22); }
  to   { transform: scale(1.04); }
}

/* poševne črte, ki šinejo čez ob menjavi (kot na logotipu) */
.slider__bars {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.slider__bars span {
  position: absolute;
  top: -10%;
  height: 120%;
  left: 100%;
  transform: skewX(-15deg);
  visibility: hidden;
}
.slider__bars.is-running span { visibility: visible; }
.slider__bars span:nth-child(1) { width: 5%;  background: var(--red); }
.slider__bars span:nth-child(2) { width: 1.5%; background: var(--white); margin-left: 7%; }
.slider__bars span:nth-child(3) { width: 9%;  background: var(--red-dark); margin-left: 10%; }
.slider__bars.is-running span { animation: barsNext 1.2s var(--ease-io) both; }
.slider__bars.is-running span:nth-child(2) { animation-delay: 0.06s; }
.slider__bars.is-running span:nth-child(3) { animation-delay: 0.12s; }
.slider__bars[data-dir="prev"] span { left: auto; right: 100%; margin-left: 0; }
.slider__bars[data-dir="prev"] span:nth-child(2) { margin-right: 7%; }
.slider__bars[data-dir="prev"] span:nth-child(3) { margin-right: 10%; }
.slider__bars.is-running[data-dir="prev"] span { animation-name: barsPrev; }
@keyframes barsNext {
  from { transform: translateX(0) skewX(-15deg); }
  to   { transform: translateX(-140vw) skewX(-15deg); }
}
@keyframes barsPrev {
  from { transform: translateX(0) skewX(-15deg); }
  to   { transform: translateX(140vw) skewX(-15deg); }
}

/* gumbi sliderja */
.hero__ui {
  position: absolute;
  left: 0; right: 0;
  bottom: 44px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 1.5s, transform 0.8s var(--ease-out) 1.5s;
}
.is-loaded .hero__ui { opacity: 1; transform: none; }
.hero__ui:empty, .hero__ui.is-single { display: none; }

.slider__nav { display: flex; gap: 18px; }
.slider__nav-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 44px;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  text-align: left;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.slider__nav-item:hover,
.slider__nav-item.is-active { opacity: 1; }
.slider__nav-bar {
  position: relative;
  display: block;
  width: 72px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.slider__nav-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--red);
}
.slider__nav-item.is-active .slider__nav-bar i { animation: dotFill var(--slide-time, 5s) linear forwards; }
.hero__ui.is-paused .slider__nav-item.is-active .slider__nav-bar i { animation-play-state: paused; }
.hero__ui.is-static .slider__nav-item.is-active .slider__nav-bar i { animation: none; width: 100%; }
@keyframes dotFill { from { width: 0; } to { width: 100%; } }

.slider__right { display: flex; align-items: flex-end; gap: 24px; }
.slider__caption {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 280px;
  text-align: right;
}
.slider__caption small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-light);
}
.slider__caption-text { overflow: hidden; }
.slider__caption-text span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
}
.slider__count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--white);
}
.slider__current { display: inline-block; height: 1em; overflow: hidden; font-size: 56px; }
.slider__current span { display: block; }
.slider__total { font-size: 18px; color: var(--grey-mid); }
.is-in { animation: numIn 0.8s var(--ease-out) both; }
@keyframes numIn { from { transform: translateY(105%); } to { transform: none; } }

.slider__arrows { display: flex; gap: 6px; }
.slider__arrow {
  position: relative;
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out);
}
.slider__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
}
.slider__arrow svg { position: relative; transition: color 0.3s ease, transform 0.3s var(--ease-out); }
.slider__arrow:hover::before { transform: none; }
.slider__arrow:hover svg { color: var(--red); }
.slider__arrow--prev:hover svg { transform: translateX(-3px); }
.slider__arrow--next:hover svg { transform: translateX(3px); }

/* manjkajoča slika v sliderju – opozorilo zgoraj desno */
.hero__slider .photo-missing {
  justify-content: flex-start;
  align-items: flex-end;
  padding: 32px;
  text-align: right;
}

/* =========================================================
   DELCI V NASLOVNEM DELU
   ========================================================= */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   IKONE STORITEV – se narišejo
   ========================================================= */
.service__icon {
  position: absolute;
  top: 30px; right: 28px;
  width: 52px; height: 52px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: stroke 0.4s ease, transform 0.6s var(--ease-out);
}
.service__icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-io);
}
.service__icon path:nth-child(2) { transition-delay: 0.2s; }
.service__icon path:nth-child(3) { transition-delay: 0.4s; }
.service__icon path:nth-child(4) { transition-delay: 0.6s; }
.service.is-visible .service__icon path { stroke-dashoffset: 0; }
.service:hover .service__icon { stroke: var(--white); transform: rotate(-8deg) scale(1.15); }
.service:hover .service__icon path { animation: redraw 0.9s var(--ease-io); }
@keyframes redraw {
  0%   { stroke-dashoffset: 0; }
  45%  { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

/* =========================================================
   RDEČ BLOK ČEZ NASLOVE
   ========================================================= */
.section__title { position: relative; width: fit-content; max-width: 100%; }
.section__title::after {
  content: "";
  position: absolute;
  inset: -2px -8px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.section__title.is-visible::after { animation: barSweep 1.1s var(--ease-io) 0.05s both; }
@keyframes barSweep {
  0%     { transform: scaleX(0); transform-origin: left; }
  45%    { transform: scaleX(1); transform-origin: left; }
  55%    { transform: scaleX(1); transform-origin: right; }
  100%   { transform: scaleX(0); transform-origin: right; }
}

/* =========================================================
   POŠEVNINA OB HITREM DRSENJU
   ========================================================= */
.marquee span,
.scroll-word { display: inline-block; }
.marquee span { transform: skewX(var(--skew, 0deg)); }

/* =========================================================
   VAL OB KLIKU NA GUMB
   ========================================================= */
.ripple {
  position: absolute;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
  animation: ripple 0.7s ease-out forwards;
}
@keyframes ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(22); opacity: 0; }
}

@media (max-width: 900px) {
  .hero__inner { padding-top: 64px; padding-bottom: 170px; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(14,14,14,0.88) 0%, rgba(14,14,14,0.6) 100%),
      linear-gradient(to top, rgba(14,14,14,0.9) 0%, rgba(14,14,14,0) 40%);
  }
  .hero__ui { bottom: 32px; }
  .slider__caption { display: none; }
  .slider__nav { gap: 12px; }
  .slider__nav-bar { width: 40px; }
  .slider__current { font-size: 40px; }
  .slider__arrow { width: 48px; height: 48px; }
  .service__icon { width: 44px; height: 44px; top: 28px; right: 24px; }

  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 48px; }
  .footer__map { height: 300px; }
}
@media (max-width: 520px) {
  .slider__count { display: none; }
  .slider__right { gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand .btn { width: auto; }
  .footer__map-label { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .footer__bottom { padding-bottom: 100px; }   /* prostor za plavajoča gumba */
}

@media (prefers-reduced-motion: reduce) {
  .hero__slider { clip-path: none; }
  .hero__slider > img { opacity: 1; }
  .slider__bars { display: none; }
  .service__icon path { stroke-dashoffset: 0; }
  .section__title::after { display: none; }
  .hero__particles { display: none; }
  .footer__pin { opacity: 1; transform: none; }
}

/* =========================================================
   KAKO DELAMO (postopek)
   ========================================================= */
.section--process {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.section--process::before {          /* poševne črte v kotu */
  content: "";
  position: absolute;
  bottom: -60px; left: -80px;
  width: 380px; height: 380px;
  background: repeating-linear-gradient(-55deg, rgba(212,31,38,0.1) 0 26px, transparent 26px 64px);
  pointer-events: none;
}
.process { position: relative; }
.process__line {
  position: absolute;
  top: 34px; left: 0; right: 0;
  height: 3px;
  background: #2E2E2C;
}
.process__line span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease-io) 0.2s;
}
.process:has(.is-visible) .process__line span { transform: none; }
.process__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.process__step { display: flex; flex-direction: column; gap: 14px; }
.process__num {
  position: relative;
  width: fit-content;
  padding-right: 18px;
  background: var(--black);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  transition: color 0.4s ease, transform 0.5s var(--ease-out);
}
.process__step:hover .process__num { color: var(--red); transform: translateY(-6px) skewX(-6deg); }
.process__step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  text-transform: uppercase;
}
.process__step p { margin: 0; font-size: 16px; color: #C4C4C2; }

/* =========================================================
   STRAN GALERIJA – naslov
   ========================================================= */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.page-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 88px;
  padding-bottom: 104px;
}
.page-hero__word {
  position: absolute;
  right: -2%;
  bottom: -0.2em;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(110px, 20vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.breadcrumb a { color: var(--red-light); text-decoration: none; padding: 10px 0; }
.breadcrumb a:hover { color: var(--white); }
.page-hero .hero__lead { max-width: 560px; }
.section--gallery-page { padding-top: 72px; }

/* =========================================================
   POZIV (pred nogo)
   ========================================================= */
.cta-band {
  position: relative;
  background: var(--red);
  color: var(--white);
  padding: 72px 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg, rgba(0,0,0,0.08) 0 30px, transparent 30px 80px);
  animation: tape 6s linear infinite;
  background-size: 200px 200px;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band .eyebrow { color: var(--white); }
.cta-band .eyebrow__line { background: var(--white); }
.cta-band .section__title::after { background: var(--black); }
.cta-band__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--red { background: var(--black); }
.cta-band .btn--red::before { background: var(--white); }
.cta-band .btn--red:hover { color: var(--black); }

/* =========================================================
   PREHOD MED STRANMI
   ========================================================= */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.page-curtain span {
  position: absolute;
  top: -10%;
  height: 120%;
  width: 140%;
  left: -20%;
  transform: translateX(110%) skewX(-15deg);
  transition: transform 0.6s var(--ease-io);
}
.page-curtain span:nth-child(1) { background: var(--red); }
.page-curtain span:nth-child(2) { background: var(--white); transition-delay: 0.05s; }
.page-curtain span:nth-child(3) { background: var(--black); transition-delay: 0.1s; }
.page-curtain.is-leaving { pointer-events: auto; }
.page-curtain.is-leaving span { transform: translateX(0) skewX(-15deg); }

@media (max-width: 900px) {
  .process__line { top: 0; bottom: 0; left: 18px; right: auto; width: 3px; height: auto; }
  .process__line span { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; }
  .process:has(.is-visible) .process__line span { transform: none; }
  .process__list { grid-template-columns: 1fr; gap: 36px; padding-left: 48px; }
  .process__num { font-size: 48px; padding-right: 0; background: none; }
  .page-hero__inner { padding-top: 56px; padding-bottom: 72px; }
  .cta-band { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .process__line span { transform: none; }
  .page-curtain { display: none; }
  .cta-band::before { animation: none; }
}
