/* ukrywanie nagłówków strukturalnych  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* =====================================================
   1. RESET I BAZA GLOBALNA
   ===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden; /* scroll kontrolowany przez JS */
  font-family: Poppins, Arial, sans-serif;
  background: #14171a;
  color: #fff;
}


/* =====================================================
   2. MECHANIKA SLAJDÓW (NIE DOTYKAĆ PRZY STYLACH)
   Odpowiada wyłącznie za ruch / parallax
   ===================================================== */

.slides {
  position: fixed;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;

  /* pozycja startowa poza kadrem */
  transform: translateY(100%);

  /* tempo i charakter ruchu */
  /* transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); */
  /* transition: transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1); */
  /* transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); */
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* domyślne kolory – można nadpisywać per slajd */
  background: var(--slide-bg, #283540);
  color: var(--slide-color, #fff);
}

.slide.active {
  transform: translateY(0);
}


/* =====================================================
   3. TYPY SLAJDÓW (UKŁAD, NIE TREŚĆ)
   ===================================================== */

/* SLIDE Z TREŚCIĄ WYŚRODKOWANĄ */
.slide--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SLIDE Z OBRAZEM NA CAŁY EKRAN */
.slide--image {
  display: flex;
}

@media (max-width: 768px) {
  .slide--image {
    align-items: stretch;
  }

  .media {
    width: 100%;
    height: 100%;
  }
}

/* SLIDE DZIELONY (np. obraz + tekst) */
.slide--split {
  display: flex;
}

.theme-method {
  background-color: #8697A6;
  color: #ffffff;

}
.theme-competition {
  background-color: #D9D7D7;
  color: #283540;
}
.theme-competition h2 {
  font-weight: 500;
}

.theme-practice {
  /* background-color: #d8432f; */
  background-color: #436073;
  color: #ffffff;
}

.theme-architecture {
  /* background-color: #1a1a18; */
  background-color: #2A4359;
  color: #fff;
}
.theme-interior {
  background-color: #8697A6;
  color: #fff;
}
.theme-contact a {
  text-decoration: none;
  
  color: #fff;
}
/* .theme-contact {
  background-color: #e17d5f;
} */
.contact a {
  display: block;
  /* padding: 3px; */
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
}


/* =====================================================
   4. KONTENER TREŚCI
   Wspólny rytm, marginesy, cisza
   ===================================================== */

.content {
  max-width: 900px;
  padding: 10vh 8vw;
}

/* wariant do wyśrodkowanych haseł */
.slide--center .content {
  text-align: center;
}


/* =====================================================
   5. TYPOGRAFIA BAZOWA
   Jedna skala – zero powtórzeń
   ===================================================== */

blockquote {
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  opacity: 0.85;
}


h2 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.85;
}

p {
  margin-top: 2rem;
  max-width: 420px;
  line-height: 1.6;
  opacity: 0.75;
  font-weight: 300;
}


/* =====================================================
   6. OBRAZY (W HTML, NIE W CSS)
   ===================================================== */

.media {
  flex: 1;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =====================================================
   7. SLIDE TYPU "MARKER" / "ROZDZIAŁ"
   (zapowiedź wizualizacji)
   ===================================================== */

.slide--marker {
  /* domyślny kolor markera */
  background: var(--marker-bg, #111);
  color: var(--marker-color, #fff);

  /* marker porusza się wolniej – pauza */
  transition-duration: 1.2s;
}

.slide--marker h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 300;
}


/* =====================================================
   8. NAWIGACJA – MINIMALISTYCZNA
   ===================================================== */

.nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  padding: 0 4vw;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;
}

.logo img {
  width: 70px;
  height: auto;
  display: block;
}

.nav-right {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #fff;
}


/* =====================================================
   9. MOBILE
   Ten sam układ, inny rytm
   ===================================================== */

@media (max-width: 768px) {

  .content {
    padding: 6vh 6vw;
    text-align: center;
  }

  blockquote {
    font-size: 2.1rem;
  }

  .slide--split {
    flex-direction: column;
  }

}
/* =====================================================
   9. 4k
   Ten sam układ, inny rytm
   ===================================================== */

@media (min-width: 2560px) {

  .content {
  max-width: 1400px;
  padding: 10vh 8vw;
}

}
/* =====================================================
   10. WIZUALIZACJA W MOBILE
   Ten sam układ, inny rytm
   ===================================================== */

.media picture,
.media img {
  width: 100%;
  height: 100%;
  display: block;
}

.media img {
  object-fit: cover;
}



/* FOOTER  */
.slide .slide-footer {
  display: flex;
  justify-content: center;
}
.slide-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;

  text-align: center;
  padding: 0 4vw;

  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.45;

  pointer-events: auto;
  white-space: nowrap;
}

.slide-footer a {
  color: inherit;
  text-decoration: none;

}
@media (max-width: 768px) {
  .slide-footer {
    white-space: normal;
  }
}

/* BACK TO START  */
.back-to-start {
  position: fixed;
  right: 32px;
  bottom: 32px;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: rgba(255,255,255,0.65);

  font-size: 16px;
  line-height: 1;
  cursor: pointer;

  /* opacity: 0.4; */
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 1200;
}

.back-to-start:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}


/* =====================================================
   MOBILE VIEWPORT FIX (iOS / Android)
   ===================================================== */

@media (max-width: 768px) {
  html, body {
    height: 100svh;
  }

  .slides,
  .slide {
    height: 100svh;
  }
}


