/* ════════════════════════════════════════════════════
   PORTFOLIO PROJECT (single) — extends home-page.css.
   Detail page for one portfolio piece: navy hero with
   breadcrumb + meta chips, a framed feature image that
   bridges the hero into the body, a two-column write-up
   (narrative + sticky spec card), prev/next pager, a
   Related Projects grid (reuses .portfolio-card*), and
   the shared .cta-section.
   Relies on home-page.css for: .container, .eyebrow,
   .page-hero-content/-grid/-eyebrow/-title, .hero-shape-*,
   .portfolio-* cards, nav, footer, .cta-section, .reveal.
   ════════════════════════════════════════════════════ */

/* ─── HERO ─────────────────────────────────────────── */
.pp-hero {
  position: relative;
  background: var(--navy-dk);
  overflow: hidden;
  padding: 148px 0 56px;
}

.pp-hero-grid {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

/* Breadcrumb */
.pp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--body);
  font-size: 13px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.pp-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 160ms var(--ease);
}
.pp-breadcrumb a:hover { color: var(--tan); }

.pp-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.28);
  line-height: 1;
}

.pp-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.pp-breadcrumb a:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
  border-radius: 3px;
}

.pp-hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 900;
  color: white;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  max-width: 14ch;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease) 0.25s both;
}

/* Meta chips: date + service + industry */
.pp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 176, 148, 0.28);
}

.pp-chip svg {
  width: 14px;
  height: 14px;
  color: var(--tan);
  flex-shrink: 0;
}

.pp-chip--accent {
  color: var(--navy-dk);
  background: var(--tan);
  border-color: var(--tan);
}
.pp-chip--accent svg { color: var(--navy-dk); }

/* ─── FEATURE IMAGE ────────────────────────────────── */
.pp-feature {
  /* Continuous dark field: hero → feature → body all read as one
     navy zone, so the framed image floats on the same surface. */
  background: var(--navy-dk);
  padding-bottom: 8px;
}

.pp-feature-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(196, 176, 148, 0.22);
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

.pp-feature-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1000 / 667;
  object-fit: cover;
}

/* ─── BODY: narrative + sticky spec card (dark) ────── */
.pp-body {
  background: var(--navy-dk);
  padding: 56px 0 96px;
}

.pp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.pp-section-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan-dk);
  display: block;
  margin-bottom: 20px;
}

/* On the dark body, the eyebrow needs the lighter tan to stay legible. */
.pp-narrative .pp-section-eyebrow { color: var(--tan); }

.pp-narrative > p {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.72);
  max-width: 68ch;
}

.pp-narrative > p + p { margin-top: 22px; }

/* Lede keeps a whisper of emphasis (weight + brightness) but matches the
   body size for an even description block. */
.pp-narrative > p:first-of-type {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

/* ─── ASIDE SPEC CARD ──────────────────────────────── */
.pp-aside {
  position: sticky;
  top: 100px;
}

.pp-card {
  /* Lifted one step lighter than the navy-dk body, with a tan hairline
     and a tinted shadow, so the box reads as elevated dark-on-dark. */
  background: var(--navy);
  border: 1px solid rgba(196, 176, 148, 0.18);
  border-radius: 18px;
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.65);
}

/* Subtle tan glow, echoes the .cta-card treatment. */
.pp-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 176, 148, 0.1), transparent 70%);
  pointer-events: none;
}

.pp-card-block { position: relative; z-index: 1; }

.pp-card-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--tan);
  margin-bottom: 12px;
}

.pp-card-text {
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.pp-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
  margin: 26px 0;
  border: 0;
}

/* Spec list: term + value rows, tabular figures keep sizes aligned. */
.pp-spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.pp-spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.pp-spec-term {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.64);
}

.pp-spec-val {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: white;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

/* ─── PREV / NEXT PAGER (on dark) ──────────────────── */
.pp-pager {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
}

.pp-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 200ms var(--ease);
}
.pp-pager-link--next { text-align: right; align-items: flex-end; }
.pp-pager-link--prev:hover { transform: translateX(-3px); }
.pp-pager-link--next:hover { transform: translateX(3px); }
.pp-pager-link:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 4px;
  border-radius: 6px;
}

.pp-pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
}
.pp-pager-dir svg { width: 14px; height: 14px; }

.pp-pager-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

/* ─── RELATED PROJECTS ─────────────────────────────── */
.pp-related {
  background: var(--white);
  padding: 88px 0 104px;
}

.pp-related-head {
  margin-bottom: 40px;
}

.pp-related-head .pp-section-eyebrow { margin-bottom: 12px; }

.pp-related-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dk);
  line-height: 1.1;
}

.pp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Date tag renders muted (mirrors .pf-tag-date from portfolio-page.css,
   which isn't enqueued here, so the rule is restated for self-sufficiency). */
.pp-related .pf-tag-date {
  color: var(--muted);
  background: transparent;
  padding-left: 0;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 960px) {
  .pp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pp-aside { position: static; }
  .pp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .pp-hero { padding: 120px 0 48px; }
  .pp-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pp-pager { grid-template-columns: 1fr; gap: 20px; }
  .pp-pager-link--next { text-align: left; align-items: flex-start; }
  .pp-pager-link--next:hover { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .pp-breadcrumb,
  .pp-hero-title,
  .pp-hero-meta,
  .pp-feature-frame { animation: none; }
  .pp-pager-link:hover { transform: none; }
}
