* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 30px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-link {
  color: rgba(245, 245, 245, 0.55);
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: #f5f5f5; }

/* HERO */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}
.hero-slide.active img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.35) 50%, rgba(10, 10, 10, 0.85) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 60px 48px;
  z-index: 2;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 18px;
  max-width: 800px;
}
.hero-title em { font-style: italic; color: rgba(245, 245, 245, 0.55); }
.hero-sub {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.7);
}
.hero-dots {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.4s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.active { background: #f5f5f5; }

/* MARQUEE */
.marquee {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: scroll 28s linear infinite;
}
.marquee-item {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 48px;
  font-weight: 400;
  padding: 0 36px;
  color: rgba(245, 245, 245, 0.85);
}
.marquee-dot {
  display: inline-block;
  color: rgba(245, 245, 245, 0.3);
  font-size: 32px;
  vertical-align: middle;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTIONS */
.section-label {
  padding: 80px 48px 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
}
.section-title {
  padding: 0 48px 40px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title em { font-style: italic; color: rgba(245, 245, 245, 0.5); }

/* TABS */
.cat-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 48px 48px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(245, 245, 245, 0.6);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 999px;
  font-family: inherit;
}
.cat-tab:hover { color: #f5f5f5; border-color: rgba(255, 255, 255, 0.35); }
.cat-tab.active { background: #f5f5f5; color: #0a0a0a; border-color: #f5f5f5; }

/* GRID - MASONRY */
.grid {
  padding: 0 48px 80px;
  column-count: 3;
  column-gap: 18px;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 18px;
  display: block;
}
.tile-mask {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  z-index: 5;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.77, 0, 0.18, 1);
}
.tile.revealed .tile-mask { transform: translateY(-100%); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: block;
  transform: scale(1.08);
}
.tile.revealed img { transform: scale(1); }
.tile:hover img { transform: scale(1.04); }

/* Gradient u dołu kafelka, żeby tytuł był zawsze czytelny */
.tile-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Tytuł serii - zawsze widoczny */
.tile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 22px;
  z-index: 3;
  pointer-events: none;
}
.tile-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #f5f5f5;
  margin-bottom: 6px;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tile-count {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.6);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tile:hover .tile-title { transform: translateY(-4px); }
.tile:hover .tile-count { transform: translateY(-4px); color: rgba(245, 245, 245, 0.85); }

/* Strzałka pojawiająca się przy hover */
.tile-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  font-size: 16px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.tile:hover .tile-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT */
.about {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}
.about-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  line-height: 1.05;
}
.about-text h2 em { font-style: italic; color: rgba(245, 245, 245, 0.5); }
.about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.7);
  margin: 0 0 18px;
  max-width: 540px;
}

/* CONTACT */
.contact {
  padding: 80px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.05;
}
.contact h2 em { font-style: italic; color: rgba(245, 245, 245, 0.5); }
.contact-sub {
  font-size: 14px;
  color: rgba(245, 245, 245, 0.55);
  margin: 0 0 28px;
  line-height: 1.6;
}
.contact-info {
  font-size: 14px;
  color: rgba(245, 245, 245, 0.8);
  line-height: 1.9;
}
.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
  display: block;
  margin-top: 16px;
}
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
  padding: 14px 2px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { border-bottom-color: rgba(245, 245, 245, 0.6); }
.form input::placeholder, .form textarea::placeholder { color: rgba(245, 245, 245, 0.35); }
.form textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}
.form button {
  margin-top: 18px;
  background: #f5f5f5;
  color: #0a0a0a;
  border: none;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.3s;
  align-self: flex-start;
}
.form button:hover { opacity: 0.8; }

/* FOOTER */
.footer {
  padding: 40px 48px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
}

/* LIGHTBOX */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 48px;
}
.lb.open { display: flex; }
.lb img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-family: inherit;
  transition: all 0.25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }
.lb-close { top: 28px; right: 32px; }
.lb-prev { left: 32px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 32px; top: 50%; transform: translateY(-50%); }

/* RESPONSIVE - TELEFONY */
@media (max-width: 700px) {
  .tile-title { font-size: 20px; }
  .grid { gap: 12px; }
.grid { column-count: 2; padding: 0 24px 60px; }
  .hero-title { font-size: 44px; }
  .section-title, .contact h2, .about-text h2 { font-size: 34px; }
  .marquee-item { font-size: 30px; }
  .nav-links { display: none; }
  .about, .contact { grid-template-columns: 1fr; padding: 60px 24px; gap: 36px; }
  .section-label, .section-title, .cat-tabs { padding-left: 24px; padding-right: 24px; }
  .hero-content { padding: 36px 24px; }
  .nav { padding: 16px 24px; }
}