/* =========================================
   CREDITS — GLOBAL
========================================= */

.credits-page {
  --black: #000000;
  --paper: #E8E5DE;
  --muted: #B0B0AA;
  --line: #454642;
  --gold: #C5A46D;

  margin: 0;
  min-height: 100vh;
  background: var(--black) !important;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

.credits-page * {
  box-sizing: border-box;
}

.credits-page button,
.credits-page input,
.credits-page select {
  font: inherit;
}

.credits-page a {
  color: inherit;
  text-decoration: none;
}


/* NAVIGATION — MATCH HOMEPAGE AND ABOUT */

.credits-page .navigation {
    position: relative;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 55px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 11, 10, 0.15);
    border-bottom: 1px solid rgba(232, 229, 222, 0.35);
}

.credits-page .brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.credits-page .logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #E8E5DE;
}

.credits-page .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.credits-page .nav-links a {
    padding: 0;
    color: #E8E5DE;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 1;
    transition: color 0.3s ease;
}

.credits-page .nav-links a:hover {
    color: #C5A46D;
}

.credits-page .sound-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.credits-page .sound-circle {
    width: 10px;
    height: 10px;
    border: 2px solid #E8E5DE;
    border-radius: 50%;
    transition: all 0.3s ease;
}


/* =========================================
   SOUND MENU
========================================= */

.credits-page .sound-panel {
  position: fixed;
  z-index: 200;
  top: 82px;
  right: 30px;
  width: 320px;
  padding: 20px;
  color: var(--paper);
  background: #080908;
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.credits-page .sound-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sound-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.2px;
}

.sound-close {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 22px !important;
  cursor: pointer;
}

.sound-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(232, 229, 222, .17);
}

.sound-section-label,
.volume-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--muted);
}

.sound-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}

.sound-control-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sound-control-row label {
  font-size: 10px;
}

.sound-control-row small {
  font-size: 8px;
  color: var(--muted);
}

.sound-control-row input {
  accent-color: var(--gold);
}

.ambience-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
}

.ambience-selector button,
.ambience-selector select {
  padding: 6px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  font-size: 10px;
}

.ambience-selector select {
  flex: 1;
}

.ambience-selector option {
  color: #000;
}

.volume-label {
  margin: 10px 0;
}

.sound-section input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.mute-button {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
  font-size: 9px !important;
  letter-spacing: 1px;
  cursor: pointer;
}

.mute-button:hover {
  border-color: var(--gold);
}

/* =========================================
   MAIN ARCHIVE GRID
========================================= */

.credits-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 19%) minmax(400px, 1fr) minmax(320px, 29%);
  min-height: calc(100vh - 70px);
  background: #000000;
  border-bottom: 1px solid var(--line);
}

.credits-layout::before,
.credits-layout::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.credits-layout::before {
  left: 19%;
}

.credits-layout::after {
  right: 29%;
}

/* =========================================
   LEFT SIDEBAR
========================================= */

.archive-sidebar {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 48px 24px 28px;
  border-right: 1px solid var(--line);
  background: #000000;
}

.archive-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 28px;
}

/* Page number ABOVE heading */
.archive-heading .archive-index {
  display: block;
  order: -1;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
}

/* Same font family and weight as ABOUT */
.archive-heading h1 {
  margin: 0;
  color: var(--paper);
  font-family: 'DM Sans', sans-serif !important;
  font-size: clamp(42px, 4vw, 58px) !important;
  font-weight: 400 !important;
  line-height: .95 !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase;
}

.category-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.category-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 29px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid rgba(232, 229, 222, .15);
  background: transparent;
  color: var(--paper);
  text-align: left;
  font-size: 9px !important;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.category-filter:hover {
  color: var(--gold);
}

.category-filter.active {
  color: #000;
  background: var(--paper);
}

.filter-count {
  font-size: 8px;
  letter-spacing: 1px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1.4px;
}

.filter-heading button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  cursor: pointer;
}

.filter-heading button:hover {
  color: var(--gold);
}

.filter-group {
  padding: 15px 0 7px;
}

.filter-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.3px;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  cursor: pointer;
}

.radio-list input {
  width: 10px;
  height: 10px;
  margin: 0;
  accent-color: var(--paper);
  cursor: pointer;
}

.radio-list label:has(input:checked) {
  color: var(--paper);
}

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 1px;
}

/* =========================================
   CENTER PROJECT ARCHIVE
========================================= */

.archive-list-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #000000;
}

.archive-list-top {
  display: flex;
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px;
}

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

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(110px, 30%) minmax(0, 1fr) 25px;
  align-items: stretch;
  min-height: 108px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  background: #000000;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}

.project-row:hover {
  background: rgba(232, 229, 222, .045);
}

.project-row.selected {
  background: rgba(232, 229, 222, .075);
  box-shadow: inset 2px 0 var(--gold);
}

.project-number {
  padding: 13px 0 0 12px;
  font-size: 9px;
  letter-spacing: 1px;
}

.project-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  filter: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.project-thumb-placeholder {
  display: grid;
  place-items: center;
  min-height: 108px;
  width: 100%;
  color: var(--muted);
  background: #111;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 2px;
}

.project-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 18px 12px 22px;
}

.project-type {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-title {
  overflow: hidden;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-title small {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
}

.project-role,
.project-year {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.project-arrow {
  align-self: center;
  justify-self: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  transition: transform .2s ease, color .2s ease;
}

.project-row:hover .project-arrow,
.project-row.selected .project-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

.empty-results {
  padding: 45px 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-align: center;
}

/* =========================================
   RIGHT PROJECT DETAIL PANEL
========================================= */

.project-detail-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  min-height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
  background: #000000;
}

.detail-empty {
  min-height: calc(100vh - 70px);
}

.detail-content {
  padding: 18px 22px 30px;
}

.detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.detail-navigation {
  display: flex;
  gap: 17px;
}

.detail-navigation button {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 19px;
  cursor: pointer;
}

.detail-navigation button:hover {
  color: var(--gold);
}

.detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.detail-media img,
.detail-media video,
.detail-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.detail-media img {
  filter: saturate(.65) contrast(1.08);
}

.detail-category {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.detail-title {
  margin: 0 0 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.detail-subtitle {
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.detail-meta {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.8;
  text-transform: uppercase;
}

.detail-description {
  margin-bottom: 22px;
  color: #C7C5BE;
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: .25px;
}

.detail-section {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1.6px;
}

.detail-list {
  padding: 0;
  list-style: none;
}

.detail-list li {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.detail-list li::before {
  content: "/ ";
  color: var(--paper);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  padding: 7px 9px;
  border: 1px solid rgba(232, 229, 222, .35);
  color: var(--paper);
  font-size: 8px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.detail-extra-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.detail-extra-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
  .credits-layout {
    grid-template-columns: 190px minmax(350px, 1fr) 310px;
  }

  .credits-layout::before {
    left: 190px;
  }

  .credits-layout::after {
    right: 310px;
  }

  .archive-sidebar {
    padding-left: 17px;
    padding-right: 15px;
  }

  .project-row {
    grid-template-columns: 30px minmax(95px, 28%) minmax(0, 1fr) 20px;
  }

  .project-summary {
    padding-left: 13px;
    padding-right: 10px;
  }

  .project-title {
    font-size: 13px;
  }

  .credits-page .nav-links {
    gap: 14px;
  }

  .credits-page .nav-links a {
    font-size: 8px;
  }
}

@media (max-width: 800px) {
  .credits-page .navigation {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .credits-page .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
  }

  .credits-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .credits-layout::before {
    left: 180px;
  }

  .credits-layout::after {
    display: none;
  }

  .project-detail-panel {
    position: relative;
    grid-column: 1 / -1;
    min-height: 0;
    max-height: none;
    border-top: 1px solid var(--line);
  }

  .detail-empty {
    min-height: 0;
  }

  .detail-content {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .credits-layout {
    display: flex;
    flex-direction: column;
  }

  .archive-sidebar {
    padding: 25px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-heading h1 {
    font-size: 54px !important;
  }

  .category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .filter-heading {
    grid-column: 1 / -1;
  }

  .filter-group:last-child {
    grid-column: 1 / -1;
  }

  .project-row {
    grid-template-columns: 28px 105px minmax(0, 1fr) 18px;
    min-height: 95px;
  }

  .project-thumbnail,
  .project-thumb-placeholder {
    min-height: 95px;
  }

  .project-summary {
    padding: 9px;
  }

  .project-type,
  .project-role,
  .project-year {
    font-size: 7px;
  }

  .project-title {
    font-size: 11px;
  }

  .detail-content {
    padding: 16px;
  }

  .credits-page .sound-panel {
    right: 12px;
    width: min(320px, calc(100vw - 24px));
  }


/* ARCHIVE SPACING REFINEMENT */

.credits-page .archive-sidebar {
    padding-top: 55px;
}

.credits-page .archive-heading {
    gap: 16px;
    margin-bottom: 22px;
}

.credits-page .category-list {
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.credits-page .category-filter {
    min-height: 27px;
    padding: 4px 8px;
}

.credits-page .filter-group {
    padding: 11px 0 5px;
}

.credits-page .radio-list {
    gap: 5px;
}

.credits-page .archive-list-top {
    padding: 13px 18px;
}

.credits-page .project-row {
    min-height: 100px;
}

.credits-page .project-thumbnail,
.credits-page .project-thumb-placeholder {
    min-height: 100px;
}

.credits-page .project-summary {
    padding: 10px 18px 10px 22px;
}

.credits-page .project-type {
    margin-bottom: 6px;
}

.credits-page .project-title {
    font-size: 15px;
    margin-bottom: 4px;
}



}

/* =========================================
   PROJECT TITLE LINE + FESTIVAL LAURELS
========================================= */

.credits-page .project-summary {
  gap: 0;
}

.credits-page .project-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 4px;
}

.credits-page .project-title {
  min-width: 0;
  margin: 0;
}

.credits-page .project-awards {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 42%;
}

.credits-page .project-award {
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .credits-page .project-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .credits-page .project-awards {
    align-items: flex-start;
    max-width: 100%;
  }
  .credits-page .project-award {
    text-align: left;
  }
}


/* PROJECT LINKS — clean editorial action rows */
.credits-page .detail-links-section {
  margin-top: 24px;
  padding-top: 18px;
}

.credits-page .detail-links-section h3 {
  margin: 0 0 13px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
}

.credits-page .detail-project-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credits-page .detail-project-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(232, 229, 222, .58);
  background: rgba(255, 255, 255, .015);
  color: var(--paper);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.credits-page .detail-project-link:hover,
.credits-page .detail-project-link:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .055);
  transform: translateY(-1px);
  outline: none;
}

.credits-page .detail-project-link-title {
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(10px, .85vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.credits-page .detail-project-link-arrow {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
}

.credits-page .detail-project-link:hover .detail-project-link-arrow,
.credits-page .detail-project-link:focus-visible .detail-project-link-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

@media (max-width: 650px) {
  .credits-page .detail-project-link {
    min-height: 44px;
    padding: 10px 12px;
  }
  .credits-page .detail-project-link-title {
    font-size: 10px;
    letter-spacing: .9px;
  }
}


/* FESTIVAL LAURELS — displayed beneath project links in the detail panel */
.credits-page .detail-laurels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  align-items: center;
}

.credits-page .detail-laurel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 105px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(232, 229, 222, .16);
  background: rgba(255, 255, 255, .02);
}

.credits-page .detail-laurel img {
  display: block;
  width: 100%;
  max-width: 180px;
  max-height: 150px;
  object-fit: contain;
  filter: none;
}

@media (max-width: 520px) {
  .credits-page .detail-laurels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* SIDEBAR ACCORDIONS + MULTI-SELECT FILTERS */
.credits-page .sidebar-accordion { width:100%; border-top:1px solid var(--line); }
.credits-page .sidebar-accordion-heading {
  min-height:38px; display:flex; align-items:center; justify-content:space-between;
  gap:12px; cursor:pointer; list-style:none; color:var(--paper);
  font-size:10px; letter-spacing:1.4px; font-weight:500;
}
.credits-page .sidebar-accordion-heading::-webkit-details-marker { display:none; }
.credits-page .sidebar-accordion-heading::after { content:"+"; color:var(--gold); font-size:14px; }
.credits-page .sidebar-accordion[open] > .sidebar-accordion-heading::after { content:"−"; }
.credits-page .credits-filter .sidebar-accordion-heading button {
  margin-left:auto; border:0; background:transparent; color:var(--muted);
  font-size:9px; letter-spacing:1px; cursor:pointer;
}
.credits-page .credits-filter .sidebar-accordion-heading button:hover { color:var(--gold); }
.credits-page .credits-browse .category-list { padding:0 0 14px; }
.credits-page .credits-filter .filter-controls { padding-top:0; }
.credits-page .radio-list input[type="checkbox"] {
  appearance:none; -webkit-appearance:none; width:10px; height:10px; flex:0 0 10px;
  margin:0 8px 0 0; border:1px solid #77776f; border-radius:50%;
  background:transparent; cursor:pointer;
}
.credits-page .radio-list input[type="checkbox"]:checked {
  border-color:var(--gold); background:var(--gold); box-shadow:inset 0 0 0 2px #080908;
}
.credits-page .radio-list label { cursor:pointer; }
.credits-page .category-filter { text-align:left; }
.credits-page .category-filter.active { color:#000; background:var(--paper); }


/* SIDEBAR POLISH — SINGLE BROWSE, WHITE ACCORDION ICONS, ONE DIVIDER */
.credits-page .sidebar-accordion-heading::after { color:var(--paper); }
.credits-page .credits-browse .category-list { border-bottom:0; }
.credits-page .credits-filter { border-top:1px solid var(--line); }


/* GLOBAL RESET — CLEARLY SEPARATE FROM FILTER CONTROLS */
.credits-page .sidebar-reset-row {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:0 0 12px;
}
.credits-page .sidebar-reset-row button {
  border:0;
  padding:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:8px;
  letter-spacing:1.2px;
  cursor:pointer;
}
.credits-page .sidebar-reset-row button:hover { color:var(--paper); }


/* =========================================================
   MOBILE-ONLY CREDITS REFINEMENT
   Desktop layout and styles above remain unchanged.
========================================================= */
@media (max-width: 800px) {
  .credits-page .credits-layout { display:flex; flex-direction:column; min-height:0; }
  .credits-page .credits-layout::before,
  .credits-page .credits-layout::after { display:none; }

  .credits-page .archive-sidebar {
    width:100%; padding:18px 16px 14px;
    border-right:0; border-bottom:1px solid var(--line);
  }
  .credits-page .archive-heading {
    flex-direction:row; align-items:baseline; gap:14px; margin:0 0 12px;
  }
  .credits-page .archive-heading .archive-index { flex:0 0 auto; font-size:9px; }
  .credits-page .archive-heading h1 {
    font-size:clamp(34px, 9vw, 48px) !important; line-height:.95 !important;
  }
  .credits-page .sidebar-reset-row { margin:0 0 8px; }
  .credits-page .sidebar-accordion { border-top:1px solid var(--line); }
  .credits-page .sidebar-accordion-heading { min-height:34px; font-size:9px; }

  .credits-page .credits-browse .category-list {
    display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:0 8px; margin:0; padding:0 0 8px;
  }
  .credits-page .category-filter {
    min-width:0; min-height:30px; padding:5px 6px;
    font-size:8px !important; letter-spacing:.7px;
  }
  .credits-page .filter-count { margin-left:4px; font-size:7px; }
  .credits-page .credits-filter .filter-controls {
    display:grid; grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:0 14px; padding:0 0 8px;
  }
  .credits-page .credits-filter .filter-group { min-width:0; padding:8px 0 5px; }
  .credits-page .credits-filter .filter-group:last-child { grid-column:1 / -1; }
  .credits-page .credits-filter .radio-list {
    display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:7px 10px;
  }
  .credits-page .credits-filter .radio-list label {
    min-width:0; gap:6px; font-size:8px; line-height:1.35; letter-spacing:.5px;
  }
  .credits-page .archive-sidebar .sidebar-footer { margin-top:10px; padding-top:8px; }

  .credits-page .archive-list-section { width:100%; min-width:0; border-right:0; }
  .credits-page .archive-list-top { padding:12px 14px; font-size:8px; }
  .credits-page .project-row {
    grid-template-columns:27px 88px minmax(0, 1fr) 18px;
    min-height:94px; width:100%;
  }
  .credits-page .project-thumbnail,
  .credits-page .project-thumb-placeholder { min-height:94px; }
  .credits-page .project-number { padding:12px 0 0 7px; font-size:8px; }
  .credits-page .project-summary { min-width:0; padding:9px 8px 9px 11px; overflow:hidden; }
  .credits-page .project-type { margin-bottom:5px; font-size:7px; }
  .credits-page .project-title-line { min-width:0; align-items:flex-start; gap:5px; }
  .credits-page .project-title {
    min-width:0; overflow:visible; font-size:12px; line-height:1.2;
    letter-spacing:.5px; text-overflow:clip; white-space:normal; overflow-wrap:anywhere;
  }
  .credits-page .project-awards { display:none; }
  .credits-page .project-role,
  .credits-page .project-year {
    font-size:7px; line-height:1.5; letter-spacing:.7px; overflow-wrap:anywhere;
  }
  .credits-page .project-arrow { font-size:16px; }

  /* credits.js moves this panel directly after the selected project row. */
  .credits-page .project-detail-panel {
    position:relative; inset:auto; align-self:stretch; width:100%; min-width:0;
    min-height:0; max-height:none; overflow:visible;
    border-top:1px solid var(--gold); border-bottom:1px solid var(--line);
  }
  .credits-page .project-detail-panel:has(.detail-content[hidden]) { display:none; }
  .credits-page .detail-empty { min-height:0; }
  .credits-page .detail-content { width:100%; max-width:none; padding:18px 16px 24px; }
  .credits-page .detail-media { aspect-ratio:16 / 9; max-height:280px; }
  .credits-page .detail-title { font-size:clamp(22px, 6vw, 30px); overflow-wrap:anywhere; }
}


/* MOBILE HEADER — MATCH THE ABOUT PAGE'S TWO-ROW NAVIGATION */
@media (max-width: 800px) {
  .credits-page .navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 12px;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 16px 16px 12px;
  }

  .credits-page .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .credits-page .logo {
    font-size: clamp(13px, 4vw, 18px);
    letter-spacing: 2.5px;
  }

  .credits-page .sound-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .credits-page .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: initial;
    align-items: center;
    gap: 10px 6px;
    width: 100%;
    padding-top: 14px;
    overflow: visible;
  }

  .credits-page .nav-links a {
    display: block;
    min-width: 0;
    font-size: clamp(7px, 2.1vw, 9px);
    letter-spacing: .5px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
  }

  .credits-page .archive-sidebar .sidebar-footer {
    display: none;
  }
}


/* =====================================================
   SHARED MOBILE HEADER — CONSISTENT ACROSS ALL PAGES
   Mobile-only override. Desktop navigation is untouched.
===================================================== */
@media (max-width: 650px) {
  .credits-page .navigation {
    position: relative !important;
    z-index: 100 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 18px 13px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(232, 229, 222, .35) !important;
  }

  .credits-page .navigation > .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
  }

  .credits-page .navigation > .brand .logo {
    display: block !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 3px !important;
    white-space: nowrap !important;
  }

  .credits-page .navigation > .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    order: initial !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-content: initial !important;
    justify-items: center !important;
    gap: 10px 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    overflow: visible !important;
  }

  .credits-page .navigation > .nav-links a {
    display: block !important;
    min-width: 0 !important;
    padding: 3px 0 !important;
    font-family: "DM Mono", monospace !important;
    font-size: clamp(7px, 2vw, 9px) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: .25px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .credits-page .navigation > .sound-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .credits-page .navigation > .sound-toggle .sound-circle {
    width: 12px !important;
    height: 12px !important;
  }

  .credits-page .sound-panel {
    top: 12px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 380px) {
  .credits-page .navigation {
    padding-right: 11px !important;
    padding-left: 11px !important;
  }

  .credits-page .navigation > .nav-links {
    column-gap: 2px !important;
  }

  .credits-page .navigation > .nav-links a {
    font-size: 6.8px !important;
    letter-spacing: 0 !important;
  }
}
