/* ==========================================================================
   Vijay Rajkumar — Atlas & Werkverzeichnis
   Designed in the spirit of Gerhard Richter's Atlas, Farbtafeln & Walther König monographs
   ========================================================================== */

:root {
  --bg: #f6f6f4;
  --surface: #ecebe8;
  --surface-card: #fafaf8;
  --ink: #141413;
  --ink-body: #242422;
  --ink-muted: #6c6b66;
  --ink-faint: #9c9b95;
  --rule: #e1e0dc;
  --rule-strong: #c8c7c1;
  --font-sans: "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Inter", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1560px;
  --gutter: clamp(20px, 3.4vw, 52px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.img-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header — Crisp Opaque Archival Masthead (Zero Glassmorphism)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.brand-cluster {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.wordmark {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-descriptor {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 30px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* Main container */
.app-root {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--gutter) 36px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* ==========================================================================
   Calm Single-Baseline Atlas Index Bar
   ========================================================================== */

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 15px 0;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.controls-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.control-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 2px;
}

.filter-btn {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  padding: 2px 0;
  position: relative;
  transition: color 0.18s ease;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.is-active {
  color: var(--ink);
}

.filter-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}

.control-divider {
  width: 1px;
  height: 11px;
  background: var(--rule-strong);
  margin: 0 4px;
  align-self: center;
}

.year-drawer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

/* Active conceptual thread filter bar */
.active-thread-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--rule);
  margin-top: -22px;
  margin-bottom: 30px;
  font-size: 12.5px;
}

.thread-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.thread-type {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.thread-clear {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.thread-clear:hover {
  color: var(--ink);
}

/* Gerhard Richter Farbtafeln (Colour Charts) Discrete Chip Strip */
.spectrum-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 2px;
  width: 100%;
  margin: -14px 0 32px;
}

.spectrum-swatch {
  height: 10px;
  display: block;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.spectrum-swatch:hover {
  transform: scaleY(1.35);
}

/* ==========================================================================
   Richter Atlas Visual Field (Uncropped Plates + Quiet Gallery Focus)
   ========================================================================== */

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

.atlas-grid.is-spectrum-grid {
  row-gap: clamp(24px, 2.8vw, 42px);
}

.atlas-column {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.7vw, 40px);
}

.plate-card {
  display: block;
  position: relative;
  cursor: pointer;
  scroll-margin-top: 96px;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Quiet museum spotlight: unhovered plates gently recede while hovered plate stays crisp */
@media (hover: hover) and (pointer: fine) {
  .atlas-grid:hover .plate-card {
    opacity: 0.68;
  }
  .atlas-grid:hover .plate-card:hover,
  .atlas-grid:hover .plate-card:focus-visible,
  .atlas-grid .plate-card.is-highlighted {
    opacity: 1;
  }
}

.plate-frame {
  position: relative;
  width: 100%;
  background: var(--surface);
  overflow: hidden;
  line-height: 0;
}

.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Zero hover-zoom: Richter framing is never cropped */
}

.plate-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.plate-card:hover .plate-caption,
.plate-card:focus-visible .plate-caption,
.plate-card.is-highlighted .plate-caption {
  opacity: 1;
}

.plate-title {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plate-right {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.plate-medium {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.plate-year {
  font-size: 11px;
  color: var(--ink-faint);
}

.plate-color-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  display: inline-block;
  align-self: center;
  margin-right: 2px;
}

/* Text-only archival plate */
.plate-text-only {
  border: 1px solid var(--rule-strong);
  background: var(--surface-card);
  padding: 28px 22px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.plate-card:hover .plate-text-only {
  border-color: var(--ink);
}

.plate-text-only-title {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.38;
}

.plate-text-only-meta {
  font-size: 11px;
  color: var(--ink-faint);
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* ==========================================================================
   Project Monograph View
   ========================================================================== */

.project-back-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.back-link {
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--ink);
}

.project-wvz {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 36px 72px;
  margin-bottom: 52px;
  align-items: start;
}

.project-year-kicker {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.project-title {
  font-size: clamp(25px, 2.9vw, 38px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.16;
  margin: 0 0 22px;
  color: var(--ink);
}

.project-description {
  max-width: 60ch;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.74;
  letter-spacing: -0.003em;
}

.project-description p {
  margin: 0 0 15px;
}

.project-description p.is-credits-line {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.project-description p.is-year-subhead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 20px 0 6px;
}

.project-description p.is-venue-line,
.project-description p.is-compact-line {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 4px;
}

.project-description a {
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.15s ease;
}

.project-description a:hover {
  border-bottom-color: var(--ink);
}

.project-ledger {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  align-items: baseline;
}

.ledger-key {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
}

.ledger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 11px;
}

.tag-link {
  color: var(--ink-body);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* PDF / Publication links */
.project-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-card);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: border-color 0.18s ease;
}

.doc-link:hover {
  border-color: var(--ink);
}

/* Screening-Room Video Proportions (Fits Comfortably Within Viewport) */
.project-videos {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 56px;
}

.project-videos.is-supplemental {
  margin-top: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.video-shell {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(75vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #111110;
  overflow: hidden;
}

.video-shell iframe,
.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-poster-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111110;
  cursor: pointer;
  padding: 0;
}

.video-poster-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.28s ease;
}

.video-poster-facade:hover img {
  opacity: 0.78;
}

.video-play-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(20, 20, 19, 0.84);
  border: 1px solid rgba(246, 246, 244, 0.55);
  color: #f6f6f4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.video-poster-facade:hover .video-play-badge {
  background: #141413;
  border-color: #f6f6f4;
}

.video-play-tri {
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7.5px solid #f6f6f4;
}

.video-caption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* Archival SoundCloud Audio Framing */
.project-audios {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 52px;
}

.audio-card {
  border: 1px solid var(--rule);
  background: var(--surface-card);
  padding: 16px 18px 14px;
}

.audio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.audio-ext-link {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.audio-ext-link:hover {
  color: var(--ink);
}

.audio-card iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

/* Record / Release Split Layout */
.audio-release-layout {
  display: grid;
  grid-template-columns: minmax(260px, 480px) minmax(300px, 1fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
  margin-bottom: 64px;
}

.audio-release-sleeves {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.audio-release-layout .project-audios {
  margin-bottom: 0;
  width: 100%;
}

/* Subfolder group navigation (e.g. Nervi buildings) */
.group-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.group-section {
  margin-bottom: 64px;
  scroll-margin-top: 88px;
}

.group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.group-count {
  font-size: 11px;
  color: var(--ink-faint);
}

.group-description {
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: -4px 0 22px;
}

.group-description p {
  margin: 0 0 10px;
}

/* ==========================================================================
   Project Image Galleries — Uncropped Plates & Balanced Masonry
   ========================================================================== */

.project-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 2), minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
  margin-bottom: 64px;
}

.project-gallery-column {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 30px);
  min-width: 0;
}

.project-gallery-single {
  margin-bottom: 64px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.project-gallery-single .gallery-item {
  width: auto;
  max-width: 100%;
}

.project-gallery-single .gallery-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.gallery-item {
  position: relative;
  width: 100%;
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
  align-self: start;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Connected Works */
.connected-section {
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

.section-kicker {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 24px;
  font-weight: 400;
}

.connected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}

.connected-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .connected-grid:hover .connected-card {
    opacity: 0.68;
  }
  .connected-grid:hover .connected-card:hover {
    opacity: 1;
  }
}

.connected-thumb {
  position: relative;
  width: 100%;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 0;
}

.connected-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.connected-title {
  font-size: 13.5px;
  font-weight: 400;
  margin-bottom: 3px;
}

.connected-threads {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* Sequential Catalogue Footer Nav */
.project-pager {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 46%;
}

.pager-link.is-next {
  text-align: right;
  margin-left: auto;
}

.pager-dir {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pager-title {
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.pager-link:hover .pager-title {
  color: var(--ink);
}

/* ==========================================================================
   Werkverzeichnis / Catalogue Index View
   ========================================================================== */

.index-view {
  padding-top: 28px;
}

.index-row {
  display: grid;
  grid-template-columns: 74px 56px minmax(200px, 1.55fr) minmax(150px, 1fr) minmax(130px, 0.85fr) 64px;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: opacity 0.2s ease;
}

.index-row.is-head {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .index-view:hover .index-row:not(.is-head) {
    opacity: 0.68;
  }
  .index-view:hover .index-row:not(.is-head):hover {
    opacity: 1;
  }
}

.index-wvz {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.index-thumb {
  position: relative;
  width: 52px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.index-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.index-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.index-title-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.index-mobile-meta {
  display: none;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.plate-open-cue {
  display: none;
  font-size: 10px;
  color: var(--ink);
  margin-left: 2px;
}

/* Touch / mobile: keep Field plates pure and uncaptioned at rest; reveal on tap-to-peek */
@media (hover: none), (pointer: coarse) {
  .plate-caption {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    transition: opacity 0.22s ease, max-height 0.24s ease, padding-top 0.22s ease;
  }

  .atlas-grid.has-touch-peek .plate-card {
    opacity: 0.65;
  }

  .atlas-grid.has-touch-peek .plate-card.is-touch-peek {
    opacity: 1;
  }

  .plate-card.is-touch-peek .plate-caption {
    opacity: 1;
    max-height: 240px;
    overflow: visible;
    padding-top: 7px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .plate-card.is-touch-peek .plate-title {
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.32;
    font-size: 11.5px;
    color: var(--ink);
  }

  .plate-card.is-touch-peek .plate-right {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
  }

  .plate-card.is-touch-peek .plate-medium {
    display: inline;
    font-size: 10.5px;
    color: var(--ink-muted);
  }

  .plate-card.is-touch-peek .plate-open-cue {
    display: inline;
  }
}


.index-role,
.index-mediums {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.index-count {
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
}

/* ==========================================================================
   About View
   ========================================================================== */

.about-view {
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
  gap: 44px 80px;
  align-items: start;
}

.about-prose {
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.004em;
  color: var(--ink-body);
  max-width: 56ch;
}

.about-prose p {
  margin: 0 0 22px;
}

.about-contact {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.about-contact h3,
.about-aside h3 {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 8px;
  font-weight: 400;
}

.contact-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  font-size: 13px;
  line-height: 1.55;
  align-items: baseline;
}

.about-aside {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 12.5px;
}

/* ==========================================================================
   Screening-Room Lightbox
   ========================================================================== */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
}

.lightbox-stage {
  position: relative;
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img-wrap {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.lightbox-stage img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-stage figcaption {
  font-size: 11.5px;
  color: rgba(246, 246, 244, 0.68);
  letter-spacing: 0.03em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  color: rgba(246, 246, 244, 0.65);
  font-size: 24px;
  padding: 12px 16px;
  transition: color 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: #ffffff;
}

.lightbox-close {
  top: 16px;
  right: 22px;
  font-size: 28px;
}

.lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-controls-summary {
  display: none;
}
.mobile-group-label {
  display: none;
}


/* ==========================================================================
   Responsive — Preserving Gerhard Richter's 2-Column Atlas Field on iPhone
   ========================================================================== */

@media (max-width: 1180px) {
  .atlas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-header,
  .about-view,
  .audio-release-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .audio-release-sleeves {
    max-width: 440px;
  }
  .index-row {
    grid-template-columns: 54px 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px 0;
  }
  .index-row.is-head {
    align-items: center;
    padding: 0 0 12px;
  }
  .index-wvz {
    padding-top: 2px;
    font-size: 10.5px;
  }
  .index-mobile-meta {
    display: block;
  }
  .index-role,
  .index-mediums,
  .index-count,
  .index-row.is-head > :nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 14px;
  }

  .header-inner {
    padding: 13px var(--gutter);
    padding-top: max(13px, env(safe-area-inset-top));
    gap: 12px;
    align-items: center;
  }

  .brand-cluster {
    flex-direction: column;
    gap: 1px;
  }

  .wordmark {
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }

  .brand-descriptor {
    font-size: 10px;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 0;
  }

  .mobile-controls-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 18px;
  }

  .mobile-drawer-toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--ink);
    padding: 4px 0;
  }

  .mobile-summary-state {
    color: var(--ink-faint);
  }

  .mobile-quick-actions {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
  }

  .mobile-quick-btn {
    font-size: 11.5px;
    color: var(--ink-muted);
    padding: 4px 0;
  }

  .mobile-quick-btn.is-active {
    color: var(--ink);
  }

  .mobile-controls-summary.is-drawer-open .mobile-quick-actions {
    display: none;
  }

  .controls-bar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 6px;
    margin-top: -18px;
    margin-bottom: 22px;
  }

  .controls-bar.is-open {
    display: flex;
  }

  .controls-group {
    gap: 6px 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
  }

  .controls-group:last-child {
    border-bottom: none;
  }

  .mobile-group-label {
    display: block;
    width: 100%;
    font-size: 9.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 2px;
  }

  .year-drawer {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 11px;
    margin-top: 5px;
    border-top: 1px solid var(--rule);
  }

  .control-divider {
    display: none;
  }

  /* 2-column Richter Atlas visual field on iPhone */
  .atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .atlas-column {
    gap: 16px;
  }

  .project-gallery-masonry {
    gap: 12px;
  }

  .project-gallery-column {
    gap: 12px;
  }

  .plate-caption {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
  }

  .plate-year {
    font-size: 10px;
  }

  .project-back-row {
    padding: 14px 0;
    margin-bottom: 26px;
    font-size: 11.5px;
  }

  .project-year-kicker {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .project-title {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .project-description {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .ledger-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .ledger-tags {
    gap: 6px 12px;
  }

  .tag-link {
    padding: 2px 0;
  }

  .project-pager {
    flex-direction: column;
    gap: 18px;
  }

  .pager-link,
  .pager-link.is-next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 8px;
  }

  .group-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 26px;
  }

  .group-nav::-webkit-scrollbar {
    display: none;
  }

  .group-nav .filter-btn,
  .group-nav .control-label {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .connected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .pager-title {
    font-size: 12.5px;
  }

  .about-prose {
    font-size: 16px;
  }

  .lightbox {
    padding: 56px 12px max(24px, env(safe-area-inset-bottom));
  }

  .lightbox-stage img {
    max-width: 94vw;
    max-height: 74vh;
  }

  .lightbox-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }

  .lightbox-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    font-size: 10px;
  }
}
