/* ==========================================================================
   InsiteMedia — Realizacje (portfolio) page styles
   Extends css/style.css. Original layout (not a copy of insitemedia.pl):
   alternating full-bleed project rows with a clip-path reveal wipe on
   scroll, 3D tilt on hover, and a cursor-follow "Zobacz" label.
   ========================================================================== */

#gallery-scene{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display:block;
  background:
    radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  background-color: var(--bg);
}

.chapters-nav__list--simple a{ text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Cursor-follow label -------------------------------------------------- */
.follow-label{
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  pointer-events: none;
  transform: translate3d(-100px,-100px,0) scale(.6);
  opacity: 0;
  transition: opacity .3s ease, transform .12s ease-out;
}
.follow-label span{
  display:inline-flex; align-items:center; justify-content:center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.follow-label.is-visible{ opacity: 1; }

@media (pointer: coarse){
  .follow-label{ display:none; }
}

/* Gallery hero ----------------------------------------------------------- */
.gallery-hero{
  min-height: 92vh;
  display:flex;
  align-items:center;
  padding: 120px 32px 60px;
}
.gallery-hero__inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 44px 40px;
  box-shadow: 0 30px 60px -35px rgba(23,20,15,0.15);
}

/* Projects ---------------------------------------------------------------- */
.projects{
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display:flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 160px);
}

.project-card{
  position: relative;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.project-card--reverse{ direction: rtl; }
.project-card--reverse > *{ direction: ltr; }

.project-card__num{
  position: absolute;
  top: -64px;
  left: -8px;
  font-size: clamp(70px, 9vw, 130px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  z-index: 0;
  user-select: none;
}
.project-card--reverse .project-card__num{ left: auto; right: -8px; }

.project-card__media{
  position: relative;
  z-index: 1;
  border-radius: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.project-card--reverse .project-card__media{
  clip-path: inset(0 0 0 100%);
}
.project-card.is-visible .project-card__media{
  clip-path: inset(0 0 0 0);
}
.project-card__media img{
  width:100%; height:auto; display:block; object-fit: contain;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.project-card__media:hover img{ transform: scale(1.03); }

.project-card__body{ position: relative; z-index: 1; }
.project-card__body h2{
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 16px;
}
.project-card__body p{
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 20px;
}
.project-card__points{
  display:flex; flex-direction: column; gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.project-card__points li{
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.project-card__points li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 1.5px;
  background: var(--accent);
}

.tag{
  display:inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Gallery CTA -------------------------------------------------------------- */
.gallery-cta{
  padding: 100px 32px 140px;
}
.gallery-cta__inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 44px;
  box-shadow: 0 30px 60px -35px rgba(23,20,15,0.15);
}
.gallery-cta__inner h2{
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 18px;
}
.gallery-cta__inner .story-body{ margin: 0 auto 32px; }
.gallery-cta__actions{
  display:flex; gap: 14px; justify-content:center; flex-wrap: wrap;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 860px){
  .project-card, .project-card--reverse{
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .project-card__num{
    position: static;
    display:block;
    font-size: clamp(48px, 16vw, 72px);
    margin: 0 0 12px;
  }
  .project-card--reverse .project-card__num{ text-align: right; }
}
