/* ============================================
   OSBORN ASSOCIATES - Projects
   Grid page + individual case study pages
   ============================================ */


/* ============================================
   FILTER BAR
   ============================================ */

.proj-filter { background-color: var(--charcoal-deep); padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }

.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--font-sans); font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-stone);
  padding: 8px 18px; border: 1px solid rgba(122,154,181,0.12);
  background: transparent; cursor: pointer; opacity: 0.6;
  transition: all var(--dur-base) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .filter-btn:not(.active):hover { opacity: 1; border-color: rgba(122,154,181,0.3); }
}
.filter-btn.active { color: var(--charcoal-deep); background-color: var(--warm-off-white); border-color: var(--warm-off-white); opacity: 1; }
.filter-btn:not(.active) { color: var(--warm-stone) !important; background: transparent !important; border-color: rgba(122,154,181,0.12) !important; }


/* ============================================
   PROJECTS GRID
   ============================================ */

.proj-grid-section { background-color: var(--charcoal-deep); padding: 0 0 clamp(64px, 8vw, 100px); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }

/* Project card */
.pcard {
  position: relative; overflow: hidden; cursor: pointer;
  height: clamp(280px, 24vw, 360px); display: flex; flex-direction: column;
  justify-content: flex-end; border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pcard.hidden { display: none; }

.pcard__img { position: absolute; inset: 0; z-index: 1; }
.pcard__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.7) brightness(0.72) contrast(1.02);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.pcard:hover .pcard__img img { transform: scale(1.05); filter: saturate(0.8) brightness(0.6) contrast(1.04); }

.pcard__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(26,28,32,0.05) 30%, rgba(26,28,32,0.82) 100%);
  transition: background 0.8s var(--ease);
}
.pcard:hover .pcard__overlay { background: linear-gradient(180deg, transparent 0%, rgba(26,28,32,0.03) 30%, rgba(26,28,32,0.88) 100%); }

.pcard__body { position: relative; z-index: 5; padding: clamp(18px, 2.2vw, 28px); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pcard__title {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400; color: var(--warm-off-white); margin-bottom: 4px;
  line-height: 1.25; transition: color var(--dur-base) var(--ease);
}
.pcard:hover .pcard__title { color: var(--cream); }
.pcard__location {
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 300;
  color: var(--warm-stone); opacity: 0.55;
}


/* ============================================
   PROJECT CASE STUDY - Hero
   ============================================ */

.proj-hero {
  position: relative; width: 100%; height: 85vh;
  min-height: 500px; max-height: 800px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.proj-hero__bg { position: absolute; inset: 0; z-index: 1; }
.proj-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: saturate(0.5) brightness(0.38) contrast(1.1);
}
.proj-hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(30,32,37,0.3) 0%, rgba(30,32,37,0.05) 30%, rgba(30,32,37,0.85) 100%);
}

.proj-hero__content {
  position: relative; z-index: 10; max-width: var(--max-width); margin: 0 auto;
  width: 100%; padding: 0 var(--section-px) clamp(48px, 6vw, 80px);
}

.proj-hero__back {
  font-family: var(--font-sans); font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; opacity: 0.7; transition: all var(--dur-base) var(--ease);
}
.proj-hero__back:hover { opacity: 1; gap: 14px; }
.proj-hero__back-arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
  transition: width var(--dur-base) var(--ease);
}
.proj-hero__back-arrow::before {
  content: ''; position: absolute; left: 0; top: -2.5px;
  width: 5px; height: 5px; border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: rotate(45deg);
}

.proj-hero h1 {
  font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1; color: var(--warm-off-white); max-width: 700px;
}


/* ============================================
   KEY FACTS STRIP
   ============================================ */

.proj-facts {
  background: var(--charcoal-card);
  border-bottom: 1px solid rgba(122,154,181,0.04);
  padding: clamp(28px, 3.5vw, 40px) 0;
}
.proj-facts__inner {
  display: flex; align-items: center;
  gap: clamp(32px, 4vw, 64px); flex-wrap: wrap;
}
.proj-fact { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(122,154,181,0.08); padding-left: clamp(16px, 2vw, 24px); }
.proj-fact:first-child { border-left: none; padding-left: 0; }
.proj-fact__label {
  font-family: var(--font-sans); font-size: 0.5625rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-blue); opacity: 0.6;
}
.proj-fact__value {
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 300;
  color: var(--warm-off-white); opacity: 0.85;
}


/* ============================================
   CONTENT - Two column editorial
   ============================================ */

.proj-content { background: var(--warm-off-white); }

.proj-content__inner {
  display: grid; grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(40px, 6vw, 100px); align-items: start;
}

/* Sidebar */
.proj-sidebar { position: sticky; top: 120px; }
.proj-sidebar__heading {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400; line-height: 1.25; color: var(--charcoal); margin-bottom: 20px;
}
.proj-highlights { display: flex; flex-direction: column; gap: 12px; }
.proj-highlight { display: flex; align-items: start; gap: 12px; }
.proj-highlight__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-blue); opacity: 0.4; flex-shrink: 0; margin-top: 7px;
}
.proj-highlight span:last-child {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 300;
  line-height: 1.7; color: var(--slate-mid);
}

/* Editorial */
.proj-editorial { max-width: 640px; }
.proj-section { margin-bottom: clamp(40px, 5vw, 56px); }
.proj-section:last-child { margin-bottom: 0; }

.proj-section__eyebrow {
  font-family: var(--font-sans); font-size: 0.5625rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-blue);
  margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.proj-section__eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--muted-blue); opacity: 0.4; }

.proj-section h2 {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 400; line-height: 1.25; color: var(--charcoal); margin-bottom: 16px;
}
.proj-section p {
  font-family: var(--font-sans); font-size: 0.84rem; font-weight: 300;
  line-height: 1.9; color: var(--slate-mid);
}
.proj-section p + p { margin-top: 16px; }


/* ============================================
   NEXT PROJECT
   ============================================ */

.proj-next {
  position: relative; height: clamp(300px, 36vh, 420px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none; cursor: pointer;
}
.proj-next__bg { position: absolute; inset: 0; z-index: 1; }
.proj-next__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 50%;
  filter: saturate(0.5) brightness(0.3) contrast(1.1);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.proj-next:hover .proj-next__bg img { transform: scale(1.04); filter: saturate(0.6) brightness(0.25) contrast(1.12); }
.proj-next__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, rgba(30,32,37,0.3), rgba(30,32,37,0.65));
}
.proj-next__content { position: relative; z-index: 10; text-align: center; padding: 0 var(--section-px); }
.proj-next__label {
  font-family: var(--font-sans); font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-blue); margin-bottom: 14px; opacity: 0.7;
}
.proj-next__title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; line-height: 1.2; color: var(--warm-off-white);
  margin-bottom: 8px; transition: color var(--dur-base) var(--ease);
}
.proj-next:hover .proj-next__title { color: var(--cream); }
.proj-next__location {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 300;
  color: var(--warm-stone); opacity: 0.5;
}


/* ============================================
   PROJECT CTA
   ============================================ */

.proj-cta { background: var(--charcoal-deep); text-align: center; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-content__inner { grid-template-columns: 1fr; gap: 40px; }
  .proj-sidebar { position: static; }
  .proj-hero { height: 60vh; min-height: 400px; }
}

@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .pcard { height: clamp(260px, 65vw, 340px); }
  .filter-bar { gap: 4px; }
  .proj-facts__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .proj-fact { border-left: none; padding-left: 0; border-top: 1px solid rgba(122,154,181,0.06); padding-top: 16px; width: 100%; }
  .proj-fact:first-child { border-top: none; padding-top: 0; }
}