/* ==========================================================
   PROJECT PAGE — single project layout
   ========================================================== */

html, body.ibe-about-body { overflow-x: clip; }

/* Topnav sits absolute over the project banner */
body.single-ibe_project .ibe-topnav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}

/* ---------- Banner ---------- */
.project-banner {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}
.banner-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.05) 0%,
      rgba(0,0,0,0.05) 45%,
      rgba(0,0,0,0.35) 65%,
      rgba(0,0,0,0.65) 100%,
      rgba(14,14,14,0.95) 70%,
      #0E0E0E 100%
    );
}

.banner-caption {
  position: absolute;
  left: 50%;
  bottom: 6.5rem;
  transform: translateX(-50%);
  z-index: 11;
  text-align: center;
  color: #FFFAF6;
  padding: 0 1.5rem;
  max-width: 900px;
  width: 100%;
}
.caption-label {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
.caption-heading {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  color: #FFFAF6;
  text-transform: uppercase;
}
.caption-details {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0;
  color: #FFFAF6;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 11;
}
.scroll-hint .ibe-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  display: block;
  position: relative;
}
.scroll-hint .ibe-mouse::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 2px; height: 7px;
  background: #FFFAF6;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDotFall 1.8s ease-in-out infinite;
}
@keyframes scrollDotFall {
  0%   { transform: translate(-50%, 0);  opacity: 1; }
  70%  { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0);  opacity: 0; }
}

/* ---------- Story ---------- */
.project-story {
  background: #0E0E0E;
  color: #EAE6DE;
  padding: 3.5rem 3rem;
  position: relative;
}
.project-story::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -220px;
  height: 220px;
  background: linear-gradient(to bottom, rgba(14,14,14,0) 0%, rgba(14,14,14,0.35) 40%, rgba(14,14,14,0.85) 80%, #0E0E0E 100%);
  pointer-events: none;
  z-index: 3;
}
.story-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}
.project-story h3 {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #FFFAF6;
  margin: 0 0 0.85rem;
  letter-spacing: 0;
}
.project-story p,
.highlight-value {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #FFFAF6;
  margin: 0;
}
.story-text p + p { margin-top: 0.9rem; }

.story-highlights {
  display: grid;
  gap: 1.75rem;
}
.highlight-item h3 { margin-bottom: 0.45rem; }

.services-provided { margin-top: 1.75rem; }

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.service-pill {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #434142;
  padding: 0.45rem 1rem;
  border: 1px solid #FFFAF6;
  border-radius: 999px;
  background: #FFFAF6;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Gallery showcase ---------- */
.gallery-showcase {
  position: relative;
  background: #FAF5EE;
  padding: 0;
  margin: 0;
  isolation: isolate;
  overflow: visible;
}
.gallery-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: #0E0E0E;
  z-index: -1;
}
.showcase-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  height: auto;
}
.showcase-reel {
  position: relative;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.2, 1);
  visibility: hidden;
}
.showcase-reel.is-ready { visibility: visible; }
.showcase-photo {
  flex: 0 0 auto;
  aspect-ratio: 768 / 479;
  width: clamp(260px, 50vw, 768px);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, filter 0.7s ease;
  opacity: 1;
  filter: none;
  cursor: pointer;
}
.showcase-photo.is-featured { cursor: default; }

/* ---------- Arrow controls ---------- */
.gallery-controls {
  background: #FAF5EE;
  padding: 1.5rem 0 3.5rem;
}
.controls-row {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
}
.nav-arrow {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  color: #434142;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-arrow:hover { color: #434142; transform: translateY(-1px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .project-banner { min-height: 420px; }
  .banner-caption { bottom: 4.5rem; padding: 0 1.25rem; }

  .project-story { padding: 2.25rem 1.25rem; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }

  .showcase-frame { padding-top: 100px; }
  .showcase-photo { width: 80vw; }
  .controls-row { gap: 2rem; }
  .nav-arrow { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* ── Lightbox ── */
#ibe-lb {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#ibe-lb.is-open { display: flex; }
.ibe-lb__bd {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
}
.ibe-lb__wrap {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.ibe-lb__img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  display: block;
}
.ibe-lb__close,
.ibe-lb__prev,
.ibe-lb__next {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  cursor: pointer; line-height: 1;
  transition: background .2s;
}
.ibe-lb__close:hover, .ibe-lb__prev:hover, .ibe-lb__next:hover {
  background: rgba(255,255,255,.25);
}
.ibe-lb__close { top: 1.25rem; right: 1.25rem; font-size: 2rem; width: 44px; height: 44px; border-radius: 50%; }
.ibe-lb__prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0.25rem 0.75rem; border-radius: 4px; }
.ibe-lb__next  { right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0.25rem 0.75rem; border-radius: 4px; }
