/* PROJECT PAGES
   Shared layout for every case study: compact hero, at-a-glance facts,
   readable text column, captioned figures, and next-project navigation. */

:root {
  --proj-ink: #131313;
  --proj-text: #3d3d3d;
  --proj-muted: #767676;
  --proj-line: #e6e6e6;
  --proj-soft: #f5f5f5;
  --proj-accent: #00ccff;
}

html {
  scroll-behavior: smooth;
}

/* HERO */
.project-hero {
  background: var(--proj-ink);
  color: #fff;
  padding: 170px 0 80px;
}
.project-hero .container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}
.project-hero .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--proj-accent);
  margin-bottom: 16px;
}
.project-hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}
.project-hero .summary {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: #cfcfcf;
  margin-bottom: 36px;
}
.project-hero .hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}

/* META LIST (role, team, timeline, tools) */
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.project-meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 4px;
}
.project-meta dd {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

/* BODY */
.project-body {
  width: 100%;
  background: #fff;
  color: var(--proj-text);
  padding: 80px 0 40px;
}
.project-body .narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.project-body .wide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* AT A GLANCE */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}
.highlights .stat {
  background: var(--proj-soft);
  border-left: 3px solid var(--proj-accent);
  padding: 22px 22px 20px;
}
.highlights .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--proj-ink);
  margin-bottom: 8px;
}
.highlights .stat span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--proj-muted);
}

/* SECTIONS */
.project-section {
  margin-bottom: 80px;
  scroll-margin-top: 30px;
}
.project-section .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--proj-muted);
  margin-bottom: 8px;
}
.project-section h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--proj-ink);
  margin-bottom: 20px;
}
.project-section p,
.project-section li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--proj-text);
}
.project-section p {
  margin-bottom: 18px;
}
.project-section ul {
  padding-left: 20px;
  margin-bottom: 18px;
}
.project-section li {
  margin-bottom: 8px;
}
.project-section li::marker {
  color: var(--proj-accent);
}
.project-section strong {
  font-weight: 600;
  color: var(--proj-ink);
}

/* FIGURES */
.fig {
  margin: 36px 0;
}
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--proj-soft);
}
.fig.contain img {
  max-height: 560px;
  object-fit: contain;
}
.fig figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--proj-muted);
  margin-top: 10px;
}
.fig-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.fig-grid .fig {
  margin: 0;
}
.fig-grid > .fig:last-child:nth-child(odd):not(:first-child) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 12px);
}
.fig-grid .fig img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

/* VIDEOS */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video.vertical {
  aspect-ratio: 9 / 16;
  max-width: 350px;
  margin: 0 auto;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-grid:has(> :only-child) {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .video-grid:has(> :nth-child(4):last-child):has(.vertical) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.video-grid figcaption {
  font-size: 14px;
  color: var(--proj-muted);
  margin-top: 10px;
  text-align: center;
}

/* NEXT / BACK NAVIGATION */
.project-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--proj-line);
  padding: 40px 0 80px;
}
.project-pager a {
  color: var(--proj-ink);
  font-weight: 600;
  text-decoration: none;
}
.project-pager a:hover {
  color: var(--proj-accent);
}
.project-pager .next {
  text-align: right;
}
.project-pager .next small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--proj-muted);
}
.project-pager .next span {
  font-size: 24px;
  font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .project-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-hero h1 {
    font-size: 42px;
  }
}
@media (max-width: 767px) {
  .project-hero {
    padding: 120px 0 50px;
  }
  .project-hero h1 {
    font-size: 34px;
  }
  .project-hero .summary {
    font-size: 17px;
  }
  .project-body {
    padding-top: 50px;
  }
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 60px;
  }
  .highlights .stat {
    padding: 16px 14px;
  }
  .highlights .stat b {
    font-size: 22px;
  }
  .highlights .stat span {
    font-size: 13px;
  }
  .project-section h2 {
    font-size: 26px;
  }
  .project-section p,
  .project-section li {
    font-size: 16px;
  }
  .fig-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .project-pager .next span {
    font-size: 18px;
  }
}
