:root {
  --work-paper: #f8f3ea;
  --work-paper-strong: #fffdf8;
  --work-ink: #25221f;
  --work-muted: #6e675f;
  --work-blue: #315f8a;
  --work-orange: #b4470b;
  --work-rule: rgba(82, 69, 55, .16);
  --work-shell: 1120px;
}

.works-hub-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 255, 255, .76), transparent 27%),
    var(--work-paper);
  color: var(--work-ink);
  font-family: var(--content-sans);
}

.works-hub-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("home/shore-watercolor-texture.svg");
  background-size: 640px auto;
  content: "";
  opacity: .14;
  pointer-events: none;
}

.works-hub-page .content-header--detail {
  position: relative;
  z-index: 10;
  width: min(var(--work-shell), calc(100% - 64px));
  min-height: 72px;
  margin: 0 auto;
  padding: 20px 0 12px;
  border: 0;
  background: transparent;
}

.works-hub-page .content-back,
.works-hub-page .content-nav a {
  color: #174a78;
  font-size: 13px;
  font-weight: 520;
}

.works-hub-page .content-back {
  font-size: 17px;
}

.works-hub-page .content-nav {
  gap: clamp(18px, 2.4vw, 34px);
}

.works-hub-page .content-nav a[aria-current="page"] {
  color: #174a78;
  font-weight: 750;
}

.works-hub-page .content-nav a[aria-current="page"]::after {
  right: 8%;
  bottom: 4px;
  left: 8%;
  height: 2px;
  border-radius: 2px;
  background: #315f8a;
}

.works-hub-page .content-nav > a,
.works-hub-page .content-nav .language-switch__option {
  color: #174a78;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: .01em;
  line-height: 1;
  transition: color 120ms ease;
}

.works-hub-page .content-nav > a {
  min-width: auto;
  padding: 0;
}

.works-hub-page .content-nav .language-switch {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
}

.works-hub-page .content-nav .language-switch__option:first-child {
  min-width: 28px;
  justify-content: flex-end;
}

.works-hub-page .content-nav .language-switch__option:last-child {
  min-width: 28px;
  justify-content: flex-start;
}

.works-hub-page .content-nav .language-switch__option.is-active {
  color: #173f68;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .works-hub-page .content-nav > a:hover,
  .works-hub-page .content-nav .language-switch__target:hover {
    color: #e66a17;
  }
}

.works-hub-page .works-list-main,
.works-hub-page .museum-pavilion-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.works-hub-page .detail-hero--works {
  position: relative;
  min-height: 330px;
  margin: -72px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  isolation: isolate;
}

.works-hub-page .detail-hero--works .detail-hero__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 66%, transparent 100%);
}

.works-hub-page .detail-hero--works .detail-hero__art::before {
  display: none;
}

.works-hub-page .detail-hero--works .detail-hero__art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 61%;
  filter: saturate(.76) brightness(1.13) contrast(.92);
  -webkit-mask-image: none;
  mask-image: none;
}

.works-hub-page .detail-hero--works .detail-hero__copy {
  position: relative;
  z-index: 1;
  width: min(var(--work-shell), calc(100% - 64px));
  margin: 0 auto;
  padding: 178px 0 52px;
}

.works-hub-page .detail-hero--works .detail-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--work-blue);
  font-family: var(--content-script);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-1deg);
  transform-origin: left;
}

.works-hub-page .detail-hero--works h1 {
  margin: 0;
  color: var(--work-blue);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: normal;
}

.works-hub-page .detail-hero--works .detail-intro {
  max-width: 610px;
  margin: 18px 0 0;
  color: #355b7f;
  font-size: 16px;
  line-height: 1.58;
  text-wrap: pretty;
}

.works-hub-page .museum-gallery,
.works-list-main .museum-gallery {
  width: 100%;
  margin: 0;
  padding: 10px 0 112px;
  background: transparent;
}

.works-hub-page .works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 76px;
  width: min(var(--work-shell), calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
}

.works-hub-page .works-card,
.works-hub-page .works-card:nth-child(even),
.works-hub-page .works-card.works-card--featured {
  position: relative;
  display: flex;
  grid-column: auto;
  gap: 0;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--work-ink);
  text-decoration: none;
  box-shadow: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.works-hub-page .works-card:focus-within {
  background: transparent;
  box-shadow: none;
}

.works-hub-page .works-card.works-card--featured {
  grid-column: 1 / -1;
}

.works-hub-page .works-card::before {
  display: none;
}

.works-hub-page .works-card__media,
.works-hub-page .works-card--featured .works-card__media {
  position: relative;
  z-index: 0;
  grid-column: auto;
  grid-row: auto;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1.52;
  padding: clamp(10px, 1.25vw, 16px);
  overflow: hidden;
  border: 1px solid rgba(107, 88, 67, .14);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(117, 185, 199, .09), transparent 48%),
    var(--work-paper-strong);
  box-shadow:
    0 18px 34px rgba(64, 52, 40, .09),
    0 2px 4px rgba(64, 52, 40, .08);
  transform: rotate(-.25deg);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  order: 1;
}

.works-hub-page .works-card:nth-child(3n) .works-card__media {
  background:
    linear-gradient(135deg, rgba(230, 106, 23, .055), transparent 52%),
    var(--work-paper-strong);
  transform: rotate(.2deg);
}

.works-hub-page .works-card--featured .works-card__media {
  aspect-ratio: 2.05;
  padding: clamp(12px, 1.5vw, 20px);
}

.works-hub-page .works-card__media picture,
.works-hub-page .works-card__media img,
.works-hub-page .works-card__media video {
  display: block;
  width: 100%;
  height: 100%;
}

.works-hub-page .works-card__media img,
.works-hub-page .works-card__media video,
.works-hub-page .works-card__media .works-card__image--top,
.works-hub-page .works-card__media .works-card__image--contain {
  box-sizing: border-box;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transition: filter 220ms ease;
}

.works-hub-page .works-card__content,
.works-hub-page .works-card--featured .works-card__content {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  padding: 0;
  flex-direction: column;
  order: 2;
}

.works-hub-page .works-card__content h2,
.works-hub-page .works-card--featured .works-card__content h2 {
  order: 1;
  max-width: none;
  margin: 0;
  color: var(--work-blue);
  font-family: var(--content-sans);
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 620;
  line-height: 1.28;
  letter-spacing: -.022em;
  text-wrap: pretty;
}

.works-hub-page .works-card--featured .works-card__content h2 {
  font-size: clamp(23px, 2vw, 29px);
}

.works-hub-page .works-card__content p,
.works-hub-page .works-card--featured .works-card__content p {
  order: 2;
  max-width: none;
  margin: 7px 0 0;
  color: #3f6281;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.works-hub-page .works-card__meta {
  display: flex;
  order: 3;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0;
  margin: 8px 0 0;
  color: var(--work-blue);
  font-size: 12px;
  line-height: 1.4;
}

.works-hub-page .works-card__category,
.works-hub-page .works-card__year {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
}

.works-hub-page .works-card__category:not(:last-child)::after {
  content: " · ";
  white-space: pre;
}

.works-hub-page .works-card__arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  bottom: auto;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, .88);
  color: var(--work-blue);
  font-size: 17px;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(44, 58, 66, .08);
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.works-hub-page .works-card.works-card--featured .works-card__arrow {
  background: rgba(255, 255, 255, .96);
  color: var(--work-ink);
}

.works-hub-page .works-card:hover .works-card__media,
.works-hub-page .works-card:focus-visible .works-card__media {
  box-shadow:
    0 22px 42px rgba(64, 52, 40, .13),
    0 2px 4px rgba(64, 52, 40, .08);
  transform: translateY(-3px) rotate(0);
}

.works-hub-page .works-card:hover .works-card__media img,
.works-hub-page .works-card:focus-visible .works-card__media img {
  filter: saturate(1.025);
  transform: none;
}

.works-hub-page .works-card:hover .works-card__arrow,
.works-hub-page .works-card:focus-visible .works-card__arrow {
  background: rgba(255, 255, 255, .96);
  color: var(--work-ink);
  opacity: 1;
  transform: translateY(0);
}

.works-hub-page .works-card:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--work-blue);
  outline-offset: 8px;
}

.works-hub-page .works-card:nth-child(8) {
  grid-column: 1;
}

.works-hub-page .work-paw-trail {
  position: relative;
  align-self: stretch;
  min-height: 536px;
}

.works-hub-page .work-paw {
  position: absolute;
  display: block;
  width: 42px;
  height: 46px;
  opacity: .36;
  transform: rotate(-24deg);
}

.works-hub-page .work-paw::before {
  position: absolute;
  top: 21px;
  left: 11px;
  width: 23px;
  height: 20px;
  border-radius: 52% 52% 44% 44%;
  background: #9d836b;
  content: "";
  transform: rotate(2deg);
}

.works-hub-page .work-paw::after {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 8px;
  height: 11px;
  border-radius: 55%;
  background: #9d836b;
  box-shadow: 10px -5px 0 #9d836b, 21px -3px 0 #9d836b, 29px 4px 0 #9d836b;
  content: "";
  transform: rotate(-12deg);
}

.works-hub-page .work-paw--1 { top: 0; left: 48%; opacity: .25; transform: rotate(-17deg) scale(.62); }
.works-hub-page .work-paw--2 { top: 66px; left: 46%; opacity: .37; transform: rotate(-5deg) scale(1.12); }
.works-hub-page .work-paw--3 { top: 134px; left: 42%; opacity: .29; transform: rotate(-26deg) scale(.76); }
.works-hub-page .work-paw--4 { top: 207px; left: 37%; opacity: .36; transform: rotate(-11deg) scale(1); }
.works-hub-page .work-paw--5 { top: 273px; left: 33%; opacity: .27; transform: rotate(-31deg) scale(.68); }
.works-hub-page .work-paw--6 { top: 347px; left: 31%; opacity: .34; transform: rotate(-16deg) scale(.92); }
.works-hub-page .work-paw--7 { top: 417px; left: 35%; opacity: .24; transform: rotate(-34deg) scale(.58); }
.works-hub-page .work-paw--8 { top: 486px; left: 42%; opacity: .36; transform: rotate(-9deg) scale(1.05); }

.works-hub-page .work-footer {
  position: relative;
  min-height: 430px;
  margin: -1px 0 0;
  padding: 0 max(32px, calc((100% - var(--work-shell)) / 2));
  overflow: hidden;
  color: var(--work-blue);
  isolation: isolate;
}

.works-hub-page .work-footer__landscape {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .3) 10%, #000 27%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .3) 10%, #000 27%, #000 100%);
}

.works-hub-page .work-footer__landscape::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248, 243, 234, .78) 0, rgba(248, 243, 234, .18) 24%, transparent 44%);
  content: "";
}

.works-hub-page .work-footer__landscape img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(.82) brightness(1.02) contrast(.98);
}

.works-hub-page .work-footer__scene {
  position: absolute;
  right: 0;
  bottom: 116px;
  left: 0;
  display: flex;
  min-height: 96px;
  justify-content: center;
  align-items: end;
}

.works-hub-page .work-footer__companions {
  position: relative;
  display: block;
  width: 146px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 5px 7px rgba(57, 47, 37, .12));
}

.works-hub-page .work-footer__companions img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transform: translateY(8px);
}

.works-hub-page .work-footer__stamp {
  position: absolute;
  right: 1.5%;
  bottom: -4px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 2px solid rgba(180, 71, 11, .42);
  border-radius: 50%;
  color: rgba(180, 71, 11, .62);
  font-family: var(--content-script);
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  text-transform: lowercase;
  transform: rotate(9deg);
}

.works-hub-page .work-footer__stamp::after {
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.works-hub-page .work-footer__message {
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
  margin: 0;
  font-family: var(--content-script);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  transform: rotate(-1deg);
}

.works-hub-page .work-footer__bottom {
  position: absolute;
  right: max(32px, calc((100% - var(--work-shell)) / 2));
  bottom: 28px;
  left: max(32px, calc((100% - var(--work-shell)) / 2));
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .92);
}

.works-hub-page .work-footer__bottom nav {
  display: flex;
  gap: 24px;
}

.works-hub-page .work-footer__bottom a,
.works-hub-page .work-footer__bottom nav span {
  color: inherit;
  text-decoration: none;
}

.works-hub-page .work-footer__bottom nav .is-pending {
  cursor: default;
  opacity: .72;
}

.works-hub-page .work-footer__bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.works-hub-page .work-footer__bottom a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--work-blue);
  outline-offset: 4px;
}

.works-hub-page .work-footer__listening {
  justify-self: end;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(49, 95, 138, .14);
  border-radius: 3px;
  background: rgba(255, 253, 248, .58);
  backdrop-filter: blur(5px);
}

@media (max-width: 820px) {
  .works-hub-page .content-header--detail {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    width: calc(100% - 36px);
    min-height: 0;
    padding: 10px 0 6px;
  }

  .works-hub-page .content-back {
    min-height: 44px;
    font-size: 20px;
  }

  .works-hub-page .content-nav {
    display: grid;
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    overflow: visible;
  }

  .works-hub-page .content-nav > a {
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding-inline: 4px;
    text-align: center;
  }

  .works-hub-page .content-nav > a:first-child {
    justify-content: flex-start;
    padding-left: 0;
    text-align: left;
  }

  .works-hub-page .content-nav .language-switch {
    position: absolute;
    top: 14px;
    right: 0;
    width: 72px;
    min-width: 72px;
    flex-basis: 72px;
    margin: 0;
    justify-content: flex-end;
  }

  .works-hub-page .detail-hero--works {
    min-height: 300px;
    margin-top: -96px;
  }

  .works-hub-page .detail-hero--works .detail-hero__art {
    grid-area: auto;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 100%;
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, .7) 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, .7) 74%, transparent 100%);
  }

  .works-hub-page .detail-hero--works .detail-hero__art img {
    object-position: center 58%;
  }

  .works-hub-page .detail-hero--works .detail-hero__copy {
    width: calc(100% - 36px);
    padding: 164px 0 44px;
  }

  .works-hub-page .detail-hero--works .detail-hero__eyebrow {
    font-size: 19px;
  }

  .works-hub-page .detail-hero--works h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .works-hub-page .detail-hero--works .detail-intro {
    max-width: 34rem;
    font-size: 15px;
  }

  .works-hub-page .works-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
    width: calc(100% - 36px);
  }

  .works-hub-page .works-card,
  .works-hub-page .works-card:nth-child(8),
  .works-hub-page .works-card.works-card--featured {
    grid-column: 1;
  }

  .works-hub-page .works-card__media,
  .works-hub-page .works-card--featured .works-card__media {
    aspect-ratio: auto;
    padding: 10px;
    transform: none;
  }

  .works-hub-page .works-card__media picture {
    height: auto;
  }

  .works-hub-page .works-card__media img,
  .works-hub-page .works-card__media video,
  .works-hub-page .works-card__media .works-card__image--top,
  .works-hub-page .works-card__media .works-card__image--contain {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .works-hub-page .works-card__content,
  .works-hub-page .works-card--featured .works-card__content {
    margin-top: 16px;
  }

  .works-hub-page .works-card__content h2,
  .works-hub-page .works-card--featured .works-card__content h2 {
    font-size: 20px;
  }

  .works-hub-page .works-card__content p,
  .works-hub-page .works-card--featured .works-card__content p {
    font-size: 14px;
  }

  .works-hub-page .work-paw-trail {
    display: none;
  }

  .works-hub-page .museum-gallery,
  .works-list-main .museum-gallery {
    padding-bottom: 72px;
  }

  .works-hub-page .work-footer {
    display: flex;
    min-height: clamp(500px, 65svh, 580px);
    padding: 0 22px 28px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .works-hub-page .work-footer__landscape img {
    object-position: center bottom;
    transform: scale(1.54);
    transform-origin: center bottom;
  }

  .works-hub-page .work-footer__scene {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 134px;
    flex: 0 0 134px;
    transform: translateY(38px);
  }

  .works-hub-page .work-footer__companions {
    width: 132px;
  }

  .works-hub-page .work-footer__stamp {
    right: 18px;
    width: 62px;
    height: 62px;
    font-size: 11px;
  }

  .works-hub-page .work-footer__bottom {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    transform: translateY(12px);
  }

  .works-hub-page .work-footer__bottom nav {
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .works-hub-page .work-footer__listening {
    justify-self: center;
  }

  .works-hub-page .work-footer__message {
    position: static;
    margin: 14px 0 24px;
    line-height: 1.35;
    transform: translateY(28px) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .works-hub-page .works-card__media,
  .works-hub-page .works-card__media img,
  .works-hub-page .works-card__arrow {
    transition: none;
  }
}
