/* ==========================================================================
   Lohabour — Project.css
   Reusable project-case template. Assumes base.css is already loaded
   for variables, typography, buttons, reveal system, section
   primitives, tags, header, and footer. Self-contained.
   ========================================================================== */

.display--sm {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}

.pc-main {
  background: var(--bg);
}

@keyframes pcFadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.pc-fade {
  animation: pcFadeUp 1s var(--ease-soft) var(--d, 0s) both;
}

/* ---------------- 01 / Cinematic hero ---------------- */

.pc-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.pc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
}

.pc-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      ellipse 70% 55% at 50% 50%,
      rgba(10, 10, 9, 0.58) 0%,
      rgba(10, 10, 9, 0.38) 38%,
      rgba(10, 10, 9, 0.12) 68%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 9, 0.50) 0%,
      rgba(10, 10, 9, 0.15) 38%,
      rgba(10, 10, 9, 0.20) 65%,
      rgba(10, 10, 9, 0.90) 100%
    );
}

.pc-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 32px var(--gutter);
}

.pc-hero__inner .mono-label {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-bottom: 22px;
  color: rgba(241, 239, 232, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.pc-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.pc-hero__meta {
  justify-content: center;
  margin-top: 26px;
  color: rgba(241, 239, 232, 0.65);
}

.pc-hero__tags {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.pc-hero__tags .mono-label {
  color: rgba(241, 239, 232, 0.45);
}

.pc-scroll {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pc-scroll .mono-label {
  color: rgba(241, 239, 232, 0.5);
}

.pc-scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: pcScrollLine 2s ease-in-out infinite;
}

@keyframes pcScrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 700px) {
  .pc-hero {
    min-height: 560px;
  }
  .pc-hero__tags {
    gap: 12px 20px;
  }
}

/* ---------------- 02 / Project overview ---------------- */

.pc-overview {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pc-overview__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
}

.pc-overview__text .lede {
  margin-bottom: 18px;
}

.pc-overview__facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.pc-fact {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pc-fact dt {
  margin-bottom: 6px;
  color: var(--accent);
}

.pc-fact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 900px) {
  .pc-overview__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .pc-overview {
    padding: 70px 0;
  }
}

/* ---------------- Full-width image break ---------------- */

/* ---------------- Full-width image break ---------------- */

.pc-fullimage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pc-fullimage img {
  display: block;
  width: 100%;
  height: clamp(340px, 62vw, 780px);
  object-fit: cover;
}

/* Soft dark mask at the bottom for caption readability */
.pc-fullimage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(10, 10, 9, 0.08) 68%,
    rgba(10, 10, 9, 0.38) 84%,
    rgba(10, 10, 9, 0.78) 100%
  );
}

.pc-fullimage__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  z-index: 2;

  margin: 0;
  color: rgba(241, 239, 232, 0.88);

  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.65),
    0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 700px) {

  .pc-fullimage img {
    height: clamp(300px, 78vw, 560px);
  }

  .pc-fullimage::after {
    background: linear-gradient(
      180deg,
      transparent 45%,
      rgba(10, 10, 9, 0.12) 62%,
      rgba(10, 10, 9, 0.48) 82%,
      rgba(10, 10, 9, 0.82) 100%
    );
  }

  .pc-fullimage__caption {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 18px;
  }
}

/* ---------------- Story (alternating image/text) ---------------- */

.pc-story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.pc-story--reverse {
  direction: rtl;
}

.pc-story--reverse > * {
  direction: ltr;
}

.pc-story__media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.pc-story__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-soft);
}

.pc-story__media:hover img {
  transform: scale(1.05);
}

.pc-story__text .mono-label {
  margin-bottom: 6px;
}

.pc-story__text .lede {
  margin-bottom: 16px;
}

.pc-story__list {
  list-style: none;
  padding: 20px 0 0;
  margin: 28px 0 0;

  display: flex;
  flex-direction: column;
  gap: 0;
}

.pc-story__list li {
  display: flex;
  align-items: center;

  padding: 11px 0;

  border-bottom: 1px solid var(--border);

  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.055em;
  text-transform: uppercase;

  color: var(--text);
}

.pc-story__list-num {
  flex: 0 0 32px;

  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.pc-story__list-title {
  flex: 1;
}


@media (max-width: 900px) {
  .pc-story {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pc-story--reverse {
    direction: ltr;
  }

  .pc-story__media {
    aspect-ratio: 16 / 10;
  }

  .pc-story__text {
    max-width: none;
  }
}
/* ---------------- Materials ---------------- */

.pc-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 8px;
}

.pc-materials-item {
  background: var(--bg-secondary);
  padding: 28px 24px;
}

.pc-materials-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px;
}

.pc-materials-item p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .pc-materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .pc-materials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Manufacturing (optional, dark) ---------------- */

.pc-manufacturing {
  padding: 130px 0;
  background: #050504;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pc-manufacturing .section-head {
  max-width: 720px;
}

.pc-manufacturing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}

.pc-manufacturing-step {
  background: #050504;
  padding: 28px 24px;
}

.pc-manufacturing-step .mono-label {
  color: var(--accent);
  margin-bottom: 14px;
}

.pc-manufacturing-step h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}

.pc-manufacturing-step p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .pc-manufacturing {
    padding: 90px 0;
  }
  .pc-manufacturing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pc-manufacturing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Gallery — adapts to image count ---------------- */

.pc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pc-gallery__item {
  margin: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

/* Image */
.pc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.7s var(--ease-soft);
}

.pc-gallery__item:hover img {
  transform: scale(1.06);
}

/* Dark gradient behind the caption */
.pc-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(10, 10, 9, 0.08) 68%,
    rgba(10, 10, 9, 0.35) 84%,
    rgba(10, 10, 9, 0.72) 100%
  );
}

/* Caption */
.pc-gallery__item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;

  margin: 0;

  color: rgba(241, 239, 232, 0.95);

  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.7),
    0 2px 18px rgba(0, 0, 0, 0.4);

  opacity: 0;

  transition:
    opacity 0.3s var(--ease);
}

.pc-gallery__item:hover figcaption {
  opacity: 1;
}

/* ---------------- 5 images ---------------- */

.pc-gallery--5 {
  grid-template-columns: repeat(2, 1fr);
}

.pc-gallery--5 .pc-gallery__item:nth-child(1) {
  grid-column: span 1;
}

.pc-gallery--5 .pc-gallery__item:nth-child(5) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

/* ---------------- 6 images ---------------- */

.pc-gallery--6 {
  grid-template-columns: repeat(2, 1fr);
}

.pc-gallery--6 .pc-gallery__item:nth-child(1),
.pc-gallery--6 .pc-gallery__item:nth-child(2) {
  grid-column: span 1;
}

/* ---------------- Tablet ---------------- */

@media (max-width: 900px) {

  .pc-gallery,
  .pc-gallery--5,
  .pc-gallery--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pc-gallery--5 .pc-gallery__item:nth-child(5) {
    grid-column: 1 / -1;
  }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 560px) {

  .pc-gallery,
  .pc-gallery--5,
  .pc-gallery--6 {
    grid-template-columns: 1fr;
  }

  .pc-gallery--5 .pc-gallery__item:nth-child(5) {
    aspect-ratio: 4 / 3;
  }

  .pc-gallery__item figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ---------------- Specs (clean technical block) ---------------- */

.pc-specs__title {
  margin-bottom: 32px;
}

.pc-specs {
  border-top: 1px solid var(--border);
  margin: 0;
}

.pc-specs__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.pc-specs__row dt {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pc-specs__row dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pc-specs__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------------- Final (full-bleed closing statement) ---------------- */

.pc-final {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.pc-final__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pc-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-final__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      rgba(10, 10, 9, 0.62) 0%,
      rgba(10, 10, 9, 0.42) 42%,
      rgba(10, 10, 9, 0.18) 70%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 9, 0.30) 0%,
      rgba(10, 10, 9, 0.35) 50%,
      rgba(10, 10, 9, 0.88) 100%
    );
}

.pc-final__inner {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px var(--gutter);
}

.pc-final__inner .mono-label {
  justify-content: center;
}

.pc-final__inner .display {
  margin: 16px auto 20px;
}

.pc-final__inner .lede {
  margin: 0 auto;
  max-width: 56ch;
}

@media (max-width: 700px) {
  .pc-final {
    min-height: 64vh;
  }
}

/* ---------------- Next project ---------------- */

.pc-next {
  position: relative;
}

.pc-next__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Larger next-project image */
  min-height: 80vh;

  overflow: hidden;
  text-align: center;
}

.pc-next__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pc-next__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  filter: saturate(0.9) brightness(0.7);
  transform: scale(1.02);

  transition:
    transform 1s var(--ease-soft),
    filter 1s var(--ease);
}

.pc-next__link:hover .pc-next__media img {
  transform: scale(1.08);
  filter: saturate(1) brightness(0.5);
}

.pc-next__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      ellipse 65% 60% at 50% 50%,
      rgba(10, 10, 9, 0.58) 0%,
      rgba(10, 10, 9, 0.34) 45%,
      rgba(10, 10, 9, 0.10) 75%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 9, 0.42) 0%,
      rgba(10, 10, 9, 0.82) 100%
    );
}

.pc-next__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px var(--gutter);
}

.pc-next__inner .mono-label:first-child {
  color: var(--accent);
  margin-bottom: 8px;
}

.pc-next__inner .display {
  margin: 0 0 10px;
}

.pc-next__cta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pc-next__link:hover .pc-next__cta {
  color: var(--accent);
  border-color: var(--accent);
}

.pc-next__back {
  display: block;
  text-align: center;
  padding: 24px 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.pc-next__back:hover {
  color: var(--accent);
}

@media (max-width: 700px) {

  .pc-hero__gradient {
    background:
      radial-gradient(
        ellipse 100% 55% at 50% 50%,
        rgba(10, 10, 9, 0.68) 0%,
        rgba(10, 10, 9, 0.48) 45%,
        rgba(10, 10, 9, 0.20) 75%,
        transparent 100%
      ),
      linear-gradient(
        180deg,
        rgba(10, 10, 9, 0.55) 0%,
        rgba(10, 10, 9, 0.30) 50%,
        rgba(10, 10, 9, 0.92) 100%
      );
  }

  .pc-hero__title {
    font-size: clamp(36px, 10vw, 54px);
    line-height: 1.08;
    text-shadow:
      0 2px 18px rgba(0, 0, 0, 0.8),
      0 0 35px rgba(0, 0, 0, 0.45);
  }

  .pc-final__gradient {
    background:
      radial-gradient(
        ellipse 100% 60% at 50% 50%,
        rgba(10, 10, 9, 0.72) 0%,
        rgba(10, 10, 9, 0.48) 50%,
        rgba(10, 10, 9, 0.90) 100%
      );
  }

  .pc-next__gradient {
    background:
      radial-gradient(
        ellipse 100% 60% at 50% 50%,
        rgba(10, 10, 9, 0.70) 0%,
        rgba(10, 10, 9, 0.48) 50%,
        rgba(10, 10, 9, 0.88) 100%
      );
  }
}

/* ---------------- Not found ---------------- */

.pc-notfound {
  padding: 200px 0 140px;
}

@media (prefers-reduced-motion: reduce) {
  .pc-hero__media img,
  .pc-story__media img,
  .pc-gallery__item img,
  .pc-next__media img {
    transform: none;
  }
  .pc-scroll__line {
    animation: none;
  }
}