/* ========================================
   DIGITAL ATELIER — Portfolio Detail
   Horizontal scroll on desktop,
   vertical stack on mobile.
   ======================================== */

/* ========================================
   SCROLL HINT
   ======================================== */

.pd-hint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-dim);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-hint__arrow {
  display: inline-block;
  animation: hintPulse 1.6s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50%       { transform: translateX(5px); opacity: 1; }
}

.pd-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

/* ========================================
   HORIZONTAL SCROLL — desktop
   ======================================== */

.pd-hscroll {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.pd-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

/* ── Base panel ── */
.pd-panel {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ========================================
   PANEL 1 — Project Intro
   ======================================== */

.pd-panel--intro {
  width: 100vw;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 100px;
  gap: 0;
  overflow: visible;
}

.pd-intro__num {
  position: absolute;
  top: 48px;
  left: 100px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
}

.pd-intro__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 80px;
}

.pd-intro__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.pd-intro__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.0;
}

/* Each title line reveals separately */
.pd-title-line {
  display: block;
  font-size: clamp(60px, 9vw, 130px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.pd-title-line:last-child {
  padding-left: 4vw;
}

.pd-intro__eyebrow {
  font-family: var(--font);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-dim);
  padding-left: 4px;
}

.pd-intro__right {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 8px;
}

.pd-intro__desc {
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--white-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-intro__desc p {
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--white-dim);
}

.pd-intro__desc p:nth-child(odd) {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--white);
  margin-top: 8px;
}

.pd-intro__desc p:first-child {
  margin-top: 0;
}

.pd-intro__desc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-intro__desc ul li {
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--white-dim);
  padding-left: 14px;
  position: relative;
}

.pd-intro__desc ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--white-dim);
}

.pd-intro__highlight {
  color: var(--white);
}

.pd-intro__tags {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--white-divider);
  padding-top: 24px;
}

.pd-intro__tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pd-intro__tag-label {
  font-family: var(--font);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
}

.pd-intro__tag-value {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

/* ========================================
   PANEL 2 — Hero Image
   ======================================== */

.pd-panel--hero {
  width: 80vw;
  justify-content: center;
  padding: 60px 80px;
}

.pd-hero-img {
  width: 100%;
  height: 82vh;
  overflow: hidden;
  position: relative;
}

.pd-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   PANEL 3 — Gallery 3-up (uniform columns)
   ======================================== */

.pd-panel--gallery {
  width: 100vw;
  align-items: center;
  padding: 60px 80px;
}

.pd-gallery {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  height: 58vh;
}

/* All 3 columns identical — same width, height, alignment */
.pd-gallery__item {
  flex: 1;
  overflow: hidden;
}

.pd-gallery__img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pd-gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   PANEL 4 — Single image
   ======================================== */

.pd-panel--solo {
  width: 55vw;
  padding: 0;
  margin-left: 80px;
  justify-content: center;
  align-items: center;
}

.pd-solo__img-wrap {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.pd-solo__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   PANEL 5 — CTA
   ======================================== */

.pd-panel--cta {
  width: 80vw;
  flex-direction: column;
  justify-content: center;
  padding: 0 100px;
}

.pd-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.pd-cta__heading-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-cta__line {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  /* shared reveal-text initial state from style.css */
}

.pd-cta__line--1 { align-self: flex-start; }
.pd-cta__line--2 { align-self: flex-start; padding-left: 6%; }
.pd-cta__line--3 { font-style: italic; align-self: flex-end; }

.pd-cta__sub-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.pd-cta__sub {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
  max-width: 240px;
  line-height: 1.6;
}

.pd-cta__btn {
  opacity: 1 !important;
  font-size: 12px;
  padding: 13px 26px;
  border: 1px solid var(--white-divider);
  transition: border-color 0.4s ease, background 0.4s ease;
  flex-shrink: 0;
}

.pd-cta__btn:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}


/* ========================================
   MOBILE — 968px and below
   Converts to vertical stack, no GSAP pin
   ======================================== */

@media (max-width: 968px) {

  /* Hide hint on mobile */
  .pd-hint { display: none; }

  /* Reset horizontal scroll to vertical */
  .pd-hscroll {
    height: auto;
    overflow: visible;
  }

  .pd-track {
    flex-direction: column;
    height: auto;
  }

  .pd-panel {
    height: auto;
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }

  /* ── Panel 1 intro ── */
  .pd-panel--intro {
    padding: 120px 40px 80px;
    justify-content: flex-start;
  }

  .pd-intro__num {
    position: static;
    margin-bottom: 48px;
  }

  .pd-intro__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .pd-intro__right {
    max-width: 100%;
  }

  .pd-title-line {
    font-size: clamp(48px, 12vw, 90px);
  }

  /* ── Panel 2 hero ── */
  .pd-panel--hero {
    padding: 0 30px 80px;
  }

  .pd-hero-img {
    height: 60vw;
    min-height: 280px;
  }

  /* ── Panel 3 gallery ── */
  .pd-panel--gallery {
    padding: 0 30px 80px;
  }

  .pd-gallery {
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  /* Uniform stacked columns — same size, centered */
  .pd-gallery__item { height: 62vw; width: 88%; align-self: center; margin-left: 0; }

  /* ── Panel 4 solo ── */
  .pd-panel--solo {
    padding: 0 30px 80px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .pd-solo__img-wrap { height: 100vw; min-height: 440px; }

  /* ── CTA panel ── */
  .pd-panel--cta {
    padding: 80px 40px 120px;
  }

  .pd-cta__inner { gap: 48px; }

  .pd-cta__sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

/* ========================================
   MOBILE — 640px
   ======================================== */

@media (max-width: 640px) {

  .pd-panel--intro {
    padding: 100px 20px 70px;
  }

  .pd-title-line {
    font-size: clamp(44px, 14vw, 72px);
  }

  .pd-intro__num { font-size: 10px; margin-bottom: 36px; }

  .pd-panel--hero { padding: 0 16px 70px; }
  .pd-hero-img { height: 58vw; min-height: 240px; }

  .pd-panel--gallery { padding: 0 16px 70px; }
  .pd-gallery__item { height: 68vw; width: 88%; align-self: center; margin-left: 0; }

  .pd-panel--solo { padding: 0 16px 70px; }
  .pd-solo__img-wrap { height: 120vw; min-height: 420px; }

  .pd-panel--cta { padding: 70px 20px 100px; }

  .pd-cta__line {
    font-size: clamp(38px, 12vw, 60px);
  }

  .pd-cta__line--2 { padding-left: 10%; }
}
