:root {
  --orange: #f36b00;
  --orange-dark: #c95700;
  --background: #ffffff;
  --text: #171717;
  --muted: #6d6d6d;
  --line: #dedede;
  --soft-line: #eeeeee;
  --surface: #f6f6f6;
  --page-width: 1440px;
  color: var(--text);
  background: var(--background);
  font-family: "Apple SD Gothic Neo", sans-serif;
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

/* Home */

.home-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f5f5f4;
}

.home-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("images/home-hero.jpg");
  background-position: center;
  background-size: cover;
}

.home-menu {
  position: absolute;
  top: 44%;
  left: clamp(24px, 6vw, 110px);
  width: min(330px, 32vw);
  transform: translateY(-50%);
}

.home-logo {
  display: block;
  width: min(250px, 100%);
  height: auto;
  margin-bottom: 38px;
}

.home-nav {
  display: grid;
  width: min(260px, 100%);
}

.home-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.18);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    color 150ms ease,
    padding 150ms ease;
}

.home-nav a::after {
  color: var(--orange);
  content: "→";
  font-size: 20px;
}

.home-nav a:hover,
.home-nav a.active {
  padding-left: 10px;
  color: var(--orange);
}

.home-copyright {
  position: absolute;
  bottom: 22px;
  left: clamp(24px, 6vw, 110px);
  margin: 0;
  color: rgba(23, 23, 23, 0.64);
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Collection */

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 88px;
  padding: 0 max(32px, calc((100% - var(--page-width)) / 2));
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.catalog-brand {
  display: block;
  text-decoration: none;
}

.catalog-logo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.catalog-nav {
  display: flex;
  gap: 30px;
  justify-self: end;
}

.catalog-nav a {
  position: relative;
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.catalog-nav a:hover,
.catalog-nav a.active {
  color: var(--text);
}

.catalog-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
}

.catalog-main {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.anchor-section {
  scroll-margin-top: 112px;
}

.page-heading,
.section-heading {
  max-width: 740px;
}

.page-heading {
  margin-bottom: 44px;
}

.collection-page .page-heading {
  max-width: none;
  margin-bottom: 35px;
}

.collection-page .catalog-main {
  padding-top: 46px;
}

.collection-page .page-heading > .eyebrow {
  margin-bottom: 11px;
}

.collection-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 12px;
}

.collection-heading-row h1 {
  margin-bottom: 0;
}

.collection-heading-art {
  display: block;
  width: min(480px, 44vw);
  height: 60px;
  object-fit: contain;
  object-position: right center;
}

.collection-heading-row h1,
.collection-page .page-heading > p:last-child {
  max-width: 740px;
}

.section-heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(34px, 4vw, 52px);
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.page-heading > p:last-child,
.about-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  min-height: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.sort-control select {
  min-width: 145px;
  padding: 10px 30px 10px 10px;
  border: 0;
  background: var(--background);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.collection-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  padding-top: 34px;
}

.collection-results {
  min-width: 0;
}

.filters {
  align-self: start;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.filter-heading button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.filter-group {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--soft-line);
}

.filter-group > span {
  font-size: 13px;
  font-weight: 700;
}

.filter-group input,
.filter-group select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  outline: none;
}

.filter-group input:focus,
.filter-group select:focus,
.sort-control select:focus {
  outline: 1px solid var(--orange);
  outline-offset: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 24px;
}

.card-item {
  min-width: 0;
}

.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.card-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 16px;
  overflow: hidden;
  background: var(--surface);
}

.card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.card-open:hover .card-image {
  transform: scale(1.018);
}

.card-info {
  display: grid;
  gap: 4px;
  padding-top: 16px;
}

.card-set {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.serial-number {
  display: inline-block;
  font-style: italic;
}

.serial-one-of-one {
  font-family:
    "Bodoni 72 Oldstyle",
    "Bodoni 72",
    "Didot",
    Georgia,
    serif;
  font-size: 1.03em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-details {
  color: var(--orange);
  font-size: 13px;
  line-height: 1.4;
}

/* Gallery */

.gallery-page .catalog-main {
  padding-top: 28px;
}

.gallery-section {
  max-width: 1120px;
}

.gallery-top {
  margin-right: auto;
  margin-left: auto;
}

.gallery-top .gallery-section-heading {
  text-align: center;
}

.gallery-section + .gallery-section {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.gallery-section-heading {
  margin-bottom: 28px;
}

.gallery-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.gallery-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-right: auto;
  margin-left: auto;
}

.gallery-milestone {
  min-width: 0;
  padding: 0 48px;
}

.gallery-milestone + .gallery-milestone {
  border-left: 1px solid var(--line);
}

.gallery-milestone .gallery-section-heading {
  min-height: 58px;
  text-align: center;
}

.gallery-milestone .gallery-section-heading h2 {
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.12;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  gap: 48px 30px;
}

.gallery-grid .card-info {
  justify-items: center;
  text-align: center;
}

.gallery-grid .card-set {
  max-width: 100%;
}

.gallery-top-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-right: auto;
  margin-left: auto;
}

.gallery-milestone-grid {
  grid-template-columns: minmax(260px, 340px);
  justify-content: center;
}

.gallery-milestone-grid .card-image-wrap {
  aspect-ratio: 2 / 3;
}

.gallery-milestone-grid .card-item-landscape .card-image-wrap {
  padding: 16px 0;
  background: transparent;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 54px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--background);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.pagination-nav {
  min-width: 92px;
}

.pagination button:hover:not(:disabled),
.pagination-page.active {
  border-color: var(--orange);
  color: var(--orange);
}

.pagination-page.active {
  background: #fff5ed;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.35;
}

.pagination-ellipsis {
  min-width: 22px;
  color: var(--muted);
  text-align: center;
}

.pagination[hidden] {
  display: none;
}

.stats-section,
.about-section {
  margin-top: 110px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid-highlight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid-catalogue {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
}

.stats-grid > div {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.07);
}

.stats-grid > div::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  content: "";
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.statistics-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 54px;
}

.statistics-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.05);
}

.statistics-panel h2 {
  margin-bottom: 24px;
  font-size: 26px;
}

.statistics-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.statistics-list li {
  padding: 15px 0;
  border-top: 1px solid var(--soft-line);
}

.statistics-bar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}

.statistics-bar-heading span {
  color: var(--muted);
}

.statistics-bar-heading strong {
  color: var(--orange);
}

.statistics-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.statistics-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.about-story {
  margin-top: 54px;
}

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

.story-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.05);
}

.story-question {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.story-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 107, 0, 0.32);
  border-radius: 8px;
  background: rgba(243, 107, 0, 0.08);
  color: var(--orange);
}

.story-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.story-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.story-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 980px;
}

.about-copy p {
  margin-bottom: 0;
}

.catalog-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 42px;
  padding: 30px max(32px, calc((100% - var(--page-width)) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.catalog-footer p {
  margin: 0;
}

.catalog-footer-copyright {
  justify-self: start;
}

.footer-identity {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.footer-identity > p {
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-crests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.footer-crests a,
.footer-socials a {
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.footer-crests a:focus-visible,
.footer-socials a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.footer-crests img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: saturate(0.9);
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.footer-crests img:hover {
  filter: saturate(1.15);
  transform: translateY(-2px);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.footer-socials img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 150ms ease;
}

.footer-socials a:last-child img {
  width: 70px;
}

.footer-socials a:hover img {
  transform: translateY(-2px);
}

.card-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: var(--background);
  color: var(--text);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.3);
}

.card-dialog-landscape {
  width: min(920px, calc(100% - 32px));
}

.card-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--background);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.dialog-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 48px;
}

.dialog-content-landscape {
  grid-template-columns: 430px minmax(280px, 330px);
  justify-content: center;
  gap: 32px;
  padding: 36px;
}

.dialog-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dialog-images-landscape {
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 430px;
  justify-self: center;
}

.dialog-images.dialog-images-landscape img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 30vh;
  margin: 0 auto;
  background: transparent;
}

.dialog-images-raw.dialog-images-landscape img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
}

.dialog-content-landscape .dialog-details h2 {
  font-size: 27px;
}

.dialog-content-landscape .dialog-feature {
  margin-bottom: 18px;
}

.dialog-content-landscape .detail-list {
  margin-top: 22px;
}

.dialog-content-landscape .detail-row {
  grid-template-columns: 100px 1fr;
  padding: 10px 0;
  font-size: 12px;
}

.dialog-images figure {
  display: grid;
  align-content: start;
  margin: 0;
}

.dialog-image-frame {
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}

.dialog-images-raw .dialog-image-frame {
  aspect-ratio: 5 / 7;
}

.dialog-images-raw.dialog-images-landscape .dialog-image-frame {
  aspect-ratio: 7 / 5;
}

.dialog-images img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: transparent;
}

.dialog-images-raw img {
  height: 100%;
}

.dialog-images figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.dialog-eyebrow {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dialog-details h2 {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dialog-feature {
  color: var(--orange);
  font-size: 13px;
}

.detail-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
}

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

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

}

@media (max-width: 900px) {
  .home-screen {
    background-position: center right;
  }

  .home-menu {
    left: 4vw;
    width: 36vw;
  }

  .home-copyright {
    left: 4vw;
  }

  .catalog-header {
    align-items: flex-start;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: 16px;
    padding: 20px 18px 0;
  }

  .catalog-nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
  }

  .catalog-nav a {
    padding: 0 0 18px;
    white-space: nowrap;
  }

  .collection-heading-art {
    width: min(380px, 50vw);
    height: 60px;
  }

  .catalog-nav a.active::after {
    bottom: 9px;
  }

  .catalog-main {
    width: min(100% - 36px, var(--page-width));
    padding-top: 40px;
  }

  .collection-toolbar {
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    padding: 14px 0;
  }

  .filter-toggle {
    display: block;
  }

  .collection-toolbar > p {
    grid-column: 1;
    grid-row: 2;
  }

  .sort-control {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .collection-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .filters {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .filters.is-open {
    display: grid;
  }

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

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

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

  .gallery-milestones {
    gap: 0;
  }

  .gallery-milestone {
    padding: 0 24px;
  }

  .gallery-milestone .gallery-section-heading h2 {
    font-size: 22px;
  }

  .dialog-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 24px 28px;
  }

  .dialog-content-landscape {
    grid-template-columns: 1fr;
  }

  .catalog-footer {
    grid-template-columns: 1fr auto;
    gap: 28px;
  }

  .footer-identity {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .catalog-footer-copyright {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-socials {
    grid-column: 2;
    grid-row: 2;
  }

  .statistics-breakdowns,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page {
    height: auto;
    min-height: 100svh;
    overflow: auto;
  }

  .home-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    height: auto;
    padding: clamp(28px, 7svh, 56px) 20px 18px;
    background-position: 62% center;
  }

  .home-screen::before {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.86) 0%,
        rgba(255, 255, 255, 0.68) 46%,
        rgba(255, 255, 255, 0.18) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 46%,
        rgba(255, 255, 255, 0.72) 100%
      );
    content: "";
    pointer-events: none;
  }

  .home-menu {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: grid;
    align-content: center;
    justify-items: center;
    flex: 1;
    width: min(360px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .home-logo {
    width: clamp(180px, 50vw, 230px);
    max-width: 55vw;
    margin: 0 0 26px;
  }

  .home-nav {
    width: min(360px, 100%);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 40px rgba(23, 23, 23, 0.16);
    backdrop-filter: blur(10px);
  }

  .home-nav a {
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  .home-nav a::after {
    flex: 0 0 auto;
    margin-left: 18px;
    font-size: 18px;
  }

  .home-nav a:hover,
  .home-nav a.active {
    padding-left: 16px;
  }

  .home-copyright {
    position: relative;
    z-index: 1;
    bottom: auto;
    left: auto;
    width: min(360px, 100%);
    margin: 30px auto 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(23, 23, 23, 0.12);
    color: rgba(23, 23, 23, 0.72);
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 600px) {
  .home-screen {
    padding: 24px 16px 16px;
    background-position: 66% center;
  }

  .home-logo {
    width: clamp(170px, 54vw, 210px);
    margin-bottom: 22px;
  }

  .home-nav {
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .home-nav a {
    min-height: 50px;
    padding: 0 14px;
    font-size: 15px;
  }

  .home-copyright {
    margin-top: 22px;
    border-radius: 14px;
    font-size: 10px;
  }

  .catalog-main {
    width: min(100% - 24px, var(--page-width));
  }

  .catalog-header {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 10px;
  }

  .catalog-logo {
    width: 64px;
    height: 64px;
  }

  .collection-heading-row {
    gap: 16px;
  }

  .collection-heading-art {
    width: min(180px, 42vw);
    height: 48px;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    min-width: 125px;
    padding-left: 6px;
  }

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

  .filter-heading,
  .search-field {
    grid-column: auto;
  }

  .card-grid {
    gap: 34px 12px;
  }

  .gallery-top-grid,
  .gallery-milestones {
    grid-template-columns: 1fr;
  }

  .gallery-milestones {
    gap: 64px;
  }

  .gallery-milestone {
    padding: 0;
  }

  .gallery-milestone + .gallery-milestone {
    padding-top: 48px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-milestone .gallery-section-heading {
    min-height: 0;
  }

  .gallery-milestone .gallery-section-heading h2 {
    white-space: normal;
  }

  .gallery-grid {
    gap: 42px;
  }

  .gallery-section + .gallery-section {
    margin-top: 72px;
    padding-top: 48px;
  }

  .card-image-wrap {
    padding: 10px;
  }

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

  .card-details {
    font-size: 11px;
  }

  .pagination {
    gap: 6px;
    padding-top: 40px;
  }

  .pagination-pages {
    gap: 5px;
  }

  .pagination button {
    min-width: 36px;
    height: 38px;
    padding: 0 8px;
  }

  .pagination-nav {
    min-width: 78px;
  }

  .stats-grid,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .about-copy {
    gap: 20px;
  }

  .catalog-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 20px;
  }

  .footer-identity,
  .catalog-footer-copyright,
  .footer-socials {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .catalog-footer-copyright {
    text-align: center;
  }

  .footer-crests {
    gap: 24px;
  }

  .footer-crests img {
    width: 38px;
    height: 38px;
  }

  .dialog-images {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 94px 1fr;
  }
}

@media (max-width: 480px) {
  .home-screen {
    padding-inline: 14px;
    background-position: 70% center;
  }

  .home-logo {
    width: min(190px, 54vw);
  }

  .home-nav,
  .home-copyright {
    width: min(330px, 100%);
  }

  .home-nav a {
    min-height: 48px;
  }

  .home-nav a::after {
    margin-left: 12px;
  }
}
