:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #171716;
  --muted: #74716a;
  --line: #dedbd2;
  --panel: #ffffff;
  --accent: #126cdb;
  --toshi-blue: #126cdb;
  --toshi-blue-dark: #0752b8;
  --toshi-blue-soft: rgba(18, 108, 219, 0.12);
  --focus: #126cdb;
  --shadow: 0 18px 60px rgba(23, 23, 22, 0.16);
  --sidebar-width: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

body.dialog-open {
  position: fixed;
  top: var(--scroll-lock-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-loader-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  transform: translateY(4px);
  animation: loader-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-loader img {
  width: min(260px, 56vw);
  height: auto;
}

.loader-line {
  width: min(220px, 46vw);
  height: 2px;
  overflow: hidden;
  background: rgba(23, 23, 22, 0.1);
  border-radius: 999px;
}

.loader-line span {
  display: block;
  width: 46%;
  height: 100%;
  background: var(--toshi-blue);
  border-radius: inherit;
  animation: loader-sweep 1080ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

body.is-ready .site-loader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.is-booting .site-sidebar,
body.is-booting .site-header,
body.is-booting main {
  opacity: 0;
  transform: translateY(8px);
}

body.is-ready .site-sidebar,
body.is-ready .site-header,
body.is-ready main {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 62px;
  margin-left: var(--sidebar-width);
  padding: 10px clamp(24px, 3.4vw, 54px);
  background: rgba(248, 247, 242, 0.7);
  border-bottom: 1px solid rgba(23, 23, 22, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  align-items: center;
  padding: 14px 10px;
  background: rgba(248, 247, 242, 0.66);
  border-right: 1px solid rgba(23, 23, 22, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  text-decoration: none;
}

.sidebar-brand {
  position: relative;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin-bottom: 28px;
  overflow: visible;
  background-image: url("assets/archive-logo-nav.png");
  background-repeat: no-repeat;
  background-position: -8px center;
  background-size: auto 44px;
  border-radius: 10px;
}

.sidebar-logo {
  display: none;
}

.side-nav,
.side-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
}

.side-actions {
  margin-top: auto;
  padding-top: 22px;
}

.side-nav-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #5f5b54;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.side-nav-button svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar-brand::after,
.side-nav-button::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 50;
  padding: 6px 9px;
  color: white;
  background: rgba(23, 23, 22, 0.92);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(23, 23, 22, 0.14);
  content: attr(data-tooltip);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition:
    opacity 150ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.sidebar-brand:hover::after,
.sidebar-brand:focus-visible::after,
.side-nav-button:hover::after,
.side-nav-button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.side-nav-button:hover,
.side-nav-button:focus-visible,
.side-nav-button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(23, 23, 22, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 24px rgba(23, 23, 22, 0.05);
}

.side-action-button {
  color: #5f5b54;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(23, 23, 22, 0.08);
}

.side-action-button:hover,
.side-action-button:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(23, 23, 22, 0.14);
}

.header-actions {
  flex: 1;
  gap: 14px;
  justify-content: flex-start;
  min-width: 0;
  max-width: 1640px;
}

.search-control {
  width: min(480px, 100%);
}

.search-control input {
  width: 100%;
  min-width: 132px;
  height: 38px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  outline: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search-control input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--toshi-blue-soft);
}

.quiet-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

main {
  width: auto;
  max-width: 1680px;
  margin: 0 0 0 var(--sidebar-width);
  padding: 0 clamp(24px, 3.4vw, 54px) 56px;
}

.home-hero {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  min-height: clamp(470px, 48vw, 650px);
  padding: clamp(22px, 3vw, 40px) 0 20px;
}

.home-hero-copy {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(23, 23, 22, 0.07);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.home-hero .kicker {
  margin-bottom: 12px;
}

.home-hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(2.55rem, 4.35vw, 5rem);
  font-weight: 560;
  line-height: 0.92;
}

.home-hero p:not(.kicker),
.section-heading p:not(.kicker),
.category-hero p {
  max-width: 54ch;
  margin: 18px 0 0;
  color: #56534d;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.42;
}

body[data-page="explore"] .home-hero,
body[data-page="archive"] .home-hero,
body[data-page="explore"] .home-style-nav,
body[data-page="archive"] .home-style-nav,
body[data-page="home"] .category-browse,
body[data-page="explore"] .archive-panel,
body[data-page="explore"] .mosaic,
body[data-page="explore"] .gallery-more,
body[data-page="explore"] .giphy-attribution,
body[data-page="explore"] .empty-state,
body[data-page="archive"] .category-browse {
  display: none;
}

.feature-collage {
  display: contents;
}

.feature-collage[hidden] {
  display: none;
}

.feature-frame {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #eeeae1;
  border: 1px solid rgba(23, 23, 22, 0.07);
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 14px 44px rgba(23, 23, 22, 0.1);
  transition:
    border-color 220ms ease,
    box-shadow 240ms ease,
    opacity 220ms ease;
}

.feature-frame:nth-child(1) {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.feature-frame:nth-child(2) {
  grid-column: 5;
  grid-row: 1;
}

.feature-frame:nth-child(3) {
  grid-column: 5;
  grid-row: 2;
}

.feature-frame:nth-child(4) {
  display: none;
}

.feature-frame:hover,
.feature-frame:focus-visible {
  border-color: rgba(23, 23, 22, 0.14);
  box-shadow: 0 18px 52px rgba(23, 23, 22, 0.14);
  opacity: 0.96;
}

.feature-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    #ece8df;
  background-size: 220% 100%;
  animation: image-sheen 1300ms ease-in-out infinite;
}

.feature-frame.is-loaded::before {
  opacity: 0;
  animation: none;
}

.feature-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-frame.is-loaded img {
  opacity: 1;
}

.home-style-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  margin: 0 0 clamp(28px, 3.2vw, 46px);
  padding: 18px 0;
  border-top: 1px solid rgba(23, 23, 22, 0.08);
  border-bottom: 1px solid rgba(23, 23, 22, 0.08);
}

.home-random-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(23, 23, 22, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
}

.home-random-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.home-random-button:hover,
.home-random-button:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(23, 23, 22, 0.14);
}
.home-style-nav > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-style-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.home-style-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0;
  color: #504d47;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 720;
}

.home-style-button:hover,
.home-style-button:focus-visible {
  color: var(--ink);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.home-style-button:disabled {
  cursor: default;
  color: rgba(116, 113, 106, 0.46);
  background: transparent;
}

.home-style-button span {
  color: rgba(23, 23, 22, 0.32);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body:not([data-page="archive"]) .category-hero,
.category-hero[hidden] {
  display: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(18px, 2.8vw, 32px) 0 clamp(16px, 2.8vw, 30px);
}

.kicker,
.art-meta,
.result-count,
.empty-state {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 14px;
}

.artist-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.artist-link:hover,
.artist-link:focus-visible {
  color: var(--ink);
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.35rem, 4.35vw, 4.35rem);
  font-weight: 520;
  line-height: 0.97;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.intro-aside {
  display: grid;
  align-self: center;
  gap: 15px;
  justify-items: start;
  padding-top: clamp(0px, 1vw, 12px);
}

.intro-copy {
  max-width: 410px;
  margin: 0;
  color: #3f3d38;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.42;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--toshi-blue);
  background: rgba(29, 79, 255, 0.08);
  border: 1px solid rgba(29, 79, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.intro-button.primary {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 8px 22px rgba(29, 79, 255, 0.18);
}

.intro-button.toshi-blue {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 8px 22px rgba(29, 79, 255, 0.18);
}

.intro-button:hover {
  color: var(--toshi-blue-dark);
  background: rgba(29, 79, 255, 0.12);
  border-color: rgba(29, 79, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(29, 79, 255, 0.08);
}

.intro-button.primary:hover {
  color: white;
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
  box-shadow: 0 10px 24px rgba(29, 79, 255, 0.22);
}

.intro-button.toshi-blue:hover {
  color: white;
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
  box-shadow: 0 10px 24px rgba(29, 79, 255, 0.22);
}

.category-browse {
  display: grid;
  gap: 24px;
  margin-bottom: 34px;
  padding-top: clamp(28px, 4vw, 54px);
}

.section-heading {
  display: block;
}

.section-heading .kicker {
  margin-bottom: 8px;
}

.section-heading h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.55rem, 2.65vw, 2.4rem);
  font-weight: 560;
  line-height: 1;
}

.category-hero {
  display: grid;
  gap: 11px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(18px, 2.5vw, 30px);
}

.category-back {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 760;
}

.category-back:hover,
.category-back:focus-visible {
  color: var(--ink);
}

.category-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  font-weight: 560;
  line-height: 0.92;
}

.category-hero .category-hero-count {
  margin-top: 4px;
  color: var(--toshi-blue);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-grid.is-sparse {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

.category-card {
  position: relative;
  display: grid;
  min-height: clamp(236px, 20.5vw, 322px);
  padding: 0;
  overflow: hidden;
  color: white;
  background: #e6e1d7;
  border: 1px solid rgba(23, 23, 22, 0.06);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 220ms ease,
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card.is-loaded img {
  opacity: 1;
}

.category-card[data-category="culture"] img {
  object-position: center 44%;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.56)),
    radial-gradient(105% 78% at 8% 100%, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.24) 42%, transparent 78%);
}

.category-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  gap: 8px;
  isolation: isolate;
  padding: 18px;
}

.category-card-content::before {
  position: absolute;
  inset: -34px -70px -26px -22px;
  z-index: -1;
  content: "";
  background: radial-gradient(
    82% 72% at 10% 78%,
    rgba(0, 0, 0, 0.52),
    rgba(0, 0, 0, 0.26) 48%,
    transparent 82%
  );
  filter: blur(10px);
  opacity: 0.9;
}

.category-card-title {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 820;
  line-height: 0.98;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.58);
}

.category-card-description {
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.24;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.26),
    0 8px 24px rgba(0, 0, 0, 0.46);
}

.category-card-meta {
  justify-self: start;
  min-height: 28px;
  padding: 6px 10px;
  color: white;
  background: var(--toshi-blue);
  border: 1px solid var(--toshi-blue);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(29, 79, 255, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.74rem;
  font-weight: 760;
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.category-card:hover,
.category-card:focus-visible,
.category-card[aria-pressed="true"] {
  border-color: rgba(23, 23, 22, 0.18);
  box-shadow: 0 18px 46px rgba(23, 23, 22, 0.12);
}

.category-card:hover img,
.category-card:focus-visible img,
.category-card[aria-pressed="true"] img {
  opacity: 0.96;
}

.category-card:disabled {
  cursor: default;
  opacity: 1;
}

.category-card.is-empty {
  color: rgba(23, 23, 22, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(238, 234, 224, 0.86)),
    var(--paper);
}

.category-card.is-empty img {
  display: none;
}

.category-card.is-empty::after {
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(29, 79, 255, 0.12), transparent 62%),
    linear-gradient(180deg, transparent, rgba(23, 23, 22, 0.04));
}

.category-card.is-empty .category-card-content::before {
  opacity: 0;
}

.category-card.is-empty .category-card-title {
  color: rgba(23, 23, 22, 0.82);
  text-shadow: none;
}

.category-card.is-empty .category-card-description {
  color: rgba(23, 23, 22, 0.5);
  text-shadow: none;
}

.category-card.is-empty .category-card-meta {
  color: rgba(23, 23, 22, 0.56);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(23, 23, 22, 0.08);
  box-shadow: none;
}

.archive-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(23, 23, 22, 0.09);
  border-bottom: 1px solid rgba(23, 23, 22, 0.09);
}

body[data-page="home"] .archive-panel {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 14px;
  align-items: center;
  margin-top: 0;
  padding: 0 0 20px;
  border-top: 0;
}

.archive-header,
.archive-controls {
  display: contents;
}

.archive-header h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 620;
  line-height: 1;
}

.archive-section-copy {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body[data-page="home"] .archive-section-copy {
  display: block;
  grid-column: 1;
  grid-row: 2;
}

.toolbar-status {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group {
  grid-column: 1 / 3;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-start;
}

.sort-control {
  grid-column: 3;
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 38px;
  padding: 0 8px 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.sort-control label {
  font-size: 0.78rem;
  font-weight: 720;
}

.sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 5px 0 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 23, 22, 0.08);
  border-radius: 999px;
}

.sort-select-wrap::after {
  position: absolute;
  right: 11px;
  color: var(--muted);
  content: "▾";
  font-size: 0.68rem;
  font-weight: 800;
  pointer-events: none;
}

.sort-control select {
  position: relative;
  z-index: 0;
  min-height: 30px;
  padding: 0 28px 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
  outline: none;
  appearance: none;
}

.sort-control:focus-within {
  border-color: rgba(29, 79, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 3px var(--toshi-blue-soft);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.filter-button:hover {
  color: var(--toshi-blue);
  border-color: rgba(29, 79, 255, 0.34);
}

.filter-button[aria-pressed="true"] {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 8px 22px rgba(29, 79, 255, 0.14);
}

.filter-button:disabled {
  cursor: default;
  color: rgba(116, 113, 106, 0.42);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(23, 23, 22, 0.06);
  box-shadow: none;
  opacity: 1;
}

.filter-button[data-empty="true"]::after {
  content: "Soon";
  color: rgba(23, 23, 22, 0.28);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-remove {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: -5px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.artist-filter-panel {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.artist-filter-panel[hidden] {
  display: none;
}

.artist-filter-title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.artist-filter-group {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.artist-filter-button {
  min-height: 30px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.artist-filter-button:hover {
  color: var(--toshi-blue);
  border-color: rgba(29, 79, 255, 0.28);
}

.artist-filter-button[aria-pressed="true"] {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
}

.clear-button {
  grid-column: 3;
  grid-row: 4;
  justify-self: end;
  min-height: 32px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.clear-button:hover {
  color: var(--toshi-blue);
}

.result-count {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.gallery-helper {
  margin: -2px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-helper {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: -4px 0 0;
}

body[data-page="home"] .archive-helper,
body[data-page="archive"] .archive-helper {
  display: none;
}

body[data-page="home"] .filter-group,
body[data-page="home"] .artist-filter-panel,
body[data-page="home"] .clear-button {
  display: none;
}

body[data-page="home"] .sort-control {
  grid-column: 3;
  grid-row: 1 / 3;
}

body[data-page="home"] .toolbar-status {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
}

body[data-page="archive"] .filter-group,
body[data-page="archive"] .sort-control {
  grid-row: 2;
}

body[data-page="archive"] .artist-filter-panel,
body[data-page="archive"] .clear-button {
  grid-row: 3;
}

.mosaic {
  column-count: 4;
  column-gap: 16px;
}

.art-card {
  position: relative;
  display: inline-block;
  width: 100%;
  aspect-ratio: var(--art-ratio, 1 / 1);
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  contain: layout paint;
  background: var(--panel);
  border: 1px solid rgba(23, 23, 22, 0.06);
  border-radius: 10px;
  cursor: zoom-in;
  transition:
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease;
}

.art-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    #ece8df;
  background-size: 220% 100%;
  opacity: 1;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: none;
}

.art-card.is-priority::before {
  animation: image-sheen 1300ms ease-in-out infinite;
}

.art-card.is-loaded::before {
  opacity: 0;
  animation: none;
}

.art-card:hover,
.art-card:focus-within {
  border-color: rgba(23, 23, 22, 0.04);
  box-shadow: 0 16px 42px rgba(23, 23, 22, 0.12);
}

.art-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #eeeae1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.art-card.is-loaded img {
  opacity: 1;
}

.art-card:focus-visible {
  outline: 3px solid rgba(36, 91, 82, 0.34);
  outline-offset: 3px;
}

.art-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 26px 16px 16px;
  overflow: hidden;
  align-content: end;
  color: white;
  background:
    radial-gradient(92% 56% at 6% 88%, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 84%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.18) 82%, rgba(0, 0, 0, 0.34) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loader-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-sweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(260%);
  }
}

@keyframes image-sheen {
  from {
    background-position: 180% 0;
  }

  to {
    background-position: -80% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-inner,
  .loader-line span,
  .art-card::before {
    animation: none;
  }

  body.is-booting .site-header,
  body.is-booting main,
  .art-overlay,
  .art-overlay > * {
    transform: none;
  }

  .site-loader,
  body.is-ready .site-header,
  body.is-ready main,
  .category-card img,
  .art-card img,
  .art-card::before {
    transition-duration: 1ms;
  }
}

.art-overlay > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 270ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.art-card:hover .art-overlay > *,
.art-card:focus-visible .art-overlay > *,
.art-card:focus-within .art-overlay > * {
  opacity: 1;
  transform: translateY(0);
}

.art-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.12;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.34);
}

.art-subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.25;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 7px 20px rgba(0, 0, 0, 0.28);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 27px;
  padding: 0 10px;
  color: white;
  background: var(--toshi-blue);
  border: 1px solid var(--toshi-blue);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(29, 79, 255, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.22);
  backdrop-filter: blur(12px) saturate(1.22);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-button {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 29px;
  height: 29px;
  color: white;
  background: var(--toshi-blue);
  border: 1px solid var(--toshi-blue);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(29, 79, 255, 0.18),
    0 5px 14px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
  backdrop-filter: blur(12px) saturate(1.18);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.share-button:hover {
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
}

.download-button:hover {
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 25px rgba(29, 79, 255, 0.24),
    0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (hover: none), (pointer: coarse) {
  .intro-button,
  .filter-button,
  .artist-filter-button,
  .download-button,
  .share-button,
  .category-card,
  .art-card {
    touch-action: manipulation;
  }

  .intro-button:hover {
    color: var(--toshi-blue);
    background: rgba(29, 79, 255, 0.08);
    border-color: rgba(29, 79, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .intro-button.primary:hover,
  .intro-button.toshi-blue:hover,
  .download-button:hover,
  .share-button:hover {
    color: white;
    background: var(--toshi-blue);
    border-color: var(--toshi-blue);
  }

  .category-card:hover {
    border-color: rgba(23, 23, 22, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .category-card[aria-pressed="true"] {
    border-color: rgba(23, 23, 22, 0.18);
    box-shadow: 0 14px 38px rgba(23, 23, 22, 0.1);
  }

  .category-card:hover img,
  .category-card[aria-pressed="true"] img {
    opacity: 1;
  }

  .filter-button:hover,
  .artist-filter-button:hover,
  .clear-button:hover {
    color: var(--muted);
    border-color: rgba(23, 23, 22, 0.12);
  }

  .filter-button[aria-pressed="true"]:hover,
  .artist-filter-button[aria-pressed="true"]:hover {
    color: white;
    border-color: var(--toshi-blue);
  }

  .art-card:hover,
  .art-card:focus-within {
    border-color: rgba(23, 23, 22, 0.06);
    box-shadow: none;
  }

  .art-card {
    cursor: pointer;
  }

  .art-overlay,
  .art-card:hover .art-overlay,
  .art-card:focus-visible .art-overlay,
  .art-card:focus-within .art-overlay {
    opacity: 1;
    transform: none;
  }

  .art-overlay > *,
  .art-card:hover .art-overlay > *,
  .art-card:focus-visible .art-overlay > *,
  .art-card:focus-within .art-overlay > * {
    opacity: 1;
    transform: none;
  }
}

.share-popover {
  position: fixed;
  z-index: 60;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 14px;
  box-shadow: 0 18px 52px rgba(23, 23, 22, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.share-popover[hidden] {
  display: none;
}

.share-popover-title {
  margin: 2px 8px 4px;
  overflow: hidden;
  color: rgba(23, 23, 22, 0.58);
  font-size: 0.74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-popover button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
}

.share-popover button:hover,
.share-popover button:focus-visible {
  background: rgba(23, 23, 22, 0.07);
}

.empty-state {
  margin: 48px 0;
  text-align: center;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.load-more-button {
  min-height: 38px;
  padding: 0 16px;
  color: white;
  background: var(--toshi-blue);
  border: 1px solid var(--toshi-blue);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(29, 79, 255, 0.16);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 25px rgba(29, 79, 255, 0.22);
}

.load-more-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.load-more-button[hidden] {
  display: none;
}

.giphy-attribution {
  margin: 18px 0 0;
  color: rgba(23, 23, 22, 0.44);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.giphy-attribution[hidden] {
  display: none;
}

.giphy-attribution a {
  color: inherit;
  text-decoration: none;
}

.giphy-attribution a:hover,
.giphy-attribution a:focus-visible {
  color: var(--ink);
}

.art-dialog {
  position: relative;
  width: fit-content;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.art-dialog::backdrop {
  background: rgba(23, 23, 22, 0.58);
  backdrop-filter: blur(8px);
}

.utility-dialog {
  position: relative;
  width: min(620px, calc(100vw - 48px));
  max-height: min(780px, calc(100vh - 48px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
}

.utility-dialog::backdrop {
  background: rgba(23, 23, 22, 0.48);
  backdrop-filter: blur(10px);
}

.utility-dialog-inner,
.submission-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 44px);
}

.utility-dialog h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 560;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.utility-copy {
  max-width: 48ch;
  margin: 0;
  color: #46433d;
  font-size: 1rem;
}

.submission-rules {
  margin: -6px 0 2px;
  color: rgba(23, 23, 22, 0.58);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.brand-kit-preview {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(29, 79, 255, 0.08), rgba(255, 255, 255, 0.28)),
    rgba(248, 247, 242, 0.76);
  border: 1px solid rgba(23, 23, 22, 0.08);
  border-radius: 12px;
}

.brand-kit-preview img {
  display: block;
  width: min(330px, 82%);
  height: auto;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.submission-dialog {
  width: min(720px, calc(100vw - 48px));
}

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

.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 10px;
  outline: none;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--toshi-blue-soft);
}

.form-field:has(.file-input) {
  position: relative;
}

.file-input {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 54px;
  cursor: pointer;
  opacity: 0;
}

.file-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 8px 8px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 26px rgba(23, 23, 22, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.form-field:hover .file-control,
.form-field:has(.file-input:focus-visible) .file-control {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(23, 23, 22, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 30px rgba(23, 23, 22, 0.08);
}

.file-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  color: white;
  background: var(--toshi-blue);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(23, 23, 22, 0.62);
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.submission-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.submission-status[data-state="error"] {
  color: #9b3029;
}

.submission-status[data-state="success"] {
  color: #2c6652;
}

.art-dialog[open] {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 340px);
  align-items: stretch;
  animation: preview-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.art-dialog[open]::backdrop {
  animation: preview-backdrop-enter 220ms ease both;
}

@keyframes preview-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preview-backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dialog-media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  background: #eeeae1;
}

.dialog-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(68vw, calc(100vw - 430px), 1080px);
  max-height: calc(100vh - 64px);
  object-fit: contain;
}

.art-dialog[data-orientation="portrait"] .dialog-media img {
  max-width: min(54vw, calc(100vw - 430px), 720px);
}

.art-dialog[data-orientation="wide"] .dialog-media img {
  max-width: min(72vw, calc(100vw - 410px), 1160px);
}

.dialog-details {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 14px;
  width: min(340px, 26vw);
  max-height: calc(100vh - 64px);
  min-width: 0;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 34px);
}

.dialog-details h2 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 2.7vw, 2.28rem);
  font-weight: 520;
  line-height: 1.02;
  word-break: break-word;
}

.dialog-details .download-button {
  width: 100%;
  min-height: 38px;
  font-size: 0.88rem;
}

.dialog-details p {
  max-width: 100%;
  margin: 0;
  color: #46433d;
  overflow-wrap: anywhere;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

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

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(210px, 1fr)) minmax(170px, 0.72fr);
  }

  .home-hero-copy {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .feature-frame:nth-child(1) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  .feature-frame:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .feature-frame:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .mosaic {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(320px, 1fr) minmax(160px, 0.5fr);
    gap: 12px;
    min-height: 0;
  }

  .home-hero-copy {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .feature-frame:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .feature-frame:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .feature-frame:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
  }

  .art-dialog,
  .art-dialog[open] {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 40px);
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .dialog-media img,
  .art-dialog[data-orientation="portrait"] .dialog-media img,
  .art-dialog[data-orientation="wide"] .dialog-media img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 58vh;
  }

  .dialog-details {
    width: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .site-sidebar {
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 23, 22, 0.08);
    border-right: 0;
  }

  .sidebar-brand {
    display: none;
  }

  .side-nav,
  .side-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: auto;
  }

  .side-nav-button {
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 14px;
  }

  .side-nav-button svg {
    width: 20px;
    height: 20px;
  }

  .side-nav-button::after {
    display: none;
  }

  .site-header {
    gap: 12px;
    margin-left: 0;
    min-height: 64px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .search-control {
    width: 100%;
  }

  .search-control input {
    width: 100%;
    min-width: 0;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }

  .home-hero {
    min-height: 0;
    padding-top: 18px;
  }

  .home-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4.7rem);
  }

  .home-style-nav {
    grid-template-columns: 1fr;
  }

  .home-random-button {
    justify-self: start;
  }

  .home-style-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .home-style-button {
    flex: 0 0 auto;
  }

  body[data-page="home"] .archive-panel {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .toolbar-status,
  body[data-page="home"] .sort-control {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  main {
    margin-left: 0;
    padding-bottom: 24px;
  }

  .intro-aside {
    gap: 14px;
    padding-top: 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    min-height: 210px;
  }

  .archive-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .archive-header,
  .archive-controls {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }

  .archive-header h2,
  .toolbar-status,
  .archive-helper,
  .filter-group,
  .sort-control,
  .artist-filter-panel,
  .clear-button {
    grid-column: auto;
    grid-row: auto;
  }

  .toolbar-status {
    width: 100%;
    justify-content: space-between;
  }

  .archive-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
  }

  .archive-header .toolbar-status {
    width: auto;
    justify-content: flex-end;
  }

  .archive-header .result-count {
    white-space: normal;
    text-align: right;
  }

  .filter-group,
  .artist-filter-group {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-button,
  .artist-filter-button {
    flex: 0 0 auto;
  }

  .sort-control {
    justify-self: start;
  }

  .artist-filter-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .mosaic {
    column-count: 2;
  }

  .art-overlay {
    position: absolute;
    inset: 0;
    color: white;
    background:
      radial-gradient(92% 56% at 6% 88%, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 84%),
      linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.18) 82%, rgba(0, 0, 0, 0.34) 100%);
    opacity: 1;
    transform: none;
  }

  .art-overlay > * {
    opacity: 1;
    transform: none;
  }

  .art-title {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.28),
      0 8px 24px rgba(0, 0, 0, 0.34);
  }

  .art-subtitle {
    color: rgba(255, 255, 255, 0.76);
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.24),
      0 7px 20px rgba(0, 0, 0, 0.28);
  }

  .art-card {
    cursor: default;
  }

  .art-dialog[open] {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 56px);
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .utility-dialog,
  .submission-dialog {
    width: calc(100vw - 28px);
  }

  .utility-dialog-inner,
  .submission-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-media {
    min-height: 260px;
  }

  .dialog-media img {
    max-height: 58vh;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    width: min(168px, 58vw);
  }

  .header-actions {
    flex: 1 0 100%;
    width: 100%;
    justify-content: stretch;
  }

  .search-control {
    width: 100%;
  }

  .search-control input {
    height: 38px;
  }

  .intro {
    gap: 16px;
    padding-top: 20px;
  }

  .home-hero {
    grid-template-rows: auto 270px 135px;
  }

  .intro-actions,
  .utility-actions {
    width: 100%;
  }

  .intro-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .utility-actions .intro-button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .category-browse {
    gap: 14px;
    margin-bottom: 22px;
  }

  .category-card {
    min-height: 190px;
  }

  .archive-panel {
    padding: 14px 0;
  }

  .archive-header {
    gap: 8px;
  }

  .archive-header .result-count {
    text-align: left;
  }

  .sort-control {
    width: max-content;
    max-width: 100%;
  }

  .art-overlay {
    gap: 9px;
    padding: 40px 10px 10px;
    background:
      radial-gradient(105% 58% at 2% 94%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.16) 60%, transparent 84%),
      linear-gradient(180deg, transparent 0%, transparent 66%, rgba(0, 0, 0, 0.16) 84%, rgba(0, 0, 0, 0.32) 100%);
  }

  .art-title {
    font-size: 0.86rem;
  }

  .art-subtitle {
    font-size: 0.72rem;
  }

  .download-button {
    min-height: 30px;
    padding: 0 9px;
  }

  .share-button {
    width: 30px;
    height: 30px;
  }

  .share-popover {
    right: 14px;
    bottom: 14px;
    left: 14px !important;
    top: auto !important;
    width: auto;
  }

  .share-popover button {
    min-height: 42px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .art-dialog,
  .art-dialog[open] {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-media {
    min-height: 0;
  }

  .dialog-media img,
  .art-dialog[data-orientation="portrait"] .dialog-media img,
  .art-dialog[data-orientation="wide"] .dialog-media img {
    max-height: 56vh;
    max-height: 56dvh;
  }

  .dialog-details {
    gap: 12px;
    padding: 20px 16px 18px;
  }

  .dialog-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .utility-dialog,
  .submission-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }
}

@media (max-width: 460px) {
  main,
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mosaic {
    column-count: 2;
    column-gap: 8px;
  }

  .art-card {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }
}

/* Cosmos-inspired floating navigation */
.site-header {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 440px) minmax(300px, 1fr);
  gap: 22px;
  min-height: 76px;
  margin-left: 0;
  padding: 14px clamp(20px, 3vw, 46px);
  background: rgba(248, 247, 242, 0.76);
  border-bottom: 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.top-nav-left,
.top-nav-actions,
.top-nav-pills {
  display: flex;
  align-items: center;
}

.top-nav-left {
  gap: 16px;
  min-width: 0;
}

.top-brand {
  flex: 0 0 auto;
  width: clamp(118px, 11vw, 158px);
  overflow: hidden;
}

.top-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-nav-pills {
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(23, 23, 22, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.top-nav-pills button,
.top-nav-action {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
}

.top-nav-pills button:hover,
.top-nav-pills button:focus-visible,
.top-nav-pills button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.site-header .search-control {
  position: relative;
  justify-self: center;
  width: 100%;
}

.site-header .search-control input {
  height: 42px;
  padding-left: 42px;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 23, 22, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 30px rgba(23, 23, 22, 0.04);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 1.7px solid rgba(23, 23, 22, 0.46);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-58%);
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  background: rgba(23, 23, 22, 0.46);
  border-radius: 999px;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.top-nav-actions {
  justify-content: flex-end;
  gap: 5px;
}

.top-nav-action {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(23, 23, 22, 0.08);
}

.top-nav-action:hover,
.top-nav-action:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.top-nav-action.primary {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 8px 24px rgba(29, 79, 255, 0.16);
}

.top-nav-action.primary:hover,
.top-nav-action.primary:focus-visible {
  color: white;
  background: var(--toshi-blue-dark);
}

main {
  max-width: none;
  margin-left: 0;
  padding: 0 clamp(18px, 3vw, 48px) 64px;
}

/* Immersive Toshi universe */
.cosmos-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(820px, calc(100vh - 76px));
  overflow: hidden;
  isolation: isolate;
  margin: 0 calc(clamp(18px, 3vw, 48px) * -1);
  padding: clamp(120px, 15vw, 190px) clamp(24px, 8vw, 120px);
}

.cosmos-hero::before {
  position: absolute;
  inset: 10% 19%;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 38%, transparent 72%);
  filter: blur(20px);
}

.cosmos-hero::after {
  position: absolute;
  inset: auto 12% 4%;
  z-index: -3;
  height: 36%;
  content: "";
  background: radial-gradient(ellipse, rgba(29, 79, 255, 0.055), transparent 68%);
  filter: blur(30px);
}

.cosmos-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(760px, 76vw);
  text-align: center;
}

.cosmos-hero-copy .kicker {
  margin-bottom: 20px;
  color: var(--toshi-blue);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
}

.cosmos-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 6.3vw, 7.25rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.cosmos-hero-copy > p:not(.kicker) {
  max-width: 520px;
  margin: 26px 0 0;
  color: #66625b;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.5;
}

.cosmos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.hero-action {
  min-height: 42px;
  padding: 0 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 30px rgba(23, 23, 22, 0.055);
  font-size: 0.84rem;
  font-weight: 760;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: white;
  border-color: rgba(23, 23, 22, 0.18);
  box-shadow: 0 13px 34px rgba(23, 23, 22, 0.08);
  transform: translateY(-1px);
}

.hero-action.primary {
  color: white;
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 12px 30px rgba(29, 79, 255, 0.2);
}

.hero-action.primary:hover,
.hero-action.primary:focus-visible {
  background: var(--toshi-blue-dark);
  border-color: var(--toshi-blue-dark);
}

.floating-art-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-art-field[hidden] {
  display: none;
}

.floating-art-field .feature-frame {
  --float-x: 0px;
  --float-y: 0px;
  --spiral-x: 0px;
  --spiral-y: 0px;
  --spiral-turn: 0deg;
  --spiral-scale: 1;
  position: absolute;
  display: block;
  width: clamp(104px, 11vw, 174px);
  aspect-ratio: 0.82;
  overflow: hidden;
  padding: 0;
  background: #e9e6de;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(12px, 1.4vw, 20px);
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 26px 62px rgba(23, 23, 22, 0.14),
    0 4px 14px rgba(23, 23, 22, 0.07);
  transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--rotation));
  transition:
    box-shadow 300ms ease,
    opacity 300ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: artwork-drift var(--drift-time, 9s) ease-in-out var(--drift-delay, 0s) infinite alternate;
  will-change: transform, opacity;
}

.floating-art-field .feature-frame:hover,
.floating-art-field .feature-frame:focus-visible {
  z-index: 4;
  opacity: 1;
  box-shadow:
    0 32px 72px rgba(23, 23, 22, 0.19),
    0 7px 18px rgba(23, 23, 22, 0.08);
}

.floating-art-field.is-scroll-spiraling .feature-frame {
  animation: none;
  transform:
    translate3d(var(--spiral-x), var(--spiral-y), 0)
    rotate(calc(var(--rotation) + var(--spiral-turn)))
    scale(var(--spiral-scale));
  transition:
    box-shadow 300ms ease,
    opacity 120ms linear;
}

.floating-art-field .feature-frame::before {
  z-index: 1;
}

.floating-art-field .feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-art-field .feature-frame:nth-child(1) {
  top: 10%;
  left: 5%;
  width: clamp(132px, 14vw, 220px);
  aspect-ratio: 0.88;
  --rotation: -5deg;
  --drift-time: 10s;
}

.floating-art-field .feature-frame:nth-child(2) {
  top: 8%;
  right: 8%;
  width: clamp(104px, 10vw, 158px);
  aspect-ratio: 0.78;
  --rotation: 4deg;
  --drift-time: 8s;
  --drift-delay: -3s;
}

.floating-art-field .feature-frame:nth-child(3) {
  top: 45%;
  right: -1.5%;
  width: clamp(142px, 15vw, 232px);
  aspect-ratio: 1.08;
  --rotation: 3deg;
  --drift-time: 11s;
  --drift-delay: -5s;
}

.floating-art-field .feature-frame:nth-child(4) {
  right: 17%;
  bottom: 4%;
  display: block;
  width: clamp(100px, 9vw, 146px);
  aspect-ratio: 0.78;
  opacity: 0.88;
  --rotation: -4deg;
  --drift-time: 9s;
  --drift-delay: -2s;
}

.floating-art-field .feature-frame:nth-child(5) {
  bottom: 3%;
  left: 18%;
  width: clamp(116px, 11vw, 176px);
  aspect-ratio: 1.12;
  opacity: 0.9;
  --rotation: 5deg;
  --drift-time: 10s;
  --drift-delay: -7s;
}

.floating-art-field .feature-frame:nth-child(6) {
  top: 45%;
  left: -2%;
  width: clamp(90px, 9vw, 140px);
  aspect-ratio: 0.72;
  opacity: 0.76;
  filter: blur(0.25px);
  --rotation: 4deg;
  --drift-time: 8.5s;
  --drift-delay: -4s;
}

.floating-art-field .feature-frame:nth-child(7) {
  top: 20%;
  right: 25%;
  width: clamp(72px, 6.5vw, 104px);
  aspect-ratio: 1;
  opacity: 0.6;
  filter: blur(0.7px);
  --rotation: -7deg;
  --drift-time: 7.5s;
  --drift-delay: -1s;
}

body[data-page="explore"] .cosmos-hero,
body[data-page="archive"] .cosmos-hero,
body[data-page="archive"] .category-browse {
  display: none;
}

body[data-page="home"] .category-browse {
  display: grid;
}

.category-browse {
  max-width: 1540px;
  margin: 0 auto clamp(70px, 8vw, 120px);
  padding-top: clamp(46px, 6vw, 82px);
}

.section-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  font-weight: 510;
  letter-spacing: -0.045em;
}

.section-heading p:not(.kicker) {
  max-width: 580px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.35vw, 20px);
}

.category-card {
  min-height: clamp(270px, 27vw, 420px);
  border-radius: clamp(16px, 1.7vw, 24px);
}

.category-card:nth-child(1),
.category-card:nth-child(4),
.category-card:nth-child(5) {
  grid-column: span 2;
}

.category-card-content {
  padding: clamp(18px, 2vw, 28px);
}

body[data-page="home"] .archive-panel {
  max-width: 1540px;
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(30px, 4vw, 54px);
}

body[data-page="home"] .archive-header h2 {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 510;
  letter-spacing: -0.04em;
}

@keyframes artwork-drift {
  from {
    transform: translate3d(var(--float-x), -4px, 0) rotate(var(--rotation));
  }
  to {
    transform: translate3d(var(--float-x), 7px, 0) rotate(var(--rotation));
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 14px;
  }

  .top-brand {
    width: 116px;
  }

  .top-nav-pills {
    display: none;
  }

  .cosmos-hero-copy {
    width: min(680px, 72vw);
  }

  .floating-art-field .feature-frame:nth-child(7) {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 10px 14px 12px;
  }

  .top-nav-left {
    align-self: center;
  }

  .top-brand {
    width: 122px;
  }

  .site-header .search-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-header .search-control input {
    height: 40px;
  }

  .top-nav-actions {
    gap: 4px;
  }

  .top-nav-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .top-nav-action:first-child {
    display: none;
  }

  main {
    padding-bottom: 40px;
  }

  .cosmos-hero {
    min-height: min(690px, calc(100svh - 104px));
    padding: 118px 20px 110px;
  }

  .cosmos-hero-copy {
    width: min(500px, 88vw);
  }

  .cosmos-hero-copy h1 {
    font-size: clamp(3rem, 13vw, 5.15rem);
  }

  .cosmos-hero-copy > p:not(.kicker) {
    max-width: 360px;
    margin-top: 20px;
  }

  .cosmos-hero-actions {
    margin-top: 22px;
  }

  .floating-art-field .feature-frame:nth-child(1) {
    top: 6%;
    left: -5%;
    width: 120px;
  }

  .floating-art-field .feature-frame:nth-child(2) {
    top: 8%;
    right: -3%;
    width: 100px;
  }

  .floating-art-field .feature-frame:nth-child(3) {
    top: auto;
    right: -8%;
    bottom: 2%;
    width: 142px;
  }

  .floating-art-field .feature-frame:nth-child(4) {
    right: auto;
    bottom: 1%;
    left: -5%;
    width: 100px;
  }

  .floating-art-field .feature-frame:nth-child(5),
  .floating-art-field .feature-frame:nth-child(6),
  .floating-art-field .feature-frame:nth-child(7) {
    display: none;
  }

  .category-browse {
    padding-top: 54px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: span 1;
    min-height: 260px;
  }

  .category-card:nth-child(1),
  .category-card:nth-child(4) {
    grid-column: 1 / -1;
    min-height: 330px;
  }
}

@media (max-width: 480px) {
  .cosmos-hero-copy h1 {
    font-size: clamp(2.75rem, 14.6vw, 4.25rem);
  }

  .cosmos-hero-copy .kicker {
    margin-bottom: 15px;
  }

  .cosmos-hero-copy > p:not(.kicker) {
    font-size: 0.88rem;
  }

  .hero-action {
    min-height: 40px;
    padding: 0 14px;
  }

  .floating-art-field .feature-frame:nth-child(1) {
    width: 96px;
  }

  .floating-art-field .feature-frame:nth-child(2) {
    width: 84px;
  }

  .floating-art-field .feature-frame:nth-child(3) {
    width: 118px;
  }

  .floating-art-field .feature-frame:nth-child(4) {
    width: 86px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: auto;
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-art-field .feature-frame {
    animation: none;
    transform: rotate(var(--rotation));
  }
}

/* Compact collection switcher popover */
body[data-page="archive"] .category-switcher summary {
  min-height: 36px;
  padding: 0 13px;
  outline: none;
}

body[data-page="archive"] .category-switcher summary:focus-visible {
  border-color: rgba(23, 23, 22, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 3px rgba(23, 23, 22, 0.065);
}

body[data-page="archive"] .category-menu {
  top: calc(100% + 7px);
  width: 190px;
  gap: 1px;
  padding: 6px;
  border-radius: 12px;
  box-shadow:
    0 18px 42px rgba(23, 23, 22, 0.12),
    0 3px 10px rgba(23, 23, 22, 0.035);
}

body[data-page="archive"] .category-menu .filter-button {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 610;
  outline: none;
}

body[data-page="archive"] .category-menu .filter-button:hover,
body[data-page="archive"] .category-menu .filter-button:focus-visible {
  background: rgba(23, 23, 22, 0.045);
  box-shadow: none;
}

body[data-page="archive"] .category-menu .filter-button[aria-pressed="true"] {
  background: rgba(29, 79, 255, 0.075);
}

body[data-page="archive"] .category-menu-soon {
  font-size: 0.58rem;
}

/* Smaller, more balanced Explore collection grid. */
.category-browse {
  max-width: 1380px;
}

.category-grid {
  gap: clamp(10px, 1.1vw, 15px);
}

.category-card,
.category-card:nth-child(4),
.category-card:nth-child(5) {
  grid-column: span 1;
  min-height: clamp(238px, 22vw, 350px);
}

.category-card:nth-child(1) {
  grid-column: span 2;
}

.category-card[data-category="gifs"] img {
  object-position: center;
}

@media (max-width: 760px) {
  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: span 1;
    min-height: 250px;
  }

  .category-card:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 310px;
  }
}

@media (max-width: 480px) {
  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: auto;
    min-height: 270px;
  }
}

@media (max-width: 480px) {
  body[data-page="archive"] .category-menu {
    width: min(190px, calc(100vw - 28px));
  }
}

/* Liquid-glass search command center */
@keyframes search-glass-reflection {
  0%,
  68% {
    opacity: 0;
    transform: translateX(-185%) skewX(-18deg);
  }
  72% {
    opacity: 0.42;
  }
  82% {
    opacity: 0.2;
    transform: translateX(185%) skewX(-18deg);
  }
  83%,
  100% {
    opacity: 0;
    transform: translateX(185%) skewX(-18deg);
  }
}

.site-header .search-control {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  transition:
    filter 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-glass-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 12% -38%, rgba(255, 255, 255, 0.88), transparent 48%),
    radial-gradient(85% 180% at 94% 145%, rgba(126, 160, 255, 0.11), transparent 58%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.54), rgba(239, 239, 236, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(23, 23, 22, 0.035),
    0 1px 1px rgba(23, 23, 22, 0.035),
    0 12px 32px rgba(23, 23, 22, 0.055);
  pointer-events: none;
  transition:
    background 300ms ease,
    border-color 280ms ease,
    box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
  backdrop-filter: blur(18px) saturate(1.24);
}

.search-glass-layer::before {
  position: absolute;
  inset: 1px 11% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94), transparent);
  opacity: 0.72;
}

.search-glass-layer::after {
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: 0;
  width: 25%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.5),
    rgba(196, 216, 255, 0.16),
    transparent
  );
  filter: blur(5px);
  opacity: 0;
  animation: search-glass-reflection 9s cubic-bezier(0.16, 1, 0.3, 1) 1.8s infinite;
  transform: translateX(-185%) skewX(-18deg);
}

.site-header .search-control input {
  position: relative;
  z-index: 2;
  padding-right: 72px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  caret-color: var(--toshi-blue);
  transition:
    color 220ms ease,
    opacity 220ms ease;
}

.site-header .search-control input:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.site-header .search-control:focus-within {
  transform: translateY(-1px) scale(1.012);
}

.site-header .search-control:focus-within .search-glass-layer {
  background:
    radial-gradient(120% 180% at 12% -38%, rgba(255, 255, 255, 0.98), transparent 50%),
    radial-gradient(90% 180% at 94% 145%, rgba(98, 139, 255, 0.16), transparent 60%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(245, 246, 246, 0.5));
  border-color: rgba(174, 197, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(29, 79, 255, 0.045),
    0 0 0 4px rgba(29, 79, 255, 0.055),
    0 18px 46px rgba(23, 23, 22, 0.1),
    0 8px 24px rgba(29, 79, 255, 0.055);
  -webkit-backdrop-filter: blur(22px) saturate(1.32);
  backdrop-filter: blur(22px) saturate(1.32);
}

.search-icon {
  z-index: 3;
  border-color: rgba(58, 56, 52, 0.58);
  transition:
    border-color 220ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-icon::after {
  background: rgba(58, 56, 52, 0.58);
  transition: background 220ms ease;
}

.search-control:focus-within .search-icon {
  border-color: rgba(29, 79, 255, 0.74);
  transform: translateY(-50%) scale(1.06);
}

.search-control:focus-within .search-icon::after {
  background: rgba(29, 79, 255, 0.74);
}

.search-command-key {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 39px;
  height: 27px;
  color: rgba(72, 69, 64, 0.58);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(23, 23, 22, 0.07);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 3px 9px rgba(23, 23, 22, 0.035);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  opacity: 0.78;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-control:focus-within .search-command-key,
body.has-search-query .search-command-key {
  opacity: 0;
  transform: translateY(-50%) translateX(5px);
}

.search-suggestions {
  z-index: 8;
  background:
    radial-gradient(110% 120% at 15% 0%, rgba(255, 255, 255, 0.86), transparent 56%),
    rgba(247, 247, 244, 0.78);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 70px rgba(23, 23, 22, 0.15),
    0 8px 24px rgba(29, 79, 255, 0.045);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  backdrop-filter: blur(30px) saturate(1.3);
}

.floating-art-field,
.category-card img,
.category-hero-visuals {
  transition:
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.search-is-focused:not(.has-search-query) .floating-art-field {
  filter: blur(4px) saturate(0.9);
  opacity: 0.78;
}

body.search-is-focused:not(.has-search-query) .category-card img,
body.search-is-focused:not(.has-search-query) .category-hero-visuals {
  filter: blur(2.5px) saturate(0.9);
  opacity: 0.82;
}

@media (max-width: 760px) {
  .site-header .search-control input {
    padding-right: 52px;
  }

  .search-command-key {
    right: 10px;
    min-width: 31px;
    height: 24px;
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-glass-layer::after {
    display: none;
    animation: none;
  }

  .site-header .search-control,
  .floating-art-field,
  .category-card img,
  .category-hero-visuals {
    transition-duration: 160ms;
  }
}

/* Smart global search */
.site-header .search-control {
  z-index: 24;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(460px, calc(100vw - 32px));
  padding: 14px;
  background: rgba(250, 249, 245, 0.97);
  border: 1px solid rgba(23, 23, 22, 0.09);
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(23, 23, 22, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}

.search-suggestions p {
  margin: 0 0 10px;
  color: #706d66;
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggestion-list button {
  min-height: 32px;
  padding: 0 11px;
  color: #4d4a44;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 23, 22, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
}

.search-suggestion-list button:hover,
.search-suggestion-list button:focus-visible {
  color: var(--ink);
  background: white;
  border-color: rgba(23, 23, 22, 0.15);
  outline: none;
}

body.has-search-query .cosmos-hero,
body.has-search-query .category-browse {
  display: none;
}

body.has-search-query .archive-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 1540px;
  margin: clamp(46px, 7vw, 92px) auto 20px;
  padding-top: 0;
}

body.has-search-query .archive-header h2 {
  font-size: clamp(2rem, 3.6vw, 4rem);
}

body.has-search-query .archive-section-copy {
  display: block;
  max-width: 620px;
  color: #57544e;
}

body.has-search-query .sort-control,
body.has-search-query .category-switcher,
body.has-search-query .artist-filter-panel {
  display: none;
}

body.has-search-query .toolbar-status {
  align-self: end;
}

@media (max-width: 760px) {
  .search-suggestions {
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 15px;
  }

  body.has-search-query .archive-panel {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  body.has-search-query .toolbar-status {
    justify-self: start;
  }
}

/* Curated collection toolbar */
body[data-page="archive"] .category-hero {
  gap: 9px;
  max-width: 920px;
  padding-top: clamp(38px, 5vw, 76px);
  padding-bottom: clamp(28px, 3.4vw, 48px);
}

body[data-page="archive"] .category-back {
  margin-bottom: clamp(12px, 1.6vw, 22px);
  color: #69665f;
  font-weight: 680;
}

body[data-page="archive"] .category-hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
}

body[data-page="archive"] .category-hero p {
  margin-top: 4px;
}

body[data-page="archive"] .category-hero-count {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

body[data-page="archive"] .archive-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(23, 23, 22, 0.09);
  border-bottom: 0;
}

body[data-page="archive"] .archive-header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

body[data-page="archive"] .archive-header h2 {
  flex: 0 1 auto;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 640;
  letter-spacing: -0.015em;
}

body[data-page="archive"] .toolbar-status {
  position: relative;
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex: 0 0 auto;
  gap: 0;
}

body[data-page="archive"] .toolbar-status::before {
  margin-right: 8px;
  color: rgba(23, 23, 22, 0.28);
  content: "·";
}

body[data-page="archive"] .result-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 560;
}

body[data-page="archive"] .archive-controls {
  display: contents;
}

.category-switcher {
  position: relative;
  z-index: 12;
}

body[data-page="archive"] .category-switcher {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.category-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  color: #77736b;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 640;
  list-style: none;
  transition:
    color 180ms ease;
}

.category-switcher summary::-webkit-details-marker {
  display: none;
}

.category-switcher summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.68rem;
  transition: transform 180ms ease;
}

.category-switcher[open] summary {
  color: var(--ink);
  background: transparent;
}

.category-switcher[open] summary::after {
  transform: rotate(180deg);
}

.category-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: auto;
  left: 0;
  display: grid;
  width: 218px;
  gap: 2px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(23, 23, 22, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.category-menu .filter-button {
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #514e48;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 620;
  text-align: left;
}

.category-menu .filter-button:hover,
.category-menu .filter-button:focus-visible {
  color: var(--ink);
  background: rgba(23, 23, 22, 0.05);
}

.category-menu .filter-button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(29, 79, 255, 0.08);
  border: 0;
  box-shadow: none;
}

.category-menu .filter-button[aria-pressed="true"]::after {
  color: var(--toshi-blue);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 820;
}

.category-menu .filter-button:disabled {
  color: rgba(23, 23, 22, 0.32);
  background: transparent;
  opacity: 1;
}

.category-menu .filter-button[data-empty="true"]::after {
  display: none;
  content: none;
}

.category-menu-soon {
  color: rgba(23, 23, 22, 0.28);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="archive"] .sort-control {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-height: 36px;
  padding-left: 11px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body[data-page="archive"] .sort-select-wrap {
  background: rgba(255, 255, 255, 0.48);
}

body[data-page="archive"] .artist-filter-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-top: 0;
}

body[data-page="archive"] .artist-filter-title {
  color: #69665f;
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="archive"] .artist-filter-group {
  gap: 6px;
}

body[data-page="archive"] .artist-filter-button {
  min-height: 29px;
  padding: 0 10px;
  color: #69665f;
  background: transparent;
  border-color: rgba(23, 23, 22, 0.075);
  font-size: 0.76rem;
  font-weight: 590;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

body[data-page="archive"] .artist-filter-button:hover,
body[data-page="archive"] .artist-filter-button:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(23, 23, 22, 0.16);
}

body[data-page="archive"] .artist-filter-button[aria-pressed="true"] {
  color: #272725;
  background: rgba(23, 23, 22, 0.06);
  border-color: rgba(23, 23, 22, 0.11);
}

body[data-page="archive"] .artist-filter-button .filter-remove {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  margin-right: -5px;
  color: #514e48;
  background: rgba(23, 23, 22, 0.08);
}

body[data-page="archive"] .clear-button {
  display: none;
}

body[data-page="home"] .category-switcher {
  display: none;
}

@media (max-width: 760px) {
  body[data-page="archive"] .category-hero {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  body[data-page="archive"] .category-hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  body[data-page="archive"] .archive-panel {
    grid-template-columns: 1fr;
    gap: 11px;
    padding-top: 14px;
  }

  body[data-page="archive"] .archive-header,
  body[data-page="archive"] .artist-filter-panel {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="archive"] .archive-header {
    align-items: baseline;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  body[data-page="archive"] .category-switcher,
  body[data-page="archive"] .sort-control {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-page="archive"] .category-switcher {
    justify-self: start;
  }

  body[data-page="archive"] .sort-control {
    justify-self: end;
  }

  body[data-page="archive"] .artist-filter-panel {
    grid-row: 3;
    gap: 8px;
  }

  body[data-page="archive"] .artist-filter-group {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1px 0 4px;
    -webkit-overflow-scrolling: touch;
  }

  .category-menu {
    right: auto;
    left: 0;
  }
}

/* Premium floating navigation */
.site-header {
  grid-template-columns:
    minmax(350px, 1fr)
    minmax(360px, 520px)
    minmax(300px, 1fr);
  gap: clamp(20px, 2.4vw, 38px);
  min-height: 92px;
  padding: 18px clamp(28px, 4vw, 64px);
  background: rgba(248, 247, 242, 0.74);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 42px rgba(23, 23, 22, 0.035);
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
  backdrop-filter: blur(26px) saturate(1.22);
}

.top-nav-left {
  gap: clamp(18px, 1.7vw, 28px);
}

.top-brand {
  width: clamp(142px, 12vw, 178px);
}

.top-nav-pills {
  min-height: 52px;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(23, 23, 22, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 30px rgba(23, 23, 22, 0.035);
}

.top-nav-pills button {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.87rem;
  font-weight: 680;
}

.top-nav-pills button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 1px rgba(23, 23, 22, 0.04),
    0 7px 18px rgba(23, 23, 22, 0.055);
}

.site-header .search-control {
  max-width: 520px;
}

.site-header .search-control input {
  height: 52px;
  padding-right: 22px;
  padding-left: 48px;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(23, 23, 22, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 34px rgba(23, 23, 22, 0.045);
  font-size: 0.91rem;
}

.site-header .search-control input::placeholder {
  color: rgba(80, 77, 71, 0.58);
}

.search-icon {
  left: 19px;
  width: 15px;
  height: 15px;
}

.top-nav-actions {
  gap: 8px;
}

.top-nav-action {
  min-height: 48px;
  padding: 0 17px;
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(23, 23, 22, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 24px rgba(23, 23, 22, 0.025);
  font-size: 0.86rem;
  font-weight: 680;
}

.top-nav-action.primary {
  padding-right: 19px;
  padding-left: 19px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 11px 28px rgba(29, 79, 255, 0.18);
}

.cosmos-hero {
  min-height: min(820px, calc(100vh - 92px));
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(300px, 1fr) auto;
    gap: 18px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .top-brand {
    width: 140px;
  }

  .top-nav-pills {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 11px 12px;
    min-height: 0;
    padding: 13px 16px 15px;
    box-shadow: 0 10px 34px rgba(23, 23, 22, 0.035);
  }

  .top-brand {
    width: 132px;
  }

  .top-nav-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .site-header .search-control {
    max-width: none;
  }

  .site-header .search-control input {
    height: 46px;
    padding-left: 45px;
    font-size: 0.86rem;
  }

  .search-icon {
    left: 18px;
  }

  .cosmos-hero {
    min-height: min(690px, calc(100svh - 118px));
  }
}

/* Let floating artwork shadows fade naturally beyond the hero edge. */
body {
  overflow-x: clip;
}

.cosmos-hero {
  overflow: visible;
}

.floating-art-field .feature-frame {
  box-shadow:
    0 20px 48px rgba(23, 23, 22, 0.105),
    0 5px 14px rgba(23, 23, 22, 0.045);
}

.floating-art-field .feature-frame:hover,
.floating-art-field .feature-frame:focus-visible {
  box-shadow:
    0 26px 58px rgba(23, 23, 22, 0.14),
    0 7px 18px rgba(23, 23, 22, 0.06);
}

/* Inset navigation layer: one calm floating system, not a utility strip. */
.site-header {
  top: 12px;
  width: calc(100% - clamp(24px, 3vw, 48px));
  min-height: 88px;
  margin: 12px auto 0;
  padding: 16px clamp(20px, 2.6vw, 38px);
  background: rgba(250, 249, 245, 0.82);
  border: 1px solid rgba(23, 23, 22, 0.065);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 54px rgba(23, 23, 22, 0.065);
  -webkit-backdrop-filter: blur(20px) saturate(1.16);
  backdrop-filter: blur(20px) saturate(1.16);
}

.top-brand {
  width: clamp(150px, 12vw, 184px);
}

.top-nav-pills {
  min-height: 50px;
  padding: 4px;
  background: rgba(239, 237, 231, 0.66);
  border-color: rgba(23, 23, 22, 0.055);
  box-shadow: none;
}

.top-nav-pills button {
  min-height: 40px;
  padding: 0 18px;
}

.top-nav-pills button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 1px rgba(23, 23, 22, 0.025),
    0 6px 16px rgba(23, 23, 22, 0.045);
}

.site-header .search-control input {
  height: 52px;
  background: rgba(239, 237, 231, 0.62);
  border-color: rgba(23, 23, 22, 0.055);
  box-shadow: none;
}

.site-header .search-control input:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(29, 79, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(29, 79, 255, 0.08);
}

.top-nav-action {
  min-height: 48px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.top-nav-action:hover,
.top-nav-action:focus-visible {
  background: rgba(239, 237, 231, 0.72);
  border-color: transparent;
}

.top-nav-action.primary {
  background: var(--toshi-blue);
  border-color: var(--toshi-blue);
  box-shadow: 0 10px 24px rgba(29, 79, 255, 0.16);
}

.cosmos-hero {
  min-height: min(820px, calc(100vh - 112px));
}

@media (max-width: 1180px) {
  .site-header {
    width: calc(100% - 24px);
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 12px 12px 13px;
    border-radius: 20px;
  }

  .top-brand {
    width: 136px;
  }

  .site-header .search-control input {
    height: 46px;
  }
}

/* Quiet, cinematic motion for Explore by style */
@keyframes explore-copy-reveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes explore-card-reveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes collection-page-enter {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

body[data-page="explore"].explore-is-entering .section-heading .kicker,
body[data-page="explore"].explore-is-entering .section-heading h2,
body[data-page="explore"].explore-is-entering .section-heading p:not(.kicker) {
  animation: explore-copy-reveal 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-page="explore"].explore-is-entering .section-heading h2 {
  animation-delay: 80ms;
}

body[data-page="explore"].explore-is-entering .section-heading p:not(.kicker) {
  animation-delay: 160ms;
}

body[data-page="explore"].explore-is-entering .category-card {
  animation: explore-card-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(240ms + var(--card-index, 0) * 85ms);
}

.category-card {
  --glow-x: 50%;
  --glow-y: 50%;
  transform: translateY(0) scale(1);
  transition:
    border-color 220ms ease,
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 220ms ease,
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.category-card::after {
  z-index: 0;
  opacity: 1;
  transition: opacity 220ms ease;
}

.category-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: radial-gradient(
    circle at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.055) 18%,
    transparent 38%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.category-card img {
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.category-card-content {
  z-index: 2;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-title,
.category-card-description {
  transition:
    opacity 220ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-meta {
  opacity: 0.9;
  transform: translateY(2px);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:not(.is-empty):hover,
  .category-card:not(.is-empty):focus-visible {
    border-color: rgba(23, 23, 22, 0.13);
    box-shadow:
      0 24px 54px rgba(23, 23, 22, 0.13),
      0 8px 18px rgba(23, 23, 22, 0.045);
    transform: translateY(-4px);
  }

  .category-card:not(.is-empty):hover::before,
  .category-card:not(.is-empty):focus-visible::before {
    opacity: 1;
  }

  .category-card:not(.is-empty):hover::after,
  .category-card:not(.is-empty):focus-visible::after {
    opacity: 0.92;
  }

  .category-card:not(.is-empty):hover img,
  .category-card:not(.is-empty):focus-visible img {
    opacity: 1;
    transform: scale(1.01);
  }

  .category-card:not(.is-empty):hover .category-card-content,
  .category-card:not(.is-empty):focus-visible .category-card-content {
    transform: translateY(-3px);
  }

  .category-card:not(.is-empty):hover .category-card-meta,
  .category-card:not(.is-empty):focus-visible .category-card-meta {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 10px 26px rgba(29, 79, 255, 0.24),
      0 5px 14px rgba(0, 0, 0, 0.07);
  }

  .category-card.is-empty:hover {
    border-color: rgba(23, 23, 22, 0.1);
    box-shadow: 0 18px 44px rgba(23, 23, 22, 0.075);
    transform: translateY(-2px);
  }

  .category-card.is-empty:hover::before {
    background: radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.58),
      transparent 45%
    );
    opacity: 0.6;
  }

  .category-card.is-empty:hover .category-card-meta {
    color: rgba(23, 23, 22, 0.68);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(23, 23, 22, 0.1);
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card[aria-disabled="true"] {
  cursor: default;
}

.category-card.is-pressing {
  transform: translateY(-1px) scale(0.992) !important;
  transition-duration: 110ms;
}

body.is-page-leaving .category-browse {
  opacity: 0.58;
  filter: blur(2px);
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

body.is-page-entering .category-hero,
body.is-page-entering .archive-panel,
body.is-page-entering .mosaic {
  animation: collection-page-enter 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-page-entering .archive-panel {
  animation-delay: 70ms;
}

body.is-page-entering .mosaic {
  animation-delay: 130ms;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="explore"].explore-is-entering .section-heading .kicker,
  body[data-page="explore"].explore-is-entering .section-heading h2,
  body[data-page="explore"].explore-is-entering .section-heading p:not(.kicker),
  body[data-page="explore"].explore-is-entering .category-card,
  body.is-page-entering .category-hero,
  body.is-page-entering .archive-panel,
  body.is-page-entering .mosaic {
    animation: explore-simple-fade 180ms ease both;
    animation-delay: 0ms;
  }

  .category-card,
  .category-card img,
  .category-card-content,
  .category-card-title,
  .category-card-description,
  .category-card-meta,
  body.is-page-leaving .category-browse {
    filter: none;
    transform: none !important;
    transition-duration: 1ms;
  }

  .category-card::before {
    display: none;
  }
}

@keyframes explore-simple-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Tighter homepage pacing from collections into the latest archive. */
body[data-page="home"] .category-browse {
  margin-bottom: clamp(46px, 5.2vw, 78px);
}

body[data-page="home"] .archive-panel {
  padding-top: clamp(18px, 2.4vw, 34px);
}

.cosmos-hero-copy > .kicker {
  display: none;
}

body[data-page="home"] .cosmos-hero {
  min-height: min(720px, calc(88vh - 70px));
  padding-top: clamp(92px, 10vw, 132px);
  padding-bottom: clamp(92px, 10vw, 132px);
}

body[data-page="home"] .category-browse {
  padding-top: clamp(30px, 4vw, 54px);
}

.cosmos-hero-copy::before {
  position: absolute;
  inset: -42px -70px;
  z-index: -1;
  content: "";
  background: radial-gradient(
    ellipse at center,
    rgba(248, 247, 242, 0.84) 0%,
    rgba(248, 247, 242, 0.52) 48%,
    transparent 76%
  );
  filter: blur(10px);
  pointer-events: none;
}

.cosmos-hero-copy > p:not(.kicker) {
  color: #3f3d38;
  font-weight: 500;
  text-shadow: 0 1px 18px rgba(248, 247, 242, 0.96);
}

.section-heading p:not(.kicker) {
  color: #45423c;
  font-weight: 500;
}

.section-heading .kicker {
  color: #69665f;
}

@media (max-width: 760px) {
  body[data-page="home"] .cosmos-hero {
    min-height: min(620px, calc(88svh - 84px));
    padding-top: 82px;
    padding-bottom: 82px;
  }

  body[data-page="home"] .category-browse {
    padding-top: 34px;
  }

  body[data-page="home"] .category-browse {
    margin-bottom: 34px;
  }

  body[data-page="home"] .archive-panel {
    padding-top: 12px;
  }
}

/* Compact, visual-first collection pages */
body[data-page="archive"] main {
  --collection-glow: rgba(29, 79, 255, 0.11);
}

body[data-page="archive"] .category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1540px;
  min-height: clamp(300px, 32vw, 430px);
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 64px) 0 clamp(24px, 3vw, 42px);
  overflow: visible;
  isolation: isolate;
}

body[data-page="archive"] .category-hero::before {
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 0;
  left: 38%;
  z-index: -2;
  content: "";
  background: radial-gradient(ellipse at center, var(--collection-glow), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

body[data-page="archive"] .category-hero[data-category="culture"] {
  --collection-glow: rgba(242, 170, 72, 0.12);
}

body[data-page="archive"] .category-hero[data-category="gifs"],
body[data-page="archive"] .category-hero[data-category="animation"] {
  --collection-glow: rgba(100, 78, 255, 0.11);
}

body[data-page="archive"] .category-hero[data-category="community"] {
  --collection-glow: rgba(29, 79, 255, 0.13);
}

.category-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  align-content: center;
  min-width: 0;
}

body[data-page="archive"] .category-back {
  margin-bottom: clamp(18px, 2vw, 28px);
  color: #625f58;
  font-size: 0.82rem;
  font-weight: 680;
}

body[data-page="archive"] .category-hero h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

body[data-page="archive"] .category-hero p:not(.category-hero-count) {
  max-width: 520px;
  margin-top: 20px;
  color: #45423c;
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  font-weight: 500;
  line-height: 1.46;
}

body[data-page="archive"] .category-hero-count {
  margin-top: 13px;
  color: #6c6962;
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.category-hero-visuals {
  position: relative;
  align-self: stretch;
  min-height: 250px;
}

.category-hero-visual {
  position: absolute;
  display: block;
  overflow: hidden;
  background: #e9e5db;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  box-shadow:
    0 25px 60px rgba(23, 23, 22, 0.13),
    0 5px 16px rgba(23, 23, 22, 0.05);
}

.category-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-visual:nth-child(1) {
  top: 7%;
  right: 18%;
  z-index: 2;
  width: clamp(170px, 16vw, 250px);
  aspect-ratio: 0.88;
  --visual-rotation: 3deg;
  transform: rotate(var(--visual-rotation));
}

.category-hero-visual:nth-child(2) {
  top: 27%;
  right: 52%;
  z-index: 1;
  width: clamp(130px, 12vw, 190px);
  aspect-ratio: 0.82;
  opacity: 0.9;
  --visual-rotation: -5deg;
  transform: rotate(var(--visual-rotation));
}

.category-hero-visual:nth-child(3) {
  right: 0;
  bottom: 2%;
  z-index: 3;
  width: clamp(110px, 10vw, 158px);
  aspect-ratio: 1.08;
  opacity: 0.86;
  --visual-rotation: 6deg;
  transform: rotate(var(--visual-rotation));
}

body[data-page="archive"] .archive-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  max-width: 1540px;
  margin: 0 auto 10px;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(23, 23, 22, 0.085);
  border-bottom: 0;
}

body[data-page="archive"] .archive-header {
  display: none;
}

body[data-page="archive"] .archive-controls {
  display: contents;
}

body[data-page="archive"] .category-switcher {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

body[data-page="archive"] .category-switcher summary {
  min-height: 38px;
  padding: 0 14px;
  color: #4f4c46;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 660;
}

body[data-page="archive"] .category-switcher summary:hover,
body[data-page="archive"] .category-switcher summary:focus-visible,
body[data-page="archive"] .category-switcher[open] summary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(23, 23, 22, 0.16);
}

body[data-page="archive"] .sort-control {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-height: 38px;
  padding: 0 7px 0 11px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body[data-page="archive"] .sort-select-wrap {
  background: rgba(255, 255, 255, 0.58);
}

body[data-page="archive"] .artist-filter-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 1px 0 2px;
}

body[data-page="archive"] .artist-filter-panel[hidden] {
  display: none;
}

body[data-page="archive"] .artist-filter-title {
  color: #68655e;
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="archive"] .artist-filter-group {
  gap: 6px;
}

body[data-page="archive"] .artist-filter-button {
  min-height: 31px;
  padding: 0 11px;
  color: #625f58;
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(23, 23, 22, 0.08);
  font-size: 0.77rem;
  font-weight: 610;
}

body[data-page="archive"] .artist-filter-button[aria-pressed="true"] {
  color: #252523;
  background: rgba(23, 23, 22, 0.065);
  border-color: rgba(23, 23, 22, 0.12);
}

body[data-page="archive"] .mosaic {
  margin-top: 0;
}

@keyframes collection-hero-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes collection-visual-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px) rotate(var(--visual-rotation));
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(var(--visual-rotation));
  }
}

@keyframes collection-card-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

body.is-page-entering .category-hero {
  animation: none;
}

body.is-page-entering .category-hero-copy {
  animation: collection-hero-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-page-entering .category-hero-visual {
  animation: collection-visual-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-page-entering .category-hero-visual:nth-child(1) {
  animation-delay: 60ms;
}

body.is-page-entering .category-hero-visual:nth-child(2) {
  animation-delay: 120ms;
}

body.is-page-entering .category-hero-visual:nth-child(3) {
  animation-delay: 180ms;
}

body.is-page-entering .archive-panel {
  animation: collection-hero-in 560ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

body.is-page-entering .mosaic {
  animation: none;
}

body.is-page-entering .art-card {
  animation: collection-card-in 580ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(150ms + var(--collection-card-index, 0) * 45ms);
}

@media (max-width: 900px) {
  body[data-page="archive"] .category-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
    gap: 24px;
    min-height: 330px;
  }

  .category-hero-visual:nth-child(2) {
    right: 42%;
  }

  .category-hero-visual:nth-child(3) {
    display: none;
  }
}

@media (max-width: 680px) {
  body[data-page="archive"] .category-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 28px 0 18px;
  }

  body[data-page="archive"] .category-hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  body[data-page="archive"] .category-back {
    margin-bottom: 16px;
  }

  .category-hero-visuals {
    min-height: 155px;
  }

  .category-hero-visual:nth-child(1) {
    top: 0;
    right: 12%;
    width: 142px;
    aspect-ratio: 1.2;
  }

  .category-hero-visual:nth-child(2) {
    top: 24px;
    right: auto;
    left: 8%;
    width: 112px;
    aspect-ratio: 0.92;
  }

  body[data-page="archive"] .archive-panel {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding-top: 10px;
  }

  body[data-page="archive"] .artist-filter-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  body[data-page="archive"] .artist-filter-group {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-page-entering .category-hero-copy,
  body.is-page-entering .category-hero-visual,
  body.is-page-entering .archive-panel,
  body.is-page-entering .art-card {
    filter: none;
    transform: none;
    animation: explore-simple-fade 180ms ease both;
    animation-delay: 0ms;
  }
}

/* Final collection switcher sizing override */
body[data-page="archive"] .category-switcher summary {
  min-height: 36px;
  padding: 0 13px;
  outline: none;
}

body[data-page="archive"] .category-switcher summary:focus-visible {
  border-color: rgba(23, 23, 22, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 3px rgba(23, 23, 22, 0.065);
}

body[data-page="archive"] .category-menu {
  top: calc(100% + 7px);
  width: 190px;
  gap: 1px;
  padding: 6px;
  border-radius: 12px;
  box-shadow:
    0 18px 42px rgba(23, 23, 22, 0.12),
    0 3px 10px rgba(23, 23, 22, 0.035);
}

body[data-page="archive"] .category-menu .filter-button {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 610;
  outline: none;
}

body[data-page="archive"] .category-menu .filter-button:hover,
body[data-page="archive"] .category-menu .filter-button:focus-visible {
  background: rgba(23, 23, 22, 0.045);
  box-shadow: none;
}

body[data-page="archive"] .category-menu .filter-button[aria-pressed="true"] {
  background: rgba(29, 79, 255, 0.075);
}

body[data-page="archive"] .category-menu-soon {
  font-size: 0.58rem;
}

@media (max-width: 480px) {
  body[data-page="archive"] .category-menu {
    width: min(190px, calc(100vw - 28px));
  }
}

/* Final glass-search specificity overrides */
body .site-header .search-control input,
body .site-header .search-control input:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.search-is-focused:not(.has-search-query) .floating-art-field {
  filter: blur(3px) saturate(0.92);
  opacity: 0.84;
}

body.search-is-focused:not(.has-search-query) .category-card img,
body.search-is-focused:not(.has-search-query) .category-hero-visuals {
  filter: blur(2px) saturate(0.92);
  opacity: 0.86;
}

/* Search clear control and distinct emotional lanes */
.site-header .search-control input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-button {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #343433;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(222, 223, 222, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 4px 12px rgba(23, 23, 22, 0.09);
  cursor: pointer;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  transition:
    background 180ms ease,
    box-shadow 200ms ease,
    opacity 160ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-clear-button[hidden] {
  display: none;
}

.search-clear-button span,
.search-clear-button span::after {
  position: absolute;
  width: 14px;
  height: 1.5px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
}

.search-clear-button span::after {
  inset: 0;
  transform: rotate(90deg);
}

.search-clear-button:hover,
.search-clear-button:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(230, 232, 233, 0.94));
  box-shadow:
    inset 0 1px 0 white,
    0 6px 16px rgba(23, 23, 22, 0.13);
  outline: none;
  transform: translateY(-50%) scale(1.045);
}

.search-clear-button:active {
  transform: translateY(-50%) scale(0.94);
}

.search-suggestion-list button {
  --mood-tint: rgba(255, 255, 255, 0.58);
  position: relative;
  padding-left: 25px;
  background:
    radial-gradient(circle at 13px 50%, var(--mood-tint) 0 3px, transparent 4px),
    rgba(255, 255, 255, 0.52);
}

.search-suggestion-list button[data-mood="funny"] {
  --mood-tint: #f0b94d;
}

.search-suggestion-list button[data-mood="happy"] {
  --mood-tint: #79b86b;
}

.search-suggestion-list button[data-mood="angry"] {
  --mood-tint: #d87362;
}

.search-suggestion-list button[data-mood="sad"] {
  --mood-tint: #7496c7;
}

.search-suggestion-list button[data-mood="surprised"] {
  --mood-tint: #b988cf;
}

.search-suggestion-list button[data-mood="confused"] {
  --mood-tint: #a59475;
}

.search-suggestion-list button[data-mood="hype"] {
  --mood-tint: #ed8452;
}

.search-suggestion-list button[data-mood="chill"] {
  --mood-tint: #69aaa5;
}

.search-suggestion-list button[data-mood="love"] {
  --mood-tint: #d97994;
}

@media (max-width: 760px) {
  .search-clear-button {
    right: 7px;
    width: 31px;
    height: 31px;
  }
}

/* Toshi-blue liquid-glass controls */
.category-card-meta,
.intro-button.primary,
.intro-button.toshi-blue,
.top-nav-action.primary,
.hero-action.primary,
.download-button,
.share-button,
.load-more-button,
.file-button {
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(
      145deg,
      rgba(87, 186, 240, 0.76),
      rgba(22, 112, 220, 0.75) 48%,
      rgba(7, 78, 180, 0.7)
    );
  border-color: rgba(205, 239, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(241, 252, 255, 0.78),
    inset 0 -1px 0 rgba(3, 58, 142, 0.18),
    0 9px 24px rgba(5, 73, 155, 0.13);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.category-card-meta {
  background:
    linear-gradient(
      145deg,
      rgba(108, 199, 242, 0.67),
      rgba(22, 111, 218, 0.65) 50%,
      rgba(8, 78, 177, 0.58)
    );
  text-shadow: 0 1px 2px rgba(3, 46, 113, 0.24);
}

.filter-button[aria-pressed="true"],
.artist-filter-button[aria-pressed="true"] {
  color: #07529f;
  background:
    linear-gradient(
      145deg,
      rgba(235, 250, 255, 0.84),
      rgba(190, 226, 247, 0.6)
    );
  border-color: rgba(16, 112, 193, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 7px 18px rgba(5, 88, 157, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.intro-button.primary:hover,
.intro-button.primary:focus-visible,
.intro-button.toshi-blue:hover,
.intro-button.toshi-blue:focus-visible,
.top-nav-action.primary:hover,
.top-nav-action.primary:focus-visible,
.hero-action.primary:hover,
.hero-action.primary:focus-visible,
.download-button:hover,
.download-button:focus-visible,
.share-button:hover,
.share-button:focus-visible,
.load-more-button:hover,
.load-more-button:focus-visible,
.file-button:hover,
.file-button:focus-visible {
  color: white;
  background:
    linear-gradient(
      145deg,
      rgba(74, 176, 235, 0.88),
      rgba(15, 101, 210, 0.86) 48%,
      rgba(5, 69, 167, 0.82)
    );
  border-color: rgba(220, 246, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(244, 253, 255, 0.86),
    inset 0 -1px 0 rgba(2, 52, 133, 0.2),
    0 11px 28px rgba(3, 73, 154, 0.17);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:not(.is-empty):hover .category-card-meta,
  .category-card:not(.is-empty):focus-visible .category-card-meta {
    background:
      linear-gradient(
        145deg,
        rgba(112, 203, 244, 0.75),
        rgba(20, 108, 215, 0.72) 50%,
        rgba(6, 73, 169, 0.64)
      );
    border-color: rgba(217, 245, 255, 0.56);
    box-shadow:
      inset 0 1px 0 rgba(244, 253, 255, 0.84),
      inset 0 -1px 0 rgba(2, 54, 137, 0.18),
      0 10px 26px rgba(4, 71, 151, 0.16);
  }
}
