.motion-work {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--heroLine, #dedbd6);
  color: var(--foreground, #1b1b1b);
  background: var(--heroBg, #faf9f7);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

.motion-work__inner {
  position: relative;
  max-width: 1520px;
  margin: 0 auto;
  padding: 80px 24px;
}

.motion-work__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.motion-work__title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
}

.motion-work__title em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.motion-work__intro {
  max-width: 310px;
  margin: 0 0 4px;
  color: color-mix(in srgb, var(--foreground, #1b1b1b) 62%, transparent);
  font-size: 15px;
  line-height: 1.5;
}

.motion-work__rule {
  height: 1px;
  margin: 40px 0 48px;
  background: var(--heroLine, #dedbd6);
}

.motion-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
  height: clamp(480px, 43vw, 620px);
}

.motion-work__item {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.motion-work__item:first-child { grid-row: span 2; }

.motion-work__card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--heroLine, #dedbd6);
  color: #fff;
  background: #242424;
  cursor: pointer;
  text-align: left;
}

.motion-work__card:focus-visible { outline: 3px solid var(--heroAccent, #fc4926); outline-offset: 4px; }

.motion-work__image,
.motion-work__preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-work__image { transition: transform 900ms cubic-bezier(.22, 1, .36, 1); }
.motion-work__preview { opacity: 0; transition: opacity 500ms ease; }
.motion-work__card:hover .motion-work__image { transform: scale(1.06); }
.motion-work__card:hover .motion-work__preview,
.motion-work__card--previewing .motion-work__preview { opacity: 1; }

.motion-work__card::before {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--heroAccent, #fc4926);
  pointer-events: none;
  transition: width 500ms ease;
}
.motion-work__card:hover::before { width: 100%; }

.motion-work__card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.motion-work__card-copy,
.motion-work__play { position: absolute; z-index: 1; }

.motion-work__card-copy { right: 58px; bottom: 22px; left: 22px; }
.motion-work__type {
  display: block;
  margin-bottom: 8px;
  color: var(--heroAccent, #fc4926);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.motion-work__name {
  display: block;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.15;
}

.motion-work__play {
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--heroAccent, #fc4926);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.motion-work__play svg { width: 18px; height: 18px; margin-left: 2px; }
.motion-work__card:hover .motion-work__play,
.motion-work__card:focus-visible .motion-work__play { opacity: 1; transform: translateY(0); }

.motion-work__bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--heroLine, #dedbd6);
  color: color-mix(in srgb, var(--foreground, #1b1b1b) 60%, transparent);
  font-size: 14px;
}

.motion-work__bottomline a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 15px 20px;
  background: var(--heroAccent, #fc4926);
  box-shadow: 5px 5px 0 var(--foreground, #1b1b1b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: translate 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}
.motion-work__bottomline a:hover { translate: 0 -3px; box-shadow: 8px 8px 0 var(--foreground, #1b1b1b); }
.motion-work__bottomline a:focus-visible { outline: 3px solid var(--foreground, #1b1b1b); outline-offset: 8px; }
.motion-work__bottomline a span { font-size: 22px; font-weight: 400; line-height: 1; }

.motion-work__reveal {
  opacity: 0;
  transform: translateY(60px) scale(.96);
  filter: blur(14px);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1),
              transform 900ms cubic-bezier(.22, 1, .36, 1),
              filter 900ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--motion-reveal-delay, 0ms);
}
.motion-work__header.motion-work__reveal,
.motion-work__bottomline.motion-work__reveal { transform: translateY(28px); filter: blur(12px); }
.motion-work__reveal--visible { opacity: 1; transform: none !important; filter: blur(0) !important; }

@media (min-width: 768px) {
  .motion-work__inner { padding: 112px 40px; }
  .motion-work__title { font-size: 64px; }
}

@media (min-width: 1280px) {
  .motion-work__inner { padding-right: 56px; padding-left: 56px; }
}

@media (max-width: 900px) {
  .motion-work__grid { height: 460px; gap: 16px; }
}

@media (max-width: 640px) {
  .motion-work__header { align-items: start; flex-direction: column; gap: 16px; }
  .motion-work__intro { max-width: 460px; }
  .motion-work__rule { margin: 32px 0 28px; }
  .motion-work__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; gap: 12px; }
  .motion-work__item,
  .motion-work__item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .motion-work__card-copy { right: 56px; bottom: 16px; left: 17px; }
  .motion-work__type { margin-bottom: 5px; font-size: 10px; }
  .motion-work__name { font-size: 18px; }
  .motion-work__play { right: 15px; bottom: 15px; opacity: 1; transform: none; }
  .motion-work__bottomline { align-items: start; flex-direction: column; gap: 12px; margin-top: 24px; }
  .motion-work__bottomline a { width: calc(100% - 5px); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-work__image,
  .motion-work__preview,
  .motion-work__play,
  .motion-work__reveal,
  .motion-work__card::before,
  .motion-work__bottomline a { transition: none; }
}
