/* Mobile navigation: keep controls in the viewport while the document is locked. */
.mobile-nav-spacer-v42 { display: none; }

@media (max-width: 900px) {
  .mobile-nav-spacer-v42 {
    display: block;
    height: var(--mobile-nav-height, 78px);
    flex: none;
  }

  .site-header[data-mobile-nav] {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 100 !important;
    width: 100%;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    background: #f3f0e8 !important;
  }

  .site-header[data-mobile-nav],
  .site-header[data-mobile-nav] .nav {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    perspective: none;
    contain: none;
    overflow: visible;
  }

  .site-header[data-mobile-nav] .nav-toggle {
    position: relative;
    z-index: 5;
    min-width: 72px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 24, 32, .36);
    background: #f3f0e8;
    color: #14202e;
    text-align: center;
    touch-action: manipulation;
  }

  .site-header[data-mobile-nav] .nav-toggle[aria-expanded="true"] {
    color: white;
    border-color: #3157e5;
    background: #3157e5;
  }

  .site-header[data-mobile-nav] .nav-menu-scrim {
    position: fixed;
    z-index: 1;
    inset: var(--mobile-nav-height, 78px) 0 0;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: rgba(20, 24, 32, .42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header[data-mobile-nav] .nav-links {
    position: fixed;
    z-index: 3;
    inset: calc(var(--mobile-nav-height, 78px) + 10px) max(12px, env(safe-area-inset-right)) auto max(12px, env(safe-area-inset-left));
    max-height: calc(var(--mobile-nav-viewport-height, 100dvh) - var(--mobile-nav-height, 78px) - 24px);
    width: auto;
    margin: 0;
    padding: 14px;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border: 1px solid rgba(20, 24, 32, .22);
    border-radius: 12px;
    background: #f8f5ed !important;
    box-shadow: 0 18px 40px rgba(20, 24, 32, .2);
    transform: none !important;
    transition: none !important;
  }

  .site-header[data-mobile-nav] .nav-links.is-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header[data-mobile-nav] .nav-links[hidden],
  .site-header[data-mobile-nav] .nav-menu-scrim[hidden] {
    display: none !important;
  }

  .site-header[data-mobile-nav] .nav-links > a {
    min-height: 52px;
    flex-shrink: 0;
    white-space: normal;
  }

  html.nav-menu-open { overflow: hidden; overscroll-behavior: none; }
  body.nav-menu-open { overflow: visible !important; }
}

/* DP LAB: separate the introduction from the real artwork, with no text texture. */
.project-page--dplab .dplab-hero {
  min-height: 0;
  padding: 80px 0;
  color: #14202e;
  background: #f3f0e8;
}

.project-page--dplab .dplab-hero::before { content: none; display: none; }
.project-page--dplab .dplab-hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  align-items: center;
  gap: 64px;
}
.dplab-hero__copy-v42 { min-width: 0; }
.project-page--dplab .dplab-hero .eyebrow {
  max-width: 100%;
  color: #3157e5;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .1em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.project-page--dplab .dplab-hero h1 {
  max-width: 11em;
  color: #14202e;
  font-size: 52px !important;
  line-height: 1.22 !important;
  word-break: normal;
  overflow-wrap: anywhere;
}
.project-page--dplab .dplab-hero .lead {
  max-width: 34em;
  margin-top: 24px;
  color: #5f6874;
  font-size: 17px;
  line-height: 1.9;
}
.project-page--dplab .dplab-hero .meta {
  margin-top: 24px;
  padding-top: 18px;
  color: #5f6874;
  border-top: 1px solid rgba(20, 24, 32, .18);
  font-size: 13px;
  line-height: 1.8;
}
.project-page--dplab .dplab-hero .project-hero__preview {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, .18);
  background: #faf8f1;
}
.project-page--dplab .dplab-hero .project-hero__preview img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.project-page--dplab .dplab-hero .project-hero__preview figcaption {
  padding: 12px 14px;
  color: #5f6874;
  border-top: 1px solid rgba(20, 24, 32, .12);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
}
@media (max-width: 1100px) {
  .project-page--dplab .dplab-hero > .wrap { gap: 36px; }
  .project-page--dplab .dplab-hero h1 { font-size: 44px !important; }
}
@media (max-width: 900px) {
  .project-page--dplab .dplab-hero { padding: 40px 0 48px; }
  .project-page--dplab .dplab-hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .project-page--dplab .dplab-hero h1 { font-size: 36px !important; }
  .project-page--dplab .dplab-hero .lead { margin-top: 20px; font-size: 16px; }
  .project-page--dplab .dplab-hero .project-hero__preview { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 360px) {
  .project-page--dplab .dplab-hero h1 { font-size: 30px !important; }
}

/* The primary brand heading always reads as one phrase. */
#category-brand-title { white-space: nowrap; grid-column: 1 / -1; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.12; }
@media (max-width: 1100px) { #category-brand-title { font-size: 40px; } }
@media (max-width: 360px) { #category-brand-title { font-size: 36px; } }
