/* ============================================
   Design Detail Page — Individual project pages
   ============================================ */

/* --- Project Header Bar (replaces hero) --- */
.project-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: none;
}

.project-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Per-project header backgrounds — flat, matching page bg */
.detail-page--revel .project-header-bg {
  background: #0a0a0f;
}
.detail-page--matchbox .project-header-bg {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.detail-page--fractal .project-header-bg {
  background: #1a2a4a;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.detail-page--settled .project-header-bg {
  background: #f0ebe0;
  border-bottom-color: rgba(42, 37, 32, 0.08);
}

.project-header-title {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

.project-header-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

/* Light-themed header text overrides */
.detail-page--fractal .project-header-title { color: #fff; }
.detail-page--fractal .project-header-status { color: rgba(255, 255, 255, 0.5); }

.detail-page--settled .project-header-title { color: #2a2520; }
.detail-page--settled .project-header-status { color: rgba(42, 37, 32, 0.4); }

/* Spacer to push content below fixed header */
.project-header-spacer {
  height: 64px;
}

/* --- Detail Sections --- */
.detail-section {
  padding: 5rem 2rem;
  background: #0a0a0a;
  color: #fff;
}

.detail-section--dark {
  background: #000;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.detail-section-title {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: #e8622b;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Per-project section title accents — unified orange */
.detail-page--matchbox .detail-section-title { color: #e8622b; }
.detail-page--revel .detail-section-title { color: #e8622b; }
.detail-page--fractal .detail-section-title { color: #e8622b; }
.detail-page--settled .detail-section-title { color: #e8622b; }

.detail-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
}

/* --- Overview Layout --- */
.detail-overview {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.detail-overview-main {
  flex: 1;
  min-width: 0;
}

.detail-overview-main p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.detail-overview-meta {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.meta-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Screen Showcase --- */
.detail-screens {
  padding: 3rem 0;
  background: #0a0a0a;
  overflow: hidden;
}

.detail-screens--dark {
  background: #000;
}

.detail-screens-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-screens-scroll::-webkit-scrollbar {
  display: none;
}

.detail-screen-item {
  flex: 0 0 260px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.detail-screen-item--wide {
  flex: 0 0 480px;
  border-radius: 12px;
}

.detail-screen-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.detail-screen-item--wide .detail-screen-placeholder {
  aspect-ratio: 16 / 10;
}

.detail-screen-placeholder--matchbox {
  background: linear-gradient(160deg, #8c2f39 0%, #c4a882 40%, #3d1c20 100%);
}

.detail-screen-placeholder--revel {
  background: radial-gradient(ellipse at 50% 70%, rgba(180, 40, 200, 0.5) 0%, rgba(60, 10, 120, 0.4) 50%, #0a0a0f 100%);
}

.detail-screen-placeholder--fractal {
  background: linear-gradient(160deg, #ffffff 0%, #e8edf2 40%, #1a2a4a 100%);
  color: rgba(26, 42, 74, 0.4);
}

.detail-screen-placeholder--settled {
  background: linear-gradient(160deg, #f5f0e8 0%, #e8dcc8 40%, #c8b898 100%);
  color: rgba(42, 37, 32, 0.35);
}

/* --- Next Project Link --- */
.detail-next {
  padding: 6rem 2rem;
  background: #0a0a0a;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-next-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.detail-next-link:hover {
  opacity: 0.7;
}

.detail-next-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.detail-next-name {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #e8622b;
  letter-spacing: -0.02em;
}

/* Per-project next-link accent — unified orange */
.detail-page--matchbox .detail-next-name { color: #e8622b; }
.detail-page--revel .detail-next-name { color: #e8622b; }
.detail-page--fractal .detail-next-name { color: #e8622b; }
.detail-page--settled .detail-next-name { color: #e8622b; }

/* --- Fractal: light finance detail page --- */
.detail-page--fractal .detail-section {
  background: #f5f5f5;
  color: #1a1a2e;
}

.detail-page--fractal .detail-section--dark {
  background: #eaeef2;
}

.detail-page--fractal .detail-body {
  color: rgba(26, 26, 46, 0.65);
}

.detail-page--fractal .detail-overview-main p {
  color: rgba(26, 26, 46, 0.65);
}

.detail-page--fractal .meta-label {
  color: rgba(26, 42, 74, 0.35);
}

.detail-page--fractal .meta-value {
  color: rgba(26, 42, 74, 0.7);
}

.detail-page--fractal .detail-screens {
  background: #eaeef2;
}

.detail-page--fractal .detail-screens--dark {
  background: #e0e4e8;
}

.detail-page--fractal .detail-next {
  background: #f5f5f5;
  border-top-color: rgba(26, 42, 74, 0.08);
}

.detail-page--fractal .detail-next-label {
  color: rgba(26, 42, 74, 0.35);
}

/* --- Fractal Split Layout: Sticky Text + Scrollable Screens (mirrors Settled) --- */
.fractal-split {
  display: flex;
  background: #1a2a4a;
  min-height: 100vh;
}

.fractal-split-text {
  flex: 0 0 36%;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 2.5rem 2rem 2.5rem 3rem;
  display: flex;
  align-items: flex-start;
  scrollbar-width: none;
}

.fractal-split-text::-webkit-scrollbar {
  display: none;
}

.fractal-split-text-inner {
  max-width: 400px;
}

.fractal-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-top: 0;
}

.fractal-split-text .detail-section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.fractal-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

/* Text starts light on the blue portion, darkens as background transitions to white */
.fractal-split-text .meta-label {
  color: rgba(255, 255, 255, 0.45);
}

.fractal-split-text .meta-value {
  color: rgba(255, 255, 255, 0.85);
}

.fractal-split-screens {
  flex: 1;
  padding: 2.5rem 3rem 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-content: flex-start;
}

.fractal-screen-card {
  flex: 0 0 100%;
  overflow: hidden;
  background: transparent;
}

.fractal-screen-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .fractal-split {
    flex-direction: column;
  }

  .fractal-split-text {
    position: relative;
    height: auto;
    flex: none;
    padding: 2rem 1.5rem;
  }

  .fractal-split-screens {
    padding: 0 1.5rem 3rem;
  }

  .fractal-screen-card {
    flex: 0 0 100%;
  }
}

/* --- Settled: creamy beige lux detail page --- */
.detail-page--settled .detail-section {
  background: #f0ebe0;
  color: #2a2520;
}

.detail-page--settled .detail-section--dark {
  background: #e8e0d0;
}

.detail-page--settled .detail-body {
  color: rgba(42, 37, 32, 0.6);
}

.detail-page--settled .detail-overview-main p {
  color: rgba(42, 37, 32, 0.6);
}

.detail-page--settled .meta-label {
  color: rgba(42, 37, 32, 0.35);
}

.detail-page--settled .meta-value {
  color: rgba(42, 37, 32, 0.7);
}

.detail-page--settled .detail-screens {
  background: #e8e0d0;
}

.detail-page--settled .detail-screens--dark {
  background: #e0d8c8;
}

/* --- Settled Detail Page: iPad mockup showcase --- */
.settled-detail-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: #e8e0d0;
}

.settled-detail-showcase-inner {
  max-width: 900px;
  width: 100%;
}

.settled-detail-mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 20px 60px rgba(42, 37, 32, 0.2));
}

@media (max-width: 768px) {
  .settled-detail-showcase {
    padding: 2.5rem 1.5rem;
  }
}

/* --- Settled Split Layout: Sticky Text + Scrollable Screens --- */
.settled-split {
  display: flex;
  background: #f0ebe0;
  min-height: 100vh;
}

.settled-split-text {
  flex: 0 0 36%;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 2.5rem 2rem 2.5rem 3rem;
  display: flex;
  align-items: flex-start;
  scrollbar-width: none;
}

.settled-split-text::-webkit-scrollbar {
  display: none;
}

.settled-split-text-inner {
  max-width: 400px;
}

.settled-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-top: 0;
}

.settled-split-text .detail-section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.settled-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(42, 37, 32, 0.6);
  margin-bottom: 1rem;
}

.settled-split-screens {
  flex: 1;
  padding: 2.5rem 3rem 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-content: flex-start;
}

.settled-screen-card {
  flex: 0 0 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e0d0;
  box-shadow: 0 8px 32px rgba(42, 37, 32, 0.12);
}

.settled-screen-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .settled-split {
    flex-direction: column;
  }

  .settled-split-text {
    position: relative;
    height: auto;
    flex: none;
    padding: 2rem 1.5rem;
  }

  .settled-split-screens {
    padding: 0 1.5rem 3rem;
  }

  .settled-screen-card {
    flex: 0 0 100%;
    border-radius: 12px;
  }
}

.detail-page--settled .detail-next {
  background: #f0ebe0;
  border-top-color: rgba(42, 37, 32, 0.08);
}

.detail-page--settled .detail-next-label {
  color: rgba(42, 37, 32, 0.35);
}

/* --- Matchbox: white base detail page --- */

.detail-page--matchbox .project-header-title { color: #1a1a1a; }
.detail-page--matchbox .project-header-status { color: rgba(0, 0, 0, 0.35); }

.detail-page--matchbox .detail-section {
  background: #ffffff;
  color: #1a1a1a;
}

.detail-page--matchbox .detail-section--dark {
  background: #f6f4f1;
}

.detail-page--matchbox .detail-body {
  color: rgba(30, 30, 30, 0.65);
}

.detail-page--matchbox .detail-overview-main p {
  color: rgba(30, 30, 30, 0.65);
}

.detail-page--matchbox .meta-label {
  color: rgba(0, 0, 0, 0.3);
}

.detail-page--matchbox .meta-value {
  color: rgba(0, 0, 0, 0.7);
}

.detail-page--matchbox .detail-next {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.detail-page--matchbox .detail-next-label {
  color: rgba(0, 0, 0, 0.3);
}

.detail-page--matchbox .nav-link {
  color: #1a1a1a;
  mix-blend-mode: normal;
}

.detail-page--matchbox .nav {
  mix-blend-mode: normal;
}

/* ============================================
   Matchbox Case Study — White Base Redesign
   ============================================ */

/* --- Scroll reveal animation --- */
.mb-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.mb-reveal.mb-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mb-split-images .mb-reveal:nth-child(2) {
  transition-delay: 0.15s;
}

/* --- Hero --- */
.mb-hero {
  background: #ffffff;
  padding: 2rem 3rem 3rem;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.mb-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.mb-hero-text {
  flex: 1;
  min-width: 0;
}

.mb-hero-title {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.mb-hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(30, 30, 30, 0.55);
  max-width: 400px;
}

.mb-hero-phone {
  flex: 0 0 484px;
}

.mb-hero-phone img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Text sections --- */
.mb-text-section {
  padding: 6rem 2rem;
  background: #ffffff;
  color: #1a1a1a;
}

.mb-text-section--tinted {
  background: #f6f4f1;
}

/* --- Label tag --- */
.mb-label-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(232, 98, 43, 0.4);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Split layout: sticky images right, scrolling text left --- */
.mb-split {
  display: flex;
  background: #ffffff;
  padding-top: 2rem;
}

.mb-split--tinted {
  background: #f6f4f1;
}

/* Text column: ~1/3, scrolls naturally, content pushed to bottom */
.mb-split-text {
  flex: 0 0 34%;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2.5rem 6rem 4rem;
  min-height: 0;
}

.mb-split-text-inner {
  max-width: 360px;
}

.mb-split-text .detail-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.mb-split-text .detail-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(30, 30, 30, 0.6);
}

/* Images column: ~2/3, sticky so they lock in place */
.mb-split-images {
  flex: 1;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 4rem 2rem 1rem;
}

/* Raw images — no frame */
.mb-img {
  width: 472px;
  height: auto;
  display: block;
}

.mb-img--solo {
  width: 497px;
}

/* Solo variant: single image centered in the sticky column */
.mb-split-images--solo {
  justify-content: center;
}

/* --- Current Solutions image grid --- */
.mb-solutions-images {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.mb-solution-figure {
  flex: 0 1 320px;
  text-align: center;
}

.mb-solution-figure .mb-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.mb-solution-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(30, 30, 30, 0.4);
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .mb-solutions-images {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .mb-solution-figure {
    flex: none;
    width: 100%;
    max-width: 300px;
  }
}

/* --- Next project --- */
.mb-next {
  padding: 8rem 2rem;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Matchbox Responsive --- */
@media (max-width: 768px) {
  .mb-hero {
    padding: 2rem 1.5rem 2rem;
    min-height: calc(100vh - 56px);
  }

  .mb-hero-inner {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .mb-hero-sub {
    max-width: none;
    margin: 0 auto;
  }

  .mb-hero-phone {
    flex: none;
    width: 398px;
  }

  /* Collapse split to stacked on mobile */
  .mb-split {
    flex-direction: column;
  }

  .mb-split-text {
    flex: none;
    align-items: flex-start;
    padding: 3rem 1.5rem 1rem;
  }

  .mb-split-images {
    position: relative;
    top: auto;
    height: auto;
    flex-direction: column;
    padding: 1rem 1.5rem 4rem;
    gap: 2.5rem;
  }

  .mb-img {
    width: 367px;
    max-width: 100%;
  }

  .mb-img--solo {
    width: 389px;
    max-width: 100%;
  }

  .mb-text-section {
    padding: 5rem 1.5rem;
  }

  .mb-next {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .mb-hero-phone {
    width: 336px;
  }

  .mb-img {
    width: 302px;
  }

  .mb-img--solo {
    width: 324px;
  }
}

/* --- Revel: deep purple detail page --- */
.detail-page--revel .detail-section {
  background: #0a0a0f;
}

.detail-page--revel .detail-section--dark {
  background: #070710;
}

.detail-page--revel .detail-screens {
  background: #0a0a0f;
}

.detail-page--revel .detail-screens--dark {
  background: #070710;
}

.detail-page--revel .detail-next {
  background: #0a0a0f;
  border-top-color: rgba(160, 126, 232, 0.1);
}

.detail-page--revel .detail-next-label {
  color: rgba(160, 126, 232, 0.4);
}

/* --- Revel Split Layout: Sticky Text + Scrollable Screens --- */
.revel-split {
  display: flex;
  background: #0a0a0f;
  min-height: 100vh;
}

.revel-split-text {
  flex: 0 0 36%;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 2.5rem 2rem 2.5rem 3rem;
  display: flex;
  align-items: flex-start;
  scrollbar-width: none;
}

.revel-split-text::-webkit-scrollbar {
  display: none;
}

.revel-split-text-inner {
  max-width: 400px;
}

.revel-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-top: 0;
}

.revel-split-text .detail-section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.revel-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.revel-split-screens {
  flex: 1;
  padding: 2.5rem 3rem 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-content: flex-start;
}

.revel-screen-row {
  display: flex;
  gap: 1.5rem;
}

.revel-screen-row {
  flex-wrap: wrap;
}

.revel-screen-card {
  flex: 0 0 calc(50% - 0.75rem);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.revel-screen-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .project-header {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .project-header-spacer {
    height: 56px;
  }

  .revel-split {
    flex-direction: column;
  }

  .revel-split-text {
    position: relative;
    height: auto;
    flex: none;
    padding: 2rem 1.5rem;
  }

  .revel-split-screens {
    padding: 0 1.5rem 3rem;
  }

  .revel-screen-card {
    flex: 0 0 100%;
    border-radius: 12px;
  }

  .detail-section {
    padding: 3.5rem 1.5rem;
  }

  .detail-overview {
    flex-direction: column;
    gap: 2rem;
  }

  .detail-overview-meta {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .detail-screens-scroll {
    padding: 1.5rem;
    gap: 1rem;
  }

  .detail-screen-item {
    flex: 0 0 200px;
    border-radius: 18px;
  }

  .detail-screen-item--wide {
    flex: 0 0 320px;
    border-radius: 10px;
  }

  .detail-next {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .detail-screen-item {
    flex: 0 0 160px;
    border-radius: 14px;
  }

  .detail-screen-item--wide {
    flex: 0 0 280px;
  }
}

/* ============================================
   Project Nav Footer — All Projects + Edge Arrows
   ============================================ */

.project-nav-footer {
  padding: 3rem 2rem 2rem;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  text-align: center;
}

.project-nav-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-items: center;
}

.project-nav-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.75rem;
  display: block;
}

.project-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-nav-item {
  display: block;
  padding: 0.4rem 0;
  transition: opacity 0.3s ease;
}

.project-nav-item:hover {
  opacity: 0.6;
}

.project-nav-item.is-current {
  pointer-events: none;
}

.project-nav-item-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.project-nav-item.is-current .project-nav-item-name {
  color: #e8622b;
}

/* --- Edge Hover Arrows --- */
.edge-arrow {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.edge-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.edge-arrow--prev {
  left: 0;
}

.edge-arrow--next {
  right: 0;
}

.edge-arrow-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.edge-arrow:hover .edge-arrow-icon {
  color: #e8622b;
  transform: scale(1.2);
}

.edge-arrow--prev .edge-arrow-icon {
  transform: translateX(0);
}

.edge-arrow--prev:hover .edge-arrow-icon {
  transform: translateX(-4px) scale(1.2);
}

.edge-arrow--next .edge-arrow-icon {
  transform: translateX(0);
}

.edge-arrow--next:hover .edge-arrow-icon {
  transform: translateX(4px) scale(1.2);
}

/* Light-themed page overrides */
.detail-page--matchbox .project-nav-footer {
  background: #fff;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.detail-page--matchbox .project-nav-col-title {
  color: #c2703a;
}

.detail-page--matchbox .project-nav-item-name {
  color: rgba(0, 0, 0, 0.45);
}

.detail-page--matchbox .project-nav-item.is-current .project-nav-item-name {
  color: #e8622b;
}

.detail-page--matchbox .edge-arrow-icon {
  color: rgba(0, 0, 0, 0.35);
}

.detail-page--fractal .project-nav-footer {
  background: #1a2a4a;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.detail-page--fractal .project-nav-col-title {
  color: rgba(255, 255, 255, 0.25);
}

.detail-page--fractal .project-nav-item-name {
  color: rgba(255, 255, 255, 0.55);
}

.detail-page--fractal .project-nav-item.is-current .project-nav-item-name {
  color: #e8622b;
}

.detail-page--fractal .edge-arrow-icon {
  color: rgba(26, 42, 74, 0.4);
}

/* Settled overrides */
.detail-page--settled .project-nav-footer {
  background: #f0ebe0;
  border-top-color: rgba(42, 37, 32, 0.08);
}

.detail-page--settled .project-nav-col-title {
  color: #c2703a;
}

.detail-page--settled .project-nav-item-name {
  color: rgba(42, 37, 32, 0.45);
}

.detail-page--settled .project-nav-item.is-current .project-nav-item-name {
  color: #e8622b;
}

.detail-page--settled .edge-arrow-icon {
  color: rgba(42, 37, 32, 0.35);
}

/* Fractal nav link overrides for dark header */
.detail-page--fractal .nav-link {
  color: #fff;
  mix-blend-mode: normal;
}

.detail-page--fractal .nav {
  mix-blend-mode: normal;
}

/* Hide status badge so it doesn't bleed through the nav */
.detail-page--fractal .project-header-status {
  display: none;
}

@media (max-width: 768px) {
  .edge-arrow {
    display: none;
  }

  .project-nav-footer {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
