/* =========================================================
   A1 Joinery Studio — project detail page styles
   ========================================================= */

.project { display: block; }

/* ===================== Hero ===================== */
.project__hero {
  position: relative;
  width: 100%;
  height: clamp(560px, 80vh, 820px);
  overflow: hidden;
  background: var(--charcoal);
  margin-bottom: 0;
}
.project__hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.project__hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.25) 30%, rgba(10,10,10,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 60%);
  z-index: 1;
}
.project__hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(48px, 6vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.project__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linen-soft);
  margin-bottom: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.project__back:hover { color: var(--brass); border-bottom-color: var(--brass); }
.project__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 88px);
  color: var(--linen);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.project__lede {
  margin: 28px 0 0;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--linen-soft);
  max-width: 56ch;
  line-height: 1.6;
}

/* ===================== Specs strip ===================== */
.project__specs {
  padding: 36px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  background: var(--void);
}
.project__specs-list {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.project__spec {
  padding: 0 24px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.project__spec:first-child { padding-left: 0; }
.project__spec:last-child { border-right: 0; padding-right: 0; }
.project__spec dt {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.project__spec dd {
  margin: 0;
  font-size: 14px;
  color: var(--linen-soft);
  line-height: 1.5;
}

/* ===================== Story ===================== */
.project__story {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.project__story-inner {
  max-width: 880px;
  margin: 0 auto;
}
.project__story-inner .eyebrow { margin-bottom: 28px; }
.project__p {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  color: var(--linen-soft);
  line-height: 1.75;
  margin: 0 0 32px;
}
.project__p:first-of-type {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--linen);
  margin-bottom: 48px;
  letter-spacing: -0.005em;
}
.project__figure {
  margin: 56px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--charcoal);
}
.project__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===================== Testimonial ===================== */
.project__testimonial {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--void);
  position: relative;
}
.project__testimonial-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.project__quote-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(120px, 16vw, 180px);
  line-height: 0.8;
  color: var(--brass);
  opacity: 0.35;
  display: block;
  margin-bottom: -32px;
}
.project__quote {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--linen);
  margin: 0 0 36px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.project__quote-sig {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--warm-grey);
}
.project__quote-sig em {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--linen);
  margin-right: 4px;
}
.project__quote-line {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--brass);
}

/* ===================== Related ===================== */
.related {
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(72px, 10vw, 120px);
}
.related__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* ===================== Missing ===================== */
.project__missing {
  padding: clamp(160px, 22vw, 240px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
}
.project__missing .section__title {
  margin: 16px 0 24px;
}
.project__missing a { color: var(--brass); border-bottom: 1px solid var(--brass-dim); }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .project__specs-list { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .project__spec { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .project__spec:nth-child(2n) { border-right: 0; }
  .project__spec:first-child { padding-left: 16px; }
  .project__spec:last-child { border-bottom: 0; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .project__hero { height: 90vh; min-height: 540px; }
  .project__title { font-size: clamp(36px, 11vw, 56px); }
  .project__specs-list { grid-template-columns: 1fr; gap: 0; }
  .project__spec { padding: 16px 0; border-bottom: 1px solid var(--hairline); border-right: 0; }
  .project__spec:last-child { border-bottom: 0; }
  .project__figure { margin: 36px 0; }
  .related__grid { grid-template-columns: 1fr; }
}
