/* fonts:start (tools/fonts.py) */
@font-face {
  font-family: 'Caladea';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/caladea-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caladea';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/caladea-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caladea';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/caladea-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caladea';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/caladea-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/outfit-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

/* o-studio — strona statyczna. Kolory i typografia jak w wersji z 2024 r. */
:root {
  --bg: #000000;
  --fg: #dddddd;
  --muted: #8f8f8f;
  --accent: #ba7700;
  --slide-bg: #ffffff;
  --container: 1140px;
  --gutter: 24px;
  --gap: 10px;
  --heading: 80px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Caladea', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: transparent;  /* czarne tło daje html; body nie może zasłaniać wideo tła */
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 14px; background: var(--fg); color: var(--bg); text-decoration: none;
}
.skip-link:focus { top: 16px; }

main, .site-header, .site-footer {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- strona główna: wideo w tle pod rastrem matrycy LED ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none; /* prawy klik trafia w stronę, nie w wideo (bez „Zapisz wideo jako”) */
  user-select: none;
}
.backdrop__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.backdrop::after {
  /* „diody”: przezroczyste kółka w półprzezroczystej czarnej siatce + ogólne przyciemnienie */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 1.3px, rgba(0, 0, 0, 0.82) 2px),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38));
  background-size: 5px 5px, 100% 100%;
}

/* ---------- strona główna: hero ---------- */
.hero {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-block: 30px 40px;
}
/* Jak w oryginale: znak i napis wypełniają swoje kolumny (570 px przy 1140 px kontenera). */
.hero > * { min-width: 0; }
/* Lekkie przyciemnienie wideo pod znakiem i pod napisem — miękkie, bez krawędzi. */
.hero__mark, .hero__brand { position: relative; isolation: isolate; }
.hero__mark::before, .hero__brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero__mark::before {
  inset: 2% 6%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 55%, transparent);
}
.hero__brand::before {
  inset: -70% 0; /* bez poszerzenia w bok: napis sięga krawędzi ekranu na wąskich szerokościach */
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.32) 55%, transparent);
}
.hero__mark img, .hero__title img { width: 100%; }
.hero__brand { text-align: center; }
.hero__title { margin: 0; }
.hero__tagline {
  margin: 20px 0 0;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 10px;
  word-spacing: 1em;
}

/* ---------- sekcje ---------- */
.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0;
  padding-block: 60px;
}
.section > * { min-width: 0; }
.section__title, .page__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--heading);
  line-height: 0.9;
  letter-spacing: -0.3px;
  text-transform: capitalize;
  color: var(--fg);
  overflow-wrap: break-word;
  hyphens: auto;
}
.section__title { padding-right: 24px; }
.section__title a { text-decoration: none; }
.section__title a:hover { color: var(--accent); }
.section__media { display: grid; gap: 20px; }
.feature { width: 100%; background: #111; }
img.feature { background: #fff; }  /* przezroczyste PNG (opakowania, logotypy) stały na białym */
video.feature { aspect-ratio: 16 / 9; }
.video { width: 100%; background: #111; }

/* ---------- karuzela ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.carousel__slide {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  height: 230px;
  scroll-snap-align: start;
  background: var(--slide-bg);
  overflow: hidden;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.carousel__slide:hover img { transform: scale(1.03); }
.carousel__prev, .carousel__next, .carousel__dots { display: none; }

.carousel.is-js .carousel__track { scrollbar-width: none; }
.carousel.is-js .carousel__track::-webkit-scrollbar { display: none; }
.carousel.is-js .carousel__prev, .carousel.is-js .carousel__next {
  display: grid;
  place-items: center;
  position: absolute;
  top: 115px;
  translate: 0 -50%;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px; line-height: 1;
  cursor: pointer;
}
.carousel.is-js .carousel__prev { left: 8px; }
.carousel.is-js .carousel__next { right: 8px; }
.carousel.is-js .carousel__prev:hover, .carousel.is-js .carousel__next:hover { background: rgba(0, 0, 0, 0.85); }
.carousel.is-js .carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.carousel__dot {
  width: 24px; height: 24px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.carousel__dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); transition: background 0.2s, transform 0.2s;
}
.carousel__dot[aria-current="true"]::before { background: var(--fg); transform: scale(1.3); }

/* ---------- podstrony ---------- */
.site-header { padding-block: 28px; }
.site-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  text-decoration: none; font-weight: 400; font-size: 16px; letter-spacing: 0.04em;
  padding-block: 6px; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

.page { padding-block: 40px 80px; }
.page__title { margin-bottom: 48px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { font-weight: 400; line-height: 1.2; margin: 1.6em 0 0.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose a[data-lightbox] { display: block; width: min(100%, 300px); margin: 28px auto; }
.prose a[data-lightbox] img { width: 100%; }
.prose .video { margin: 28px 0; }
.prose + .gallery, .gallery + .prose { margin-top: 40px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; background: #111; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.03); }

.contact__logo img { width: 160px; margin-bottom: 40px; }
.page--contact .page__title { margin-bottom: 32px; }
.page--contact .prose { margin-inline: 0; }
.contact__reach {
  margin: 40px 0 12px;
  font-family: var(--font-accent); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 4px;
}
.contact__list { list-style: none; margin: 0; padding: 0; font-size: 22px; line-height: 1.8; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }

/* ---------- stopka ---------- */
.site-footer {
  margin-top: 60px;
  padding-block: 40px 56px;
  border-top: 1px solid #222;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.site-footer p { margin: 0 0 10px; }
.site-footer a { text-decoration: none; color: var(--fg); }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; justify-content: center; gap: 24px; margin: 0 0 14px; padding: 0; list-style: none; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox__img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox__prev, .lightbox__next, .lightbox__close {
  position: fixed;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__close { right: 16px; top: 16px; }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1024px) {
  :root { --heading: 62px; }
  .carousel__slide { flex-basis: calc((100% - var(--gap)) / 2); }
}

@media (max-width: 767px) {
  :root { --heading: 44px; --gutter: 16px; }
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-block: 20px 10px; }
  .hero__tagline { font-size: 18px; letter-spacing: 6px; }
  .section { grid-template-columns: 1fr; row-gap: 20px; padding-block: 36px; }
  .section__title { padding-right: 0; }
  .carousel__slide { flex-basis: 100%; height: 220px; }
  .carousel.is-js .carousel__prev, .carousel.is-js .carousel__next { top: 110px; }
  .page__title { margin-bottom: 32px; }
  .site-nav ul { gap: 4px 18px; }
  .site-nav a { font-size: 15px; }
  .contact__list { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__slide img, .gallery__item img { transition: none; }
  .carousel__slide:hover img, .gallery__item:hover img { transform: none; }
}
