:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f4f4;
  --text: #111111;
  --muted: #6a6a6a;
  --line: #e7e7e7;
  --line-strong: #cccccc;
  --toolbar-bg: #ffffff;
  --overlay: rgba(17, 17, 17, 0.18);
  --overlay-surface: #ffffff;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  --glass-surface: rgba(255, 255, 255, 0.78);
  --glass-surface-strong: rgba(255, 255, 255, 0.92);
  --wall-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  --error: #9c2020;
  --page-width: 1340px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1011;
  --surface: #141619;
  --surface-soft: #1a1d21;
  --text: #f4f1eb;
  --muted: #a6a39c;
  --line: #2a2e34;
  --line-strong: #4d5561;
  --toolbar-bg: #0f1011;
  --overlay: rgba(0, 0, 0, 0.46);
  --overlay-surface: #0f1011;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --glass-surface: rgba(20, 22, 25, 0.74);
  --glass-surface-strong: rgba(20, 22, 25, 0.9);
  --wall-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --error: #ff8b8b;
  color-scheme: dark;
}

@supports (view-transition-name: root) {
  :root {
    view-transition-name: root;
  }

  :root.theme-transition::view-transition-old(root),
  :root.theme-transition::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  :root.theme-transition::view-transition-new(root) {
    animation: theme-radial-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes theme-radial-reveal {
  from {
    clip-path: circle(0 at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
  }

  to {
    clip-path: circle(var(--theme-end-radius, 150vmax) at var(--theme-origin-x, 50%) var(--theme-origin-y, 50%));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.overlay-open {
  overflow: hidden;
}

body.wall-mode {
  overflow: hidden;
}

body.detail-open .hero-controls {
  opacity: 0;
  pointer-events: none;
}

body.info-open .hero-controls {
  opacity: 0;
  pointer-events: none;
}

body.wall-mode .hero-controls,
body.grid-floating-bar-visible .hero-controls {
  opacity: 0;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page {
  position: relative;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  max-width: min(66vw, 1040px);
  padding: 88px 0 28px;
}

.hero-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 95;
  transition: opacity 180ms ease;
}

body.wall-mode .page {
  width: 100%;
  padding: 0;
}

.icon-circle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.icon-circle:hover,
.icon-circle:focus-visible {
  outline: none;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-toggle-button.is-dark,
.info-toggle.is-open {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.theme-toggle-button.is-dark {
  background: var(--surface);
  color: #c7b08a;
  border-color: var(--line);
}

.theme-toggle-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-sun-group,
.theme-sun-rays,
.theme-sun-core,
.theme-moon-shape {
  transform-origin: 12px 12px;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.theme-sun-core {
  fill: currentColor;
  stroke: none;
}

.theme-sun-rays {
  stroke: currentColor;
}

.theme-moon-shape {
  opacity: 0;
  transform: rotate(-60deg) scale(0.65);
}

.theme-toggle-button.is-dark .theme-sun-group {
  opacity: 0;
  transform: rotate(70deg) scale(0.62);
}

.theme-toggle-button.is-dark .theme-moon-shape {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.view-toggle-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-grid-shape,
.view-wall-shape {
  transform-origin: 12px 12px;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.view-grid-shape rect {
  fill: currentColor;
  stroke: none;
}

.view-wall-shape {
  opacity: 0;
  transform: rotate(-8deg) scale(0.72);
}

.view-wall-shape rect,
.view-wall-shape path {
  stroke: currentColor;
}

.view-toggle.is-wall {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

:root[data-theme="dark"] .view-toggle.is-wall {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.view-toggle.is-wall .view-grid-shape {
  opacity: 0;
  transform: rotate(10deg) scale(0.72);
}

.view-toggle.is-wall .view-wall-shape {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.info-toggle {
  position: relative;
}

.info-toggle-icon {
  position: relative;
  display: grid;
  gap: 4px;
  width: 16px;
}

.info-toggle-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 120ms ease,
    opacity 120ms ease;
}

.info-toggle.is-open .info-toggle-icon {
  width: 16px;
  height: 16px;
  gap: 0;
}

.info-toggle.is-open .info-toggle-line {
  position: absolute;
  top: 7px;
  left: 0;
}

.info-toggle.is-open .info-toggle-line:nth-child(1) {
  transform: rotate(45deg);
}

.info-toggle.is-open .info-toggle-line:nth-child(2) {
  opacity: 0;
}

.info-toggle.is-open .info-toggle-line:nth-child(3) {
  transform: rotate(-45deg);
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  max-width: min(72%, 980px);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-meta {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-meta[hidden] {
  display: none;
}

.hero-divider {
  margin: 0 8px;
}

.toolbar-anchor {
  position: relative;
}

.grid-header-sentinel {
  width: 100%;
  height: 1px;
}

.toolbar {
  position: relative;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

:root[data-theme="dark"] .toolbar {
  background: transparent;
  border-bottom-color: transparent;
}

.toolbar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
}

.field {
  position: relative;
  min-width: 0;
}

.field-search {
  flex: 1 1 360px;
  min-width: min(100%, 360px);
}

.field-dropdown {
  position: relative;
  flex: 0 1 auto;
}

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

.field input,
.dropdown-trigger,
.reset-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgb(232 231 229);
  color: var(--text);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 140ms ease;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .dropdown-trigger,
:root[data-theme="dark"] .reset-button {
  background: rgb(36 36 36);
}

.field input {
  width: 100%;
  padding: 0 16px;
}

.field input:focus,
.dropdown-trigger:focus-visible,
.reset-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(149, 147, 146, 0.34);
}

:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .dropdown-trigger:focus-visible,
:root[data-theme="dark"] .reset-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(105, 105, 108, 0.45);
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: min(100%, 188px);
  min-width: 0;
  padding: 0 14px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.dropdown-trigger > span:first-child {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus-visible,
.reset-button:hover,
.reset-button:focus-visible {
  background: rgb(219 218 216);
}

.dropdown-trigger.has-selection {
  color: var(--text);
}

:root[data-theme="dark"] .dropdown-trigger.has-selection {
  color: var(--text);
}

.dropdown-trigger.is-open {
  background: rgb(219 218 216);
}

:root[data-theme="dark"] .dropdown-trigger:hover,
:root[data-theme="dark"] .dropdown-trigger:focus-visible,
:root[data-theme="dark"] .reset-button:hover,
:root[data-theme="dark"] .reset-button:focus-visible,
:root[data-theme="dark"] .dropdown-trigger.is-open {
  background: rgb(46 46 46);
}

.dropdown-caret {
  width: 8px;
  height: 4px;
  flex: 0 0 8px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: currentColor;
  opacity: 1;
  transition:
    transform 160ms ease;
}

.dropdown-trigger.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: max(100%, 240px);
  max-height: min(360px, 60vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: var(--shadow);
  z-index: 30;
}

:root[data-theme="dark"] .dropdown-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 22, 25, 0.96);
}

.dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.dropdown-option > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-option + .dropdown-option {
  margin-top: 2px;
}

.dropdown-option:hover,
.dropdown-option:focus-visible {
  background: var(--surface-soft);
  outline: none;
  transform: translateY(-1px);
}

.dropdown-option.is-active {
  background: var(--text);
  color: var(--bg);
}

.dropdown-option.is-disabled {
  color: var(--muted);
  opacity: 0.62;
  cursor: not-allowed;
}

.dropdown-option-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: inherit;
  font-size: 11px;
  opacity: 0.78;
}

:root[data-theme="dark"] .dropdown-option-count {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-option.is-active .dropdown-option-count {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

body.wall-mode .hero,
body.wall-mode .status-row,
body.wall-mode .gallery,
body.wall-mode .sentinel,
body.wall-mode #loading-state,
body.wall-mode #error-state,
body.wall-mode #empty-state {
  display: none;
}

body.wall-mode .toolbar,
body.grid-floating-bar-visible.wall-filters-open .toolbar {
  position: fixed;
  top: 98px;
  left: 24px;
  z-index: 52;
  width: min(320px, calc(100vw - 48px));
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(125%);
  box-shadow: var(--wall-shadow);
  transform: translateY(-10px) scale(0.98);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    border-color 160ms ease;
}

:root[data-theme="dark"] body.wall-mode .toolbar,
:root[data-theme="dark"] body.grid-floating-bar-visible.wall-filters-open .toolbar {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 22, 25, 0.9);
}

body.wall-mode.wall-filters-open .toolbar,
body.grid-floating-bar-visible.wall-filters-open .toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.wall-mode .toolbar-grid,
body.grid-floating-bar-visible.wall-filters-open .toolbar-grid {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
}

body.wall-mode .toolbar .field-search,
body.grid-floating-bar-visible.wall-filters-open .toolbar .field-search {
  display: none;
}

body.wall-mode .toolbar .field,
body.wall-mode .toolbar .field-dropdown,
body.grid-floating-bar-visible.wall-filters-open .toolbar .field,
body.grid-floating-bar-visible.wall-filters-open .toolbar .field-dropdown {
  width: 100%;
}

body.wall-mode .toolbar .dropdown-trigger,
body.wall-mode .toolbar .reset-button,
body.grid-floating-bar-visible.wall-filters-open .toolbar .dropdown-trigger,
body.grid-floating-bar-visible.wall-filters-open .toolbar .reset-button {
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding-inline: 14px;
}

body.wall-mode .toolbar .dropdown-trigger,
body.grid-floating-bar-visible.wall-filters-open .toolbar .dropdown-trigger {
  background: rgb(232 231 229);
}

:root[data-theme="dark"] body.wall-mode .toolbar .dropdown-trigger,
:root[data-theme="dark"] body.grid-floating-bar-visible.wall-filters-open .toolbar .dropdown-trigger {
  background: rgb(36 36 36);
}

body.wall-mode .toolbar .reset-button,
body.grid-floating-bar-visible.wall-filters-open .toolbar .reset-button {
  justify-content: center;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0 18px;
}

.status-row strong {
  font-size: 16px;
}

.results-note,
.active-filter-copy {
  color: var(--muted);
  font-size: 14px;
}

.active-filter-copy {
  text-align: right;
}

.state-message {
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.state-message.is-error {
  color: var(--error);
}

.wall-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 54;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 260ms;
}

:root[data-theme="dark"] .wall-bar {
  background: rgba(15, 16, 17, 0.78);
}

.wall-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.wall-bar-slot {
  min-width: 0;
  display: flex;
  align-items: center;
}

.wall-bar-start {
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.wall-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wall-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 360px));
  justify-content: center;
  pointer-events: none;
}

.wall-bar-center > * {
  width: 100%;
  pointer-events: auto;
}

.wall-bar-end {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.wall-bar-icon-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wall-bar-icon-group .icon-circle {
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .wall-bar-icon-group .icon-circle {
  background: rgba(255, 255, 255, 0.08);
}

.wall-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 380px);
  max-width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  cursor: text;
  overflow: hidden;
  transition:
    width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

:root[data-theme="dark"] .wall-search-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.wall-search-shell.is-open {
  width: min(100%, 560px);
  border-color: var(--line);
  background: var(--glass-surface-strong);
  box-shadow:
    0 16px 34px rgba(17, 17, 17, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.wall-search-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.wall-search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wall-search-input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.wall-search-shell.is-open .wall-search-input {
  opacity: 1;
  transform: translateX(0);
}

.wall-search-input:focus {
  outline: none;
}

.wall-search-input::placeholder {
  color: var(--muted);
}

.wall-pill-button,
.wall-pill-badge {
  backdrop-filter: blur(18px);
}

.wall-context-pill,
.wall-pill-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.wall-context-pill {
  justify-content: center;
  min-width: 94px;
  border: 0;
  background: rgba(232, 231, 229, 0.94);
  color: var(--text);
}

:root[data-theme="dark"] .wall-context-pill {
  background: rgba(36, 36, 36, 0.98);
}

.wall-pill-button {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 140ms ease;
}

:root[data-theme="dark"] .wall-pill-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.wall-pill-button:hover,
.wall-pill-button:focus-visible {
  outline: none;
  border-color: var(--line);
  background: var(--glass-surface-strong);
  transform: translateY(-1px);
}

.wall-pill-button.is-open {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.wall-pill-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.wall-pill-button.is-open .wall-pill-badge {
  background: rgba(255, 255, 255, 0.14);
}

.wall-pill-caret {
  width: 8px;
  height: 4px;
  flex: 0 0 8px;
  margin-left: 2px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: currentColor;
}

.wall-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(206, 182, 147, 0.18), transparent 26%),
    radial-gradient(circle at 86% 86%, rgba(132, 153, 169, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--bg);
}

:root[data-theme="dark"] .wall-view {
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 165, 117, 0.14), transparent 26%),
    radial-gradient(circle at 86% 86%, rgba(92, 118, 136, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--bg);
}

.wall-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.18;
  pointer-events: none;
}

:root[data-theme="dark"] .wall-view::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.14;
}

.wall-empty-state {
  position: fixed;
  left: 24px;
  z-index: 43;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--wall-shadow);
}

.wall-empty-state {
  top: 98px;
  color: var(--muted);
}

.wall-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.wall-viewport.is-dragging {
  cursor: grabbing;
}

.wall-canvas {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.wall-card {
  position: absolute;
}

.wall-card-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 20px 38px rgba(17, 17, 17, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.28) inset;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  cursor: pointer;
}

:root[data-theme="dark"] .wall-card-trigger {
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.wall-card-trigger:hover,
.wall-card-trigger:focus-visible {
  outline: none;
  transform: translateY(-4px) scale(1.014);
  box-shadow:
    0 28px 44px rgba(17, 17, 17, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.32) inset;
}

:root[data-theme="dark"] .wall-card-trigger:hover,
:root[data-theme="dark"] .wall-card-trigger:focus-visible {
  box-shadow:
    0 28px 44px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.wall-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.wall-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 64px 18px 18px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.82) 100%);
  color: #f9f6f1;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.wall-card-trigger:hover .wall-card-overlay,
.wall-card-trigger:focus-visible .wall-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.wall-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.wall-card-description {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.52;
  color: rgba(249, 246, 241, 0.78);
}

.gallery {
  column-width: 320px;
  column-gap: 24px;
}

.item {
  break-inside: avoid;
  margin: 0 0 34px;
}

.item-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.item-image-wrap {
  width: 100%;
  margin: 0;
  background: var(--surface-soft);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background 180ms ease;
}

.item-image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
}

.item-copy {
  padding-top: 10px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.item-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.item-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.item-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 180ms ease;
}

.item-trigger:hover,
.item-trigger:focus-visible {
  outline: none;
  transform: translateY(-6px) scale(1.012);
}

.item-trigger:hover .item-image-wrap,
.item-trigger:focus-visible .item-image-wrap {
  transform: translateY(-2px) scale(1.016);
  box-shadow: 0 30px 48px rgba(17, 17, 17, 0.16);
}

:root[data-theme="dark"] .item-trigger:hover .item-image-wrap,
:root[data-theme="dark"] .item-trigger:focus-visible .item-image-wrap {
  box-shadow: 0 30px 48px rgba(0, 0, 0, 0.34);
}

.item-trigger:hover .item-image,
.item-trigger:focus-visible .item-image {
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.02);
}

.item-trigger:hover .item-copy,
.item-trigger:focus-visible .item-copy {
  transform: translateY(-1px);
}

.item-trigger:hover .item-kicker,
.item-trigger:focus-visible .item-kicker {
  color: var(--text);
}

.item-trigger:hover .item-title,
.item-trigger:focus-visible .item-title {
  text-decoration: none;
}

.item-trigger:hover .item-subtitle,
.item-trigger:focus-visible .item-subtitle {
  color: var(--text);
}

.sentinel {
  height: 1px;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  background: var(--overlay-surface);
}

.detail-close {
  position: absolute;
  top: 26px;
  right: 24px;
  z-index: 80;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.detail-close:hover,
.detail-close:focus-visible {
  outline: none;
  border-color: var(--line-strong);
}

.detail-close-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.detail-close-line {
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.detail-close-line:first-child {
  transform: rotate(45deg);
}

.detail-close-line:last-child {
  transform: rotate(-45deg);
}

.detail-inner {
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto;
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.detail-view.detail-portrait .detail-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.detail-media {
  min-width: 0;
  position: sticky;
  top: 56px;
  align-self: start;
}

.detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  background: transparent;
}

.detail-body {
  display: grid;
  gap: 18px;
}

.detail-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.detail-meta-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.detail-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-fact span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-fact strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.detail-rights {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-rights-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-rights-list {
  display: grid;
  gap: 12px;
}

.detail-rights-row {
  display: grid;
  gap: 4px;
}

.detail-rights-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-rights-value,
.detail-rights-link {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.detail-rights-link {
  width: fit-content;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.detail-source-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.detail-source-link-arrow {
  font-size: 12px;
}

.detail-source-link:hover {
  opacity: 0.66;
}

.info-panel {
  position: fixed;
  inset: 0;
  z-index: 75;
  overflow: auto;
  background: var(--overlay-surface);
}

.info-panel-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 88px 0 52px;
}

.info-close {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.info-close:hover,
.info-close:focus-visible {
  outline: none;
  border-color: var(--line-strong);
}

.info-panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-panel-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.info-panel-copy {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.info-collections {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

.info-card {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.info-card:last-child {
  border-bottom: 1px solid var(--line);
}

.info-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: start;
}

.info-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.info-card-count {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.info-card-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  max-width: 920px;
}

.info-card-field {
  display: grid;
  gap: 4px;
}

.info-card-field dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-card-field dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .toolbar-grid {
    gap: 8px;
  }

  .field-search {
    flex-basis: 100%;
  }

  .field-dropdown {
    flex: 1 1 calc(50% - 8px);
  }

  .dropdown-trigger {
    width: 100%;
    max-width: none;
  }

  .dropdown-menu {
    max-height: 280px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-body {
    position: static;
  }

  .detail-media {
    position: static;
  }

  .detail-image {
    max-height: none;
  }

  .wall-bar {
    min-height: 84px;
    padding-right: 24px;
  }

  .wall-bar-center {
    width: min(420px, calc(100vw - 300px));
  }

  .wall-search-shell {
    width: min(100%, 320px);
  }

  .wall-search-shell.is-open {
    width: min(100%, 420px);
  }
}

@media (max-width: 720px) {
  .page {
    width: min(calc(100% - 24px), var(--page-width));
    padding-top: 12px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-controls {
    top: 12px;
    right: 12px;
  }

  .hero-title {
    font-size: clamp(34px, 12vw, 54px);
    max-width: 100%;
  }

  .hero-copy {
    font-size: 16px;
  }

  .toolbar-grid {
    gap: 10px;
  }

  .field-search,
  .field-dropdown,
  .dropdown-trigger,
  .reset-button {
    width: 100%;
    max-width: none;
  }

  .status-row {
    display: grid;
    gap: 6px;
  }

  .active-filter-copy {
    text-align: left;
  }

  .gallery {
    column-width: 100%;
    column-gap: 0;
  }

  .detail-inner {
    width: min(calc(100% - 24px), 1320px);
    padding-top: 64px;
  }

  .detail-close {
    top: 16px;
    right: 16px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .info-panel-inner {
    width: min(calc(100% - 24px), var(--page-width));
    padding-top: 72px;
  }

  .info-card-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-close {
    top: 16px;
  }

  body.wall-mode .toolbar,
  body.grid-floating-bar-visible.wall-filters-open .toolbar {
    top: 138px;
    left: 12px;
    width: min(calc(100vw - 24px), 320px);
    border-radius: 26px;
  }

  body.wall-mode .toolbar-grid,
  body.grid-floating-bar-visible.wall-filters-open .toolbar-grid {
    padding: 12px;
  }

  .wall-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    min-height: 0;
  }

  .wall-search-shell {
    width: 100%;
    height: 48px;
    padding: 0 15px;
  }

  .wall-search-shell.is-open {
    width: 100%;
  }

  .wall-bar-center {
    position: static;
    transform: none;
    width: auto;
    justify-content: stretch;
    pointer-events: auto;
  }

  .wall-bar-end {
    margin-left: 0;
  }

  .wall-bar-icon-group {
    gap: 8px;
  }

  .wall-pill-button {
    min-height: 44px;
    padding: 0 14px;
  }

  .wall-context-pill {
    min-width: 88px;
  }

  .wall-empty-state {
    left: 12px;
    right: 12px;
    width: fit-content;
    max-width: calc(100vw - 24px);
  }

  .wall-empty-state {
    top: 88px;
  }

  .wall-card-trigger {
    border-radius: 0;
  }
}
