/* =========================================================
   Tricikel Gorenjska — barve iz logotipa
   ledena modra · črna · bela · rdeča
   ========================================================= */

:root {
  --led: #e3f0f7;
  --led-2: #cfe4ef;
  --led-3: #a9cadd;
  --ink: #0b0c0e;
  --ink-2: #14171b;
  --red: #b81f26;
  --red-2: #d92b33;
  --red-deep: #7c1218;
  --white: #ffffff;
  --muted: #4a5b66;
  --muted-dark: #93a6b3;
  --line: rgba(11, 12, 14, 0.14);
  --line-light: rgba(227, 240, 247, 0.16);

  --display: "Haettenschweiler", "Arial Narrow", Impact, "Franklin Gothic Bold", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --shadow: 0 26px 60px -28px rgba(11, 12, 14, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--led);
  background-image:
    radial-gradient(1000px 500px at 85% -5%, rgba(255, 255, 255, 0.85), transparent 65%),
    radial-gradient(700px 500px at 0% 40%, rgba(169, 202, 221, 0.35), transparent 70%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(227, 240, 247, 0.14);
  border: 1px solid var(--line-light);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

.wrap {
  width: min(var(--wrap), 92vw);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--led);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.site-head :focus-visible,
.site-foot :focus-visible { outline-color: var(--led); }

/* ---------- Tipografija ---------- */

.display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 0;
}

.h2 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  transform: skewX(-5deg);
  transform-origin: left bottom;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.kicker--light { color: var(--led-3); }

.mark {
  color: var(--red);
  display: inline-block;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.6;
  font-weight: 500;
}

/* ---------- Gumbi ---------- */

.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover {
  --btn-bg: var(--red-2);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(11, 12, 14, 0.18);
}
.btn--ghost:hover {
  background: rgba(11, 12, 14, 0.06);
  box-shadow: 3px 3px 0 rgba(11, 12, 14, 0.18);
}

.btn--sm { padding: 10px 18px; font-size: 0.86rem; box-shadow: 4px 4px 0 var(--ink); }
.btn--sm:hover { box-shadow: 2px 2px 0 var(--ink); }
.section--dark .btn--sm { box-shadow: 4px 4px 0 var(--led-3); }
.section--dark .btn--sm:hover { box-shadow: 2px 2px 0 var(--led-3); }
.section--dark .btn--red { box-shadow: 5px 5px 0 var(--led); }
.section--dark .btn--red:hover { box-shadow: 3px 3px 0 var(--led); }

/* ---------- Glava ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 240, 247, 0.12);
  color: var(--led);
}
.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--led);
}
.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(227, 240, 247, 0.65);
  background: var(--led);
  padding: 2px;
  object-fit: cover;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.brand__text strong { font-weight: 400; font-size: 1.35rem; }
.brand__text span { font-size: 1.02rem; color: var(--red-2); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav > a:not(.btn) {
  position: relative;
  padding: 10px 14px;
  color: var(--led);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav > a:not(.btn):hover::after,
.nav > a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(227, 240, 247, 0.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--led);
  transition: transform 0.22s var(--ease), opacity 0.15s linear;
}
.site-head.is-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-head.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-head.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(46px, 7vw, 84px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero__mountains {
  position: absolute;
  inset: auto 0 0;
  height: min(46%, 420px);
  pointer-events: none;
}
.hero__mountains svg { width: 100%; height: 100%; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero__title {
  font-size: clamp(3.5rem, 10.2vw, 7.6rem);
  transform: skewX(-6deg);
  transform-origin: left bottom;
  margin: 0 0 26px;
}
.hero__title-red {
  color: var(--red);
  display: inline-block;
  text-shadow: 5px 5px 0 rgba(11, 12, 14, 0.14);
}
.hero__lead {
  max-width: 54ch;
  margin: 0 0 30px;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #29363e;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.stats > div {
  flex: 1 1 130px;
  padding: 16px 22px 16px 0;
  border-right: 1px solid var(--line);
}
.stats > div + div { padding-left: 22px; }
.stats > div:last-child { border-right: 0; }
.stats dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stats > div:first-child dd { color: var(--red); }

.hero__badge {
  position: relative;
  display: flex;
  justify-content: center;
}
.badge {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--ink);
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}
.badge::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(11, 12, 14, 0.28);
  animation: spin 40s linear infinite;
}
.badge:hover { transform: rotate(-2deg) scale(1.02); }
.badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.badge__note {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  margin: 0;
  background: var(--ink);
  color: var(--led);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--red);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tekoči trak ---------- */

.marquee {
  background: var(--ink);
  color: var(--led);
  overflow: hidden;
  padding: 14px 0;
  border-block: 3px solid var(--red);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--red-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcije ---------- */

.section {
  position: relative;
  padding: clamp(66px, 8.5vw, 116px) 0;
}
.section--tight { padding: clamp(54px, 7vw, 88px) 0; }
.section--dark {
  background: var(--ink);
  color: var(--led);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(184, 31, 38, 0.28), transparent 65%),
    radial-gradient(900px 500px at 0% 100%, rgba(169, 202, 221, 0.14), transparent 70%);
  pointer-events: none;
}
.section--dark .wrap { position: relative; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.section-head__lead {
  margin: 0 0 8px;
  color: var(--muted-dark);
  max-width: 48ch;
}

/* ---------- O nas ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about__intro { position: sticky; top: 110px; }
.about__body p { margin: 0 0 18px; color: #33424b; }
.about__body p.lead { color: var(--ink); }

.features {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.features li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.features__num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
  padding-top: 2px;
}
.features strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.features p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ---------- Galerija ---------- */

.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}
.gallery-count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--led-3);
}
.gallery-bar__actions { display: flex; gap: 10px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  border-radius: var(--radius);
  transition: outline 0.2s var(--ease), background 0.2s var(--ease);
  outline: 2px dashed transparent;
  outline-offset: 10px;
}
.gallery.is-dragover {
  outline-color: var(--red-2);
  background: rgba(184, 31, 38, 0.08);
}

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.shot__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1.05); }

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(11, 12, 14, 0.9), rgba(11, 12, 14, 0));
  pointer-events: none;
}
.shot__cap {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}
.shot__tag {
  flex: none;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--led);
  background: rgba(11, 12, 14, 0.55);
  border: 1px solid rgba(227, 240, 247, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.shot.is-user .shot__tag {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.shot.is-server .shot__tag {
  background: rgba(11, 12, 14, 0.72);
  border-color: rgba(227, 240, 247, 0.5);
  color: var(--led);
}

.shot__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 240, 247, 0.45);
  border-radius: 50%;
  background: rgba(11, 12, 14, 0.65);
  color: var(--led);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  backdrop-filter: blur(4px);
}
.shot.is-user:hover .shot__delete,
.shot.is-user:focus-within .shot__delete { opacity: 1; transform: none; }
.shot__delete:hover { background: var(--red); }

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 300px;
  padding: clamp(32px, 6vw, 56px) 24px;
  text-align: center;
  border: 2px dashed rgba(227, 240, 247, 0.26);
  border-radius: var(--radius);
  color: var(--led-2);
  background: radial-gradient(520px 220px at 50% 100%, rgba(184, 31, 38, 0.16), transparent 70%);
}
.gallery-empty[hidden] { display: none; }
.gallery-empty p {
  display: grid;
  gap: 4px;
  margin: 0;
  justify-items: center;
}
.gallery-empty strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--led);
}
.gallery-empty span { font-size: 0.92rem; color: var(--muted-dark); }
.gallery-empty .btn { margin-top: 6px; }

.gallery-note {
  margin: 24px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 82ch;
}
.gallery-note strong { color: var(--led); }

.gallery-migrate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(227, 240, 247, 0.22);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: rgba(184, 31, 38, 0.12);
}
.gallery-migrate[hidden] { display: none; }
.gallery-migrate p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-dark);
}
.gallery-migrate strong {
  display: block;
  margin-bottom: 2px;
  color: var(--led);
}
.gallery-migrate .btn { flex: none; }

/* ---------- YouTube ---------- */

.yt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
  border-radius: clamp(18px, 3vw, 30px);
  padding: clamp(28px, 5vw, 60px);
  color: var(--led);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.yt__copy p { color: var(--muted-dark); max-width: 46ch; }
.yt__copy .h2 { margin-bottom: 20px; }
.yt__handle {
  margin: 16px 0 0 !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--led-3) !important;
}

.yt__card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(184, 31, 38, 0.5), transparent 60%),
    linear-gradient(160deg, #1c2228, #0b0c0e);
  border: 1px solid rgba(227, 240, 247, 0.2);
  text-decoration: none;
  color: var(--led);
  transition: transform 0.3s var(--ease);
}
.yt__card:hover { transform: translateY(-4px); }
.yt__rings {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(227, 240, 247, 0.2);
  box-shadow: 0 0 0 26px rgba(227, 240, 247, 0.05), 0 0 0 58px rgba(227, 240, 247, 0.03);
}
.yt__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 34px -10px rgba(184, 31, 38, 0.9);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.yt__play svg { margin-left: 4px; }
.yt__card:hover .yt__play { transform: scale(1.08); background: var(--red-2); }
.yt__label {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--led-3);
}

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  border-top: 2px solid var(--ink);
  padding-top: clamp(32px, 5vw, 54px);
}
.contact__body p { margin-top: 0; }
.contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 440px);
  margin-top: 8px;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact__link span { overflow-wrap: anywhere; }
.contact__link:hover {
  background: var(--ink);
  color: var(--led);
  transform: translateY(-2px);
}
.contact__link--mail {
  background: var(--ink);
  color: var(--led);
}
.contact__link--mail:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- Noga ---------- */

.site-foot {
  position: relative;
  margin-top: 40px;
  padding: 46px 0 34px;
  background: var(--ink);
  color: var(--led);
  overflow: hidden;
}
.site-foot__mountains {
  position: absolute;
  inset: 0 0 auto;
  height: 130px;
  opacity: 0.8;
  pointer-events: none;
}
.site-foot__mountains svg { width: 100%; height: 100%; }
.site-foot__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.brand--foot .brand__logo { width: 42px; height: 42px; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-inline: auto;
}
.foot-nav a {
  color: var(--led);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.85;
}
.foot-nav a:hover { opacity: 1; color: var(--red-2); }
.foot-note {
  margin: 0;
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}
.foot-note a {
  color: var(--led-3);
  text-underline-offset: 3px;
}
.foot-note a:hover { color: var(--red-2); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: auto;
  max-width: min(1080px, 94vw);
  max-height: 94dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--led);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(6, 8, 10, 0.9);
  backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 14px;
  background: var(--ink-2);
  border: 1px solid rgba(227, 240, 247, 0.18);
  border-radius: 18px;
}
.lightbox img {
  width: auto;
  max-width: min(1048px, calc(94vw - 28px));
  max-height: 76dvh;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
}
.lightbox__cap {
  margin: 0;
  padding: 2px 8px 6px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--led);
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(227, 240, 247, 0.35);
  border-radius: 50%;
  background: rgba(11, 12, 14, 0.72);
  color: var(--led);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  backdrop-filter: blur(6px);
}
.lightbox__btn:hover { background: var(--red); transform: scale(1.06); }
.lightbox__close { top: -16px; right: -16px; }
.lightbox__nav--prev { left: -18px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: -18px; top: 50%; translate: 0 -50%; }
.lightbox__btn[hidden] { display: none; }

/* ---------- Geslo za objavo ---------- */

.key-dialog {
  width: min(430px, 92vw);
  padding: 0;
  border: 1px solid rgba(227, 240, 247, 0.18);
  border-radius: 16px;
  background: var(--ink-2);
  color: var(--led);
}
.key-dialog::backdrop {
  background: rgba(6, 8, 10, 0.82);
  backdrop-filter: blur(6px);
}
.key-dialog__form {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 5vw, 30px);
}
.key-dialog__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--led);
}
.key-dialog__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-dark);
}
.key-dialog__label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--led-3);
}
.key-dialog__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--led);
  background: rgba(11, 12, 14, 0.6);
  border: 2px solid rgba(227, 240, 247, 0.3);
  border-radius: 8px;
}
.key-dialog__input:focus {
  outline: none;
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(184, 31, 38, 0.32);
}
.key-dialog__error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ff9096;
}
.key-dialog__error[hidden] { display: none; }
.key-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.key-dialog .btn--ghost {
  color: var(--led);
  border-color: rgba(227, 240, 247, 0.35);
  box-shadow: none;
}
.key-dialog .btn--ghost:hover {
  background: rgba(227, 240, 247, 0.1);
  box-shadow: none;
  transform: none;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  translate: -50% 20px;
  max-width: min(92vw, 480px);
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--led);
  border: 1px solid rgba(227, 240, 247, 0.25);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Animacije ob drsenju ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Odzivnost ---------- */

@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__title { font-size: clamp(3.2rem, 9.8vw, 6.8rem); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__badge { order: -1; justify-content: flex-start; }
  .badge { width: min(58vw, 300px); }
  .badge__note { font-size: 0.65rem; padding: 7px 13px; }
  .about { grid-template-columns: 1fr; }
  .about__intro { position: static; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .yt { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .site-head__bar { min-height: 66px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 4vw 20px;
    background: var(--ink);
    border-bottom: 1px solid rgba(227, 240, 247, 0.14);
  }
  .site-head.is-open .nav { display: flex; }
  .nav > a:not(.btn) { padding: 14px 10px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; }
  .stats > div { flex-basis: 100%; border-right: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stats > div + div { padding-left: 0; }
  .stats > div:last-child { border-bottom: 0; }
  .stats dd { font-size: 1.5rem; }
  .marquee__track { font-size: 1.05rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { top: 4px; right: 4px; }
  .site-foot__inner { flex-direction: column; align-items: flex-start; }
  .foot-nav { margin-inline: 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.16em; }
  .hero { padding-top: 34px; }
  .hero__title { font-size: clamp(2.5rem, 12.8vw, 3.9rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { justify-content: center; }
  .badge { width: min(76vw, 270px); }
  .gallery { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3; }
  .gallery-bar { align-items: flex-start; }
  .lightbox__stage { padding: 8px; }
  .lightbox img { max-height: 66dvh; }
  .lightbox__cap { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
