/* ============================================
   Bailey Studio — Project detail page styles
   Layered on top of styles.css; only loaded on /work/*.html pages.
   ============================================ */

/* --------------------------------------------
   Nav: suppress the wordmark entry animation on project pages
   (the home page splits "Bailey" into .letter spans via JS and
   fades the suffix in; project pages should just appear normally)
   -------------------------------------------- */
.nav__brand--static .nav__brand-suffix {
  opacity: 1;
  animation: none;
}

/* Back-to-work nav link (right side, replaces "Termin buchen") */
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.75);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__back:hover {
  color: #f5f1ea;
}

.nav__back-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__back:hover .nav__back-arrow {
  transform: translateX(-4px);
}

/* ============================================
   1. Project intro section
   ============================================ */
.project-intro {
  position: relative;
  z-index: 2;
  /* extra top padding to clear the fixed nav */
  padding: 200px max(80px, 8vw) 80px;
}

.project-intro__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.project-intro__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.project-intro__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.project-intro__kind {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.project-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 32%);
  gap: 80px;
  align-items: start;
}

.project-intro__name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  color: #f5f1ea;
  margin: 0;
  max-width: 700px;
}

.project-intro__metadata {
  margin: 24px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.65);
}

.project-intro__sub {
  margin: 48px 0 16px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #f5f1ea;
}

.project-intro__paragraph {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 241, 234, 0.75);
  max-width: 520px;
}

/* Right-column "Details" panel */
.project-details {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(245, 241, 234, 0.1);
  padding: 32px;
}

.project-details__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
  margin: 0 0 24px;
}

.project-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-details__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.project-details__row:last-child {
  border-bottom: none;
}

.project-details__key {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.5);
}

.project-details__value {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #f5f1ea;
  text-align: right;
}

/* ============================================
   2. Gallery section
   ============================================ */
.gallery {
  position: relative;
  z-index: 2;
  padding: 80px max(80px, 8vw) 120px;
}

.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.gallery__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.gallery__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.gallery__count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

.gallery__item {
  position: relative;
}

.gallery__item--full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  max-height: 600px;
}

.gallery__item--half {
  grid-column: span 6;
  aspect-ratio: 4 / 5;
  max-height: 540px;
}

.gallery__item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

/* "Corrupt image" placeholder — mirrors the home page project cards */
.gallery__placeholder {
  position: absolute;
  inset: 0;
  background: #141414;
  border: 1px dashed rgba(245, 241, 234, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.gallery__icon {
  color: rgba(245, 241, 234, 0.3);
}

.gallery__filename {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.4);
}

/* ============================================
   4. Bottom CTA
   ============================================ */
.project-cta {
  position: relative;
  z-index: 2;
  padding: 120px max(80px, 8vw);
  text-align: center;
}

.project-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.project-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.project-cta__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.project-cta__headline {
  margin: 32px 0 0;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  color: #f5f1ea;
}

.project-cta__headline em {
  font-style: italic;
}

.project-cta__text {
  margin: 32px auto 0;
  max-width: 440px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.7);
}

/* Mirrors .hero__cta from styles.css */
.project-cta__button {
  display: inline-block;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 36px;
  border: 1px solid rgba(245, 241, 234, 0.3);
  background: transparent;
  color: #f5f1ea;
  text-decoration: none;
  cursor: none;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-cta__button:hover {
  background: #ff5b1f;
  border-color: #ff5b1f;
  color: #0a0a0a;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .project-intro {
    padding: 160px 32px 64px;
  }

  .project-intro__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gallery {
    padding: 64px 32px 96px;
  }

  .gallery__item--half {
    grid-column: 1 / -1;
  }

  .project-cta {
    padding: 96px 32px;
  }

  .nav__back {
    font-size: 13px;
  }
}
