.project-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 120px;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--font-hover);
}
.back-link:hover {
  color: var(--font);
}

.project-hero {
  margin-bottom: 60px;
}
.project-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--logo-color);
  margin-bottom: 16px;
}
.project-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.project-tagline {
  font-size: 1.25rem;
  color: var(--font-hover);
  line-height: 1.5;
  margin-bottom: 32px;
}
.project-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 32px;
  padding: 24px;
  border-radius: 16px;
  background: var(--about-bg);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}
.project-meta li {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-meta strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--font-hover);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-shot {
  margin: 60px 0;
}
.project-shot img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}
.project-shot figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--font-hover);
  text-align: center;
}

.project-section {
  margin-bottom: 48px;
}
.project-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.project-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-section ul {
  padding-left: 20px;
  line-height: 1.7;
}
.project-section ul li {
  margin-bottom: 8px;
}

.project-impact {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 0;
}
.project-impact li {
  padding: 24px;
  border-radius: 16px;
  background: var(--about-bg);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-impact strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--font-hover);
}

.project-tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}
.project-tech-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--about-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  font-weight: 600;
}

/* DETAIL PAGE v2 (Hello Central) */

.detail-body {
  background: var(--background-color);
}

/* Top nav — simplified single line */
.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 56px;
}
.detail-logo {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--logo-color);
}
.detail-logo:hover { color: var(--logo-color); }
.detail-back {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--font-hover);
}
.detail-back:hover { color: var(--font); }

/* Hero (narrow, 700px) */
.detail-hero {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: left;
}
.detail-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-color);
  margin-bottom: 16px;
}
.detail-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--font);
  margin-bottom: 20px;
}
.detail-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #6b6b6b;
  margin-bottom: 32px;
}
.detail-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.1);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--font);
}

/* Single-image rows (hero shot + inline placeholders), 820px */
.detail-hero-shot {
  max-width: 820px;
  margin: 0 auto 72px;
}
.detail-hero-shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
}
.detail-hero-shot figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b6b6b;
  text-align: center;
}

/* Prose sections (narrow, 700px) */
.detail-section {
  max-width: 700px;
  margin: 0 auto 72px;
}
.detail-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--font);
  margin-bottom: 20px;
}
.detail-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #6b6b6b;
  margin-bottom: 20px;
}
.detail-section p:last-child { margin-bottom: 0; }

/* Screenshot grid (wider, 900px, 2-up) */
.detail-screenshots {
  max-width: 900px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.detail-screenshot {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 20px;
  overflow: hidden;
}
.detail-screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(128, 128, 128, 0.08);
}
.detail-shot-placeholder {
  height: 220px;
  background: rgba(128, 128, 128, 0.08);
}
.detail-screenshot figcaption {
  padding: 22px 26px 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--font);
  font-weight: 500;
}

/* Impact callouts — flat, left-aligned to match prose sections */
.detail-impact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 32px;
  padding: 0;
}
.detail-impact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.detail-impact-num {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--logo-color);
  line-height: 1;
}
.detail-impact-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* PDF embed — full body-container width, framed card */
.detail-pdf-embed {
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.detail-pdf-embed embed {
  display: block;
  width: 100%;
  height: 85vh;
  border: 0;
  background: #fff;
}
.detail-pdf-fallback {
  max-width: 900px;
  margin: 0 auto 72px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b6b6b;
}
.detail-pdf-fallback a {
  color: var(--logo-color);
  font-weight: 500;
}
.detail-pdf-fallback a:hover {
  color: var(--logo-color);
}

/* Bottom prev/next nav (narrow, 700px) */
.detail-bottom-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 80px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 500;
}
.detail-bottom-nav a { color: var(--font); }
.detail-bottom-nav a:hover { color: var(--font-hover); }

/* Mobile */
@media (max-width: 720px) {
  .detail-title { font-size: 2rem; }
  .detail-subtitle { font-size: 1rem; }
  .detail-hero-shot { padding: 24px; }
  .detail-screenshots { grid-template-columns: 1fr; }
  .detail-impact { grid-template-columns: 1fr; }
  .detail-section,
  .detail-hero,
  .detail-bottom-nav { margin-bottom: 56px; }
}

/* Image lightbox modal */
.detail-hero-shot img,
.detail-screenshot img {
  cursor: zoom-in;
}
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: image-modal-fade 200ms ease-out;
}
.image-modal[hidden] {
  display: none;
}
.image-modal-img {
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}
.image-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease-out;
}
.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
@keyframes image-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
